Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 5, 2024
1 parent 735a91a commit 1876b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute_horde_prompt_gen/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ def decode(self, output):
if self.model_name == LLAMA3:
return self.tokenizer.decode(output, skip_special_tokens=True)
elif self.model_name == PHI3:
return self.tokenizer.batch_decode(output)
return "".join(self.tokenizer.batch_decode(output))
else:
raise ValueError(f"Unknown model {self.model_name}")

0 comments on commit 1876b31

Please sign in to comment.