mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-03 04:02:49 +08:00
update evaluate
Former-commit-id: f8ff625d76d91bc8c0b91e9c371fd68cdccdfb7e
This commit is contained in:
parent
467c30d591
commit
02549e3162
@ -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