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
bc0d291b
Unverified
Commit
bc0d291b
authored
Jan 24, 2026
by
david guan
Committed by
GitHub
Jan 24, 2026
Browse files
feat: Complete LoRA support for MiniMaxM2 Fixes #32736 (#32763)
Co-authored-by:
Claude Sonnet 4.5
<
noreply@anthropic.com
>
parent
9ad7f89f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
docs/models/supported_models.md
docs/models/supported_models.md
+1
-1
vllm/model_executor/models/minimax_m2.py
vllm/model_executor/models/minimax_m2.py
+10
-2
No files found.
docs/models/supported_models.md
View file @
bc0d291b
...
@@ -422,7 +422,7 @@ th {
...
@@ -422,7 +422,7 @@ th {
|
`MiMoV2FlashForCausalLM`
| MiMoV2Flash |
`XiaomiMiMo/MiMo-V2-Flash`
, etc. | ︎| ✅︎ |
|
`MiMoV2FlashForCausalLM`
| MiMoV2Flash |
`XiaomiMiMo/MiMo-V2-Flash`
, etc. | ︎| ✅︎ |
|
`MiniCPMForCausalLM`
| MiniCPM |
`openbmb/MiniCPM-2B-sft-bf16`
,
`openbmb/MiniCPM-2B-dpo-bf16`
,
`openbmb/MiniCPM-S-1B-sft`
, etc. | ✅︎ | ✅︎ |
|
`MiniCPMForCausalLM`
| MiniCPM |
`openbmb/MiniCPM-2B-sft-bf16`
,
`openbmb/MiniCPM-2B-dpo-bf16`
,
`openbmb/MiniCPM-S-1B-sft`
, etc. | ✅︎ | ✅︎ |
|
`MiniCPM3ForCausalLM`
| MiniCPM3 |
`openbmb/MiniCPM3-4B`
, etc. | ✅︎ | ✅︎ |
|
`MiniCPM3ForCausalLM`
| MiniCPM3 |
`openbmb/MiniCPM3-4B`
, etc. | ✅︎ | ✅︎ |
|
`MiniMaxM2ForCausalLM`
| MiniMax-M2, MiniMax-M2.1 |
`MiniMaxAI/MiniMax-M2`
, etc. | | ✅︎ |
|
`MiniMaxM2ForCausalLM`
| MiniMax-M2, MiniMax-M2.1 |
`MiniMaxAI/MiniMax-M2`
, etc. |
✅︎
| ✅︎ |
|
`MistralForCausalLM`
| Ministral-3, Mistral, Mistral-Instruct |
`mistralai/Ministral-3-3B-Instruct-2512`
,
`mistralai/Mistral-7B-v0.1`
,
`mistralai/Mistral-7B-Instruct-v0.1`
, etc. | ✅︎ | ✅︎ |
|
`MistralForCausalLM`
| Ministral-3, Mistral, Mistral-Instruct |
`mistralai/Ministral-3-3B-Instruct-2512`
,
`mistralai/Mistral-7B-v0.1`
,
`mistralai/Mistral-7B-Instruct-v0.1`
, etc. | ✅︎ | ✅︎ |
|
`MistralLarge3ForCausalLM`
| Mistral-Large-3-675B-Base-2512, Mistral-Large-3-675B-Instruct-2512 |
`mistralai/Mistral-Large-3-675B-Base-2512`
,
`mistralai/Mistral-Large-3-675B-Instruct-2512`
, etc. | ✅︎ | ✅︎ |
|
`MistralLarge3ForCausalLM`
| Mistral-Large-3-675B-Base-2512, Mistral-Large-3-675B-Instruct-2512 |
`mistralai/Mistral-Large-3-675B-Base-2512`
,
`mistralai/Mistral-Large-3-675B-Instruct-2512`
, etc. | ✅︎ | ✅︎ |
|
`MixtralForCausalLM`
| Mixtral-8x7B, Mixtral-8x7B-Instruct |
`mistralai/Mixtral-8x7B-v0.1`
,
`mistralai/Mixtral-8x7B-Instruct-v0.1`
,
`mistral-community/Mixtral-8x22B-v0.1`
, etc. | ✅︎ | ✅︎ |
|
`MixtralForCausalLM`
| Mixtral-8x7B, Mixtral-8x7B-Instruct |
`mistralai/Mixtral-8x7B-v0.1`
,
`mistralai/Mixtral-8x7B-Instruct-v0.1`
,
`mistral-community/Mixtral-8x22B-v0.1`
, etc. | ✅︎ | ✅︎ |
...
...
vllm/model_executor/models/minimax_m2.py
View file @
bc0d291b
...
@@ -59,7 +59,7 @@ from vllm.model_executor.model_loader.weight_utils import (
...
@@ -59,7 +59,7 @@ from vllm.model_executor.model_loader.weight_utils import (
)
)
from
vllm.sequence
import
IntermediateTensors
from
vllm.sequence
import
IntermediateTensors
from
.interfaces
import
SupportsPP
from
.interfaces
import
SupportsLoRA
,
SupportsPP
from
.utils
import
(
from
.utils
import
(
AutoWeightsLoader
,
AutoWeightsLoader
,
PPMissingLayer
,
PPMissingLayer
,
...
@@ -484,7 +484,15 @@ class MiniMaxM2Model(nn.Module):
...
@@ -484,7 +484,15 @@ class MiniMaxM2Model(nn.Module):
return
loaded_params
return
loaded_params
class
MiniMaxM2ForCausalLM
(
nn
.
Module
,
SupportsPP
):
class
MiniMaxM2ForCausalLM
(
nn
.
Module
,
SupportsLoRA
,
SupportsPP
):
packed_modules_mapping
=
{
"qkv_proj"
:
[
"q_proj"
,
"k_proj"
,
"v_proj"
,
],
}
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
super
().
__init__
()
super
().
__init__
()
config
=
vllm_config
.
model_config
.
hf_config
config
=
vllm_config
.
model_config
.
hf_config
...
...
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