Unverified Commit aa2dd2b5 authored by Fengzhe Zhou's avatar Fengzhe Zhou Committed by GitHub
Browse files

[Format] Add config lints (#892)

parent 3dbba119
...@@ -5,7 +5,7 @@ models = [ ...@@ -5,7 +5,7 @@ models = [
dict( dict(
type=HuggingFaceCausalLM, type=HuggingFaceCausalLM,
abbr='WizardCoder-1B-V1.0', 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_path='WizardLM/WizardCoder-1B-V1.0',
tokenizer_kwargs=dict( tokenizer_kwargs=dict(
padding_side='left', padding_side='left',
......
...@@ -5,7 +5,7 @@ models = [ ...@@ -5,7 +5,7 @@ models = [
dict( dict(
type=HuggingFaceCausalLM, type=HuggingFaceCausalLM,
abbr='WizardCoder-Python-13B-V1.0', 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_path='WizardLM/WizardCoder-Python-13B-V1.0',
tokenizer_kwargs=dict( tokenizer_kwargs=dict(
padding_side='left', padding_side='left',
......
...@@ -5,7 +5,7 @@ models = [ ...@@ -5,7 +5,7 @@ models = [
dict( dict(
type=HuggingFaceCausalLM, type=HuggingFaceCausalLM,
abbr='WizardCoder-Python-34B-V1.0', 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_path='WizardLM/WizardCoder-Python-34B-V1.0',
tokenizer_kwargs=dict( tokenizer_kwargs=dict(
padding_side='left', padding_side='left',
......
...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM ...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", begin='USER: ', end=' '), dict(role='HUMAN', begin='USER: ', end=' '),
dict(role="BOT", begin="ASSISTANT: ", end='</s>', generate=True), dict(role='BOT', begin='ASSISTANT: ', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM ...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", begin='USER: ', end=' '), dict(role='HUMAN', begin='USER: ', end=' '),
dict(role="BOT", begin="ASSISTANT: ", end='</s>', generate=True), dict(role='BOT', begin='ASSISTANT: ', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM ...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", end='\n\n'), dict(role='HUMAN', end='\n\n'),
dict(role="BOT", begin="### Response:", end='</s>', generate=True), dict(role='BOT', begin='### Response:', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM ...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", end='\n\n'), dict(role='HUMAN', end='\n\n'),
dict(role="BOT", begin="### Response:", end='</s>', generate=True), dict(role='BOT', begin='### Response:', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM ...@@ -3,8 +3,8 @@ from opencompass.models import HuggingFaceCausalLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", end='\n\n'), dict(role='HUMAN', end='\n\n'),
dict(role="BOT", begin="### Response:", end='</s>', generate=True), dict(role='BOT', begin='### Response:', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import VLLM ...@@ -3,8 +3,8 @@ from opencompass.models import VLLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", begin='USER: ', end=' '), dict(role='HUMAN', begin='USER: ', end=' '),
dict(role="BOT", begin="ASSISTANT: ", end='</s>', generate=True), dict(role='BOT', begin='ASSISTANT: ', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import VLLM ...@@ -3,8 +3,8 @@ from opencompass.models import VLLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", begin='USER: ', end=' '), dict(role='HUMAN', begin='USER: ', end=' '),
dict(role="BOT", begin="ASSISTANT: ", end='</s>', generate=True), dict(role='BOT', begin='ASSISTANT: ', end='</s>', generate=True),
], ],
) )
......
...@@ -3,8 +3,8 @@ from opencompass.models import VLLM ...@@ -3,8 +3,8 @@ from opencompass.models import VLLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", end='\n\n'), dict(role='HUMAN', end='\n\n'),
dict(role="BOT", begin="### Response:", end='</s>', generate=True), dict(role='BOT', begin='### Response:', end='</s>', generate=True),
], ],
) )
......
...@@ -2,8 +2,8 @@ from opencompass.models import VLLM ...@@ -2,8 +2,8 @@ from opencompass.models import VLLM
_meta_template = dict( _meta_template = dict(
round=[ round=[
dict(role="HUMAN", begin='<|user|>\n', end='</s>'), dict(role='HUMAN', begin='<|user|>\n', end='</s>'),
dict(role="BOT", begin="<|assistant|>\n", end='</s>', generate=True), dict(role='BOT', begin='<|assistant|>\n', end='</s>', generate=True),
], ],
) )
......
...@@ -27,4 +27,3 @@ eval = dict( ...@@ -27,4 +27,3 @@ eval = dict(
) )
) )
work_dir = 'outputs/alpaca/' work_dir = 'outputs/alpaca/'
...@@ -82,4 +82,3 @@ gpt4 = dict( ...@@ -82,4 +82,3 @@ gpt4 = dict(
temperature=1, temperature=1,
) )
given_pred = [{'abbr':'gpt4-turbo', 'path':'your path'}] given_pred = [{'abbr':'gpt4-turbo', 'path':'your path'}]
...@@ -28,5 +28,5 @@ summarizer = dict( ...@@ -28,5 +28,5 @@ summarizer = dict(
'plugin_eval-mus-p10_one_review', 'plugin_eval-mus-p10_one_review',
], ],
summary_groups=sum( 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')], [])
) )
...@@ -77,5 +77,5 @@ summarizer = dict( ...@@ -77,5 +77,5 @@ summarizer = dict(
'ceval-hard', 'ceval-hard',
], ],
summary_groups=sum( 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')], []),
) )
...@@ -126,5 +126,5 @@ summarizer = dict( ...@@ -126,5 +126,5 @@ summarizer = dict(
{'name': 'sanitized_mbpp', 'dataset_abbrs': sanitized_mbpp_dataset_abbrs}, {'name': 'sanitized_mbpp', 'dataset_abbrs': sanitized_mbpp_dataset_abbrs},
{'name': 'overall', 'dataset_abbrs': overall_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')], []),
) )
...@@ -58,5 +58,5 @@ summarizer = dict( ...@@ -58,5 +58,5 @@ summarizer = dict(
], ],
summary_groups=sum( 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')], [])
) )
...@@ -39,5 +39,5 @@ summarizer = dict( ...@@ -39,5 +39,5 @@ summarizer = dict(
'humanevalx', 'humanevalx',
], ],
summary_groups=sum( 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')], [])
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment