Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
opencompass
Commits
6d04deca
"...composable_kernel.git" did not exist on "334361cbde76a2566fb215a64a6652205b0d2336"
Unverified
Commit
6d04deca
authored
Feb 21, 2024
by
Xu Song
Committed by
GitHub
Feb 21, 2024
Browse files
[Fix] Fix moss template config (#897)
parent
2b7d376e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
configs/models/moss/hf_moss_moon_003_sft.py
configs/models/moss/hf_moss_moon_003_sft.py
+7
-0
No files found.
configs/models/moss/hf_moss_moon_003_sft.py
View file @
6d04deca
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment