OpenCompass/configs/models/chatglm/hf_glm4_9b_chat.py

14 lines
351 B
Python

from opencompass.models import HuggingFacewithChatTemplate
models = [
dict(
type=HuggingFacewithChatTemplate,
abbr='glm-4-9b-chat-hf',
path='THUDM/glm-4-9b-chat',
max_out_len=1024,
batch_size=8,
run_cfg=dict(num_gpus=1),
stop_words=['<|endoftext|>', '<|user|>', '<|observation|>'],
)
]