Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset was loaded twice in 4-bit finetuning script #1164

Merged
Merged
5 changes: 0 additions & 5 deletions examples/fp4_finetuning/finetune_fp4_opt_bnb_peft.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ def print_trainable_parameters(model):

"""### Training"""


data = load_dataset("Abirate/english_quotes")
data = data.map(lambda samples: tokenizer(samples["quote"]), batched=True)


data = load_dataset("Abirate/english_quotes")
data = data.map(lambda samples: tokenizer(samples["quote"]), batched=True)

Expand Down