/ Модель

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

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

Qwen2.5-0.5B-Siliquant-A16-BlockH4-QuadLPT-4.5bpw

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

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

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

Компактная квантованная версия Qwen2.5-0.5B для генерации текста и оценки инференса с квантованными весами.

Это компактная квантованная версия языковой модели Qwen2.5-0.5B, подготовленная Moissanite Labs / Foundation-0 для генерации текста и экспериментов с квантованным выводом. Веса линейных слоёв упакованы методом SiliQuant A16 с кодом Extended Hamming [16, 11, 4], вращением Block-H4 и балансировкой QuadLPT; целевая точность — 4,5 бита на вес. Репозиторий содержит 494 млн параметров и контрольный файл размером около 507,5 МБ; эмбеддинги, lm_head и нормализации сохранены в BF16.

Модель использует архитектуру SiliquantForCausalLM и рассчитана на текстовый ввод и генерацию текста. Контекст — до 32 768 токенов; в карточке указан английский язык. На тестах WikiText-2 квантованная версия показала perplexity 18,31 против 17,95 у BF16-оригинала и совпадение наиболее вероятного следующего токена в 91,05% случаев.

Для загрузки через Transformers линейные слои деквантуются в PyTorch: этот путь не запускает непосредственно приложенные CUDA или AVX-512 GEMV-ядра. Модель основана на Qwen/Qwen2.5-0.5B и распространяется по Apache 2.0 с унаследованными лицензионными условиями базовой модели.

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

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

Ограничения

Загрузка через Transformers деквантует линейные слои в PyTorch и не использует напрямую включённые CUDA или AVX-512 GEMV-ядра. По тестам WikiText-2 качество немного ниже BF16-базовой модели: perplexity составляет 18,31 против 17,95, а совпадение top-1 — 91,05%.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen2.5-0.5B SiliQuant A16 + Block-H4 (QuadLPT, 4.5 bpw)

A compact bit-packed A_16 Extended Hamming [16, 11, 4] lattice quantization of Qwen/Qwen2.5-0.5B using Block-H4 Hadamard rotation and QuadLPT sub-block column balancing in siliquant-hf-v1 format (507.5 MB checkpoint).

This release introduces the following key architectural and empirical highlights:

  • -20.15% Lower WikiText-2 KL vs Global Sort – Achieves 0.025955 WikiText-2 KL (18.312281 vs 17.950473 BF16 PPL, 91.0470% top-1 match), beating global sort (0.032504) by -20.15%, unpermuted Block-H4 (0.029413) by -11.76%, and Block-H2 by -3.76%.
  • High Edge Code Retention – Holds 4.972443 CPython PPL vs 4.860631 BF16 (0.023575 KL, 92.7838% top-1 match).
  • Compact 484 MiB Checkpoint – 168 quantized layers (357,826,560 weights, 22,364,160 A_16 blocks, 0 syndrome errors, 3.0463x quantized compression).

Models Overview

Every quantized weight vector $y \in A_{16} = 2\mathbb{Z}^{16} + C_{[16,11,4]}$ is algebraically encoded via Extended Hamming [16, 11, 4] systematic bits (qham11, 0.6875 bpw reconstructing the 5 parity coordinates {0, 1, 2, 4, 8}), minimum-byte packed quotients (qquot, k_bits in {2, 3, 4}), sparse CSR overflow tuples (qov_rowptr, qov_col, qov_val), and exact IEEE-754 integer bit patterns for block scales (scales_fp16_bits, colscale_fp32_bits) immune to BF16 mantissa truncation. Embeddings, lm_head, RMSNorm weights, and biases remain in untouched bfloat16.

