/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
1,7 млрд
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
Qwen3-1.7B
Опубликована
11 сен 2026

HyLo-Qwen-7MLA21GDN-64K-SFT

Генерация текстаТекст → текст4 профессии
42скачиваний за 30 дней0лайковвеса обновлены11 сен 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Гибридная модель AMD на базе Qwen3-1.7B для генерации текста и диалогов с контекстом до 65 536 токенов и уменьшенным KV-кэшем.

HyLo-Qwen-7MLA21GDN-64K-SFT — исследовательская гибридная языковая модель AMD на основе Qwen/Qwen3-1.7B, дообученная с дистилляцией от Qwen3-8B. В ней 28 слоёв: 7 слоёв Multi-head Latent Attention (MLA) и 21 слой Gated DeltaNet; размер по README — 2,28 млрд параметров. Модель предназначена для генерации текста и диалогов с длинным контекстом, а гибридная архитектура сокращает KV-кэш до 3,9% от кэша исходной модели.

Модель обучалась и оценивалась с контекстом до 65 536 токенов; README указывает масштабирование YaRN с исходного окна 32 768 токенов. Метаданные обозначают английский язык, а обучение включало наборы данных для диалогов, математики, рассуждений и длинного контекста. Проверки охватывают отдельные задачи commonsense reasoning, RULER и GSM8K, поэтому результаты не подтверждают качество на других языках, в программировании, безопасности или длинных инструкциях. Это исследовательский артефакт без настройки безопасности и оценки для производственного применения. Лицензия — Apache-2.0.

Сценарии применения

  • генерация ответов в длинном диалоге
  • суммаризация длинных текстов
  • ответы на вопросы по длинным документам
  • решение математических задач
  • рассуждения по текстовым инструкциям

Ограничения

Модель не прошла настройку безопасности и не оценивалась для производственного применения; качество за пределами 65 536 токенов не заявлено. Проверка не охватывала многоязычие, программирование, безопасность и следование инструкциям на длинном контексте.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

HyLo-Qwen-7MLA21GDN-64K-SFT

HyLo converts a pretrained Transformer into a hybrid instead of pretraining one from scratch. Each layer is converted to one of two types: attention layers become Multi-head Latent Attention (MLA), which caches a low-rank latent rather than full keys and values, while the remaining layers become linear blocks (Gated DeltaNet or Mamba-2) that hold a fixed-size recurrent state and no KV cache. The converted model is then trained for long context, retaining short-context accuracy while running on a small fraction of the original KV cache.

This checkpoint upcycles Qwen/Qwen3-1.7B into 7 MLA layers and 21 Gated DeltaNet layers (28 layers total, 2.28B parameters), and was supervised-fine-tuned at 65,536 tokens (64K) of context with Qwen/Qwen3-8B as the distillation teacher.

Introduced in Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling (arXiv:2604.24715), where it appears as HyLo-Qwen-7MLA21GDN in Table 4 (Qwen3-1.7B backbone).

Model at a glance

Base modelQwen/Qwen3-1.7B
Distillation teacherQwen/Qwen3-8B
Layers28 (7 MLA + 21 Gated DeltaNet)
Parameters2.28B (paper reports 2.3B)
KV cache3.9% of the base model's
Trained context65,536 tokens
Checkpoint precisionfloat32 weights (load in bfloat16)
TrainingEnhanced-ILD, then long-context SFT with teacher distillation

Architecture

Layer types are placed by index, not in a repeating pattern: the MLA layers sit where the base model is most sensitive to losing full attention.

  • MLA layers (7): [1, 5, 9, 13, 17, 21, 25]
  • Gated DeltaNet layers (21): [0, 2, 3, 4, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19, 20, 22, 23, 24, 26, 27]

Gated DeltaNet is a gated delta-rule linear-attention block that keeps a fixed-size recurrent state instead of a growing KV cache, so those layers contribute no KV cache at all. The MLA layers keep attention but cache a low-rank latent instead of full keys and values, which is what brings the total cache to 3.9% of the base model's.

