mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] Fix chatglm2 config (#893)
This commit is contained in:
parent
9119e2ac39
commit
2b7d376e3d
@ -1,5 +1,11 @@
|
||||
from opencompass.models import HuggingFace
|
||||
|
||||
_meta_template = dict(
|
||||
round=[
|
||||
dict(role='HUMAN', begin='[Round 1]\n\n问:', end='\n\n'),
|
||||
dict(role='BOT', begin='答:', end='\n\n', generate=True),
|
||||
],
|
||||
)
|
||||
|
||||
models = [
|
||||
dict(
|
||||
@ -16,6 +22,7 @@ models = [
|
||||
truncation_side='left',
|
||||
trust_remote_code=True,
|
||||
),
|
||||
meta_template=_meta_template,
|
||||
max_out_len=100,
|
||||
max_seq_len=4096,
|
||||
batch_size=8,
|
||||
|
Loading…
Reference in New Issue
Block a user