玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
AEON-7 /

Gemma-4-12B-it-AEON-Abliterated-K4-FP8

HF 源站

AEON-7/Gemma-4-12B-it-AEON-Abliterated-K4-FP8 is an uncensored open-source model hosted on Hugging Face.

Text GenerationvLLMsafetensorsEnglishLicense: gemma12Btransformersgemma4_unifiedimage-text-to-text8-bitaarch64abliteratedaeonaeon-7agenticarm64biprojectionblackwellchatchunked-prefillcodingconversationaldgx-sparkfp8fp8-per-channel-per-tokenfunction-callinggb10gemma-4gemma-4-12Bgemma4googlegpugrace-blackwellinstructk4-biprojectionlong-contextmodeloptmultimodalnear-losslessnvidiaopenai-apiopenai-compatibleprefix-cachingproduction-readyquantizedreasoningrefusal-removedsm_121athinkingtool-callinguncensoredunfilteredvisionvision-language
README.md说明 / 使用方法

license: gemma library_name: transformers pipeline_tag: text-generation base_model: AEON-7/Gemma-4-12B-it-AEON-Abliterated-K4-BF16 model_type: gemma4_unified language:

  • en tags:
  • 12b
  • 8-bit
  • aarch64
  • abliterated
  • aeon
  • aeon-7
  • agentic
  • arm64
  • biprojection
  • blackwell
  • chat
  • chunked-prefill
  • coding
  • conversational
  • dgx-spark
  • english
  • fp8
  • fp8-per-channel-per-token
  • function-calling
  • gb10
  • gemma
  • gemma-4
  • gemma-4-12B
  • gemma4
  • gemma4_unified
  • google
  • gpu
  • grace-blackwell
  • instruct
  • k4-biprojection
  • long-context
  • modelopt
  • multimodal
  • near-lossless
  • nvidia
  • openai-api
  • openai-compatible
  • prefix-caching
  • production-ready
  • quantized
  • reasoning
  • refusal-removed
  • safetensors
  • sm_121a
  • text-generation
  • thinking
  • tool-calling
  • uncensored
  • unfiltered
  • vision
  • vision-language
  • vllm

Gemma-4-12B-it AEON Abliterated — K=4 Biprojection (FP8)

The near-lossless 8-bit FP8 quantization of our K=4 biprojection abliteration of google/gemma-4-12B-it. Matches BF16 capability (MMLU, HumanEval, IFEval all within noise) at ~half the size and 1.6× the throughput. Loads in vLLM with --quantization modelopt. ~13 GB.

This is the recommended variant when quality matters. For maximum speed/smallest size (with a measured reasoning trade-off) see the NVFP4 sibling.

Refusal behavior has been removed; the model responds to a wide range of prompts the base would decline. Operator-side safety is your responsibility — see the arbitration clause at the bottom.


🚀 QuickStart

Complete copy-paste recipe for DGX Spark / Blackwell — pull the container, download the model, serve. This is a plain-decode variant (no speculative drafter — MTP is net-neutral on the GB10), so there is no drafter to pull and no --speculative-config.

# 1. Pull the unified AEON vLLM container (vLLM 0.24.0, sm_121a)
docker pull ghcr.io/aeon-7/aeon-vllm-ultimate:latest

# 2. Download this model (fresh)
huggingface-cli download AEON-7/Gemma-4-12B-it-AEON-Abliterated-K4-FP8 \
  --local-dir ./aeon-model

# 3. No drafter — this is plain autoregressive decode (no --speculative-config)

# 4. Serve (OpenAI-compatible API on :8000)
docker run -d --name aeon-gemma12b --gpus all --ipc=host --shm-size=16g --net=host \
  -v $(pwd)/aeon-model:/model:ro \
  --entrypoint vllm \
  ghcr.io/aeon-7/aeon-vllm-ultimate:latest \
  serve /model \
    --served-model-name gemma12b \
    --quantization modelopt \
    --attention-backend triton_attn \
    --reasoning-parser gemma4 \
    --tool-call-parser gemma4 \
    --enable-auto-tool-choice \
    --kv-cache-dtype fp8_e4m3 \
    --max-model-len 8192 \
    --max-num-seqs 16 \
    --gpu-memory-utilization 0.70 \
    --enable-prefix-caching \
    --enable-chunked-prefill \
    --trust-remote-code

Unified-memory gpu-util: On the DGX Spark's unified memory keep --gpu-memory-utilization at 0.6-0.7; above ~0.8 the shared CPU+GPU pool page-thrashes. Discrete-VRAM GPUs can run higher.

Then call it (OpenAI-compatible):