MLA dimensionValue
KV latent rank (kv_lora_rank)256
Query latent rank (q_lora_rank)1344
RoPE head dim (qk_rope_head_dim)64
NoPE head dim (qk_nope_head_dim)64
Value head dim (v_head_dim)128
Attention heads16
Gated DeltaNet dimensionValue
Heads (gdn_num_heads)6
Head dim (gdn_head_dim)256

The hybrid layout lives in hybrid_config.json; config.json is the base model's configuration and is kept for reference only.

Context length

Use this model up to 65,536 tokens. That is the length it was trained and evaluated at.

Positions are scaled with YaRN: factor: 2.0 over an original window of 32,768 tokens, giving 65,536 usable positions.

max_position_embeddings in the config is 40,960, inherited from the base model. It is not a supported context length for this checkpoint: quality past 65,536 tokens is not something the paper measures or claims. Serving stacks size their KV cache from this field, so set the maximum length explicitly (for example --max-model-len 65536).

Training

StageWhat happensContextLRData
1. Enhanced-ILDLayer-wise distillation aligns the newly initialised MLA and linear blocks with the base model's internal representations2,0482e-420% of the SFT mixture
2. Long-context SFT with teacher-guided distillationEnd-to-end distillation from the teacher at the target context length65,5366e-5full mixture
  • Loss: KL divergence between student and teacher next-token distributions (kl_weight 1.0, ce_weight 0.0)
  • Global batch size: 8 sequences; 1 epoch, cosine schedule with 0.01 warmup ratio
  • Precision: bfloat16 mixed precision
  • Hardware: 8x AMD Instinct MI300X, FSDP
  • Memory-efficient distillation: a fused KL kernel that avoids materialising the full logit tensor

Training data

DatasetLicense
JunxiongWang/sftdatasetv3apache-2.0
nvidia/OpenMathInstruct-2cc-by-4.0
open-thoughts/OpenThoughts-114kapache-2.0
open-r1/OpenR1-Math-220kapache-2.0
nvidia/ChatQA2-Long-SFT-datacc-by-nc-2.0

Training used AMD-processed variants of these datasets (subsetting, reformatting to the chat template, and decontamination against the evaluation suites).

Evaluation

All numbers are taken from Table 4 (Qwen3-1.7B backbone) of the paper, measured 0-shot with the EleutherAI lm-evaluation-harness.

Commonsense reasoning (accuracy, 0-shot)

TaskHyLo-Qwen-7MLA21GDN
ARC-Challenge44.2
ARC-Easy71.4
HellaSwag61.2
OpenBookQA37.4
PIQA73.7
RACE36.9
WinoGrande63.1
Average55.4

Long context: RULER (all 13 tasks) at 8K, 16K, 32K and 64K

ContextHyLo-Qwen-7MLA21GDN
8K59.8
16K53.8
32K42.5
64K30.5

Math

BenchmarkHyLo-Qwen-7MLA21GDN
GSM8K73.3

Usage

The hybrid layer types are not part of transformers, so AutoModelForCausalLM cannot build this model. Install AMD's hybrid-model code first:

git clone https://github.com/AMD-AGI/AMD-Hybrid-Models.git
cd AMD-Hybrid-Models/HyLo

Then follow the installation instructions in HyLo/README.md.

import torch
from transformers import AutoTokenizer
from hybrid.hybrid_wrapper import HybridModelWrapper

checkpoint = "amd/HyLo-Qwen-7MLA21GDN-64K-SFT"

model = HybridModelWrapper.from_pretrained(checkpoint, torch_dtype=torch.bfloat16).cuda()
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model.eval()

messages = [{"role": "user", "content": "Summarise the document above in five bullets."}]
input_ids = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt"
).cuda()

tokens = model.generate(
    input_ids,
    max_new_tokens=256,
    do_sample=True, temperature=0.6, top_p=0.95, top_k=20,
    eos_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))

Notes:

  • The checkpoint stores float32 weights, which is what training wrote out. Load it in bfloat16 as shown above: that is the precision the evaluation numbers were measured at, and float32 doubles the memory footprint.
  • Use the chat template shipped with this repository. It is the template the model was trained with, and it is not identical to the base model's.
  • Unlike Qwen3's own template, this one does not open a <think> block, yet every Qwen release here began its answer with a <think> ... </think> span when we checked: the behaviour comes from distilling Qwen/Qwen3-8B. Strip or handle those spans if your application does not expect them, and budget tokens for them.
  • Keep prompts within 65,536 tokens.

