/ Модель

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

Контекст
2 048 токенов
Параметры
1,5 млрд
Лицензия
MIT
Архитектура
hgrn · dense
Базовая модель
hgrn-1.3B-dense-baseline
Библиотека
fla
Опубликована
11 мая 2026

hgrn-1.3B-80pct-iterative

Генерация текстаТекст → текст3 профессии

Экспериментальная разреженная HGRN-модель на 1,5 млрд параметров для исследований pruning и дистилляции в генерации текста.

11скачиваний за 30 дней0лайковвеса обновлены13 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

HGRN-1.3B CWS 80% iterative — модель генерации текста на архитектуре HGRN, созданная ikimyaii на основе ikimyaii/hgrn-1.3B-dense-baseline. Базовые веса постепенно разрежены до целевой доли 80% с помощью block CWS, а после каждого этапа проведена дистилляция с фиксированной маской; в метаданных модель классифицирована как дообучение базовой модели. Число параметров — 1,5 млрд, контекст — 2048 токенов; модель использует библиотеку flash-linear-attention и хранится в формате safetensors.

Модель предназначена для исследований методов разрежения и восстановления языковых моделей, а также экспериментов с генерацией текста. В README приведены результаты оценки на WikiText-2 и ARC; указанная perplexity на WikiText-2 составляет 250, а точность на задачах ARC близка к случайному уровню. Модель не настроена на выполнение инструкций и не проходила настройку безопасности; при разреженности 70–80% она не генерирует пригодный текст. Несмотря на нулевые веса в разреженных позициях, ускорения без специального разреженного ядра или подходящего оборудования нет. Лицензия — MIT.

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

  • исследование итеративного разрежения языковых моделей
  • сравнение методов CWS и дистилляции
  • оценка качества генерации текста на WikiText-2
  • изучение влияния разреженности на точность языковой модели

Ограничения

При разреженности 70–80% модель не генерирует пригодный текст, а точность на задачах ARC близка к случайному уровню. Модель не настроена на инструкции или безопасность; разреженные веса сами по себе не ускоряют вычисления без специального ядра или оборудования.

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

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

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

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

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

Открыть на Hugging Face

HGRN-1.3B · CWS 80% sparse · iterative prune + distill

HGRN-1.3B pruned to 80% gradually: 30% → 50% → 65% → 80%. Each stage re-prunes the surviving weights with block CWS on the current, already-adapted weights, then runs mask-fixed distillation against the frozen dense model before the next stage. The mask can adapt to the weights, unlike pruning once from the dense model (scripts/iterative_prune_distill.py).

Training details

Startikimyaii/hgrn-1.3B-dense-baseline
Pruningblock CWS (B = 128) at each stage
Distillationdense teacher, 0.1 × CE + 0.9 × KL × T², T = 2.0, C4 streaming, LR 2e-5
Schedule20k + 20k + 20k + 50k steps
Final sparsity79.69%

Evaluation

StageTargetAchievedPPL after prunePPL after distillDistill steps
130.00%29.69%14.915.120,000
250.00%50.00%19.518.920,000
365.00%64.84%37.134.120,000
480.00%79.69%672.2258.350,000

Stage PPLs are from iterative_log.json (training script's own evaluation).

MetricThis modelDense
WikiText-2 PPL ↓25011.8
ARC-Easy (acc_norm)0.2850.510
ARC-Challenge (acc_norm)0.2530.275
HellaSwag (acc_norm)0.2610.480
PIQA (acc_norm)0.5210.712
WinoGrande (acc)0.5100.528
Average (5 tasks)0.3660.501

PPL uses 2048-token WikiText-2 windows (Sparse-LLMs-on-Loihi README, CWS ablation table). Zero-shot tasks use lm-evaluation-harness. ARC-e, ARC-c, HellaSwag and PIQA report acc_norm; WinoGrande and LAMBADA report acc. The dense baseline is ikimyaii/hgrn-1.3B-dense-baseline, a copy of fla-hub/hgrn-1.3B-100B. Raw results: results/benchmark_hgrn_iterative_80pct.json.

PPL 250 is the lowest of any uniform-sparsity 80% HGRN model in the project. One-shot CWS followed by distillation reaches 647–693, and LoRA recovery 604–737. Only non-uniform layer-wise sparsity + distillation is lower (218). Task accuracy is still near chance.

About CWS

CWS (Correlation-aware Weight Sparsity) is a post-training, one-shot pruning method that extends SparseGPT's Optimal Brain Surgeon (OBS) weight correction with a full-Hessian selection criterion.

Per-weight saliency scores (magnitude, Wanda, RIA, SparseGPT's diagonal score) look at each weight in isolation. They miss cancellation groups: correlated input channels whose opposite-sign weights partly cancel in the layer output, so removing them together costs less than their individual scores predict. For each output row, CWS greedily picks the weight with the smallest marginal cost δ(j | S) = r_j² / d_j, where r_j and d_j come from the evolving inverse-Hessian factor (one rank-1 Schur-complement downdate per pick). It then applies exact OBS corrections to the surviving weights. With H = (2/N) XᵀX, the first pick is exactly SparseGPT's choice; later picks account for the cross-weight interactions that a diagonal score ignores.

Two selection scopes appear in this collection:

  • Block CWS (default): greedy selection is confined to 128-column blocks, and corrections are applied block by block. This is stable on wide layers.

  • Global CWS (ablation): the whole row is one block (block size → ∞). It captures cross-block cancellation, but it is more prone to numerical drift on large layers.

  • Method and reference implementation: CWS

  • Experiments, baselines and raw results for these checkpoints: Sparse-LLMs-on-Loihi

  • Follow-up work that swaps CWS's layer-wise reconstruction objective for the real next-token loss: Weight-Sparsity-Using-Real-Loss

Usage

The model uses the HGRN architecture from flash-linear-attention (FLA).

pip install flash-linear-attention transformers torch
import torch
import fla  # registers HGRN with transformers
from fla.models.hgrn import HGRNConfig, HGRNForCausalLM
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer

AutoConfig.register("hgrn", HGRNConfig, exist_ok=True)
AutoModelForCausalLM.register(HGRNConfig, HGRNForCausalLM, exist_ok=True)

model_id = "ikimyaii/hgrn-1.3B-80pct-iterative"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16).cuda()

# Pruned weights are stored as explicit zeros in a dense tensor.
lin = model.model.layers[0].mlp.down_proj
print(f"sparsity: {(lin.weight == 0).float().mean():.3f}")

The checkpoint is stored densely, with zeros in the pruned positions, so it runs as-is on GPUs and CPUs. Speedups require a sparse kernel or hardware that skips zero weights. On Intel Loihi and other event-driven neuromorphic hardware, a zero weight generates no synaptic event, so the sparsity directly reduces active computation.

Limitations

  • These are research checkpoints for studying pruning. They are not instruction-tuned or safety-tuned, and they inherit the base model's biases.
  • Weights are stored densely, with zeros at the pruned positions. Sparsity alone gives no speedup without a sparse kernel or event-driven hardware.
  • At 70–80% sparsity this model does not produce usable text. Zero-shot accuracy is near chance.

Citation

The CWS paper is under anonymous review; please cite the code repository for now.

@misc{cws2026,
  title  = {Semi-Structured Correlation-aware Weight Sparsity (CWS) for Efficient LLM Inference},
  year   = {2026},
  note   = {Under review. Code: https://github.com/KimiaGholami/CWS}
}

@inproceedings{frantar2023sparsegpt,
  title     = {SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot},
  author    = {Frantar, Elias and Alistarh, Dan},
  booktitle = {International Conference on Machine Learning},
  year      = {2023}
}

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

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

GPU в ailist

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

Нельзя запустить

Архитектура hgrn неизвестна transformers в образе рантайма.

Класс архитектуры
HGRNForCausalLM
Ревизия весов
1a2e54f

0 моделей