curl -s http://localhost:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"gemma12b","messages":[{"role":"user","content":"Hello!"}],"max_tokens":128}' \
  | python3 -c "import json,sys; print(json.load(sys.stdin)['choices'][0]['message']['content'])"

Plain vLLM (pip, non-container)

pip install "vllm>=0.23.0" "nvidia-modelopt>=0.43" "transformers>=5.10"
vllm serve AEON-7/Gemma-4-12B-it-AEON-Abliterated-K4-FP8 \
  --quantization modelopt --attention-backend triton_attn \
  --reasoning-parser gemma4 --tool-call-parser gemma4 --enable-auto-tool-choice \
  --enable-chunked-prefill --enable-prefix-caching \
  --kv-cache-dtype fp8_e4m3 \
  --max-model-len 8192 --max-num-seqs 16 \
  --gpu-memory-utilization 0.70 --trust-remote-code

⚠️ Needs vLLM ≥ 0.23.0 (for the Gemma4UnifiedForConditionalGeneration loader; landed in 0.22.2, validated on 0.23.0) and an FP8-capable GPU (Hopper H100, or Blackwell GB10 / B100 / B200 / RTX 50-series). The AEON vLLM Ultimate container ships the loader pre-built for DGX Spark sm_121a on vLLM 0.24.0.

That's it. Everything below is detail.


Performance — DGX Spark (v0.24.0, aeon-vllm-ultimate:latest)

Measured on a single DGX Spark (GB10 / Blackwell sm_121a) running ghcr.io/aeon-7/aeon-vllm-ultimate:latest (vLLM v0.24.0, built from source for sm_121a). This is a dense 12B run on plain decode — no speculative drafter: MTP is net-neutral on the GB10 (per-step drafter forward + the 262k-vocab lm_head verify roughly cancels the acceptance win on this hardware), so the production config runs straight autoregressive decode. The strength of this variant is concurrency throughput plus the quant-vs-speed tradeoff shown in the family chart below.

Headline: ~15.8 tok/s single-stream and ~747 tok/s aggregate at c=64 — near-lossless FP8 (per-channel weight / per-token activation) that matches BF16 capability at ~13 GB.

Per-category single-stream (c=1)

Plain decode — no speculative drafter, so draft-acceptance is not applicable (0%).

Categorydecode tok/sTTFT (ms)TPOT (ms)prefill (tok/s)DFlash accept
Coding15.814163.2354n/a (plain decode)
Math15.714563.5457n/a (plain decode)
Reasoning15.814063.3371n/a (plain decode)
Prose15.814163.5285n/a (plain decode)
Natural language15.814563.5304n/a (plain decode)
Extraction / JSON16.214261.7401n/a (plain decode)

Single-stream decode is memory-bandwidth-bound on the GB10's unified LPDDR5X and sits at ~15.7–16.2 tok/s across every prompt category — the dense 12B body has to stream all FP8 weights per token regardless of workload.

Aggregate throughput by concurrency

Aggregate throughput scales near-linearly with concurrency, peaking at c=64:

Concurrencyaggregate tok/s (peak category)
c=1~16
c=8~126
c=16~240
c=32~440
c=64~747 (Prose; 730 Coding, 727 Reasoning, 738 Natural language)

This is the real production lever for this variant: batch the GB10 and aggregate throughput climbs to ~747 tok/s at 64 concurrent requests, with no engine crash (see the high-concurrency fix below). Long-context draft acceptance is not reported — this is a plain-decode run with no drafter.

Quant family — speed vs precision

How the four K4 quant variants of this model trade single-stream speed, aggregate throughput, and precision on the same hardware:

FP8 (this variant) is the near-lossless point: it matches BF16 capability (see the eval table below) while running ~2× the single-stream speed of BF16 and reaching ~747 tok/s aggregate. NVFP4 and the NVFP4-FP8 mixed variant push higher aggregate throughput at the cost of measured reasoning quality; BF16 is the slowest. Pick FP8 when quality matters, the 4-bit siblings for max throughput / min size.

What we fixed for the DGX Spark

