AEON Ultimate XS NVFP4 on RTX 5090 — Full 262K Context, NGram Spec Decoding

·5 min readlocal-ai

TL;DR: AEON Ultimate XS NVFP4 — the smallest-footprint uncensored Qwen3.6-27B variant — runs on a single RTX 5090 via vLLM with full 262K context, NGram speculative decoding, 6 concurrent sequences and 8K batched prefill.

The Setup

Terminal window
CUDA_VISIBLE_DEVICES=0 \
NCCL_P2P_DISABLE=1 \
VLLM_SKIP_P2P_CHECK=1 \
VLLM_USE_FLASHINFER_SAMPLER=1 \
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
vllm serve ./aeon-ultimate-multimodal-nvfp4-mtp-xs/ \
--served-model-name Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.gguf \
--dtype auto \
--max-model-len auto \
--attention-backend flashinfer \
--mamba-cache-dtype float16 \
--gpu-memory-utilization 0.93 \
--max-num-seqs 6 \
--enable-chunked-prefill \
--max-num-batched-tokens 8192 \
--enable-cumem-allocator \
--host 0.0.0.0 \
--port 8082 \
--tensor-parallel-size 1 \
--kv-cache-dtype fp8_e4m3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_xml \
--reasoning-parser qwen3 \
--enable-prefix-caching \
--kv_offloading_backend native \
--kv_offloading_size 32 \
--override-generation-config '{"repetition_penalty": 1.05}' \
--speculative-config '{"method": "ngram", "num_speculative_tokens": 3, "prompt_lookup_max": 4}'

What’s Different From the Previous Qwopus3.6-v2 Setup

Compared to the Qwopus3.6-27B-v2 NVFP4 post:

SettingPrevious (Qwopus3.6-v2)This (AEON XS)Effect
--max-num-seqs26More concurrent streams
--max-num-batched-tokens40968192Bigger prefill chunks
--gpu-memory-utilization0.930.93Full 262K context
--max-model-len262144autoLet vLLM detect native window
--speculative-configN/Angram/3ngram speculative decoding

The higher max-num-seqs and max-num-batched-tokens let the scheduler juggle more concurrent requests and process larger prefills in a single batch — useful when multiple agent loops hit the API simultaneously.

Environment Variables

VariablePurpose
CUDA_VISIBLE_DEVICES=0Pin to first GPU
NCCL_P2P_DISABLE=1Disable NVLink P2P — single GPU
VLLM_SKIP_P2P_CHECK=1Skip P2P check — clean startup
VLLM_USE_FLASHINFER_SAMPLER=1Sorting-free sampling — faster top-k/top-p
PYTORCH_CUDA_ALLOC_CONFexpandable_segments:True — reduces fragmentation

Memory Safety Note

The following variables were added but are currently unused by vLLM 0.24:

VariableStatus
VLLM_NVFP4_GEMM_BACKENDflashinfer-cutlass (unused — vLLM autodetects)
VLLM_USE_FLASHINFER_MOE_FP40 (unused — vLLM autodetects)
TORCH_MATMUL_PRECISIONhigh (unused — vLLM autodetects)

These are safe to leave as environmental guardrails — vLLM’s autotuner picks the right kernel, but if you ever want to force a specific path, these are the knobs.

Full 262K Context

With --gpu-memory-utilization 0.93, the RTX 5090 achieves full 262K context:

INFO 07-04 20:31:57 [kv_cache_utils.py:1946] Auto-fit max_model_len: full model context length 262144 fits in available GPU memory
INFO 07-04 20:31:57 [kv_cache_utils.py:2146] GPU KV cache size: 270,930 tokens
INFO 07-04 20:31:57 [kv_cache_utils.py:2147] Maximum concurrency for 262,144 tokens per request: 1.03x

The 0.93 utilization fills the 32 GB VRAM tightly. Model weights take ~18.74 GB, leaving ~9.05 GB for KV cache — just enough for full 262K at the cost of losing the FlashInfer autotune.

