add deepseekv3 and llama4

This commit is contained in:
Chranos
2026-02-11 15:13:14 +08:00
parent eaeb5169e0
commit 86fd3b5a92
3 changed files with 3 additions and 9 deletions

View File

@@ -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