The HyLo family

ModelBackboneLinear blockTrained contextKV cache
HyLo-Llama-4MLA12GDN-8K-SFTLlama-3.2-1B-InstructGated DeltaNet8K3.9%
HyLo-Llama-4MLA12GDN-64K-SFTLlama-3.2-1B-InstructGated DeltaNet64K3.9%
HyLo-Llama-8MLA8GDN-8K-SFTLlama-3.2-1B-InstructGated DeltaNet8K7.8%
HyLo-Llama-8MLA8GDN-64K-SFTLlama-3.2-1B-InstructGated DeltaNet64K7.8%
HyLo-Llama-6MLA22GDN-8K-SFTLlama-3.2-3B-InstructGated DeltaNet8K2.0%
HyLo-Llama-6MLA22GDN-64K-SFTLlama-3.2-3B-InstructGated DeltaNet64K2.0%
HyLo-Llama-14MLA14GDN-8K-SFTLlama-3.2-3B-InstructGated DeltaNet8K4.7%
HyLo-Llama-14MLA14GDN-64K-SFTLlama-3.2-3B-InstructGated DeltaNet64K4.7%
HyLo-Qwen-7MLA21GDN-8K-SFTQwen3-1.7BGated DeltaNet8K3.9%
HyLo-Qwen-7MLA21GDN-64K-SFT (this model)Qwen3-1.7BGated DeltaNet64K3.9%
HyLo-Qwen-14MLA14GDN-8K-SFTQwen3-1.7BGated DeltaNet8K7.8%
HyLo-Qwen-14MLA14GDN-64K-SFTQwen3-1.7BGated DeltaNet64K7.8%
HyLo-Qwen-14MLA14M2-8K-SFTQwen3-1.7BMamba-28K7.8%
HyLo-Qwen-14MLA14M2-64K-SFTQwen3-1.7BMamba-264K7.8%

Intended use and limitations

This is a research artifact released to support the paper. It has not been safety aligned or evaluated for production use.

  • Capabilities and biases are inherited from the base model and the distillation teacher.
  • Outputs can be factually wrong, biased, or otherwise objectionable; add your own safeguards before exposing it to users.
  • Quality past 65,536 tokens is neither measured nor claimed.
  • The recipe depends on a strong teacher model being available, which is itself a cost.
  • Evaluation covers the benchmarks listed above only: no multilingual, coding, safety or instruction-following-at-length evaluation is reported.

License

Metadata declares apache-2.0, matching the existing AMD hybrid-model releases, and the bundled LICENSE file is AMD's research-only RAIL-MS licence. Where they disagree, the LICENSE file is the one that describes AMD's intent for this artifact, and part of the training data is non-commercial, so treat the model as research-only.

Citation

@article{fashi2026hylo,
  title={Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling},
  author={Parsa Ashrafi Fashi and Utkarsh Saxena and Mehdi Rezagholizadeh and Aref Jafari and Akash Haridas and Mingyu Yang and Vansh Bhatia and Guihong Li and Vikram Appia and Emad Barsoum},
  journal={arXiv preprint arXiv:2604.24715},
  year={2026},
  url={https://arxiv.org/abs/2604.24715}
}

@article{yang2025zebra,
  title={Zebra-Llama: Towards Extremely Efficient Hybrid Models},
  author={Yang, Mingyu and Rezagholizadeh, Mehdi and Li, Guihong and Appia, Vikram and Barsoum, Emad},
  journal={arXiv preprint arXiv:2505.17272},
  year={2025}
}

@article{li2025xecomla,
  title={X-EcoMLA: Upcycling Pre-Trained Attention into MLA for Efficient and Extreme KV Compression},
  author={Li, Guihong and Rezagholizadeh, Mehdi and Yang, Mingyu and Appia, Vikram and Barsoum, Emad},
  journal={arXiv preprint arXiv:2503.11132},
  year={2025}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
0f21957

0 моделей