Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #46 from upskyy/feature/gemma2
Browse files Browse the repository at this point in the history
Add gemma2 stop tokens
  • Loading branch information
StableFluffy authored Aug 2, 2024
2 parents 9dc218f + 643b7df commit 97a5e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
temperature=0,
skip_special_tokens=True,
max_tokens=args.model_len,
stop=["<|endoftext|>", "[INST]", "[/INST]", "<|im_end|>", "<|end|>", "<|eot_id|>"],
stop=["<|endoftext|>", "[INST]", "[/INST]", "<|im_end|>", "<|end|>", "<|eot_id|>", "<end_of_turn>", "<eos>"],
)

df_questions = pd.read_json("questions.jsonl", orient="records", encoding="utf-8-sig", lines=True)
Expand Down

0 comments on commit 97a5e86

Please sign in to comment.