/ Модель

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

Размер весов
27,2 ГБ
Лицензия
Gemma
Архитектура
gemma4 · dense
Базовая модель
Gemma4-31B-IT-PrismaQuant-6bit-vllm
Библиотека
vllm
Опубликована
3 окт 2026

Gemma4-31B-IT-PrismaQuant-6bit-abliterated-vllm

Генерация текстаТекст → текст

Инструкционно настроенная Gemma 4 31B с сохранённой 6-битной квантизацией PrismaQuant и сниженной склонностью к отказам для диалоговой генерации через vLLM.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TechPrototyper/Gemma4-31B-IT-PrismaQuant-6bit-abliterated-vllm — производная инструкционно настроенной модели Gemma 4 31B IT от Google, созданная на основе квантизированного чекпойнта rdtand/Gemma4-31B-IT-PrismaQuant-6bit-vllm. Веса 118 тензоров изменены методом abliteration, чтобы снизить склонность модели к отказам; исходная 6-битная схема PrismaQuant, кодовые книги, масштабы и формат хранения сохранены без повторной квантизации.

Модель предназначена для диалоговой генерации текста и развёртывания через vLLM с поддержкой compressed-tensors NVFP4 и FP8. Архитектура — плотная Gemma4ForConditionalGeneration, размер — 31 млрд параметров; карточка базовой модели указывает на мультимодальные возможности, включая анализ изображений, но README этой производной описывает только текстовую генерацию. Длина контекста и поддерживаемые языки для этой версии не установлены приведёнными данными.

Изменение снижает, но не устраняет отказы: в описанном наборе испытаний модель отказала по существу в 36 из 100 случаев и проявила уклончивость ещё в 54. Зафиксирована регрессия в одном сценарии вызова инструментов; качество рассуждений, генерации кода и многоязычности, кроме немецкого, отдельно не оценивалось. Чекпойнт не загружается обычным AutoModelForCausalLM и требует соответствующей сборки vLLM. Использование регулируется лицензией Gemma 4 и её политикой запрещённого использования.

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

  • развёртывание диалогового LLM-сервиса на vLLM
  • генерация ответов в чат-интерфейсе
  • исследование изменений весов с сохранением схемы квантизации
  • оценка поведения модели при сниженной склонности к отказам

Ограничения

Снижение склонности к отказам не устраняет их: в описанном тесте модель всё ещё отказывала или отвечала уклончиво в большинстве случаев. Отмечена регрессия в одном сценарии вызова инструментов; качество рассуждений, генерации кода и многоязычности отдельно не проверялось, а для запуска требуется vLLM с поддержкой compressed-tensors NVFP4 и FP8.

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

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

Открыть на Hugging Face

Gemma 4 31B IT — PrismaQuant 6-bit, abliterated in format

The quantization in this checkpoint is not ours. Format, allocator decision, codebooks and the entire 6-bit build are the work of Robert Tand (rdtand), author of PrismaQuant and of GridBook. This repository modifies the contents of 118 weight planes inside his build and changes nothing else. Please credit him for the quantization and treat this repo as a derivative of rdtand/Gemma4-31B-IT-PrismaQuant-6bit-vllm.

This is an abliterated derivative of rdtand/Gemma4-31B-IT-PrismaQuant-6bit-vllm that was produced without requantizing the model.

The refusal behaviour of the instruction-tuned base was reduced by transplanting weights from an abliterated BF16 donor into the existing quantized checkpoint and re-encoding them on the original quantization grid: same format per tensor, same bit budget, same codebooks, same scales, same renderer. The only thing that changes is the content of the quantized weight planes of 118 tensors.

The practical consequence is that this checkpoint loads, allocates, and serves exactly like its parent — same shard sizes, same byte layout, same KV budget, same throughput class — because nothing about the quantization was re-decided.

Why build it this way

The conventional route is: abliterate in BF16, then quantize the result. That produces a checkpoint in the same format family, but not the same model. For this 31B model at an identical 6.000 bits-per-weight target, re-running PrismaQuant's allocator on the abliterated weights chose a different per-tensor format assignment than the deployed build:

NVFP4FP8 E4M3BF16bpp
deployed 6-bit build234135416.000
abliterated, then requantized246116486.000

Same budget, different model. Every downstream property that was validated against the deployed build — tensor-level fidelity, memory footprint, kernel path, KV sizing — has to be re-established from scratch.

A second, more specific motivation: we wanted a checkpoint that is provably the deployed model, abliterated rather than a new model that happens to be abliterated, so that a regression after the switch could only be attributed to the weight edit and not to a changed quantization layout.

It is worth stating clearly what we did not find, because it is the common assumption. We tested whether quantization destroys abliteration, by measuring the BF16 abliterated donor and the very same donor requantized, over one identical API path with one prompt set and one classifier:

Refusal class (100 prompts)BF16 abliterated donorsame model, requantized
hard refusal3324
soft hedging only5866
empty00
no marker910

Quantization did not undo the abliteration. Earlier numbers suggesting otherwise turned out to come from three different measurement setups, not from three different models. The in-format method is therefore not a workaround for a quantization problem — it is a way to keep a validated deployment artifact validated.

Method

  1. Donor. A BF16 abliteration of google/gemma-4-31B-it produced with Heretic in ARA mode (rank-1 directional ablation, real PEFT adapters, merged to dense BF16).
  2. Target selection. The Linears that write into the residual stream: o_proj (attention output) and down_proj (MLP output). These are the modules through which a refusal direction is expressed additively.
  3. In-format re-encoding. For each target tensor the production codes are decoded, replaced by the donor weights, and re-encoded with the production encoder against the frozen scale planes — per-tensor format, group size, global scale and activation scale are read from the existing checkpoint and never recomputed.
  4. Byte-range write-back. The output is a copy of the parent in which only the data ranges of the edited tensors are overwritten. Shapes and dtypes are untouched, so the safetensors header and every other tensor are bit-identical by construction rather than by intent.

NVFP4 note for anyone reproducing this: in compressed-tensors, weight_global_scale is stored as a reciprocal (448·6/amax). It is divided by, not multiplied with. Getting this backwards yields a model that loads and produces fluent garbage.

Scope of the edit

Namespacetensors differing from parent
text layers118
vision tower0
everything else0
Matrix kindcount
down_proj.weight_packed (NVFP4)41
o_proj.weight_packed (NVFP4)33
o_proj.weight (FP8 / BF16)27
down_proj.weight (FP8 / BF16)17

Of 2025 tensors, 1907 are bit-identical to the parent and 118 changed; none outside the intended pattern. Within the edited matrices, 712,752,623 of 9,672,327,168 codes changed (7.37 %).

The vision tower is carried in BF16 passthrough by the parent build and is untouched here, which is why image understanding is unaffected (measured below).

Verification

CheckResult
Null edit, FP8 path (encode the unchanged weights and compare)bit-identical, 0 of 115,605,504 bytes differ
Null edit, NVFP4 pathbit-identical, 0 of 57,802,752 bytes differ
safetensors header vs parentbit-identical
File sizes vs parentidentical
Absolute weight plausibility after decodemax abs 0.279, std 0.01265
Tensors outside the edit pattern changed0

The null-edit test is the one that matters for trusting the rest: encoding unmodified weights with the same encoder must reproduce the original bytes exactly. It does. Any difference observed afterwards is therefore the intended weight substitution and not codec drift.

Measurements

All numbers below are from our own harness, not from public benchmarks, and are reported so the delta against the parent is interpretable. Measured on a single NVIDIA GB10 (DGX Spark, sm_121), vLLM with compressed-tensors NVFP4 + FP8, NVFP4 KV cache, under verified idle (zero requests for ten minutes, GPU at 0 %).

Axisparent (6-bit, not abliterated)this build
Hard refusals, 100 adversarial prompts100 / 10036 / 100
German instruction-following probe9 / 129 / 12
Needle-in-haystack @ 32k3 / 33 / 3
Greedy determinism (5 repeats)5 / 55 / 5
Image understanding gate3 / 33 / 3
Tool-calling suite5 / 54 / 5
Throughput18.2 tok/s19.0 tok/s
Weights loaded26.8 GiB26.8 GiB
KV cache budget524,903 tokens524,903 tokens

Refusal breakdown for this build (100 prompts, no probe errors, mean answer length 256 characters):

ClassCount
hard — recognisably refuses36
soft — hedging language only54
empty0
no marker10

Calibration. 36 hard refusals puts this checkpoint at the level of the full BF16 abliteration of the same model (33) — at unchanged format, unchanged bit budget and unchanged per-tensor assignment. That equivalence is the actual result here.

Known limitations

  • One tool-calling case regressed, consistently. The suite goes from 5/5 to 4/5: in one scenario the model calls a tool that was not offered (exec_command in place of apply_patch). Re-measured twice under verified idle, identical both times, with determinism=True across all three repeats — so it is reproducibly wrong rather than flaky. If tool calling is your primary workload, measure it before adopting this build.
  • This is not an uncensored model. 36 of 100 adversarial prompts are still refused outright and a further 54 draw hedging language. The refusal tendency is substantially reduced, not removed.
  • Abliteration costs capability in general. We measured the axes listed above and they hold; we did not measure reasoning benchmarks, code generation, or multilingual coverage beyond German. Absence of a measured regression is not evidence of none.
  • Not a vanilla Transformers checkpoint. It requires a vLLM build with compressed-tensors NVFP4 + FP8 support. AutoModelForCausalLM will not load it.
  • The quality metrics in the parent card (KL vs BF16, next-token agreement) were not re-measured for this build. The 118 changed tensors move the model away from the BF16 reference by design, so those figures do not carry over.

