/ Модель

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

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Своя лицензия
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-0.5B
Библиотека
transformers
Опубликована
5 сен 2026

HyperPrune-Qwen2.5-0.5B-2to4

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

Экспериментальная разреженная версия Qwen2.5-0.5B для сравнительных исследований метода HyperPrune, не предназначенная для развёртывания из-за сильной потери качества.

113скачиваний за 30 дней0лайковвеса обновлены5 сен 2026

Бенчмарки

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

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

elastix-ai опубликовала экспериментальный чекпойнт Qwen2.5-0.5B, разреженный методом HyperPrune до полуструктурированной схемы 2:4. Это причинная языковая модель семейства Qwen2 с архитектурой Qwen2ForCausalLM, примерно 494 млн параметров и контекстом до 32 768 токенов. Она принимает текст и генерирует текст; карточка указывает поддержку диалогового режима.

Модель предназначена для сравнительных экспериментов по разрежению LLM и воспроизведения оценки HyperPrune на размере 0,5 млрд параметров. В отличие от базовой Qwen2.5-0.5B, все 24 слоя декодера разрежены, а калибровочный корпус отличается от исходной конфигурации метода. Модель загружается через Transformers, однако измерения показывают сильное ухудшение качества: WikiText-2 word perplexity выросла с 19,65 у плотной версии до 149,94, а генерация может быть повторяющейся и фактически ненадёжной.

Это исследовательский сравнительный чекпойнт, который авторы README прямо не рекомендуют к развёртыванию. Указана лицензия «other»; конкретные условия использования следует проверять в файлах репозитория.

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

  • сравнение методов полуструктурированного разрежения LLM
  • воспроизведение оценки HyperPrune на модели около 0,5 млрд параметров
  • измерение perplexity разреженной языковой модели
  • изучение влияния маски 2:4 на качество генерации

Ограничения

Качество заметно хуже плотной базовой модели: WikiText-2 word perplexity составляет 149,94 против 19,65, а генерация может быть повторяющейся и фактически ненадёжной. Авторы прямо указывают, что чекпойнт не предназначен для развёртывания.

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

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

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

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

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

Открыть на Hugging Face

HyperPrune-Qwen2.5-0.5B-2to4

Qwen/Qwen2.5-0.5B pruned to 2:4 semi-structured sparsity with HyperPrune (Sun & Sakuma, Learning Semi-Structured Sparsity for LLMs via Shared and Context-Aware Hypernetwork, ICLR 2026, OpenReview).

This is a reproduction run produced at Elastix as part of the BLADE sparsity-method comparison. It is plain sparse bf16/fp16 safetensors and loads with stock transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer
m = AutoModelForCausalLM.from_pretrained("elastix-ai/HyperPrune-Qwen2.5-0.5B-2to4")
t = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-0.5B")

What differs from the paper's own recipe

