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
17735f0c
Unverified
Commit
17735f0c
authored
Apr 24, 2024
by
liushz
Committed by
GitHub
Apr 24, 2024
Browse files
Fix Llama-3 meta template (#1079)
Co-authored-by:
liuhongwei
<
liuhongwei@pjlab.org.cn
>
parent
81d0e4d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
configs/models/hf_llama/hf_llama3_70b_instruct.py
configs/models/hf_llama/hf_llama3_70b_instruct.py
+2
-2
configs/models/hf_llama/hf_llama3_8b_instruct.py
configs/models/hf_llama/hf_llama3_8b_instruct.py
+2
-2
No files found.
configs/models/hf_llama/hf_llama3_70b_instruct.py
View file @
17735f0c
...
@@ -2,8 +2,8 @@ from opencompass.models import HuggingFaceCausalLM
...
@@ -2,8 +2,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
_meta_template
=
dict
(
round
=
[
round
=
[
dict
(
role
=
"HUMAN"
,
begin
=
"<|
begin_of_text
|>user<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
),
dict
(
role
=
"HUMAN"
,
begin
=
"<|
start_header_id
|>user<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
),
dict
(
role
=
"BOT"
,
begin
=
"<|
begin_of_text
|>assistant<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
,
generate
=
True
),
dict
(
role
=
"BOT"
,
begin
=
"<|
start_header_id
|>assistant<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
,
generate
=
True
),
],
],
)
)
...
...
configs/models/hf_llama/hf_llama3_8b_instruct.py
View file @
17735f0c
...
@@ -2,8 +2,8 @@ from opencompass.models import HuggingFaceCausalLM
...
@@ -2,8 +2,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
_meta_template
=
dict
(
round
=
[
round
=
[
dict
(
role
=
"HUMAN"
,
begin
=
"<|
begin_of_text
|>user<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
),
dict
(
role
=
"HUMAN"
,
begin
=
"<|
start_header_id
|>user<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
),
dict
(
role
=
"BOT"
,
begin
=
"<|
begin_of_text
|>assistant<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
,
generate
=
True
),
dict
(
role
=
"BOT"
,
begin
=
"<|
start_header_id
|>assistant<|end_header_id|>
\n\n
"
,
end
=
"<|eot_id|>"
,
generate
=
True
),
],
],
)
)
...
...
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