2025-03-07 15:41:47 +08:00
|
|
|
from vllm import ModelRegistry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_model():
|
2025-09-25 18:50:12 +08:00
|
|
|
ModelRegistry.register_model(
|
|
|
|
|
"Qwen3VLMoeForConditionalGeneration",
|
2025-11-28 14:23:00 +08:00
|
|
|
"vllm_ascend.models.qwen3_vl:AscendQwen3VLMoeForConditionalGeneration")
|
2025-09-25 18:50:12 +08:00
|
|
|
|
|
|
|
|
ModelRegistry.register_model(
|
|
|
|
|
"Qwen3VLForConditionalGeneration",
|
2025-11-28 14:23:00 +08:00
|
|
|
"vllm_ascend.models.qwen3_vl:AscendQwen3VLForConditionalGeneration")
|
2025-04-07 10:56:12 +08:00
|
|
|
|
2025-09-08 21:30:37 +08:00
|
|
|
# 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.
|
2025-06-20 23:59:59 +08:00
|
|
|
ModelRegistry.register_model(
|
|
|
|
|
"PanguProMoEForCausalLM",
|
2025-09-08 21:30:37 +08:00
|
|
|
"vllm_ascend.torchair.models.torchair_pangu_moe:PanguProMoEForCausalLM"
|
|
|
|
|
)
|