Ornith 1.0 35B NVFP4 on RTX 5090 — vLLM MoE, Marlin, CPU KV Offload

·5 min readlocal-ai

TL;DR: Ornith-1.0-35B is a Mixture-of-Experts coding model that thinks like a 27B but only activates ~3B params per token. NVFP4-quantized, it serves on one RTX 5090 with vLLM’s Marlin MoE backend and an OffloadingConnector that spills completed KV blocks to 32 GB of host RAM — full 262K context, no TensorRT-LLM.

This is the command that works:

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 ./ressl/Ornith-1.0-35B-NVFP4 \
--quantization modelopt \
--moe-backend marlin \
--attention-backend flashinfer \
--max-model-len 262144 \
--gpu-memory-utilization 0.80 \
--max-num-seqs 2 \
--enable-chunked-prefill \
--max-num-batched-tokens 4096 \
--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-transfer-config '{"kv_connector": "OffloadingConnector", "kv_role": "kv_both", "kv_connector_extra_config": {"block_size": 2096, "cpu_bytes_to_use": 32000000000}}' \
--served-model-name Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.gguf

Tuned for one RTX 5090 (SM120). The headline trick is the OffloadingConnector — a 32 GB CPU tier that catches completed KV blocks the GPU would otherwise evict, so long agentic sessions keep their prefix cache across tool-call turns instead of recomputing.

The Model

Ornith-1.0-35B is DeepReinforce’s self-scaffolding agentic-coding model. The key number is the active-parameter count, not the total:

SpecValue
ArchitectureQwen3.5-MoE
Total params34.7 B
Active params / token~3 B
Context262,144
BehaviorReasoning + tool calling

Because each token only routes through ~3B of the 34.7B, decode FLOPs look like a small model while the effective knowledge is closer to a dense 27B. That is what makes it practical on a single consumer GPU.

The NVFP4 checkpoint: ressl/Ornith-1.0-35B-NVFP4 — post-training quantization of deepreinforce-ai/Ornith-1.0-35B via the NVIDIA Model Optimizer. Weights and activations drop to NVFP4 (E2M1 with two-level micro-block scaling), cutting the 35B model to roughly 18 GB on disk — comfortably inside 32 GB of GDDR7 with room for KV cache.

Marlin MoE Backend

--moe-backend marlin is the critical MoE knob. Dense NVFP4 layers ride the standard FP4 Tensor Core path; the expert layers need a fused-MoE kernel that understands NVFP4 weights. Marlin’s MoE kernel packs quantized expert weights, dequantizes inside the GEMM, and fuses the top-k gating reduction — one kernel launch per layer instead of per-expert scatter.

Without an explicit --moe-backend, vLLM picks a default that may fall back to a slower emulation path on Blackwell. Marlin is the validated, throughput-oriented choice for NVFP4 MoE on SM120.

OffloadingConnector

The big-memory lever. --kv-transfer-config wires up the OffloadingConnector, which extends the GPU prefix cache with a CPU tier:

  • Completed GPU KV blocks are copied into pinned host memory via DMA (cudaMemcpyAsync), asynchronously alongside model compute
  • Hits in the CPU tier are promoted back to GPU on demand
  • kv_role: kv_both means this instance both produces and consumes offloaded blocks

This config reserves 32 GB of host RAM (cpu_bytes_to_use) with a 2096-token offload block size (block_size, a multiple of the GPU block size). For agentic-coding sessions — long system prompts, repeated file reads, multi-turn tool calls — the offload tier keeps old prefixes warm so the GPU doesn’t recompute them.

Flag Breakdown

FlagValuePurpose
--quantizationmodeloptNVIDIA ModelOpt NVFP4 format
--moe-backendmarlinFused MoE kernel with NVFP4 support
--attention-backendflashinferFlashInfer kernel library, auto-backend selection
--max-model-len262144Full native context, enabled by CPU offload tier
--gpu-memory-utilization0.8080% — leaves headroom for offload DMA staging
--max-num-seqs2Two concurrent sequences
--max-num-batched-tokens4096Chunked prefill batch limit
--enable-cumem-allocatoronCUDA memory allocator — finer-grained than the default caching allocator
--kv-cache-dtypefp8_e4m3FP8 KV cache — halves KV memory vs FP16
--enable-chunked-prefillonSplit long prompts into chunks
--enable-prefix-cachingonReuse KV cache for shared prefixes
--reasoning-parserqwen3Parse Qwen3 reasoning blocks
--tool-call-parserqwen3_xmlParse Qwen3 XML tool-call format
--enable-auto-tool-choiceonAutomatic tool selection
--kv-transfer-configOffloadingConnector32 GB CPU KV tier, 2096-token blocks

Environment Variables

VariablePurpose
NCCL_P2P_DISABLE=1Disable NVLink P2P — single GPU, avoids NCCL warnings
VLLM_SKIP_P2P_CHECK=1Skip P2P check — clean startup on single-GPU
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:TrueExpandable GPU segments — reduces fragmentation
VLLM_USE_FLASHINFER_SAMPLER=1Sorting-free sampling — faster top-k/top-p

Served Model Name

--served-model-name Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.gguf aliases the instance under a name existing tooling already points at. Clients expecting that GGUF identifier hit this NVFP4 vLLM server transparently — drop-in replacement, FP4 throughput instead of GGUF decode.

Parsers

--reasoning-parser qwen3 extracts Ornith’s thinking block as structured output; --tool-call-parser qwen3_xml parses the XML-flavored tool-call format (distinct from qwen3_coder). With --enable-auto-tool-choice, the server surfaces both reasoning and tool calls through the OpenAI-compatible API.


References

  1. ressl/Ornith-1.0-35B-NVFP4 — Robert Ressl, Hugging Face — https://huggingface.co/ressl/Ornith-1.0-35B-NVFP4
  2. deepreinforce-ai/Ornith-1.0-35B — Hugging Face — https://huggingface.co/deepreinforce-ai/Ornith-1.0-35B
  3. Ornith-1.0–35B: The MoE Model That Runs Like 3B, Thinks Like 27B — xhinker, Medium — https://xhinker.medium.com/ornith-1-0-35b-the-moe-model-that-runs-like-3b-thinks-like-27b-1e7a0fe5a64e
  4. KV Offloading Usage Guide — vLLM Documentation — https://docs.vllm.ai/en/latest/features/kv_offloading_usage/
  5. Inside vLLM’s New KV Offloading Connector — vLLM Blog (January 8, 2026) — https://vllm.ai/blog/2026-01-08-kv-offloading-connector
  6. Introducing NVFP4 for Efficient and Accurate Low-Precision Inference — NVIDIA Developer Blog — https://developer.nvidia.com/blog/introducing-nvfp4-for-efficient-and-accurate-low-precision-inference/
  7. NVIDIA Model Optimizer — https://github.com/NVIDIA/Model-Optimizer
  8. vLLM Engine Args — https://docs.vllm.ai/en/latest/serving/engine_args.html

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