"...composable_kernel.git" did not exist on "334361cbde76a2566fb215a64a6652205b0d2336"
Unverified Commit 6d04deca authored by Xu Song's avatar Xu Song Committed by GitHub
Browse files

[Fix] Fix moss template config (#897)

parent 2b7d376e
from opencompass.models import HuggingFaceCausalLM from opencompass.models import HuggingFaceCausalLM
_meta_template = dict(
round=[
dict(role='HUMAN', begin='<|Human|>: ', end='<eoh>\n'),
dict(role='BOT', begin='<|MOSS|>: ', end='<eom>\n', generate=True),
],
)
models = [ models = [
dict( dict(
...@@ -12,6 +18,7 @@ models = [ ...@@ -12,6 +18,7 @@ models = [
truncation_side='left', truncation_side='left',
trust_remote_code=True, trust_remote_code=True,
), ),
meta_template=_meta_template,
max_out_len=100, max_out_len=100,
max_seq_len=2048, max_seq_len=2048,
batch_size=8, batch_size=8,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment