Files
xc-llm-ascend/vllm_ascend/models/__init__.py

19 lines
764 B
Python
Raw Normal View History

from vllm import ModelRegistry
def register_model():
ModelRegistry.register_model(
"Qwen3VLMoeForConditionalGeneration",
"vllm_ascend.models.qwen3_vl:AscendQwen3VLMoeForConditionalGeneration")
ModelRegistry.register_model(
"Qwen3VLForConditionalGeneration",
"vllm_ascend.models.qwen3_vl:AscendQwen3VLForConditionalGeneration")
# There is no PanguProMoEForCausalLM in vLLM, so we should register it before vLLM config initialization
# to make sure the model can be loaded correctly. This register step can be removed once vLLM support PanguProMoEForCausalLM.
ModelRegistry.register_model(
"PanguProMoEForCausalLM",
"vllm_ascend.torchair.models.torchair_pangu_moe:PanguProMoEForCausalLM"
)