-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Model] Support Qwen2.5 Instruct (#1543)
- Loading branch information
Showing
44 changed files
with
577 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-0.5b-instruct-hf', | ||
path='Qwen/Qwen2.5-0.5B-Instruct', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-14b-instruct-hf', | ||
path='Qwen/Qwen2.5-14B-Instruc', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-1.5b-instruct-hf', | ||
path='Qwen/Qwen2.5-1.5B-Instruct', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-32b-instruct-hf', | ||
path='Qwen/Qwen2.5-32B-Instruc', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-3b-instruct-hf', | ||
path='Qwen/Qwen2.5-3B-Instruct', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-72b-instruct-hf', | ||
path='Qwen/Qwen2.5-72B-Instruc', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=4), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-7b-instruct-hf', | ||
path='Qwen/Qwen2.5-7B-Instruc', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-0.5b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-0.5B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=1), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-14b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-14B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=2), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-1.5b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-1.5B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=1), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-32b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-32B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=2), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-3b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-3B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=1), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-72b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-72B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=4), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=4), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from opencompass.models import TurboMindModelwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=TurboMindModelwithChatTemplate, | ||
abbr='qwen2.5-7b-instruct-turbomind', | ||
path='Qwen/Qwen2.5-7B-Instruct', | ||
engine_config=dict(session_len=16384, max_batch_size=16, tp=1), | ||
gen_config=dict(top_k=1, temperature=1e-6, top_p=0.9, max_new_tokens=4096), | ||
max_seq_len=16384, | ||
max_out_len=4096, | ||
batch_size=16, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2.5-0.5b-instruct-vllm', | ||
path='Qwen/Qwen2.5-0.5B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=1, gpu_memory_utilization=0.5), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2.5-14b-instruct-vllm', | ||
path='Qwen/Qwen2.5-14B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=2), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2.5-1.5b-instruct-vllm', | ||
path='Qwen/Qwen2.5-1.5B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=1, gpu_memory_utilization=0.5), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2.5-32b-instruct-vllm', | ||
path='Qwen/Qwen2.5-32B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=2), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2.5-3b-instruct-vllm', | ||
path='Qwen/Qwen2.5-3B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=1, gpu_memory_utilization=0.5), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2_5-72b-instruct-vllm', | ||
path='Qwen/Qwen2.5-72B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=4), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=4), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from opencompass.models import VLLMwithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=VLLMwithChatTemplate, | ||
abbr='qwen2.5-7b-instruct-vllm', | ||
path='Qwen/Qwen2.5-7B-Instruct', | ||
model_kwargs=dict(tensor_parallel_size=1), | ||
max_out_len=4096, | ||
batch_size=16, | ||
generation_kwargs=dict(temperature=0), | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
12 changes: 12 additions & 0 deletions
12
opencompass/configs/models/qwen2_5/hf_qwen2_5_0_5b_instruct.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-0.5b-instruct-hf', | ||
path='Qwen/Qwen2.5-0.5B-Instruct', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
12 changes: 12 additions & 0 deletions
12
opencompass/configs/models/qwen2_5/hf_qwen2_5_14b_instruct.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-14b-instruct-hf', | ||
path='Qwen/Qwen2.5-14B-Instruc', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
12 changes: 12 additions & 0 deletions
12
opencompass/configs/models/qwen2_5/hf_qwen2_5_1_5b_instruct.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-1.5b-instruct-hf', | ||
path='Qwen/Qwen2.5-1.5B-Instruct', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
12 changes: 12 additions & 0 deletions
12
opencompass/configs/models/qwen2_5/hf_qwen2_5_32b_instruct.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-32b-instruct-hf', | ||
path='Qwen/Qwen2.5-32B-Instruc', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=2), | ||
) | ||
] |
12 changes: 12 additions & 0 deletions
12
opencompass/configs/models/qwen2_5/hf_qwen2_5_3b_instruct.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from opencompass.models import HuggingFacewithChatTemplate | ||
|
||
models = [ | ||
dict( | ||
type=HuggingFacewithChatTemplate, | ||
abbr='qwen2.5-3b-instruct-hf', | ||
path='Qwen/Qwen2.5-3B-Instruct', | ||
max_out_len=4096, | ||
batch_size=8, | ||
run_cfg=dict(num_gpus=1), | ||
) | ||
] |
Oops, something went wrong.