Skip to content

Commit

Permalink
Update example_mixtral.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Jun 27, 2024
1 parent 2a9330c commit 1958d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_mixtral.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
tokenizer = AutoTokenizer.from_pretrained(pretrained_model_dir, use_fast=True)
tokenizer.pad_token = tokenizer.eos_token

ds = load_dataset("mgoin/ultrachat_2k", split="train_sft").select(range(10))
ds = load_dataset("mgoin/ultrachat_2k", split="train_sft")
examples = [tokenizer.apply_chat_template(batch["messages"], tokenize=False) for batch in ds]
examples = tokenizer(examples, padding=True, truncation=True, return_tensors="pt").to("cuda")

Expand Down

0 comments on commit 1958d07

Please sign in to comment.