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

14 lines
362 B
Python

"""
This file specifies how MLC's OLMo2 parameter maps from other formats, for example HuggingFace
PyTorch, HuggingFace safetensors.
"""
from mlc_llm.loader.standard_loader import make_standard_hf_loader
from .olmo2_model import OLMo2ForCausalLM
huggingface = make_standard_hf_loader(
model_cls=OLMo2ForCausalLM,
add_unused=["rotary_emb.inv_freq"],
)