mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-15 03:10:35 +08:00
update evaluate
This commit is contained in:
@@ -58,7 +58,7 @@ class EvalTemplate:
|
|||||||
if not use_history:
|
if not use_history:
|
||||||
query = "\n\n".join(["".join(item) for item in history] + [query])
|
query = "\n\n".join(["".join(item) for item in history] + [query])
|
||||||
history = []
|
history = []
|
||||||
return query, resp, history
|
return query.strip(), resp, history
|
||||||
|
|
||||||
|
|
||||||
eval_templates = {
|
eval_templates = {
|
||||||
|
|||||||
Reference in New Issue
Block a user