Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 51b0e83

Browse files
author
anirudh
committed
use custom prefix token
1 parent 1e609d8 commit 51b0e83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchchat/usages/eval.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ def eval(
473473
device=device,
474474
is_pte_model=is_pte_model,
475475
)
476+
# use eot_token_id as prefix_token_id.
477+
model_eval_wrapper.custom_prefix_token_id = model_eval_wrapper.eot_token_id
476478
elif modality == "text-image":
477479
model_eval_wrapper = VLMEvalWrapper(
478480
model,

0 commit comments

Comments
 (0)