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
70dc14fb
Unverified
Commit
70dc14fb
authored
Nov 27, 2024
by
zixuanzhang226
Committed by
GitHub
Nov 27, 2024
Browse files
[Model] support bitsandbytes quantization with minicpm3 model (#10682)
Signed-off-by:
Ubuntu
<
zixuanzhang@bytedance.com
>
parent
cb4e1c3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/model_executor/models/minicpm3.py
vllm/model_executor/models/minicpm3.py
+6
-0
No files found.
vllm/model_executor/models/minicpm3.py
View file @
70dc14fb
...
@@ -241,6 +241,12 @@ class MiniCPM3ForCausalLM(MiniCPMForCausalLM):
...
@@ -241,6 +241,12 @@ class MiniCPM3ForCausalLM(MiniCPMForCausalLM):
# `embedding_modules` and `embedding_padding_modules`
# `embedding_modules` and `embedding_padding_modules`
# are inherited from MiniCPMForCausalLM
# are inherited from MiniCPMForCausalLM
bitsandbytes_stacked_params_mapping
=
{
# shard_name, weight_name, index
"gate_proj"
:
(
"gate_up_proj"
,
0
),
"up_proj"
:
(
"gate_up_proj"
,
1
),
}
def
_init_model
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
def
_init_model
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
self
.
model
=
MiniCPM3Model
(
vllm_config
=
vllm_config
,
self
.
model
=
MiniCPM3Model
(
vllm_config
=
vllm_config
,
prefix
=
maybe_prefix
(
prefix
,
"model"
))
prefix
=
maybe_prefix
(
prefix
,
"model"
))
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