forked from EngineX-Cambricon/enginex-mlu370-vllm
add deepseekv3 and llama4
This commit is contained in:
@@ -450,7 +450,10 @@ class Llama4ForCausalLM(nn.Module, SupportsPP):
|
||||
# which has text_config sub-config. Extract it for text model.
|
||||
text_config = getattr(config, "text_config", None)
|
||||
if text_config is not None:
|
||||
orig_archs = getattr(config, "architectures", None)
|
||||
vllm_config.model_config.hf_config = text_config
|
||||
if orig_archs and not getattr(text_config, "architectures", None):
|
||||
text_config.architectures = orig_archs
|
||||
config = text_config
|
||||
quant_config = vllm_config.quant_config
|
||||
lora_config = vllm_config.lora_config
|
||||
|
||||
Reference in New Issue
Block a user