Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
eafa8dcd
Unverified
Commit
eafa8dcd
authored
Sep 04, 2025
by
Jiangyun Zhu
Committed by
GitHub
Sep 04, 2025
Browse files
[Model] Add pp support for hunyuan (#24212)
Signed-off-by:
zjy0516
<
riverclouds.zhu@qq.com
>
parent
6c7af811
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
docs/models/supported_models.md
docs/models/supported_models.md
+2
-2
vllm/model_executor/models/hunyuan_v1.py
vllm/model_executor/models/hunyuan_v1.py
+2
-2
No files found.
docs/models/supported_models.md
View file @
eafa8dcd
...
@@ -365,8 +365,8 @@ th {
...
@@ -365,8 +365,8 @@ th {
|
`GraniteMoeSharedForCausalLM`
| Granite MoE Shared |
`ibm-research/moe-7b-1b-active-shared-experts`
(test model) | ✅︎ | ✅︎ | ✅︎ |
|
`GraniteMoeSharedForCausalLM`
| Granite MoE Shared |
`ibm-research/moe-7b-1b-active-shared-experts`
(test model) | ✅︎ | ✅︎ | ✅︎ |
|
`GritLM`
| GritLM |
`parasail-ai/GritLM-7B-vllm`
. | ✅︎ | ✅︎ | ✅︎ |
|
`GritLM`
| GritLM |
`parasail-ai/GritLM-7B-vllm`
. | ✅︎ | ✅︎ | ✅︎ |
|
`Grok1ModelForCausalLM`
| Grok1 |
`hpcai-tech/grok-1`
. | ✅︎ | ✅︎ | ✅︎ |
|
`Grok1ModelForCausalLM`
| Grok1 |
`hpcai-tech/grok-1`
. | ✅︎ | ✅︎ | ✅︎ |
|
`HunYuanDenseV1ForCausalLM`
| Hunyuan-7B-Instruct-0124 |
`tencent/Hunyuan-7B-Instruct-0124`
| ✅︎ | | ✅︎ |
|
`HunYuanDenseV1ForCausalLM`
| Hunyuan-7B-Instruct-0124 |
`tencent/Hunyuan-7B-Instruct-0124`
| ✅︎ |
✅︎
| ✅︎ |
|
`HunYuanMoEV1ForCausalLM`
| Hunyuan-80B-A13B |
`tencent/Hunyuan-A13B-Instruct`
,
`tencent/Hunyuan-A13B-Pretrain`
,
`tencent/Hunyuan-A13B-Instruct-FP8`
, etc. | ✅︎ | | ✅︎ |
|
`HunYuanMoEV1ForCausalLM`
| Hunyuan-80B-A13B |
`tencent/Hunyuan-A13B-Instruct`
,
`tencent/Hunyuan-A13B-Pretrain`
,
`tencent/Hunyuan-A13B-Instruct-FP8`
, etc. | ✅︎ |
✅︎
| ✅︎ |
|
`HCXVisionForCausalLM`
| HyperCLOVAX-SEED-Vision-Instruct-3B |
`naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B`
| | | ✅︎ |
|
`HCXVisionForCausalLM`
| HyperCLOVAX-SEED-Vision-Instruct-3B |
`naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B`
| | | ✅︎ |
|
`InternLMForCausalLM`
| InternLM |
`internlm/internlm-7b`
,
`internlm/internlm-chat-7b`
, etc. | ✅︎ | ✅︎ | ✅︎ |
|
`InternLMForCausalLM`
| InternLM |
`internlm/internlm-7b`
,
`internlm/internlm-chat-7b`
, etc. | ✅︎ | ✅︎ | ✅︎ |
|
`InternLM2ForCausalLM`
| InternLM2 |
`internlm/internlm2-7b`
,
`internlm/internlm2-chat-7b`
, etc. | ✅︎ | ✅︎ | ✅︎ |
|
`InternLM2ForCausalLM`
| InternLM2 |
`internlm/internlm2-7b`
,
`internlm/internlm2-chat-7b`
, etc. | ✅︎ | ✅︎ | ✅︎ |
...
...
vllm/model_executor/models/hunyuan_v1.py
View file @
eafa8dcd
...
@@ -56,7 +56,7 @@ from vllm.model_executor.model_loader.weight_utils import (
...
@@ -56,7 +56,7 @@ from vllm.model_executor.model_loader.weight_utils import (
from
vllm.model_executor.sampling_metadata
import
SamplingMetadata
from
vllm.model_executor.sampling_metadata
import
SamplingMetadata
from
vllm.sequence
import
IntermediateTensors
from
vllm.sequence
import
IntermediateTensors
from
.interfaces
import
SupportsLoRA
from
.interfaces
import
SupportsLoRA
,
SupportsPP
from
.utils
import
(
AutoWeightsLoader
,
PPMissingLayer
,
is_pp_missing_parameter
,
from
.utils
import
(
AutoWeightsLoader
,
PPMissingLayer
,
is_pp_missing_parameter
,
make_layers
)
make_layers
)
...
@@ -841,7 +841,7 @@ class HunYuanModel(nn.Module):
...
@@ -841,7 +841,7 @@ class HunYuanModel(nn.Module):
return
loaded_params
return
loaded_params
class
HunYuanV1Base
(
nn
.
Module
,
SupportsLoRA
):
class
HunYuanV1Base
(
nn
.
Module
,
SupportsLoRA
,
SupportsPP
):
packed_modules_mapping
=
{
packed_modules_mapping
=
{
"qkv_proj"
:
[
"qkv_proj"
:
[
"q_proj"
,
"q_proj"
,
...
...
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