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
2b7d376e
Unverified
Commit
2b7d376e
authored
Feb 19, 2024
by
Fengzhe Zhou
Committed by
GitHub
Feb 19, 2024
Browse files
[Fix] Fix chatglm2 config (#893)
parent
9119e2ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
configs/models/chatglm/hf_chatglm2_6b.py
configs/models/chatglm/hf_chatglm2_6b.py
+7
-0
No files found.
configs/models/chatglm/hf_chatglm2_6b.py
View file @
2b7d376e
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
,
...
...
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