--- language: - en - zh license: apache-2.0 library_name: transformers pipeline_tag: image-text-to-text tags: - agnes-ai - uncensored - reasoning - multimodal - fp8 - w8a8 - vllm - sglang - long-context - hybrid-attention --- # Agnes 3.0 Flash FP8 (W8A8, calibrated) Full FP8 quantization of Agnes-3.0-Flash Preview (33B parameters, multimodal). Weights and activations are FP8 e4m3 with static per-tensor scales, calibrated with LLM Compressor. This gives you both the model and context at FP8. Text, image, and video inputs are preserved, and the chat template is upstream's. The Sglang patch from the original model checkpoint is included here as well. *Note that this model seems to be naturally uncensored. I ran Heretic's assessment and it gave 0/300 refusals. So no need to abliterate this model. And with that, my usual warning here:* > **Uncensored model:** the language checkpoint has undergone abliteration to reduce refusal behavior. Treat outputs as untrusted, apply application-level safeguards, and do not assume the model will decline harmful requests. > **User responsibility:** this model is provided without warranty. The creators, uploaders, and maintainers are not responsible or liable for what others generate, publish, deploy, or otherwise do with this abliterated model. Users must operate it responsibly, apply appropriate safeguards, comply with applicable law, and respect third-party rights. This model is for research purposes only and is not intended for production use. ## Quantization recipe | Field | Value | |---|---| | Format | `compressed-tensors`, `float-quantized` | | Weights | FP8 (e4m3), per-tensor symmetric, static | | Activations | FP8 (e4m3), per-tensor symmetric, static, calibrated | | Targets | all `Linear` modules except the protected list below | | Toolkit | llm-compressor 0.13.0, compressed-tensors 0.18.0 | | Calibration | `HuggingFaceH4/ultrachat_200k`, split `train_sft`, revision `8049631c405ae6576f93f445c6b8166f76f5505a` | | Calibration size | 512 samples, max sequence length 2048, batch 1, seed 42 | Kept at original precision: `lm_head`, `embed_tokens`, the full `model.visual` tower, the recurrent-state layers of delta attention (`conv1d`, `in_proj_a`, `in_proj_b`), and every MTP weight (shipped unquantized in `model-mtp.safetensors`). `agnes_quantization_manifest.json` records the full build, including the SHA-256 of the calibration prompt ids used, so the run is reproducible piece for piece. `recipe.yaml` is the machine-readable form of the table above. ## Why the quantization runs on a fused checkpoint The upstream FFN carries two branches per layer: a main branch (width 17,408) and a parallel branch (width 2,048). This checkpoint folds them into a single set of projections per layer (`intermediate_size: 19456`, `parallel_ffn_intermediate_size: 0`). Fusing in bf16 is concatenation and it is exact: gate/up join along the output dimension, down along the input dimension. Static per-tensor FP8 scales cannot be merged after the fact, because each branch carries its own scale and a single fused matrix has room for exactly one. Quantizing the fused layout means every serving tensor is quantized once, from the values the model will actually run, and calibration observes the same matrix geometry as inference. ## Numerics The fused layout measures 5.9e-4 full-vocabulary KL against the two-branch layout at identical weights. The residual comes from reduction order in the fused projections, and it sits below the 6.5e-4 that independent inference stacks produce from the same unquantized checkpoint. Perplexity moves 17.05 to 17.07 across the fusion. The FP8 conversion itself has no formal before/after eval on this card. Run your own benchmarks before trusting it for a workload. ## Files | Group | Contents | |---|---| | Weights | `model-00001-of-00002.safetensors`, `model-00002-of-00002.safetensors`, `model-mtp.safetensors`, `model.safetensors.index.json` | | Config | `config.json`, `generation_config.json`, custom `*_agnes.py` modeling and processor code | | Tokenizer | `tokenizer.json`, `tokenizer_config.json`, `chat_template.jinja` | | Provenance | `recipe.yaml`, `agnes_quantization_manifest.json` | | Extras | `sglang_patch/`, `serve.sh` | The checkpoint is standard `compressed-tensors float-quantized`, so any engine that reads that format can load it. ## Upstream and license Derived from the `Agnes-AI/Agnes-3.0-Flash` Preview checkpoint at revision `891ce4f9ffb89b22888aa7fcc2bb2f3618867684`, Apache 2.0, unchanged. This is a community quantization and is not affiliated with Agnes AI. The open-weight Preview differs from the production/API model, and the upstream benchmark figures below describe the Preview checkpoint before quantization. --- **The original upstream model card follows, unchanged.**
# Agnes-3.0-Flash Preview ## Model version clarification This repository contains an earlier open-weight **Preview checkpoint** of Agnes 3.0 Flash. It is distinct from the newer **production/API checkpoint** listed on [Artificial Analysis](https://artificialanalysis.ai/models/agnes-3-0-flash). The Preview release has **33B parameters** and a context window of **262,144 tokens**. The production/API model uses a different checkpoint and configuration, with a **1M-token context window**. Its benchmark results should not be attributed to the Preview weights released here. This repository was initially published as `Agnes-3.0-Flash` without the `Preview` suffix. The model card now explicitly identifies this release as **Agnes-3.0-Flash Preview** to clarify the distinction between the open-weight release and the production/API model. The specifications and Agnes benchmark results below refer to the **Preview checkpoint**. Hello! 👋 Today we are introducing **Agnes-3.0-Flash Preview**, an **open-weights multimodal preview model** built for people who want flagship-class reasoning without flagship-class hardware. Highlights: - **Competitive across core capabilities.** Agnes-3.0-Flash Preview posts competitive results across reasoning, coding, and instruction-following evaluations. - **Built for demanding work.** A **262 144-token context window**, adjustable reasoning effort, tool calling, and **text, image and video** understanding. ### Benchmarks > **Benchmark scope:** The Agnes results in the chart and table below belong to the **Agnes-3.0-Flash Preview open-weight checkpoint** released in this repository. They are not results for the production/API Agnes 3.0 Flash model listed on Artificial Analysis.
| Benchmark | Agnes-3.0-Flash Preview | Qwen3.6-35B-A3B 35B / 3B active |
Kimi K2.5 1T / 32B active |
Muse Glimmer 30B |
Qwen3.5 27B |
DeepSeek V4 Flash 0731 284B / 13B active |
Qwen3.8 27B |
Gemini 3.5 Flash undisclosed |
Qwen3.8 Flash Next 125B / 6B active |
MiniMax M3 428B / 23B active |
|---|---|---|---|---|---|---|---|---|---|---|
| IFBench | 74.20 | 64.4 | 43.7 | 77.0 | 75.6 | 75.8 | 79.5 | 76.3 | 81.3 | 82.9 |
| SciCode | 38.08 | 35.8 | 39.6 | 43.6 | 39.5 | 50.3 | 46.6 | 53.1 | 50.6 | 45.4 |
| GPQA Diamond | 85.05 | 84.1 | 78.9 | 83.5 | 85.8 | 90.8 | 90.5 | 92.2 | 92.3 | 92.9 |
| AA-LCR | 68.33 | 66.7 | 59.0 | 80.0 | 72.3 | 79.7 | 82.0 | 81.0 | 79.7 | 74.0 |
| AA-Omniscience Accuracy | 23.00 | 18.8 | 22.9 | 27.0 | 20.7 | 40.4 | 18.4 | 51.4 | 24.5 | 16.7 |
Higher is better for every row. Header parameter figures mix total and active counts, and harnesses and snapshot dates differ across sources, so treat cross-column comparisons as reference values rather than a controlled head-to-head evaluation.
## Architecture Agnes-3.0-Flash Preview is a hybrid-attention decoder: three of every four layers run a gated delta rule (recurrent, with per-layer state independent of sequence length), and the fourth runs standard global attention. Only 18 of the 72 layers therefore hold a KV cache that grows with context. | | | |---|---| | Context length | **262 144** tokens | | Decoder layers | 72 = 54 delta-rule recurrent + 18 global attention, alternating 3 : 1 | | Hidden size | 5120 | | Global attention | 24 query heads / 4 KV heads (6 : 1 GQA), head dim 256; RMS-norm on q and k, sigmoid-gated output | | Delta-rule layers | 16 key heads / 48 value heads, head dim 128; causal conv (kernel 4) in front, gated RMS-norm; recurrent state in fp32 | | Feed-forward | SwiGLU, intermediate size 17408; plus a parallel SwiGLU 2048 branch in every layer | | Positions | 3-axis rotary (text / height / width), interleaved mrope sections 11 : 11 : 10, base 1e7, applied to the first 25 % of each head dim (64 dims) | | Vocabulary | 248 320 | | Vision tower | 27 layers, hidden 1152, patch 16, 2 × 2 spatial merge, projected to 5120 | ## QuickstartAgnes-3.0-Flash Preview ships its own model implementation. Always load it with trust_remote_code=True.