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
aa2dd2b5
Unverified
Commit
aa2dd2b5
authored
May 14, 2024
by
Fengzhe Zhou
Committed by
GitHub
May 14, 2024
Browse files
[Format] Add config lints (#892)
parent
3dbba119
Changes
648
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
32 additions
and
34 deletions
+32
-34
configs/models/wizardcoder/hf_wizardcoder_3b.py
configs/models/wizardcoder/hf_wizardcoder_3b.py
+1
-1
configs/models/wizardcoder/hf_wizardcoder_python_13b.py
configs/models/wizardcoder/hf_wizardcoder_python_13b.py
+1
-1
configs/models/wizardcoder/hf_wizardcoder_python_34b.py
configs/models/wizardcoder/hf_wizardcoder_python_34b.py
+1
-1
configs/models/wizardlm/hf_wizardlm_13b_v1_2.py
configs/models/wizardlm/hf_wizardlm_13b_v1_2.py
+2
-2
configs/models/wizardlm/hf_wizardlm_70b_v1_0.py
configs/models/wizardlm/hf_wizardlm_70b_v1_0.py
+2
-2
configs/models/wizardlm/hf_wizardlm_7b_v1_0.py
configs/models/wizardlm/hf_wizardlm_7b_v1_0.py
+2
-2
configs/models/wizardlm/hf_wizardmath_7b_v1_0.py
configs/models/wizardlm/hf_wizardmath_7b_v1_0.py
+2
-2
configs/models/wizardlm/hf_wizardmath_7b_v1_1.py
configs/models/wizardlm/hf_wizardmath_7b_v1_1.py
+2
-2
configs/models/wizardlm/vllm_wizardlm_13b_v1_2.py
configs/models/wizardlm/vllm_wizardlm_13b_v1_2.py
+2
-2
configs/models/wizardlm/vllm_wizardlm_70b_v1_0.py
configs/models/wizardlm/vllm_wizardlm_70b_v1_0.py
+2
-2
configs/models/wizardlm/vllm_wizardlm_7b_v1_0.py
configs/models/wizardlm/vllm_wizardlm_7b_v1_0.py
+2
-2
configs/models/zephyr/vllm_zephyr_7b_beta.py
configs/models/zephyr/vllm_zephyr_7b_beta.py
+2
-2
configs/subjective/eval_subjective_alpacaeval.py
configs/subjective/eval_subjective_alpacaeval.py
+1
-2
configs/subjective/eval_subjective_mtbench.py
configs/subjective/eval_subjective_mtbench.py
+1
-1
configs/subjective/model_cfg.py
configs/subjective/model_cfg.py
+1
-2
configs/summarizers/agent_bench.py
configs/summarizers/agent_bench.py
+1
-1
configs/summarizers/chat_OC15.py
configs/summarizers/chat_OC15.py
+1
-1
configs/summarizers/chat_OC15_multi_faceted.py
configs/summarizers/chat_OC15_multi_faceted.py
+1
-1
configs/summarizers/cibench.py
configs/summarizers/cibench.py
+4
-4
configs/summarizers/code_passk.py
configs/summarizers/code_passk.py
+1
-1
No files found.
configs/models/wizardcoder/hf_wizardcoder_3b.py
View file @
aa2dd2b5
...
...
@@ -5,7 +5,7 @@ models = [
dict
(
type
=
HuggingFaceCausalLM
,
abbr
=
'WizardCoder-1B-V1.0'
,
path
=
"
WizardLM/WizardCoder-1B-V1.0
"
,
path
=
'
WizardLM/WizardCoder-1B-V1.0
'
,
tokenizer_path
=
'WizardLM/WizardCoder-1B-V1.0'
,
tokenizer_kwargs
=
dict
(
padding_side
=
'left'
,
...
...
configs/models/wizardcoder/hf_wizardcoder_python_13b.py
View file @
aa2dd2b5
...
...
@@ -5,7 +5,7 @@ models = [
dict
(
type
=
HuggingFaceCausalLM
,
abbr
=
'WizardCoder-Python-13B-V1.0'
,
path
=
"
WizardLM/WizardCoder-Python-13B-V1.0
"
,
path
=
'
WizardLM/WizardCoder-Python-13B-V1.0
'
,
tokenizer_path
=
'WizardLM/WizardCoder-Python-13B-V1.0'
,
tokenizer_kwargs
=
dict
(
padding_side
=
'left'
,
...
...
configs/models/wizardcoder/hf_wizardcoder_python_34b.py
View file @
aa2dd2b5
...
...
@@ -5,7 +5,7 @@ models = [
dict
(
type
=
HuggingFaceCausalLM
,
abbr
=
'WizardCoder-Python-34B-V1.0'
,
path
=
"
WizardLM/WizardCoder-Python-34B-V1.0
"
,
path
=
'
WizardLM/WizardCoder-Python-34B-V1.0
'
,
tokenizer_path
=
'WizardLM/WizardCoder-Python-34B-V1.0'
,
tokenizer_kwargs
=
dict
(
padding_side
=
'left'
,
...
...
configs/models/wizardlm/hf_wizardlm_13b_v1_2.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
"
BOT
"
,
begin
=
"
ASSISTANT:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
'
BOT
'
,
begin
=
'
ASSISTANT:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/hf_wizardlm_70b_v1_0.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
"
BOT
"
,
begin
=
"
ASSISTANT:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
'
BOT
'
,
begin
=
'
ASSISTANT:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/hf_wizardlm_7b_v1_0.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
end
=
'
\n\n
'
),
dict
(
role
=
"
BOT
"
,
begin
=
"
### Response:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
end
=
'
\n\n
'
),
dict
(
role
=
'
BOT
'
,
begin
=
'
### Response:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/hf_wizardmath_7b_v1_0.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
end
=
'
\n\n
'
),
dict
(
role
=
"
BOT
"
,
begin
=
"
### Response:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
end
=
'
\n\n
'
),
dict
(
role
=
'
BOT
'
,
begin
=
'
### Response:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/hf_wizardmath_7b_v1_1.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
end
=
'
\n\n
'
),
dict
(
role
=
"
BOT
"
,
begin
=
"
### Response:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
end
=
'
\n\n
'
),
dict
(
role
=
'
BOT
'
,
begin
=
'
### Response:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/vllm_wizardlm_13b_v1_2.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import VLLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
"
BOT
"
,
begin
=
"
ASSISTANT:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
'
BOT
'
,
begin
=
'
ASSISTANT:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/vllm_wizardlm_70b_v1_0.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import VLLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
"
BOT
"
,
begin
=
"
ASSISTANT:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
begin
=
'USER: '
,
end
=
' '
),
dict
(
role
=
'
BOT
'
,
begin
=
'
ASSISTANT:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/wizardlm/vllm_wizardlm_7b_v1_0.py
View file @
aa2dd2b5
...
...
@@ -3,8 +3,8 @@ from opencompass.models import VLLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
end
=
'
\n\n
'
),
dict
(
role
=
"
BOT
"
,
begin
=
"
### Response:
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
end
=
'
\n\n
'
),
dict
(
role
=
'
BOT
'
,
begin
=
'
### Response:
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/models/zephyr/vllm_zephyr_7b_beta.py
View file @
aa2dd2b5
...
...
@@ -2,8 +2,8 @@ from opencompass.models import VLLM
_meta_template
=
dict
(
round
=
[
dict
(
role
=
"
HUMAN
"
,
begin
=
'<|user|>
\n
'
,
end
=
'</s>'
),
dict
(
role
=
"
BOT
"
,
begin
=
"
<|assistant|>
\n
"
,
end
=
'</s>'
,
generate
=
True
),
dict
(
role
=
'
HUMAN
'
,
begin
=
'<|user|>
\n
'
,
end
=
'</s>'
),
dict
(
role
=
'
BOT
'
,
begin
=
'
<|assistant|>
\n
'
,
end
=
'</s>'
,
generate
=
True
),
],
)
...
...
configs/subjective/eval_subjective_alpacaeval.py
View file @
aa2dd2b5
...
...
@@ -27,4 +27,3 @@ eval = dict(
)
)
work_dir
=
'outputs/alpaca/'
configs/subjective/eval_subjective_mtbench.py
View file @
aa2dd2b5
configs/subjective/model_cfg.py
View file @
aa2dd2b5
...
...
@@ -82,4 +82,3 @@ gpt4 = dict(
temperature
=
1
,
)
given_pred
=
[{
'abbr'
:
'gpt4-turbo'
,
'path'
:
'your path'
}]
configs/summarizers/agent_bench.py
View file @
aa2dd2b5
...
...
@@ -28,5 +28,5 @@ summarizer = dict(
'plugin_eval-mus-p10_one_review'
,
],
summary_groups
=
sum
(
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"
_summary_groups
"
)],
[])
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'
_summary_groups
'
)],
[])
)
configs/summarizers/chat_OC15.py
View file @
aa2dd2b5
...
...
@@ -77,5 +77,5 @@ summarizer = dict(
'ceval-hard'
,
],
summary_groups
=
sum
(
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"
_summary_groups
"
)],
[]),
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'
_summary_groups
'
)],
[]),
)
configs/summarizers/chat_OC15_multi_faceted.py
View file @
aa2dd2b5
...
...
@@ -126,5 +126,5 @@ summarizer = dict(
{
'name'
:
'sanitized_mbpp'
,
'dataset_abbrs'
:
sanitized_mbpp_dataset_abbrs
},
{
'name'
:
'overall'
,
'dataset_abbrs'
:
overall_dataset_abbrs
},
],
summary_groups
=
sum
([
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"
_summary_groups
"
)],
[]),
summary_groups
=
sum
([
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'
_summary_groups
'
)],
[]),
)
configs/summarizers/cibench.py
View file @
aa2dd2b5
...
...
@@ -58,5 +58,5 @@ summarizer = dict(
],
summary_groups
=
sum
(
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"
_summary_groups
"
)],
[])
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'
_summary_groups
'
)],
[])
)
configs/summarizers/code_passk.py
View file @
aa2dd2b5
...
...
@@ -39,5 +39,5 @@ summarizer = dict(
'humanevalx'
,
],
summary_groups
=
sum
(
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"
_summary_groups
"
)],
[])
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
'
_summary_groups
'
)],
[])
)
Prev
1
…
27
28
29
30
31
32
33
Next
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