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
b837f688
Commit
b837f688
authored
May 29, 2024
by
gaoqiong
Browse files
增加完善lmdeploy测评步骤
parent
aeb9899d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
configs/eval_llama2_chat_lmdeploy.py
configs/eval_llama2_chat_lmdeploy.py
+1
-1
configs/eval_llama2_lmdeploy.py
configs/eval_llama2_lmdeploy.py
+0
-7
No files found.
configs/eval_llama2_chat_lmdeploy.py
View file @
b837f688
...
@@ -20,7 +20,7 @@ models = [
...
@@ -20,7 +20,7 @@ models = [
dict
(
dict
(
type
=
TurboMindModel
,
type
=
TurboMindModel
,
abbr
=
'llama-2-7b-chat-hf-lmdeploy'
,
abbr
=
'llama-2-7b-chat-hf-lmdeploy'
,
path
=
"Llama-2-7b-chat-hf"
,
path
=
"
/dataset/llm-models/llama2/
Llama-2-7b-chat-hf"
,
meta_template
=
llama_chat_meta_template
,
meta_template
=
llama_chat_meta_template
,
engine_config
=
dict
(
session_len
=
4096
,
engine_config
=
dict
(
session_len
=
4096
,
max_batch_size
=
32
),
max_batch_size
=
32
),
...
...
configs/eval_llama2_lmdeploy.py
View file @
b837f688
...
@@ -9,13 +9,6 @@ with read_base():
...
@@ -9,13 +9,6 @@ with read_base():
datasets
=
sum
((
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'_datasets'
)),
[])
datasets
=
sum
((
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'_datasets'
)),
[])
work_dir
=
'./outputs/llama2/'
work_dir
=
'./outputs/llama2/'
llama_chat_meta_template
=
dict
(
round
=
[
dict
(
role
=
"HUMAN"
,
begin
=
'[INST] '
,
end
=
' [/INST]'
),
dict
(
role
=
"BOT"
,
begin
=
' '
,
end
=
' '
,
generate
=
True
),
],
)
models
=
[
models
=
[
dict
(
dict
(
type
=
TurboMindModel
,
type
=
TurboMindModel
,
...
...
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