doberst commited on
Commit
415157f
1 Parent(s): 0a98de0

Update generation_test_hf_script.py

Browse files
Files changed (1) hide show
  1. generation_test_hf_script.py +1 -1
generation_test_hf_script.py CHANGED
@@ -39,7 +39,7 @@ def run_test(model_name, test_ds):
39
  for i, entries in enumerate(test_ds):
40
 
41
  # prepare prompt packaging used in fine-tuning process
42
- new_prompt = "<human>: " + entries["context"] + "\n" + entries["query"] + "\n" + "<bot>:"
43
 
44
  inputs = tokenizer(new_prompt, return_tensors="pt")
45
  start_of_output = len(inputs.input_ids[0])
 
39
  for i, entries in enumerate(test_ds):
40
 
41
  # prepare prompt packaging used in fine-tuning process
42
+ new_prompt = "<human>: " + entries["context"] + "\n" + entries["query"] + "\n" + "<bot>:" + "\n"
43
 
44
  inputs = tokenizer(new_prompt, return_tensors="pt")
45
  start_of_output = len(inputs.input_ids[0])