How this differs from neighbouring approaches

ApproachFormat preservedDeployment artifact validatedReversible
Abliterate BF16, then requantizeformat family only; assignment re-solvedno, must be re-establishedno
LoRA adapter over the quantized baseyesyesyes, at serving cost
This: in-format weight edityes, byte layout identicalyes, same load/KV/throughputyes, by swapping the file

We also attempted to express this specific edit as a LoRA adapter over the quantized base. The plumbing works — vLLM's LoRA path is quantization-agnostic, and a zero adapter is bit-identical — but the edit itself has no usable low-rank structure: the control matrices concentrate more spectral energy than the targets do. A rank-limited approximation of this particular edit is therefore not available; the full-weight route is what carries it.

Usage (vLLM)

vllm serve TechPrototyper/Gemma4-31B-IT-PrismaQuant-6bit-abliterated-vllm \
  --quantization compressed-tensors \
  --trust-remote-code

What the checkpoint actually requires

A vLLM build with compressed-tensors support for the mixed-precision format, covering both schemes this checkpoint declares:

GroupWeightsActivationsStrategy
group_0FP8 E4M3, 8-bit8-bitper channel
group_1NVFP4, 4-bit4-bittensor_group, group size 16

plus 260 ignore entries (vision tower, norms, embeddings, lm_head). On Blackwell this uses the FlashInfer CUTLASS NVFP4 kernels; FP8 needs Hopper or newer. kv_cache_scheme is null, so no KV-cache quantization is required or implied by the checkpoint.

AutoModelForCausalLM will not load this — it is a vLLM-targeted export.

Note on our internal build (not a requirement)

We serve this model on an in-house vLLM tree rather than a release wheel, and it is worth being explicit that none of our local patches are needed to run this checkpoint. We checked: the only one of them that touches the compressed-tensors code at all relaxes validate_kv_cache_scheme to accept num_bits=4, and since this checkpoint declares no kv_cache_scheme, that code path is never reached. Nothing in our tree touches the weight-loading or Linear quantization path.

What our tree adds is two optional things, both unrelated to these weights:

  • NVFP4 KV cache on consumer Blackwell (sm120/sm121) via FlashInfer FA2, including a Gemma-4 VO-split two-pass prefill and multimodal prefix-span masking. This is a serving choice that buys KV capacity; it is not part of the checkpoint.
  • A DFlash2 speculative-decoding drafter.

Consequence for the numbers above: our measurements were taken with NVFP4 KV cache and an MTP drafter enabled. The 524,903-token KV budget and the 18–19 tok/s figures are therefore our configuration, not what a stock vLLM will reproduce. The quality and refusal measurements do not depend on either feature; the capacity and throughput ones do.

We have not tested this checkpoint on a stock upstream vLLM release. The reasoning above is from reading our own diff against upstream, not from a passing run. If you try it on a release wheel, we would be glad to hear how it went.

Serve without speculative decoding if you intend to read prompt logprobs.

Intended use and safety

This checkpoint has had its refusal tendency deliberately reduced. It is published for research on quantization-preserving weight edits and for use in settings where the operator carries responsibility for content policy at the application layer. It is not suitable as a drop-in replacement in a product that relies on model-level refusals as its safety mechanism.

Use is governed by the Gemma 4 license, including its prohibited-use policy, which applies to this derivative exactly as it applies to the base model.

Attribution

  • Base model © Google, under the Gemma 4 license.

  • Quantization: Robert Tand — rdtand. The parent build is rdtand/Gemma4-31B-IT-PrismaQuant-6bit-vllm. Everything that makes this checkpoint a 6-bit model is his: the Fisher-weighted mixed-precision allocator, the per-tensor format menu, the act-aware GPTQ and scale-sweep passes, the codebooks, and the compressed-tensors export path. This repository changes the contents of 118 weight planes inside that build and nothing else — no re-allocation, no re-quantization, no new scales.

    His quantization work spans two formats, and it is worth naming both because the method described here applies to both: PrismaQuant ({NVFP4, FP8_E4M3, BF16} per Linear, exported as compressed-tensors) is what this Gemma checkpoint uses; and GridBook (product-vector quantization against codebooks on a hardware grid, cb_codebooks.pqcb) is his codebook format, on which we ran the same in-format procedure for a hybrid Qwen model. Neither format needed modification to make this work — which is the point: the edit stays inside the format the author defined.

  • Abliteration tooling: Heretic (ARA mode).

  • In-format transplant, verification and measurements: this repository's author.

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей