/ Модель

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

Контекст
262 144 токена
Размер весов
21 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.8-27B
Библиотека
transformers
Опубликована
25 авг 2026

Qwen3.8-27B-GPTQ-INT4-FP8KV

Изображение и текст → текст15 профессий

Qwen3.8-27B-GPTQ-INT4-FP8KV — квантованная версия мультимодальной модели Qwen3.8-27B, опубликованная пользователем abhishekchohan на базе Qwen/Qwen3.8-27B.

29 131скачиваний за 30 дней2лайкавеса обновлены9 окт 2026

Бенчмарки

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

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

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

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

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

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

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

Используется 4-битное GPTQ-квантование весов в формате W4A16 с асимметричными группами размера 32, а также FP8 E4M3 KV-кэш с откалиброванными масштабами. Размер модели — 27B параметров; текстовая часть включает 64 гибридных слоя attention и DeltaNet, а визуальная часть основана на замороженном ViT-энкодере. Сохраняется нативный контекст до 262 144 токенов, с расширением YaRN до 524 288 токенов на GPU с 48 ГБ и до 1 млн токенов на 96 ГБ, однако поиск за пределами 262 144 токенов не валидировался. Контрольная точка занимает около 20 ГБ и рассчитана на запуск через vLLM, включая speculative decoding.

Главные преимущества — существенно сниженное потребление памяти, возможность обслуживания нативного длинного контекста на одной 48-ГБ GPU и результаты бенчмарков, сопоставимые с BF16-версией: средний показатель на заявленном наборе тестов составил 70,29 против 70,04 у базовой модели, а извлечение информации из контекста прошло без деградации на 262 144 токенах. Ограничения включают возможную зависимость результатов генерации от GPU и конфигурации, а также неизбежные риски квантования; отдельные тесты показали небольшое снижение качества.

Модель распространяется по лицензии Apache-2.0.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Qwen3.8-27B-GPTQ-INT4-FP8KV

A 4-bit weight-only GPTQ quantization of Qwen/Qwen3.8-27B with an fp8-e4m3 KV cache calibrated alongside the weights. INT4 weights shrink the footprint ≈2.8× and fp8 KV halves the cache, so the model serves its native 262,144-token context on a single 48 GB GPU. fp8 KV also makes YaRN extension to 524,288 tokens fit the same card, and up to 1M tokens on 96 GB (retrieval beyond 262k unvalidated).

Fits a single 48 GB GPU

ComponentVRAM
Weights (INT4 + BF16 protected parts)≈20 GB
KV cache (fp8, 262k context)≈8.5 GB
Activations + engine overhead≈5 GB
Total≈33.5 GB

TL;DR

value
FormatINT4, asymmetric (zero-point), group_size=32, weight-only (W4A16)
MethodGPTQ (Hessian error compensation) + imatrix-mse weight observer
KV cachefp8-e4m3, symmetric per-tensor, calibrated scales baked into the checkpoint
Calibration8 packed sequences × 262,144 tokens (≈2.1M tokens), Nemotron Post-Training v3 SFT blend, thinking-on
Disk size≈20 GB (vs ≈55 GB BF16)
VRAM (weights + 262k fp8 KV)≈28.5 GB
Accuracy vs BF16 baseNo degradation beyond sampling noise on 10 benchmarks; 9/9 long-context retrieval at 262,144 tokens

Evaluation

Identical harness and hardware for base and quantized: lm-evaluation-harness with the vLLM 0.27.1 backend on a single NVIDIA RTX PRO 6000 (Blackwell, 96 GB), greedy decoding, seed 1234. The base runs with bf16 KV and the quantized model with fp8-e4m3 KV, each at its recommended serving configuration, so every Δ measures the full int4 + fp8-KV stack rather than weights alone. Generative tasks run with the model's native chat template, thinking enabled, max_gen_toks=8192; loglikelihood tasks run untemplated. minerva_math500 reports math_verify, since strict exact_match measures answer format, not content, on thinking-model outputs.

Task (n)protocolBase BF16This modelΔRecovery %
GSM8K (1319)thinking, generative95.6095.53−0.199.9
GPQA Diamond (198)thinking, generative61.1163.64+2.5104.1
Minerva Math500 (500)thinking, generative, math_verify73.275.4+2.2103.0
RealWorldQA (765)thinking, generative, vision84.3185.10+0.8100.9
MathVision (3040)thinking, generative, vision78.0676.74−1.398.3
ARC-Easy (2376)loglikelihood82.5382.32−0.299.7
ARC-Challenge (1172)loglikelihood56.9156.40−0.599.1
HellaSwag (2000)loglikelihood56.5056.00−0.599.1
Winogrande (1267)loglikelihood76.1675.77−0.499.5
TruthfulQA MC1 (817)loglikelihood35.9935.990.0100.0
Average70.0470.29+0.3100.4

All deltas are within sampling noise for their sample sizes.

Long-context retrieval (needle-in-a-haystack, thinking, greedy)

Context (tokens)depth 10%depth 50%depth 90%
32,768✅✅✅
131,072✅✅✅
262,144 (native)✅✅✅

The BF16 base scores identically (9/9), showing no retrieval degradation through the int4 + fp8-KV stack at the context length it was calibrated at.

Limitations

  • Generation-task scores can vary by a few points across GPU vendors even for identical configs; base and quantized were measured on the same machine to keep every Δ above a within-config comparison.

What was quantized (and what was protected)

ComponentQuantized (INT4 gs32 asymmetric)Protected (kept BF16)
language_model (64 hybrid-attention text layers)block linears: softmax-attn self_attn.{q,k,v,o}_proj, MLP {gate,up,down}_proj, DeltaNet linear_attn.{in_proj_qkv,in_proj_z,out_proj}layer norms incl. q/k RMS-norms, embed_tokens, lm_head
DeltaNet gatingnonelinear_attn.{in_proj_a,in_proj_b} and conv states
visual (frozen ViT encoder)noneentire model.visual.*
MTP predictornonekept intact for speculative decoding

Unlike the common practice of keeping DeltaNet projections in BF16, they are quantized here. The eval suite therefore deliberately includes vision and long-context retrieval to cover that risk.

Serving

The checkpoint carries its own calibrated k/v scales, and --kv-cache-dtype fp8_e4m3 picks them up automatically.

What fits:

  • 48 GB + fp8 KV: native 262k context, comfortable (≈33 GB used)
  • 48 GB + bf16 KV: 262k fits but tight (≈42 GB); drop --kv-cache-dtype
  • 48 GB + fp8 KV + YaRN (factor: 2.0): 524k context
  • 96 GB + fp8 KV + YaRN (factor: 4.0): up to 1M context

Single 48 GB GPU: 262k, fp8 KV (the default)

vllm serve abhishekchohan/Qwen3.8-27B-GPTQ-INT4-FP8KV \
  --kv-cache-dtype fp8_e4m3 \
  --max-model-len 262144 \
  --gpu-memory-utilization 0.92 \
  --max-num-seqs 4 \
  --reasoning-parser qwen3 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":2}'

fp8 KV is the default on 48 GB; bf16 KV is a 96 GB option. If you OOM at full context on 48 GB, drop --speculative-config first.

Single 96 GB GPU: 262k with concurrency headroom

vllm serve abhishekchohan/Qwen3.8-27B-GPTQ-INT4-FP8KV \
  --kv-cache-dtype fp8_e4m3 \
  --max-model-len 262144 \
  --reasoning-parser qwen3 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":2}'

On a 96 GB card (RTX PRO 6000 Blackwell) the fp8 KV pool holds ≈2M tokens (≈8× the max context), so raise --max-num-seqs for concurrency. At bf16 KV the full 262k context needs ≈17 GB of KV (≈65 KB/token, since only the 16 global-attention layers accumulate KV); drop --kv-cache-dtype if you prefer bf16 KV.

Host notes. On CUDA-12.x-driver hosts install the +cu129 vLLM wheel (PyPI wheels are cu13-only from 0.26) and run with --attention-backend TRITON_ATTN + VLLM_USE_FLASHINFER_SAMPLER=0; flashinfer JIT additionally needs a CUDA ≥ 12.9 toolkit (the pip nvidia-cuda-*-cu13 packages supply it). On CUDA-13 hosts stock vLLM works as-is.

Beyond 262k (YaRN). The base architecture extends via YaRN, and fp8 KV is what makes the long end practical on a single card. For 524,288 tokens on one 48 GB GPU use factor: 2.0 (for 1M on 96 GB use factor: 4.0):

VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 vllm serve abhishekchohan/Qwen3.8-27B-GPTQ-INT4-FP8KV \
  --kv-cache-dtype fp8_e4m3 \
  --hf-overrides '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 2.0, "original_max_position_embeddings": 262144}}}' \
  --max-model-len 524288

Static YaRN can mildly hurt short-text quality, so apply the override only when you need the extra context. This checkpoint was calibrated and validated at the native 262,144 tokens, so re-check retrieval at your target length before relying on anything beyond that.

Quantization recipe

GPTQ with weight-only INT4: asymmetric (zero-point, stored as int8), group_size=32, imatrix-mse weight observer (importance statistics collected by forward hooks over the calibration rows), actorder=static, block size 128, dampening_frac: 0.01, applied to every Linear layer not protected in the table above. The fully resolved recipe ships as recipe.yaml in this repo.

Long-sequence calibration. Conversations from five Nemotron Post-Training v3 SFT datasets (instruction-following chat, math, science, agentic code, multilingual) were pooled (≈37M tokens), shuffled (seed 42), and packed EOS-separated into 8 fixed 262,144-token rows, calibrating at the exact context length the model is served at. Calibration texts are rendered with thinking enabled (reasoning traces preserved), matching the deployment regime.

KV cache. The same oneshot pass observes k/v activations of the 16 softmax-attention layers (the 48 DeltaNet layers carry recurrent state, not a KV cache) and bakes the resulting per-tensor scales into the checkpoint (range across layers: 0.016–0.203).

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

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

GPU в ailist

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

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

Готовая квантизация поддерживается только для текстовых LLM (vLLM).

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

0 моделей