Unverified Commit 70dc14fb authored by zixuanzhang226's avatar zixuanzhang226 Committed by GitHub
Browse files

[Model] support bitsandbytes quantization with minicpm3 model (#10682)


Signed-off-by: default avatarUbuntu <zixuanzhang@bytedance.com>
parent cb4e1c3f
......@@ -241,6 +241,12 @@ class MiniCPM3ForCausalLM(MiniCPMForCausalLM):
# `embedding_modules` and `embedding_padding_modules`
# 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 = ""):
self.model = MiniCPM3Model(vllm_config=vllm_config,
prefix=maybe_prefix(prefix, "model"))
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