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 2f78a1e commit dd0ce47
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 @@ -81,7 +81,7 @@ 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"
).to("cuda")
)
return inputs

def generate(
Expand Down

0 comments on commit dd0ce47

Please sign in to comment.