Skip to content

Commit

Permalink
[Fix] Fix moss template config (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-song authored Feb 21, 2024
1 parent 2b7d376 commit 6d04dec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configs/models/moss/hf_moss_moon_003_sft.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
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 = [
dict(
Expand All @@ -12,6 +18,7 @@
truncation_side='left',
trust_remote_code=True,
),
meta_template=_meta_template,
max_out_len=100,
max_seq_len=2048,
batch_size=8,
Expand Down

0 comments on commit 6d04dec

Please sign in to comment.