{"slug": "anthropic-banned-me-for-creating-my-inference-engine-for-qwen-4", "title": "Anthropic banned me for creating my inference engine for Qwen 4", "summary": "A developer released seppia, a single-binary C++20 and CUDA inference engine for Qwen4-35B-A3B and Inkling-2-Mini that holds 1,048,576 native context tokens on one 24 GiB GPU using SealKV 2-bit trellis-coded KV compression, and stated that Anthropic banned the developer for developing it, prompting a move to Gemini Neon. The project reports 470.0 tok/s live interactive chat and up to 568.7 tok/s greedy HumanEval on a single RTX 4090, with the full stack loaded in 23.0 GiB VRAM, and streams Qwen4's 20.5B n-gram table from host RAM at 0.00 GiB VRAM. The engine ships an OpenAI-compatible HTTP server and built-in chat UI, targets RTX 3090 sm_86, RTX 4090 sm_89 and Blackwell sm_120a, and is labeled a super early beta with expected breaking CLI changes.", "body_md": "### Bare-metal C++20 and CUDA LLM inference for Qwen4-35B-A3B and Inkling-2-Mini with 1M context on one 24 GiB GPU\n\n| [**Why seppia**](#about) | [** 1M Context Quickstart**](#run-1m-context-in-60-seconds) | [** How 1M Fits in 24 GiB**](#how-1m-context-fits-in-24-gib) | [** Benchmarks**](#benchmarks) | [** Build**](#build) | [** References**](#references--credits) |\n\nWarning\n\n**Super early beta.** `seppia` is under active development. Expect rough edges and breaking CLI changes.\n\n**Anthropic has banned us for developing this, so we are now using Gemini Neon.**\n\n**You should not need a $30,000 datacenter GPU or a Python stack to run frontier MoEs at hardware speed.**\n\n`seppia` is a single-binary C++20 and CUDA inference engine for [Qwen4-35B-A3B](https://huggingface.co/Qwen/Qwen4-35B-A3B) and [Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini). It holds 1,048,576 native context tokens on one 24 GiB GPU with [SealKV](https://arxiv.org/abs/2612.02036) trellis-coded KV compression and streams Qwen4's 20.5B n-gram table from host RAM at `0.00 GiB` VRAM. Native [DFlash2](https://github.com/z-lab/dflash) and [DSpark](https://arxiv.org/abs/2607.05147) drafters accelerate decoding behind an OpenAI-compatible HTTP server and built-in chat UI.\n\nNative Linux and Windows builds target RTX 3090 `sm_86`, RTX 4090 `sm_89`, and Blackwell `sm_120a`. Sibling project: [sfumato-ai/tela](https://github.com/sfumato-ai/tela).\n\n<sub>1x real-time capture on one 24 GiB RTX 4090: Qwen4-35B-A3B + DFlash2 + 1M native context + CUDA W4A8 Vision all loaded in 23.0 GiB VRAM (1,596 tokens in 3.47 s, 470.0 tok/s live interactive chat; up to 568.7 tok/s greedy HumanEval). [Full 60 FPS MP4](https://github.com/sfumato-ai/seppia/blob/main/docs/assets/seppia-demo-qwen4-1m-470tps.mp4).</sub>\n\n### 1. Build or grab a [Release binary](https://github.com/sfumato-ai/seppia/releases)\n\nRequires CMake 3.28+, Ninja, a C++20 compiler, and CUDA Toolkit 12.4+. Blackwell `sm_120a` requires CUDA 12.8+.\n\n```\ngit clone https://github.com/sfumato-ai/seppia.git && cd seppia\ncmake --preset sm89 && cmake --build --preset sm89 -j   # presets: sm86 (3090), sm89 (4090), sm120 (5090/PRO 6000)\n```\n\nPull `UD-IQ4_XS` from [`unsloth/Qwen4-35B-A3B-GGUF`](https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF) and the optional 754 MB drafter from [`RadixArk/Qwen4-35B-A3B-Dflash2`](https://huggingface.co/RadixArk/Qwen4-35B-A3B-Dflash2). The checkpoint takes 31 GB on disk: 20 GB of weights in shard 1 and 11 GB for the n-gram table in shard 2.\n\n```\nhf download unsloth/Qwen4-35B-A3B-GGUF --include \"*UD-IQ4_XS*\" --local-dir ./Qwen4-35B-A3B/UD-IQ4_XS\nhf download RadixArk/Qwen4-35B-A3B-Dflash2 --local-dir ./Qwen4-35B-A3B/DFlash2\n```\n\nSwap `sm89` for `sm86` on RTX 3090 or `sm120` on Blackwell. Both commands enable 2-bit [SealKV](https://arxiv.org/abs/2612.02036) via `--quant kv=seal2` so the full 1M context fits in 24 GiB VRAM.\n\n```\n# 1M context + DFlash2 speculative decoding (23.0 GiB VRAM)\n./build/sm89/seppia serve ./Qwen4-35B-A3B/UD-IQ4_XS/Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \\\n  --drafter dflash2 --drafter-path ./Qwen4-35B-A3B/DFlash2 \\\n  --quant kv=seal2 --embed-host --ctx 1048576 --port 8003\n\n# 1M context, plain decode (22.0 GiB VRAM)\n./build/sm89/seppia serve ./Qwen4-35B-A3B/UD-IQ4_XS/Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \\\n  --drafter none --quant kv=seal2 --embed-host --ctx 1048576 --port 8003\n```\n\nOpen `http://127.0.0.1:8003` for the built-in chat UI or point any OpenAI-compatible client at `http://127.0.0.1:8003/v1`.\n\n```\nhf download thinkingmachines/Inkling-2-Mini --local-dir ./Inkling-2-Mini\n\n# 1M context + Hybrid DSpark (22.4 GiB VRAM)\n./build/sm89/seppia serve ./Inkling-2-Mini \\\n  --drafter hybrid --quant kv=seal2,dense=int8,vision=int8 --ctx 1048576 --port 8003\n\n# 512K context, plain decode (19.5 GiB VRAM)\n./build/sm89/seppia serve ./Inkling-2-Mini \\\n  --drafter none --quant kv=seal2,dense=int8 --ctx 524288 --port 8003\n```\n\nQwen4-35B-A3B stores a 20.5B-parameter per-layer n-gram embedding table in shard 2. `seppia` maps that 11 GB file into host RAM via read-only hugepage `mmap` with zero startup copy and `0.00 GiB` GPU VRAM. Active rows stream over PCIe overlapped behind layer 0 at `0.005 ms` GPU cost. Keep `00001-of-00002.gguf` and `00002-of-00002.gguf` in the same folder and pass shard 1 to `seppia`; if shard 2 sits elsewhere, pass `--ple-path /path/to/ple.gguf`.\n\nUncompressed KV caches overflow a 24 GiB card well before 1M tokens. `seppia` implements [TurboQuant](https://arxiv.org/abs/2504.19874) and trellis-coded [SealKV](https://arxiv.org/abs/2612.02036) in zero-spill CUDA kernels; `seal2` packs 1M full-attention KV tokens on Inkling-2-Mini into `4.82 GiB` with zero speculative verification violations. Full scaling curves and algorithm details live in [docs/sealkv.md](https://github.com/sfumato-ai/seppia/blob/main/docs/sealkv.md).\n\n| Format | Bits / Val | KV VRAM @ 1M | 4K Mean KL ↓ | Top-1 Match ↑ | Spec Violations | \n|---|---|---|---|---|---|\n| `k8v4` | 6.06 | 12.13 GiB | 0.003474 | 94.12% | — | \n| `tq4` | 4.06 | 8.13 GiB | 0.002057 | 97.06% | 1 | \n| `tq3` | 3.06 | 6.13 GiB | 0.011500 | 97.06% | 2 | \n| `seal4` | 4.41 | 8.82 GiB | 0.001062 | 100.00% | 0 | \n| `seal3` | 3.41 | 6.82 GiB | 0.002047 | 97.06% | 0 | \n| **`seal2`** | **2.41** | **4.82 GiB** | **0.004645** | **97.06%** | **0** | \n\n*Measured on Inkling-2-Mini against unquantized BF16 with `dense=int8`. Lower Mean KL stays closer to BF16 logits; higher Top-1 Match agrees more often on the greedy token; Spec Violations counts speculative verify mismatches against BF16, where `0` is exact.*\n\nAll numbers come from `Francesco/llm-serving-bench`` v3.3`, executed by [` src/cli/bench.cpp`](https://github.com/sfumato-ai/seppia/blob/main/src/cli/bench.cpp) and [` src/cli/bench_suite.cpp`](https://github.com/sfumato-ai/seppia/blob/main/src/cli/bench_suite.cpp). Reproduce any suite with `./build/sm89/seppia bench MODEL --suite short` or `--suite code`.\n\nRuns below were measured on idle local RTX 4090 `sm_89` and RTX 3090 `sm_86` 300 W GPUs with `tokens=256`, `temperature=0.0`, `kv=seal2`, and CUDA Graphs enabled. Throughput is decode speed in **tok/s** where higher is better; values in parentheses show accepted tokens per verify step (**tok/verify**, higher is better).\n\n| Mode | VRAM | Boot | `mt_bench` | `translation` | `code` (HumanEval) | `math_reasoning` | \n|---|---|---|---|---|---|---|\n| Plain ( `--drafter none` ) | 19.5 GiB | 15.2 s | 216.1 tok/s | 216.3 tok/s | 215.5 tok/s | 216.2 tok/s | \n| Native MTP ( `--drafter mtp` , zero download) | 20.9 GiB | 14.6 s | 251.9 tok/s (2.18) | 254.0 tok/s (2.26) | 329.5 tok/s (2.91) | 308.9 tok/s (2.70) | \n| `DFlash2` (`--drafter dflash2` ) | 20.5 GiB | 12.8 s | **276.4 tok/s** (2.92) | **374.9 tok/s** (4.02) | **568.7 tok/s** (6.27) | **547.5 tok/s** (5.95) | \n\nAt `--ctx 1048576` with QSA sparse prefill and `seal2`, RTX 4090 boots in 7.8 s at `22.0 GiB` VRAM, or `23.0 GiB` with `DFlash2`. It passes `2/2` needle recall at 1,009,499 tokens at 25% depth and 1,009,494 tokens at 75% depth, decoding at `97.5–100.9 tok/s` at full 1M depth. Tensor-Core chunked GDN, INT8 MoE, and FP8 dense prefill reach `7,702 tok/s` on 2.3K-token prompts and cut HumanEval median TTFT from `57.8 ms` to `34.2 ms` (`1.69x` faster).\n\n| Mode | VRAM | Boot | `mt_bench` | `translation` | `code` (HumanEval) | `math_reasoning` | \n|---|---|---|---|---|---|---|\n| Plain ( `--drafter none` ) | 19.5 GiB | 8.5 s | 151.2 tok/s | 150.7 tok/s | 152.9 tok/s | 151.7 tok/s | \n| Native MTP ( `--drafter mtp` , zero download) | 21.1 GiB | 6.3 s | — | — | 183.6 tok/s (2.88) | — | \n| `DFlash2` (`--drafter dflash2` ) | 20.5 GiB | 8.8 s | **155.0 tok/s** (3.16) | **193.2 tok/s** (4.01) | **300.2 tok/s** (6.30) | **297.5 tok/s** (6.26) | \n\nAt `--ctx 1048576`, RTX 3090 boots in 4.8 s at `22.4 GiB` VRAM and decodes short prompts at `118.5–122.3 tok/s`.\n\n| Mode | VRAM | Boot | `mt_bench` | `translation` | `code` (HumanEval) | `math_reasoning` | \n|---|---|---|---|---|---|---|\n| Plain ( `--drafter none` ) | 18.3 GiB | 6.3 s | 210.7 tok/s | 210.7 tok/s | 206.3 tok/s | 211.0 tok/s | \n| `DSpark` (`--drafter hybrid` ) | 18.7 GiB | 4.7 s | **252.2 tok/s** (1.87) | 304.7 tok/s (2.52) | 310.6 tok/s (2.47) | 352.9 tok/s (2.96) | \n| `DFlash2` (`--drafter dflash2` ) | 19.0 GiB | 4.5 s | 247.5 tok/s (3.12) | **361.8 tok/s** (4.69) | **328.5 tok/s** (4.12) | **430.5 tok/s** (5.37) | \n\n| Mode | VRAM | Boot | `mt_bench` | `translation` | `code` (HumanEval) | `math_reasoning` | \n|---|---|---|---|---|---|---|\n| Plain ( `--drafter none` ) | 18.6 GiB | 17.1 s | 162.7 tok/s | 161.1 tok/s | 159.2 tok/s | 159.5 tok/s | \n| `DSpark` (`--drafter hybrid` ) | 18.7 GiB | 8.5 s | **201.3 tok/s** (1.90) | **239.0 tok/s** (2.48) | **241.0 tok/s** (2.50) | **274.0 tok/s** (3.01) | \n\nOn RTX 4090, `seal2` with Hybrid `DSpark` and `int8` vision holds 1,048,576 tokens in `22.4 GiB` VRAM and decodes at `108.5 tok/s` at 802K depth. Plain `seal2` reaches 1,400,000 tokens in `23.4 GiB` VRAM; see [docs/sealkv.md](https://github.com/sfumato-ai/seppia/blob/main/docs/sealkv.md) for full depth curves.\n\n```\ncmake --preset dev && cmake --build --preset dev -j    # multi-arch sm_86 + sm_89 + sm_120 -> ./build/dev/seppia\ncmake --workflow --preset cpu-tests                    # CPU unit tests, no GPU needed\n```\n\nEvery `sm_86` and `sm_89` kernel is verified at zero register spills (`STACK:0 LOCAL:0`) via `cuobjdump`.\n\nCLI subcommands: `seppia serve`, `seppia bench`, `seppia validate`, and `seppia suffix-build`. Run `seppia <cmd> --help` for quantization, KV parking, NVMe spill, and vision streaming flags.\n\nDocs: [Architecture Design](https://github.com/sfumato-ai/seppia/blob/main/DESIGN.md) · [Module Map](https://github.com/sfumato-ai/seppia/blob/main/docs/MODULES.md) · [SealKV Benchmarks](https://github.com/sfumato-ai/seppia/blob/main/docs/sealkv.md) · [Roofline Ceilings](https://github.com/sfumato-ai/seppia/blob/main/docs/ceilings.md) · [Perf Engineering](https://github.com/sfumato-ai/seppia/blob/main/docs/PERF_ENGINEERING.md) · [Coding Style](https://github.com/sfumato-ai/seppia/blob/main/docs/CODING_STYLE.md)\n\n| Work | Link | Role in `seppia` | \n|---|---|---|\n| Qwen4-35B-A3B | [Qwen/Qwen4-35B-A3B](https://huggingface.co/Qwen/Qwen4-35B-A3B) | Target hybrid MoE + PLE + QSA architecture | \n| Unsloth GGUF | [unsloth/Qwen4-35B-A3B-GGUF](https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF) | Quantized `UD-IQ4_XS` weights and host-mapped PLE shard | \n| RadixArk DFlash2 | [RadixArk/Qwen4-35B-A3B-Dflash2](https://huggingface.co/RadixArk/Qwen4-35B-A3B-Dflash2) | Pretrained block-diffusion speculative drafter for Qwen4 | \n| Inkling-2-Mini | [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) | Target looped MoE + multimodal ViT architecture | \n| Inkling-2-Mini DFlash2 | [incoai/Inkling-2-Mini-DFlash2](https://huggingface.co/incoai/Inkling-2-Mini-DFlash2) | Block-diffusion drafter and published 1x H200 SGLang reference | \n| Qwen4 Uncensored Quants | [dealignai GGUF](https://huggingface.co/dealignai/Qwen4-35B-A3B-UNCENSORED-GGUF) ·[NVFP4](https://huggingface.co/dealignai/Qwen4-35B-A3B-UNCENSORED-NVFP4) | Community calibrated uncensored Qwen4-35B-A3B checkpoints | \n| tela | [sfumato-ai/tela](https://github.com/sfumato-ai/tela) | Sibling bare-metal C++20/CUDA engine for MiniMax-H3 | \n\n| Work | Link | Role in `seppia` | \n|---|---|---|\n| SealKV | [arXiv:2612.02036](https://arxiv.org/abs/2612.02036) | CPTC `L=10` trellis-coded 2–4 bit KV compression enabling 1M context | \n| TurboQuant | [arXiv:2504.19874](https://arxiv.org/abs/2504.19874) | Hadamard-rotated 3-bit and 4-bit KV cache formats | \n| FlashAttention-2 | [arXiv:2307.08691](https://arxiv.org/abs/2307.08691) | Online-softmax tiled attention for prefill and verification | \n| FlashAttention-3 | [arXiv:2407.08608](https://arxiv.org/abs/2407.08608) | Asynchronous warp-specialized FP8/Hopper+ attention design | \n| FlashDecoding | [Stanford CRFM](https://crfm.stanford.edu/2023/10/12/flashdecoding.html) | Split-K long-context decode parallelization across SMs | \n| Gated DeltaNet | [arXiv:2412.06464](https://arxiv.org/abs/2412.06464) | Linear-attention recurrence design in hybrid attention layers | \n| Hyper-Connections | [arXiv:2409.19606](https://arxiv.org/abs/2409.19606) | Multi-stream residual routing in modern transformer blocks | \n| Native Sparse Attention | [arXiv:2502.11089](https://arxiv.org/abs/2502.11089) | Hardware-aligned block-sparse long-context attention design | \n\n| Work | Link | Role in `seppia` | \n|---|---|---|\n| DFlash & DFlash2 | [arXiv:2602.06036](https://arxiv.org/abs/2602.06036) ·[z-lab/dflash](https://github.com/z-lab/dflash) | Parallel block-diffusion speculative drafter | \n| DSpark | [arXiv:2607.05147](https://arxiv.org/abs/2607.05147) | Native lightweight drafter for Inkling-2-Mini | \n| SuffixDecoding | [arXiv:2411.04975](https://arxiv.org/abs/2411.04975) | Model-free suffix-tree drafting and hybrid speculation | \n| Speculative Decoding | [arXiv:2211.17192](https://arxiv.org/abs/2211.17192) | Exact rejection-sampling verification (Leviathan et al.) | \n| EAGLE-3 | [arXiv:2503.01840](https://arxiv.org/abs/2503.01840) | Multi-layer feature fusion for speculative draft heads | \n| SpecForge | [sgl-project/SpecForge](https://github.com/sgl-project/SpecForge) ·[PR #983](https://github.com/sgl-project/SpecForge/pull/983) | Open drafter training ecosystem and Qwen4 DFlash2 `next_attn_mix` tap spec | \n| Multi-Token Prediction | [arXiv:2404.19737](https://arxiv.org/abs/2404.19737) | Multi-token prediction foundation behind Qwen4 native `blk.40` MTP | \n\n| Work | Link | Role in `seppia` | \n|---|---|---|\n| SGLang | [sgl-project/sglang](https://github.com/sgl-project/sglang) ·[arXiv:2312.07104](https://arxiv.org/abs/2312.07104) | Serving baseline and RadixAttention prefix-caching reference | \n| llama.cpp | [ggml-org/llama.cpp](https://github.com/ggml-org/llama.cpp) | GGUF v3 container spec, K/IQ quantization layouts, Jinja runtime | \n| ik_llama.cpp | [ikawrakow/ik_llama.cpp](https://github.com/ikawrakow/ik_llama.cpp) | Low-bit GGUF quantization formats and consumer-GPU MoE ideas | \n| Strata | [Niko1221/Strata](https://github.com/Niko1221/Strata) ·[PR #7774](https://github.com/Niko1221/Strata/pull/7774) | Consumer-GPU Qwen4 kernel optimizations and host-RAM streaming inspiration | \n| NVIDIA HyperFlare | [NVIDIA/hyperflare-inference](https://github.com/NVIDIA/hyperflare-inference) | Adaptive speculation width ( `PrefixEstimate` ), Tensor-Core QSA/GDN prefill, and Blackwell kernel patterns | \n| DeepSeek-V3 | [arXiv:2412.19437](https://arxiv.org/abs/2412.19437) | Fine-grained MoE routing and native MTP architecture reference | \n| GPTQ | [arXiv:2210.17323](https://arxiv.org/abs/2210.17323) | 4-bit weight quantization format supported natively in `seppia` | \n| CUTLASS | [NVIDIA/cutlass](https://github.com/NVIDIA/cutlass) | Tensor Core MMA layouts, swizzling, and warp-specialized patterns | \n| FlashInfer | [flashinfer-ai/flashinfer](https://github.com/flashinfer-ai/flashinfer) ·[arXiv:2501.01005](https://arxiv.org/abs/2501.01005) | Split-K attention scheduling and writethrough merge patterns | \n| Marlin | [IST-DASLab/marlin](https://github.com/IST-DASLab/marlin) ·[arXiv:2408.11743](https://arxiv.org/abs/2408.11743) | Register-level INT4/FP4 weight unpacking into Tensor Core fragments | \n| Stream-K | [arXiv:2301.03598](https://arxiv.org/abs/2301.03598) | Work-centric persistent GEMM scheduling across SMs | \n| OCP Microscaling (MX) | [OCP MX v1.0 Spec](https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf) | Block-scaled MXFP8 and FP4 tensor formats | \n| vLLM | [vllm-project/vllm](https://github.com/vllm-project/vllm) ·[arXiv:2309.06180](https://arxiv.org/abs/2309.06180) | Paged KV management and serving systems reference | \n\n| Work | Link | Role in `seppia` | \n|---|---|---|\n| llm-serving-bench | [Francesco/llm-serving-bench](https://huggingface.co/datasets/Francesco/llm-serving-bench) | Reproducible `v3.3` multi-domain throughput benchmark suite | \n| HumanEval | [arXiv:2107.03374](https://arxiv.org/abs/2107.03374) | Code generation prompts in the `code` suite | \n| MATH & MATH-500 | [arXiv:2103.03874](https://arxiv.org/abs/2103.03874) ·[HuggingFaceH4/MATH-500](https://huggingface.co/datasets/HuggingFaceH4/MATH-500) | Math reasoning benchmark suite | \n| MT-Bench | [arXiv:2306.05685](https://arxiv.org/abs/2306.05685) | Multi-turn chat prompts in the `mt_bench` suite | \n| Vendored C/C++ | [stb_image](https://github.com/nothings/stb) ·[cpp-httplib](https://github.com/yhirose/cpp-httplib) ·[nlohmann/json](https://github.com/nlohmann/json) ·[spdlog](https://github.com/gabime/spdlog) ·[utf8proc](https://github.com/JuliaStrings/utf8proc) ·[libwebp](https://github.com/webmproject/libwebp) | Zero-external-dependency HTTP, JSON, logging, UTF-8, and image decoding | \n\nBuilt by Sfumato AI at [sfumato-ai/seppia](https://github.com/sfumato-ai/seppia).", "url": "https://wpnews.pro/news/anthropic-banned-me-for-creating-my-inference-engine-for-qwen-4", "canonical_source": "https://github.com/sfumato-ai/seppia", "published_at": "2026-12-04 14:32:56+00:00", "updated_at": "2026-12-04 14:47:37.362594+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-tools"], "entities": ["Anthropic", "seppia", "Qwen4-35B-A3B", "Inkling-2-Mini", "SealKV", "DFlash2", "DSpark", "Gemini Neon"], "also_reported_by": [], "takeaway": "Seppia fits 1,048,576 tokens of context on a single 24 GiB RTX 4090 by applying 2-bit SealKV KV compression (--quant kv=seal2) and streaming Qwen4's 20.5B n-gram table from host RAM at 0.00 GiB VRAM, reaching 470.0 tok/s interactive chat with the DFlash2 drafter.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/anthropic-banned-me-for-creating-my-inference-engine-for-qwen-4", "markdown": "https://wpnews.pro/news/anthropic-banned-me-for-creating-my-inference-engine-for-qwen-4.md", "text": "https://wpnews.pro/news/anthropic-banned-me-for-creating-my-inference-engine-for-qwen-4.txt", "jsonld": "https://wpnews.pro/news/anthropic-banned-me-for-creating-my-inference-engine-for-qwen-4.jsonld"}}