Skip to content

Commit

Permalink
Update train_llama2_lowrank_lora.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mobicham authored Oct 26, 2023
1 parent 2dc2918 commit 3384f80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/train_llama2_lowrank_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ def train(model, tokenizer, dataset_train, dataset_val, max_tokens=256, batch_si

model.eval()

print(dataset_name.value, '| perplexity', compute_perplexity(model=model, tokenizer=tokenizer,
predictions=[s['text'] for s in dataset_val],
batch_size=1, max_length=512))
print(dataset_name.value, '| perplexity', compute_perplexity(model=model, tokenizer=tokenizer, predictions=[s['text'] for s in dataset_val], batch_size=1, max_length=512))


0 comments on commit 3384f80

Please sign in to comment.