PropertySpecification
Base Model & ArchitectureQwen/Qwen2.5-0.5B (qwen2, tie_word_embeddings=True)
Format & Recipesiliquant-hf-v1 (hA16_BlockH4_quad_lpt_real, group size g=128, target 4.5 bpw)
Quantized Linear Layers168 layers (357,826,560 weights; Adaptive per-layer minimum-byte quotient packing)
Rotation & PermutationBlock-H4 4-point Hadamard transform with QuadLPT column permutation (use_colscale=True)
Effective Quantized Bitwidth5.2523 bpw (3.0463x quantized / 1.9468x total vs BF16)
SECDED Verification0 syndrome errors across 22,364,160 A_16 blocks (max_abs_roundtrip_diff=0.0)
Checkpoint Footprint507,502,032 B (484.0 MiB, model.safetensors)
Calibration Protocol6,144 disjoint WikiText-2 validation tokens (12 x 512)
model.safetensors SHA-25685de83fb431c692dd08226470f9cb86ba1d1b65f45ea671893686898c444543a

Benchmark Results & Pareto Evaluations

All quantized perplexity and token-distribution divergence metrics below are measured directly against the untouched Qwen/Qwen2.5-0.5B BF16 reference under identical evaluation splits:

Evaluation MetricBF16 ReferenceThis ReleaseComparison vs Prior Baselines
WikiText-2 Validation PPL17.95047318.3122810.025955 KL (-3.76% vs Block-H2, -20.15% vs global sort, -11.76% vs unperm)
WikiText-2 Top-1 Agreement100.0%91.0470%Preserves edge-scale coherence under 3.0463x weight compression
CPython Held-Out PPL4.8606314.9724430.023575 mean KL divergence (+0.112 PPL over BF16)
CPython Top-1 Agreement100.0%92.7838%5.2523 bpw quantized (484.0 MiB model.safetensors)

Energy Efficiency & Power Profile

Hardware TargetWorkload / Telemetry ScopeAvg Power (W)Energy / Token (J/tok)Efficiency (tok/J)Run Energy (Wh/run)Measurement Status
RTX 3080 Laptop GPU (8 GiB)Quantization sweep boundary (pre -> post)20.35 W -> 27.50 W (boundary telemetry)Not recordedNot recordedNot recordedNot recorded (56 -> 67 °C, 0 throttles; NVML active inference telemetry absent)
Host CPU (multi-arm sweep total)Combined 3,339.0 s campaign envelope~32.56 W sweep meanNot applicableNot applicable30.20 Wh (full multi-arm campaign RAPL: 108,724.24 J)Campaign host RAPL only; per-model serving energy not recorded

[!NOTE] Energy readings are not guaranteed to be consistent due to uncontrollable variables (thermal state, ambient temperature, fan curve, and dynamic power limits).

Getting Started

Install dependencies:

pip install -U torch transformers safetensors accelerate

Run standard Hugging Face inference with transformers from_pretrained (zero custom CUDA/C++ compilation required):

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL_ID = "ahrazzle/Qwen2.5-0.5B-Siliquant-A16-BlockH4-QuadLPT-4.5bpw"
device = "cuda" if torch.cuda.is_available() else "cpu"

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    trust_remote_code=True,
    dtype="auto",
    # Optional (requires `accelerate`): device_map="auto",
).to(device)

