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
Hide 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
...
...
@@ -13,7 +13,7 @@ gpt4_judge = dict(
abbr
=
'GPT4-Turbo'
,
path
=
'gpt-4-1106-preview'
,
key
=
''
,
# The key will be obtained from $OPENAI_API_KEY, but you can write down your key here as well
config
=
'weighted_alpaca_eval_gpt4_turbo'
config
=
'weighted_alpaca_eval_gpt4_turbo'
)
## ------------- Evaluation Configuration
eval
=
dict
(
...
...
@@ -27,4 +27,3 @@ eval = dict(
)
)
work_dir
=
'outputs/alpaca/'
configs/subjective/eval_subjective_mtbench.py
View file @
aa2dd2b5
...
...
@@ -14,7 +14,7 @@ for model in models:
if
'generation_kwargs'
in
model
:
if
'do_sample'
in
model
[
'generation_kwargs'
]:
del
model
[
'generation_kwargs'
][
'do_sample'
]
eval
=
dict
(
partitioner
=
dict
(
type
=
SubjectiveSizePartitioner
,
strategy
=
'split'
,
max_task_size
=
10000
,
mode
=
'singlescore'
,
models
=
models
),
runner
=
runner
...
...
configs/subjective/model_cfg.py
View file @
aa2dd2b5
...
...
@@ -80,6 +80,5 @@ gpt4 = dict(
batch_size
=
4
,
retry
=
20
,
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
...
...
@@ -41,14 +41,14 @@ summarizer = dict(
'cibench_template_cn_oracle:numeric_correct'
,
'cibench_template_cn_oracle:text_score'
,
'cibench_template_cn_oracle:vis_sim'
,
'######## CIBench Category Metric ########'
,
'######## CIBench Category Metric ########'
,
'cibench_data_manipulation:scores'
,
'cibench_data_visualization:scores'
,
'cibench_modeling:scores'
,
'cibench_nlp:scores'
,
'cibench_ip:scores'
,
'cibench_math:scores'
,
'######## CIBench Category Metric Oracle ########'
,
'######## CIBench Category Metric Oracle ########'
,
'cibench_data_manipulation_oracle:scores'
,
'cibench_data_visualization_oracle:scores'
,
'cibench_modeling_oracle:scores'
,
...
...
@@ -58,5 +58,5 @@ summarizer = dict(
],
summary_groups
=
sum
(
[
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"_summary_groups"
)],
[])
)
\ No newline at end of file
[
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