Files
wehub-resource-sync 770d92cb1f
Lint / lint (push) Has been cancelled
Build Docs / Deploy Docs (push) Has been cancelled
Windows CI / Windows (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:23:58 +08:00

17 lines
425 B
Python

"""
This file specifies how MLC's QWen parameter maps from other formats, for example HuggingFace
PyTorch, HuggingFace safetensors.
"""
from mlc_llm.loader.standard_loader import make_standard_hf_loader
from .qwen_model import QWenLMHeadModel
huggingface = make_standard_hf_loader(
model_cls=QWenLMHeadModel,
layer_prefix="transformer.h",
qkv_names=(),
include_qkv=False,
gate_up_names=("w1", "w2"),
)