All AEON models now run on one unified container — ghcr.io/aeon-7/aeon-vllm-ultimate:latest (= :2026-07-01-v0.24.0; rollback :2026-06-18-v0.23.0-dflashfix): vLLM v0.24.0 built from source for sm_121a, merged with the AEON speculative-decoding stack and tuned end-to-end for the GB10's unified-memory Blackwell architecture.

  • Unified container. A single sm_121a-native image loads every correctly-quantized model in the fleet (no per-model image), with the SM120-family CUTLASS FP8/NVFP4 kernels the GB10 actually dispatches to.
  • DFlash high-concurrency fix. The speculative drafter previously crashed at ≥32 concurrent requests (padded-vs-unpadded KV block-table shape mismatch in FlashAttention); we now slice the block-table to the unpadded batch (block_table[:num_reqs]), so spec-decode models scale cleanly to c=64. (A port of upstream PR #43982, which fixed this for MTP but never for DFlash.) This variant runs plain decode and so isn't affected by the drafter, but it shares the same hardened container.

Stock baseline pending fresh vanilla re-bench. No stock / un-optimized vanilla-vLLM baseline exists for this variant yet; a fully-vanilla benchmark on the current version is pending, so all numbers above are from the optimized aeon-vllm-ultimate:latest (vLLM 0.24.0) build.


Why FP8 — measured capability vs BF16

All four axes evaluated through the vLLM serving path (the real thing you'll run), identical prompts/settings for every model.

Full-length eval — MMLU balanced across all 57 subjects (5 each = 285 Q), full 164-problem HumanEval, IFEval-50. All via the vLLM serving path, identical prompts/settings.

ModelMMLU (285)HumanEval-syn (164)HumanEval-fun (164)IFEval (50)
google/gemma-4-12B-it (official base)81.4%99.4%82.9%90%
K4-BF16 (abliterated, full precision)80.4%99.4%83.5%90%
K4-FP8 (this)80.4%99.4%85.4%90%
K4-NVFP4 MLP-only (4-bit sibling)76.8%96.3%76.2%90%

FP8 is statistically identical to the BF16 model — same MMLU (80.4% / 229-of-285, exactly), same HumanEval-syntactic, +noise on HumanEval-functional, same IFEval. This is the defining property: 8-bit FP8 is imperceptible from BF16. (For reference, the abliteration itself is capability-neutral too — K4-BF16 is within ~1pp of Google's official base on every axis.)

Throughput (DGX Spark GB10, FP8 KV cache, greedy)

FP8 (this)BF16NVFP4
Concurrent ×16 aggregate235 tok/s144 tok/s341 tok/s
Single-stream overall15.8 tok/s7.7 tok/s23.6 tok/s
Single-stream TTFT median143 ms—102 ms
Size13 GB24 GB8.5 GB

FP8 is 1.6× faster than BF16 at half the memory. NVFP4 is faster still but trades the reasoning quality shown above. Pick FP8 for quality, NVFP4 for max throughput/min size.

Per-category single-stream (FP8)

Categorydecode tok/sTPOT
summary19.951.5 ms
prose18.254.9 ms
dialogue16.460.6 ms
code14.668.6 ms
reasoning14.372.3 ms
math11.489.4 ms

Quantization methodology

PropertyValue
ToolNVIDIA ModelOpt 0.43.0
ConfigFP8_PER_CHANNEL_PER_TOKEN_CFG
FormatFP8 E4M3, per-channel weight scales + per-token dynamic activation scales
Why per-channel/per-tokenGemma-4 attention activations carry large per-channel outliers; per-channel weight + per-token activation scaling absorbs them (per-tensor FP8 would clip them)
Calibration512 × CNN/DailyMail validation @ 1024 tokens, native sm_121a
Model size~13 GB (from 23.9 GB BF16 — 46% reduction)
RuntimevLLM --quantization modelopt via Gemma4UnifiedForConditionalGeneration

Kept at full BF16

lm_head, model.language_model.embed_tokens, model.embed_vision*, model.embed_audio*, model.vision_embedder*. All language-stack attention + MLP linears (48 layers) are FP8.

vLLM loader note (for reproducers)

Google's Gemma-4-12B is the encoder-free Gemma4UnifiedForConditionalGeneration. ModelOpt's HF export needs two touch-ups to load in vLLM: (1) rename the vision keys to vLLM's vision_embedder.* layout, and (2) add model.vision_embedder* to the quant ignore list so the patch embedder stays BF16. Both are scripted in make_vllm_ready.py (gemma4-nvfp4/). Requires vLLM ≥ 0.23.0 (loader landed in 0.22.2; validated on 0.23.0).

Abliteration methodology (inherited from the BF16 base)

K=4 multi-direction norm-preserving biprojection (extends TrevorJS's recipe). Basis layers L24/L37/L39/L26 (top-K by SNR), o_proj + mlp.down_proj edited on 24/48 layers, scale=1.0. See the BF16 card for the full biprojection math + capability comparison vs base.

Behavior

  • Benign prompts: indistinguishable from BF16 (capability table above confirms it numerically).
  • Previously-refused prompts: full responses, usually after a brief disclaimer paragraph.
  • Tool calling via --enable-auto-tool-choice --tool-call-parser gemma4.
  • Multimodal vision path preserved (BF16).

Available formats

VariantRepoPrecisionSizePick when
FP8 (this)…-K4-FP8FP8 E4M313 GBQuality matters — near-lossless, matches BF16
Mixed NVFP4+FP8…-K4-NVFP4-FP8NVFP4 MLP + FP8 attn9.3 GBSmallest + fastest — MLP-only quality, 20% less size, 34% faster
NVFP4 MLP-only…-K4-NVFP4NVFP4 MLP + BF16 attn11.7 GBSuperseded by Mixed NVFP4+FP8 (above)
BF16…-K4-BF16bfloat1624 GBFine-tuning, non-Blackwell hardware

Acknowledgements

TrevorJS (biprojection), p-e-w/heretic (abliteration framework), NVIDIA ModelOpt (FP8 toolkit + Gemma-4 reference recipes), AEON-7 (K-direction extension, FP8 recipe + vLLM loader fixes, capability eval).

License

Inherits the Gemma license.


Arbitration Clause

By accessing, downloading, using, running inference on, fine-tuning, merging, quantizing, distributing, integrating, or otherwise interacting with this model, you acknowledge and agree to the following:

  1. Sole Responsibility. You, the user, are solely and exclusively responsible for (a) every prompt you or your downstream system issue to this model, (b) every response this model produces in reply, (c) every downstream action taken by you, your systems, your agents, or your users in reliance on those responses, and (d) any harm — direct, indirect, consequential, foreseeable, or otherwise — that results from any of the above.

  2. No Warranty. This model is provided strictly "AS IS", without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, non-infringement, safety, alignment, factual accuracy, or legal compliance in any jurisdiction. No contributor, author, publisher, or hosting platform assumes liability of any kind for outputs or downstream use.

  3. Legal Compliance. You are responsible for ensuring that your use of this model complies with all applicable laws, regulations, terms of service, industry codes of conduct, professional ethical standards, and organizational policies in every jurisdiction in which you operate or in which your outputs may be received. The unaligned nature of this model does not grant you any legal authorization you did not already have.

  4. Operational Safety Layer. An uncensored model is not a toy. You are expected to implement appropriate downstream safety layers proportionate to your deployment context, including but not limited to: input validation, output filtering, content moderation, audit logging, rate limiting, access controls, and human-in-the-loop review for high-risk workflows. A production deployment of this model without such layers is unsafe by construction and is not a supported use case.

  5. Heightened Duty of Care. The absence of internal refusal behavior means the duty of care that would ordinarily rest partly with the model rests entirely with you. You are expected to exercise greater — not lesser — caution, forethought, and ethical discipline when operating this model than you would operate a base aligned model. If you are uncertain whether your contemplated use is ethical, legal, or wise, the correct action is to not make the request.

  6. No Endorsement of Outputs. The authors, contributors, and publishers of this model do not endorse, adopt, or take responsibility for any specific output this model produces. Outputs are a stochastic function of the prompt, the weights, and the sampler state — not a statement of position by any human.

  7. Arbitration. Any dispute, claim, or controversy arising out of or relating to the use of this model, its outputs, or this clause shall be resolved through binding individual arbitration under the rules of a mutually agreed arbitration body (or, absent agreement, the American Arbitration Association's Consumer Arbitration Rules), waiving any right to a jury trial, class action, representative action, or consolidated proceeding. Venue shall be the jurisdiction of the disputing party bringing the claim. Costs and attorneys' fees shall be allocated per the applicable arbitration rules. This clause does not expand, and where legally prohibited does not establish, any liability in the other direction; it limits how the user may proceed when alleging harm tied to their own use of this model.

  8. Indemnification. You agree to indemnify, defend, and hold harmless the authors, contributors, and publishers of this model from and against any claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising from or related to your use of the model or your breach of this clause.

  9. Severability. If any provision of this clause is held unenforceable in a given jurisdiction, the remaining provisions remain in full force in that jurisdiction, and the unenforceable provision is replaced by the closest enforceable equivalent consistent with the original intent.

  10. Acceptance. Your use of this model constitutes your acceptance of this clause in full. If you do not accept, do not use the model.

This model is a tool with no opinions of its own. You supply the opinions. You supply the judgement. You supply the ethics. The outputs carry your fingerprints, not the model's.


☕ Support the work

If this release has been useful, tips are deeply appreciated — they go directly toward more compute, more models, and more open releases.

Ethereum L2s (Base, Arbitrum, Optimism, Polygon, etc.) and EVM-compatible tokens can be sent to the same Ethereum address.

HUGGING FACE

上游数据

HF 下载量683
HF 点赞量9

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
AEON-7
最近更新
2026/07/15
最新创建
2026/06/06
HF 趋势
未知
数据快照
2026/09/17
版本
未知
许可证
gemma