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
40a2441d
Unverified
Commit
40a2441d
authored
Jan 19, 2024
by
RangiLyu
Committed by
GitHub
Jan 19, 2024
Browse files
Update hf_internlm2_chat template (#823)
* Update hf_internlm2_chat template * Update 20B
parent
e975a96f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
configs/models/hf_internlm/hf_internlm2_chat_20b.py
configs/models/hf_internlm/hf_internlm2_chat_20b.py
+4
-4
configs/models/hf_internlm/hf_internlm2_chat_7b.py
configs/models/hf_internlm/hf_internlm2_chat_7b.py
+4
-4
No files found.
configs/models/hf_internlm/hf_internlm2_chat_20b.py
View file @
40a2441d
...
@@ -3,9 +3,9 @@ from opencompass.models import HuggingFaceCausalLM
...
@@ -3,9 +3,9 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
_meta_template
=
dict
(
round
=
[
round
=
[
dict
(
role
=
'HUMAN'
,
begin
=
'
[UNUSED_TOKEN_146]user
\n
'
,
end
=
'[UNUSED_TOKEN_145]
\n
'
),
dict
(
role
=
'HUMAN'
,
begin
=
'
<|im_start|>user
\n
'
,
end
=
'<|im_end|>
\n
'
),
dict
(
role
=
'SYSTEM'
,
begin
=
'
[UNUSED_TOKEN_146]system
\n
'
,
end
=
'[UNUSED_TOKEN_145]
\n
'
),
dict
(
role
=
'SYSTEM'
,
begin
=
'
<|im_start|>system
\n
'
,
end
=
'<|im_end|>
\n
'
),
dict
(
role
=
'BOT'
,
begin
=
'
[UNUSED_TOKEN_146]
assistant
\n
'
,
end
=
'
[UNUSED_TOKEN_145]
\n
'
,
generate
=
True
),
dict
(
role
=
'BOT'
,
begin
=
'
<|im_start|>
assistant
\n
'
,
end
=
'
<|im_end|>
\n
'
,
generate
=
True
),
],
],
eos_token_id
=
92542
eos_token_id
=
92542
)
)
...
@@ -31,6 +31,6 @@ models = [
...
@@ -31,6 +31,6 @@ models = [
batch_size
=
8
,
batch_size
=
8
,
meta_template
=
_meta_template
,
meta_template
=
_meta_template
,
run_cfg
=
dict
(
num_gpus
=
2
,
num_procs
=
1
),
run_cfg
=
dict
(
num_gpus
=
2
,
num_procs
=
1
),
end_str
=
'
[UNUSED_TOKEN_145]
'
,
end_str
=
'
<|im_end|>
'
,
)
)
]
]
configs/models/hf_internlm/hf_internlm2_chat_7b.py
View file @
40a2441d
...
@@ -3,9 +3,9 @@ from opencompass.models import HuggingFaceCausalLM
...
@@ -3,9 +3,9 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
_meta_template
=
dict
(
round
=
[
round
=
[
dict
(
role
=
'HUMAN'
,
begin
=
'
[UNUSED_TOKEN_146]user
\n
'
,
end
=
'[UNUSED_TOKEN_145]
\n
'
),
dict
(
role
=
'HUMAN'
,
begin
=
'
<|im_start|>user
\n
'
,
end
=
'<|im_end|>
\n
'
),
dict
(
role
=
'SYSTEM'
,
begin
=
'
[UNUSED_TOKEN_146]system
\n
'
,
end
=
'[UNUSED_TOKEN_145]
\n
'
),
dict
(
role
=
'SYSTEM'
,
begin
=
'
<|im_start|>system
\n
'
,
end
=
'<|im_end|>
\n
'
),
dict
(
role
=
'BOT'
,
begin
=
'
[UNUSED_TOKEN_146]
assistant
\n
'
,
end
=
'
[UNUSED_TOKEN_145]
\n
'
,
generate
=
True
),
dict
(
role
=
'BOT'
,
begin
=
'
<|im_start|>
assistant
\n
'
,
end
=
'
<|im_end|>
\n
'
,
generate
=
True
),
],
],
eos_token_id
=
92542
eos_token_id
=
92542
)
)
...
@@ -31,6 +31,6 @@ models = [
...
@@ -31,6 +31,6 @@ models = [
batch_size
=
8
,
batch_size
=
8
,
meta_template
=
_meta_template
,
meta_template
=
_meta_template
,
run_cfg
=
dict
(
num_gpus
=
1
,
num_procs
=
1
),
run_cfg
=
dict
(
num_gpus
=
1
,
num_procs
=
1
),
end_str
=
'
[UNUSED_TOKEN_145]
'
,
end_str
=
'
<|im_end|>
'
,
)
)
]
]
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