Update generation_test_hf_script.py
Browse files
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])
|