Skip to content

Commit

Permalink
Update run_clm_llms_inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuchenyang committed Jul 1, 2023
1 parent 7647ef4 commit 8d41f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_clm_llms_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def compute_metrics(eval_preds):
if training_args.do_eval:
prompt = "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{}\n\n### Response:"

tokenizer = AutoTokenizer.from_pretrained('trained_models/llama_tokenizer')
tokenizer = LlamaTokenizer.from_pretrained('trained_models/llama_tokenizer')
model = trainer.get_model()

dataset_name = data_args.dataset_name
Expand Down

0 comments on commit 8d41f30

Please sign in to comment.