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 dd0ce47 commit 9ac98d5
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 @@ -80,7 +80,7 @@ def tokenize(prompt: str) -> str:
def tokenize_phi3(self, prompts: list[str], role: str) -> str:
inputs = [{"role": role, "content": prompt} for prompt in prompts]
inputs = self.tokenizer.apply_chat_template(
prompts, add_generation_prompt=True, return_tensors="pt"
inputs, add_generation_prompt=True, return_tensors="pt"
)
return inputs

Expand Down

0 comments on commit 9ac98d5

Please sign in to comment.