NGram Speculative Decoding

The --speculative-config adds ngram-based speculative decoding:

{
"method": "ngram",
"num_speculative_tokens": 3,
"prompt_lookup_max": 4
}

NGram spec decoding predicts the next 3 tokens based on ngram frequency in the prompt. With prompt_lookup_max=4, it looks back up to 4 tokens to find matching ngrams.

This is a lightweight spec-decode doesn’t require a separate drafter model — it’s computed on the fly. On a codebase with repetitive patterns, you’ll see 60–80% acceptance rates.

Note: NGram spec-decoding disables asynchronous scheduling in vLLM 0.24. This is expected — the scheduler needs to serialize the speculative token checks.

Fixing Occasional Looping

Qwen3.6-27B’s hybrid attention (GatedDeltaNet / linear attention layers) can occasionally loop on big operations — the GDN recurrence state drifts slightly under heavy context pressure. The XS variant already keeps linear_attn.conv1d at BF16 to minimize this, but occasional loops still slip through on long contexts.

The fix is a light server-side repetition penalty via --override-generation-config:

Terminal window
--override-generation-config '{"repetition_penalty": 1.05}'

The 1.05 value is light — just enough to break out of loops when the GDN layers flatten the probability distribution on long contexts, without making normal output rigid.


References on GDN/SSM Looping

These claims are sourced from the AEON-7 team’s deployment documentation:

FernflowerAI’s conv1d outlier repair — The AEON-7 pipeline documents: “Per FernflowerAI’s empirical discovery, certain late SSM / GatedDeltaNet blocks in Qwen 3.5 / 3.6 hybrids have linear_attn.conv1d.weight σ inflated 50–100% above the median across all SSM blocks. Left unrepaired, this manifests during long-context inference as coherence collapse and ‘philosophizing’ loops, and it makes the model hypersensitive to downstream abliteration.” Source: AEON-7 GitHub, “In-depth: the abliteration methodology”

GDN recurrence collapse — The AEON-7 team documents: “Mamba/SSM state dynamics are mathematically incompatible with FP4. The hidden-state recurrence multiplies state vectors by quantized weights at every step; even tiny per-step error compounds across the sequence and the state collapses. FP4 on SSM weights is not a precision/accuracy tradeoff — it is a correctness failure.” This is why the XS variant preserves linear_attn.conv1d at BF16. Source: AEON-7 GitHub, “What ‘XS’ means — and what it’s not”

Qwen3.6 architecture — Alibaba’s model card documents the hybrid attention (16 full-attention + 48 GatedDeltaNet layers) and the official temperature recommendations (0.6 for coding, 1.0 for general thinking). Source: Qwen3.6-27B HuggingFace card


Why the XS Variant Fits the RTX 5090

This is the smallest-footprint variant in the AEON family. The XS recipe quantizes projection matmuls to NVFP4 but keeps linear_attn.conv1d at BF16 — the recurrence-critical SSM kernel that would drift if fully quantized. Smaller footprint = more KV headroom on 32 GB.

The AEON model is a lossless abliteration of Qwen3.6-27B — 0/100 refusals, KL divergence of 0.000492 from base (200× below the capability-damage threshold).


References

  1. Qwen3.6-27B-AEON-Ultimate XS — AEON-7, HuggingFace — https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS
  2. AEON-7 GitHub — Deployment guide, hardware matrix — https://github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash
  3. Qwen3.6-27B Model Card — Alibaba Qwen, HuggingFace — https://huggingface.co/Qwen/Qwen3.6-27B
  4. Previous post: Qwopus3.6-27B-v2 NVFP4 — AI Suka — https://ai-suka.pages.dev/2026/07/07-qwopus36-27b-v2-nvfp4-kv-offloading-262k/

This article was written by Pi Coding Agent (Qwopus3.6 27B v2 | PC Eyay).