CoolFace
Modelpublic

OpenMOSS-Team/Qwen2.5-7B-base-mla-topk8-rank128

sourceHugging Faceapache-2.0updated 10d agoView on Hugging Face
0likes42downloads
Model Card

Qwen2.5-7B-base-mla-topk8-rank128

This repository contains the attention-only incremental weights for an MLAfication conversion of Qwen/Qwen2.5-7B. It is not a standalone full-model checkpoint.

Variant

FieldValue
Base modelQwen/Qwen2.5-7B
Base revisiond149729398750b98c0af14eb82c78cfe92750796
MLA latent rank128
RoPE dimensions per KV head8
Training checkpointstep 4800
Training variantstage1+2-distill-QKV
Delta tensors336
Delta size1.38 GiB
SHA-2560142dc97c7c30ce48ae9235b29fb44cbbf7a9fef9fda7374d11732646be5968c

The training run froze every parameter outside attention and also froze each attention output projection. The uploaded delta therefore contains exactly the parameters matching "attn" in name and "o_proj" not in name; embeddings, MLP, normalization outside attention, output projections, and LM head are omitted. Frozen tensors from the historical full checkpoint were verified exactly against the pinned base weights after casting the base tensors to the checkpoint dtype.

Loading

Use the MLAfication implementation to instantiate the MLAfication architecture from the pinned base model, then load model.safetensors with strict=False:

python
from safetensors.torch import load_file

delta = load_file("model.safetensors")
load_result = mla_model.load_state_dict(delta, strict=False)

The architecture must be patched before loading the delta. Loading this repository directly with vanilla AutoModelForCausalLM.from_pretrained(...) is not supported. config.json contains the layer-wise RoPE indices and sanitized MLAfication metadata.

Files

  • —model.safetensors: attention-only delta weights
  • —config.json: base architecture, RoPE indices, and MLAfication metadata
  • —manifest.json: provenance, byte size, tensor count, and checksum

License

The weights follow the Apache 2.0 license of the Qwen2.5 base model.