inputs = tokenizer("The exact identity of the Hadamard matrix is", return_tensors="pt").to(device)
with torch.inference_mode():
    outputs = model.generate(**inputs, max_new_tokens=48, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
hf download ahrazzle/Qwen2.5-0.5B-Siliquant-A16-BlockH4-QuadLPT-4.5bpw --local-dir ./Qwen2.5-0.5B-Siliquant-A16-BlockH4-QuadLPT-4.5bpw
cd ./Qwen2.5-0.5B-Siliquant-A16-BlockH4-QuadLPT-4.5bpw
python3 -B siliquant_dequant.py verify .
python3 -B siliquant_dequant.py unpack . --out unpacked_bf16.safetensors --dtype bfloat16
  • siliquant_dequant.py verify . checks every file SHA-256 listed in siliquant_verification_receipt.json (rejecting tampered, missing, unlisted, or symlinked files) and verifies [16, 11, 4] codec parity across 100% of A_16 blocks.
  • kernels/sm86_a16_blockh4.cu — standalone reference zero-spill Ampere sm_86 PTX fused 4-bit nibble-packed A_16 + Block-H4 dp4a.s32.s32 GEMV kernel.
  • kernels/avx512_a16_blockh4.c — standalone reference Intel AVX-512 (vpermb + vpopcntq + vpdpbusd) CPU A_16 + Block-H4 GEMV decoder.
  • Note: The shipped checkpoint uses lossless packed qham11 + qquot + CSR containers for bit-exact distribution; dense BF16 unpacking or nibble re-packing converts between archive and streaming kernel layouts.

Custom Infrastructure Stack & Source Repositories

Every open-source component used to design, quantize, compile, verify, and execute this release is publicly available below:

Stack LayerComponentRole in This ReleasePublic Repository
Lattice Quantization & ECCSiliQuant[16, 11, 4] Extended Hamming A_16 + Block-H4 quantization, QuadSnake/QuadLPT recipes, & lossless siliquant-hf-v1 packing/verificationMoissanite-Labs/siliquant
Bare-Metal Silicon KernelsSiliKernelsZero-spill Ampere sm_86 PTX CUDA (sm86_a16_blockh4.cu) & Intel AVX-512 VBMI/VNNI C11 (avx512_a16_blockh4.c) dequant/GEMV kernelsMoissanite-Labs/silikernels
Verified Zero-Spill CompilerHoloEmitFormally verified pure-Init Lean 4.36.0 compiler targeting zero-spill sm_86 PTX & AVX-512 C11 [16, 11, 4] SECDED decodersMoissanite-Labs/holoemit
Metrology & TelemetrySiliSensePure-stdlib silicon physics metrology, contention sentinel, & .sys hardware fault-canary telemetryMoissanite-Labs/silisense
Workbench OSML-OSResearch workbench OS providing deterministic run stamping, CPU/GPU lease discipline, & environment hygieneMoissanite-Labs/ml-os
Verification & Audit HarnessAletheia3-mode isolated -I parity, fail-closed receipt verification, mutation auditing, & secret/path leak scanningFoundation-0/aletheia
Five-Layer Stack BlueprintSiliconcordatOpen L1–L5 stack specification (loom · weft · warp · exo · mde)siliconcordat/.github

Usage, Scope & Honest Limitations

  • Intended Usage – Research evaluation and quantized inference of Qwen/Qwen2.5-0.5B via Hugging Face transformers from_pretrained, or dense weight inspection via siliquant_dequant.py.
  • Observed Limitations & Format Boundaries – Loading with transformers from_pretrained dequantizes layers in PyTorch rather than dispatching directly to the bundled fixed-4-bit PTX/AVX-512 reference GEMV kernels. Untouched tie_word_embeddings bfloat16 embeddings represent a larger fraction of total 0.5B footprint (1.9468x total vs 3.0463x quantized-linear compression).
  • Hardware & Telemetry Scope – Where full E2E serving NVML telemetry was not separately captured at quantization time, GPU power/energy fields explicitly report Not recorded (NVML active inference telemetry absent in run receipt) rather than extrapolating.
  • License Inheritance – Apache License 2.0 (inherited from Qwen/Qwen2.5-0.5B; upstream notice preserved in NOTICE_UPSTREAM_LICENSE.txt).

Citation

@misc{moissanitelabs2026qwen2505bsiliquanta16blockh4,
  title={Qwen2.5-0.5B SiliQuant A16 + Block-H4 (QuadLPT, 4.5 bpw)},
  author={Moissanite Labs and Foundation-0},
  year={2026},
  howpublished={\url{https://huggingface.co/ahrazzle/Qwen2.5-0.5B-Siliquant-A16-BlockH4-QuadLPT-4.5bpw}}
}

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей