mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
update evaluate
Former-commit-id: 288137a76ed1528faa39b467da22f6468ba368ee
This commit is contained in:
parent
2bc64a7636
commit
f7cecd20e3
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user