/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen2.5-0.5B-Instruct
Библиотека
gguf
Опубликована
26 ноя 2026

Qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ

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

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

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

Квантизированная версия Qwen2.5-0.5B-Instruct для локальной генерации текста и диалогов с уменьшенными требованиями к памяти.

Это компактная инструктивная языковая модель Qwen2.5-0.5B-Instruct в формате GGUF, подготовленная SMQ с использованием алгебраического QAT и смешанной квантизации Q2_K/TQ9_128. Она предназначена для генерации текста и диалогов по шаблону Qwen2.5. Размер файла составляет около 250 МиБ, контекст — до 32 768 токенов; модель содержит примерно 630 млн параметров с учётом отдельных матриц эмбеддингов и выходного слоя.

Квантизация снижает требования к хранению и запуску, а QAT заметно уменьшает потерю качества относительно той же схемы квантизации без QAT. При этом это небольшая модель с ограниченными возможностями рассуждения, точностью фактов и работой с длинным контекстом. Для загрузки требуется модифицированная сборка llama.cpp-tr с поддержкой TQ9_128; стандартная llama.cpp этот файл не открывает. Лицензия — Apache-2.0.

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

  • локальный чат-бот с небольшими требованиями к памяти
  • генерация коротких ответов по инструкциям
  • черновое составление и перефразирование текста

Ограничения

Модель размером 0,5 млрд параметров ограничена в рассуждениях, фактической точности и работе с длинным контекстом; заявленная оценка perplexity получена на калибровочном корпусе, а стандартные тесты возможностей и безопасности не проводились. Для запуска требуется llama.cpp-tr с поддержкой TQ9_128, а кэш KV следует оставлять в F16, поскольку режим q5_1 может приводить к повреждённой генерации.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen2.5-0.5B-Instruct — SMQ Q2K/TQ9_128 QAT GGUF

This is a mixed-precision SMQ quantization of Qwen2.5-0.5B-Instruct, adapted with SMQ's closed-form algebraic QAT before quantization.

The release artifact is:

qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ.gguf

It uses standard Q2_K blocks for ffn_down and dense TQ9_128 blocks for the remaining weight matrices. Loading it requires the patched llama.cpp-tr runtime because TQ9_128 is GGML type ID 44.

Model details

FieldValue
Base modelQwen/Qwen2.5-0.5B-Instruct
Architectureqwen2
GGUF tensor elements630,167,424 (includes untied token_embd and output)
Layers24
Hidden size896
Attention heads14
KV heads2 (GQA)
Feed-forward size4864
Context length32768
Vocab size151936
RoPE base1,000,000
RMSNorm epsilon1e-6
TokenizerGPT-2 BPE (qwen2 pre-tokenizer), BOS 151643, EOS 151645
Chat templateQwen2.5 template preserved from the source GGUF
LicenseApache-2.0

Quantization recipe

The quantization plan was produced with smq_gguf_convert_live.py using --qtype q2_k and automatic 256 → 128 block-size fallback:

TensorsFormatCountNominal BPW
blk.*.ffn_down.weightQ2_K242.625
Attention projections, ffn_gate, ffn_up, token_embd, outputTQ9_1281463.375
Norms and biasesF32 (passthrough)12132.0
  • File size: 262,249,824 bytes (250 MiB)
  • Effective payload: ~3.25 bpw
  • GGUF general.file_type: 44 (TQ9_128)

Q2_K applies only to ffn_down because those rows have ne[0] = 4864, which is divisible by 256. The other matrices have ne[0] = 896 and therefore fall back to the 128-weight TQ9_128 format.

Perplexity

Reported with llama-perplexity using the same corpus and settings for all three artifacts. These are internal validation numbers, not a held-out benchmark.

ArtifactFilePerplexityRelative to Q8_0
Q8_0 inputqwen2.5-0.5b-instruct-q8_0.gguf20.0075—
Q2K/TQ9_128, no QATqwen2.5-0.5b-instruct-q8_0-SMQ-Q2K-qat-f16-SMQqq-Q2K.gguf50.7231+153.5%
Q2K/TQ9_128 + SMQ QAT (this file)qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ.gguf24.0632+20.3%

SMQ QAT reduces perplexity by 52.6% in this instance, versus the same quantization plan without QAT (2.11× lower), recovering most of the loss.

Example invocation (perplexity depends on corpus, context length, and backend):

./build/bin/llama-perplexity \
  -m qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ.gguf \
  -f calibration_data.txt \
  -c 512 \
  -ngl 99

Requirements

  • llama.cpp-tr build with TQ9_128 support (GGML type ID 44): https://github.com/ternii-ai/tritq-vllm
  • Stock llama.cpp cannot load this file because of the TQ9_128 tensors.
  • For SMQ QAT / conversion: Python 3.10+, PyTorch, NumPy, gguf, transformers, tokenizers, and safetensors.

Usage

CLI

./build/bin/llama-cli \
  -m qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ.gguf \
  -p "What is the capital of France?" \
  -n 32 \
  -ngl 99

Server

./build/bin/llama-server \
  -m qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ.gguf \
  -c 32768 \
  -ngl 99 \
  --jinja \
  --host 0.0.0.0 \
  --port 8080

The model's maximum context is 32768 tokens. Larger -c values are capped by the runtime.

Known runtime issue

With the tested llama.cpp-tr build, using --cache-type-k q5_1 --cache-type-v q5_1 produces corrupted generation. The same failure reproduces with the original Q8_0 model, so it is a runtime KV-cache issue rather than a problem with this quantization. Use the default F16 KV cache.

Reproduction

1. Algebraic QAT

python train_smq_qat.py \
  --gguf qwen2.5-0.5b-instruct-q8_0.gguf \
  --corpus calibration_data.txt \
  --output qwen2.5-0.5b-instruct-q8_0-SMQ-Q2K-qat-f16.gguf \
  --qtype q2_k \
  --device cuda:0

2. Quantize the adapted F16 staging GGUF

python smq_gguf_convert_live.py \
  qwen2.5-0.5b-instruct-q8_0-SMQ-Q2K-qat-f16.gguf \
  --qtype q2_k \
  --output-gguf qwen2.5-0.5b-instruct-Q2K-TQ9_128-SMQ.gguf

The converter automatically selects TQ9_128 for tensors whose row length is not divisible by the Q2_K block size of 256.

Limitations

  • This is a 0.5B model; expect limited reasoning, factual accuracy, and long-context performance compared with larger Qwen2.5 models.
  • Perplexity was measured on the calibration corpus, so the reported number is optimistic relative to a held-out evaluation.
  • TQ9_128 is not supported by stock llama.cpp; use the patched runtime.
  • The Qwen2.5 chat template is preserved, but this artifact is a quantized research release and has not been evaluated on standard safety or capability benchmarks.

Credits

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

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

GPU в ailist

llama.cpp

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

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
31301cd

0 моделей