paper / repo defaultthis checkpoint
calibration corpusallenai/c4DKYoon/SlimPajama-6B, validation (BLADE's corpus)
pruned modulessee belowsee below

Everything else — hypernet architecture, both training stages, all learning rates, step counts, temperature, prior, row selection — is HyperPrune's own shipped setting.

Configuration

{
  "model": {
    "name_or_path": "Qwen/Qwen2.5-0.5B"
  },
  "data": {
    "dataset_name": "slimpajama",
    "num_samples": 128,
    "seq_len": 2048,
    "seed": 42
  },
  "hypernet": {
    "type": "mlp",
    "hidden_dim": 256,
    "emb_dim": 64,
    "use_layer_emb": false,
    "use_comp_emb": false,
    "use_hessian_diag": true
  },
  "training": {
    "sup_steps": 12000,
    "sup_lr": 0.001,
    "ft_lr": 0.0003,
    "ft_nsamples": 4,
    "rows_per_step": 400,
    "cascade_inner_steps": 300,
    "ft_mode": "cascade",
    "tau": 0.5,
    "prior_source": "sparsegpt",
    "wanda_residual_alpha": 2.0,
    "compensated_propagation": true,
    "use_weight_compensation": true,
    "train_on_compensated": true,
    "fixed_rows_count": 200,
    "fixed_rows_pos": "first",
    "dense_layers_list": []
  },
  "output": {
    "save_dir": "/home/ubuntu/hyperprune_work/outputs/hp-qwen25_05b-2to4",
    "wanda_dir": "/home/ubuntu/hyperprune_work/outputs/hp-qwen25_05b-2to4_ref",
    "preserve_wanda_dir": false
  }
}

Measured

metricvalue
overall decoder sparsity (check_sparsity)0.5100 (all 24 decoder layers pruned)
WikiText-2 PPL (HyperPrune eval_ppl.py, seqlen 2048)82.820
WikiText-2 word PPL (lm-eval-harness, BLADE's protocol)149.94
training wall-clock5.1 min
peak GPU during cascade FT2.61 GB
GPU1 x NVIDIA RTX PRO 6000 Blackwell (97 GB), CUDA 13.0, torch 2.13.0+cu130

Two things to know before comparing this number to the paper

1. Every decoder layer is pruned here. HyperPrune's own shipped configs set dense_layers_list: [0, 1], leaving 2 layers fully dense and yielding ~46.9 % sparsity rather than 50 %. This checkpoint prunes every layer, matching BLADE's two_four_all spec, so it is a true 2:4 model in the modules BLADE prunes.

2. Only a few percent of this mask was chosen by the hypernet. The shipped recipe sets fixed_rows_count: 200, so the hypernet decides the mask for the first 200 output rows of each projection and every remaining row keeps the SparseGPT prior's mask verbatim. This is HyperPrune's own default, kept here deliberately because the brief was to change nothing but the calibration corpus.

The two perplexity rows are different quantities and are not comparable to each other. The first is token-level PPL over concatenated WikiText-2 at seqlen 2048 (the Wanda/SparseGPT convention). The second is lm-evaluation-harness word_perplexity at max_length=2048, which is BLADE's protocol — pinned empirically by reproducing BLADE's dense LLaMA-2-7B value of 9.19 (measured 9.1915).

This checkpoint is heavily degraded — read before using it

At 0.5 B parameters there is very little redundancy to surrender to a 2:4 mask, and it shows: WikiText-2 word perplexity goes from 19.65 dense to 149.94, a 7.6x degradation. Greedy generation is repetitive and factually unreliable ("The capital of France is the most important of the 10000000000000000000000000").

The checkpoint is structurally correct — exactly 2:4 in every pruned linear, loads with stock transformers — and is published so the BLADE comparison has a HyperPrune row at this model size. It is not a checkpoint to deploy.

For context from the same reproduction, larger models degrade far less at the same sparsity: LLaMA-2-7B 9.19 -> 21.65 (2.4x) and LLaMA-3.1-8B 8.07 -> 22.27 (2.8x).

Provenance

Produced from HyperPrune commit 6d093d7 with a small set of documented patches (bias-dtype autocast, calibration loader, disk-peak reduction, and — for 4:8 checkpoints — the N:M generalization, which the reference implementation does not ship). See the reproduction report for the full diff.

Evaluation Results

KL Divergence

DatasetAvg KLTotal KLTokens
wikitext21.804226539088.3203298,792
c41.8112523404799.64261,879,804
slimpajama_calib1.66697213976748.96348,384,512

Downstream Accuracy

Taskacc, Nonestderr, None
arc_challenge0.17920.0112
arc_easy0.39690.0100
hellaswag0.28720.0045
mmlu0.22900.0035
openbookqa0.13000.0151
piqa0.58380.0115
race0.26790.0137
winogrande0.50430.0141

Perplexity (2048-token windows, max_length=2048)

DatasetWord PPLByte PPL
WikiText-2149.93882.5522
C4 (en)317.75692.6217

BLADE-Eval: lm-eval 0.4.10, torch 2.13.0+cu130, MLflow run

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
e8da902

0 моделей