Skip to main content

arbi-serve

License Python

Why arbi-serve

Long-context inference that's actually viable on consumer GPUs: full model context, virtually lossless quality, concurrency built for real traffic — not a demo. Charts backing each of these land in Benchmark and value below as they're published.

The wedge between datacenter inference (vLLM, SGLang) and edge tools (Ollama): self-hosted LLM serving with datacenter-grade concurrency and VRAM efficiency, one-command-easy to run, monitor, and configure. Built for businesses that want real production characteristics on their own GPUs — RTX included — without a datacenter budget, and without depending on someone else's cloud to run their own models. Distributed inference, in the sense that matters: the power to run this yourselves stays with you, not a central provider.

It's a serving engine for a documented, explicit set of model architectures (Feature status below), not a generic fallback for every checkpoint on the Hub.

Quickstart

Needs uv and one NVIDIA GPU:

uvx arbi-serve

That opens the launch menu: pick a model already on this machine, its quant (EXL3 4 bpw by default) and the KV cache (k4v4 by default); Enter takes each default. uvx arbi-serve run Qwen/Qwen3.5-0.8B --kv k4v4 skips it. The launcher switches itself to the release image's Python (3.12), so the native extensions come prebuilt from the public kernel store instead of compiling (docs/kernel-store.md).

Installs itself, boots, drops you into a chat prompt. Everything below is detail you don't need yet.

Details

arbi-serve is the native serving engine for Turbo Attention (tkv) — the 2–8-bit asymmetric KV-cache codec (WHT rotation + calibrated per-channel scaling, dequant fused inline into both prefill and decode). Calibration, per-layer bit allocation, hot-swap, profiling, and memory accounting are first-class rather than bolted on. Where SOTA kernels fit (flash-attn, CuTeDSL, FlashInfer, Triton, vendor kernels) the engine adopts them; where the serving path needs tighter control — fp8 paged-KV attention on consumer RTX cards the standard kernels refuse to run, hybrid GDN/Mamba/ShortConv state, full-duplex audio — it carries its own.

  • Calibrated, near-lossless quantization. The TKV codec (2–8 bit, WHT rotation + per-channel calibration bundles) is built on our own attention backend (turbo-attn) specifically to hold quality at a fraction of the KV-cache memory — not a generic INT8 cast.
  • VRAM efficiency and management. A deterministic budget across every pool (weights, activations, graphs, KV, LoRA, recurrent state, codec scratch — docs/memory-accounting.md), per-component attribution across ~35 gauges held to a checkable invariant, and a boot that fails loud with a component-level reason instead of OOMing under load.
  • Concurrency and iteration, live. Continuous batching and CUDA graph capture for throughput; swap the attention backend, reload the model, or reload calibration at runtime with zero restart; compare numerical paths head-to-head; switch between resident models by naming a different one in the standard API. Flag correctness is CI-governed.
  • Easy to monitor and configure. Prometheus at /metrics, an admin console, and structured boot/flag logging — the compile/cache paths and memory budget stay inspectable instead of opaque.
  • Real-time audio. Full-duplex speech-to-speech primitives include VAD, barge-in, turn-taking, and TTS output for the supported audio models.
  • Fail loud, never subtly wrong. Unsupported model/backend/quant combinations raise with a precise boundary instead of falling through to a slow or silently incorrect path.

The trade is deliberate: this is an explicit model and hardware surface, not a generic Transformers fallback or a promise of feature parity with other servers. See the feature analysis for boundaries.

arbi-serve consumes tkv through its public API only: tkv.runtime.*, tkv.codec, and tkv.core. It never imports tkv.integrations.* or private/internal turbo-attn modules.

Install

uvx arbi-serve (above) needs nothing installed ahead of time. Into your own project or venv instead:

uv pip install arbi-serve                 # lightweight generated Python client
uv pip install "arbi-serve[server]"       # standard NVIDIA inference server
uv pip install "arbi-serve[ui]"           # remote admin console + client
uv pip install "arbi-serve[server,ui]"    # local server + admin console
uv pip install "arbi-serve[fa]"           # no-op extra (kept for resolve compat)
uv pip install "arbi-serve[convert]"      # offline EXL3 converter (`arbi-serve convert`)
uv pip install "arbi-serve[dev]"          # + tests + lint tooling

(plain pip install works identically if you don't have uv)

One-command bare-metal run

arbi-serve run <model> — see Quickstart — installs arbi-serve[server] with uv (falling back to pip) if it isn't there yet, boots, waits for readiness, and drops into a chat REPL. Run it again with a different model while the first is still up and it hot-swaps the new model into the same resident server (POST /v1/admin/model, the same fast park/wake path used for A/B iteration) instead of booting a second process — pass --new to force a separate instance on another --port. Extra flags for a fresh boot go after -- (e.g. arbi-serve run demo -- --tp-size 2). Add --console to also boot the admin console (installs [ui,otlp] too, and leaves OTLP push at the engine's own default instead of forcing it off).

Companion commands:

arbi-serve pull Qwen/Qwen3.5-0.8B   # fetch weights without booting a server
arbi-serve list                    # locally cached models
arbi-serve ps                      # running instances + their active model
arbi-serve stop                    # stop a tracked instance

Quantize your own model's weights to EXL3

A bf16 checkpoint's weights convert to EXL3 once, on one GPU (this is the weight quantization; the KV cache is chosen separately, at boot):

uv pip install "arbi-serve[convert]"
arbi-serve convert --model /models/MyModel --out /models/MyModel-exl3-4.0bpw --bits 4.0
--bits (weight bits per weight) Use
3.0 aggressive: smallest, for a model that would not fit otherwise
4.0 standard (default)
5.0 high quality
6.0 max quality

Name the output <Model>-exl3-<bits>bpw beside the original and arbi-serve run lists it as a weight quant of the same model.

For a GDN hybrid (Qwen3.5 / 3.6 / 3.8 family) the conversion also writes our INT8 attention sidecar (sidecars/attn_int8_q8ks.safetensors): the full-attention projections quantised to INT8 from the bf16 source, which prefill serves (decode stays on EXL3). Keep it beside the weights; --no-attn-sidecar skips it, and --attn-sidecar-source <bf16 dir> names the source when --model is already quantised. For an existing EXL3 checkpoint, tools/exl3_attn_q8.py builds one.

run/pull/ps/stop are Python-only orchestration around the existing bare-metal entrypoint (python -m arbi_serve) and the generated admin client — they never fall back to Docker Compose on their own. If the native CUDA/kernel stack can't be made to work bare-metal, they say so and stop; use the Docker Compose quickstart below instead.

arbi-serve doctor diagnoses a broken/incomplete install (works even without torch/tkv — that's exactly when it's most useful) — driver/CUDA/compute-capability, disk and cache writability, Hugging Face reachability, and, once the server deps are present, turbo-attn/tkv compatibility and environment sanity. arbi-serve plan --model <path> estimates VRAM/context/concurrency for a config before booting, without loading any weights — an estimate, not the persisted boot-confirmed sizing cache described in docs/memory-accounting.md. arbi-serve config explain <flag> / config flags / config resolve inspect the same RuntimeFlags/ServerConfig surface the admin console does. arbi-serve --version, arbi-serve --help (lists every subcommand, including openapi/convert/calibrate/warmup/bench), and each subcommand's own --help are the full reference.

Talking to a server directly

The base install (no CUDA/PyTorch needed) is also a useful command-line client for any already-running endpoint — one started with arbi-serve run above, the Docker Compose path below, or a remote deployment:

arbi-serve chat --url http://localhost:8000 --model Qwen3.5-0.8B \
  "What is 2 + 3? Answer with only the number."

The model can be omitted when the endpoint advertises exactly one model, and the prompt can come from stdin. Use --token (or ARBI_SERVE_TOKEN) for an authenticated endpoint, or carry the key in the URL as one pasteable string, --url https://<your-server>#key=<your-api-key> (the fragment is stripped before any request, so the key never reaches a log; the key is sent over plain http:// only to localhost unless --allow-http is passed), --temperature and --max-tokens for sampling controls, and --json when a complete OpenAI-compatible response is needed:

printf '%s\n' 'Name three primary colors.' | arbi-serve chat --url http://localhost:8000

GDN and structured generation are part of the standard server runtime, not model-specific extras. arbi-serve does not use Transformers for serving; the official container omits it. For bare-metal installs, upstream xgrammar currently declares Transformers transitively even though arbi-serve supplies its own tokenizer metadata. Transformers is otherwise test/reference-only.

EXL3 serving needs nothing beyond the server extra, and no exllamav3 at all: arbi-serve reads the format and runs the trellis on its own kernels, which come prebuilt from the kernel store (docs/kernel-store.md), so uvx --python 3.12 --from "arbi-serve[server]" arbi-serve serves an EXL3 checkpoint without a compiler. Stock upstream exllamav3 is installed only by the [convert] extra, for the offline converter.

A kernel the store does not hold (a model geometry nobody prebuilt) is compiled once on first use, with a JIT-COMPILING warning, and cached under the boot cache (~/.cache/arbi-serve bare-metal, /cache in a container — mount it persistently), so later boots reuse it. To share compiled kernels across several machines, mount one directory on all of them and point ARBI_EXT_SHARE_DIR at it. The boot's compiled kernels: line says where they are cached and whether a shared tier is on.

See pyproject.toml for the full extras list and version floors. For source installs and a development setup, see CONTRIBUTING.md.

Docker Compose quickstart: one NVIDIA GPU

The Quickstart above (uvx arbi-serve run) is the fastest path for one model on one machine. This is the Docker Compose path instead — same GPU requirement, more explicit control over backend/codec, and what's actually running behind the scenes if you want to see it. It explicitly selects auto, which uses bf16 paged KV through the tkv-bypass kernels and needs no calibration bundle. The general Compose file defaults to tkv, so keep this override in the command. Qwen/Qwen3.5-0.8B is the small GDN smoke model used for quick bring-up and high-concurrency testing. It is not the project's performance or quality reference: that is the Qwen3.8-27B GDN path below. See the supported model matrix before choosing another checkpoint.

Prerequisites: Docker Compose v2, the NVIDIA Container Toolkit, one CUDA GPU, and enough VRAM for the selected model, context, and CUDA graphs.

git clone https://github.com/arbicity/arbi-serve
cd arbi-serve

ARBI_MODEL=Qwen/Qwen3.5-0.8B \
ARBI_KV_CACHE_DTYPE=auto \
ARBI_MAX_CONTEXT=2048 \
docker compose up -d --build

The first boot builds the image and downloads the hub checkpoint into the persistent Compose cache. Follow detail with docker compose logs -f arbi-serve. Wait for the serving gate, not just the web server binding: /health is liveness and can return 200 while the model is building; /health/ready is 503 until a request can be admitted. Probe both (as the Compose healthcheck does):

until curl -fsS http://localhost:8000/health/ready >/dev/null; do sleep 2; done
curl -fsS http://localhost:8000/health
curl -fsS http://localhost:8000/health/ready

Discover the exact model id before making a request:

curl -fsS http://localhost:8000/v1/models

For a hub id, the default served id is the repository name (Qwen3.5-0.8B in this example; an @revision suffix is retained). For a local checkpoint it is the final path component. Send that served id, not necessarily the original host path. The lightweight CLI uses the generated arbi client and auto-discovers the model when exactly one is advertised:

arbi-serve chat --url http://localhost:8000 --model Qwen3.5-0.8B \
  --max-tokens 24 "What is the capital of France?"

Applications can use the official OpenAI Python SDK directly:

pip install openai
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="unused")
answer = client.chat.completions.create(
    model="Qwen3.5-0.8B",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
    max_tokens=24,
)
print(answer.choices[0].message.content)

ARBI_MODEL accepts a Hugging Face id (org/name or org/name@revision) or a container-side local path. Set HF_TOKEN for gated/private repos; ARBI_HF_OFFLINE=1 forbids hub traffic. Local checkpoints require ARBI_MODELS_ROOT=/host/path/to/models and an ARBI_MODEL path under /models.

Canonical reference: Qwen3.8-27B GDN

Qwen3.8-27B is the primary development, performance, and quality reference. Two checked-in recipes serve it on one 24-GB card, both EXL3 weights with calibrated TKV and explicit memory/capture budgets: compose.serve.yaml with the checkpoint's own native MTP head at depth 5, and compose.dflash.yaml with a separate DFlash2 draft checkpoint at depth 7 — the latter is the faster single-card path. compose.serve.yaml also documents a separate TP=2 variant. The 0.8B quickstart above is for smoke and high-concurrency coverage, not representative benchmark numbers.

For the single-card reference, place the matching EXL3 checkpoint and curated calibration bundle under the mounted directories, then run (replace the bundle filename with the one matched to that exact checkpoint):

ARBI_IMAGE=arbi-serve:latest \
ARBI_MODELS_ROOT=/path/to/models \
ARBI_MODEL=/models/Qwen3.8-27B-exl3-4.0bpw \
ARBI_CALIBRATIONS_ROOT=/path/to/calibrations \
docker compose -f compose.serve.yaml up -d

ARBI_MAX_BATCH is left at the recipe's own default (8) on purpose: pinning it to 1 gives a single-stream server whose KV pool, capture ladder and acceptance figures are not the reference ones.

ARBI_IMAGE is required here rather than defaulted: compose does not fail on an image it cannot find — with a build: stanza present it silently builds one, which reads as a several-minute hang. Name the image you mean (the tag the quickstart's docker compose up --build produced, or a published one), and add --build when building is what you want. compose.yaml, the quickstart above, is the one recipe that still builds by default.

Read the recipe's TP1/TP2 notes before changing batch, context, GPU-memory, or MTP settings; those knobs jointly determine whether the reference fits and whether a comparison remains apples-to-apples.

Calibrated TKV notes

Use this arm when you have a calibration bundle matched to the checkpoint and want the Turbo Attention KV codec. The general Compose file currently does the following by design:

  • ARBI_KV_CACHE_DTYPE defaults to tkv (the quickstart overrides it to auto for evaluation).
  • TKV_BITS is a literal Compose value of "4", meaning uniform K4V4. It is not an operator override; exporting TKV_BITS on the host does not change this file. Smart-mix/per-layer allocation uses a float such as 4.0 and a matching bundle, and requires an intentional recipe edit.
  • The calibration store is derived from the model: a calibrations root that files stores per schema version holds the model's at /cal/v<N>/<model basename, lower-cased>_v<N>.json (e.g. /cal/v59/qwen3.8-27b-exl3-4.0bpw_v59.json), <N> being the schema the image's tkv loads, and the boot accepts it on content — a store at that schema whose recorded engine is this model. ARBI_CALIBRATION_FILE overrides it with a container path under /cal, checked the same way before any weights load.

On a single 24-GB GPU, do not rely on in-process first-boot calibration: the temporary calibration swap can need roughly 12 GiB in addition to loaded weights and may OOM. Supply a pre-built matching bundle, or use the bf16 quickstart. An explicit TKV boot does not silently change to bf16; with no bundle it stages calibration (and may fail from VRAM pressure), or refuses when that path is not available.

The in-process calibration fit (a tkv KV cache with no store for the model) captures over a chat, code and document-retrieval corpus that must already be prepared on the host. A boot never downloads it, and this project does not host or redistribute it: you fetch it from its upstream sources with one command, see docs/calibration-corpus.md for sources, licences and the steps.

A TKV KV cache is never served uncalibrated by fallback. The store is, in order: the one you name (ARBI_CALIBRATION_FILE), one in /cal for the model, the one that ships with turbo-attn for the model, one a previous boot cached, else a fit on this boot. The fit reads a capture corpus that must already be prepared on the host (it is never downloaded), and it refuses tp_size > 1; TKV_AUTO_CALIBRATE=0 forbids it. A boot that can do none of these is refused, naming the ways out. The only way to serve the uncalibrated codec is to say so: ARBI_CALIBRATION=none (Helm: engine.calibration.mode: none), which is off by default, warned at every boot, and refused beside a named store.

Example that exercises TKV plumbing with the 0.8B smoke/high-concurrency model (not the canonical performance reference):

ARBI_MODEL=Qwen/Qwen3.5-0.8B \
ARBI_KV_CACHE_DTYPE=tkv \
ARBI_CALIBRATIONS_ROOT="$PWD/calibrations" \
docker compose up -d --build

Admin console and API

The optional UI is a separate process and does not sit in the request path:

ARBI_MODEL=Qwen/Qwen3.5-0.8B ARBI_KV_CACHE_DTYPE=auto \
docker compose --profile ui up -d --build

Open http://localhost:8899; the API remains on http://localhost:8000. OpenAI-compatible routes include /v1/completions, /v1/chat/completions (including SSE), /v1/models, /v1/embeddings, /v1/rerank, /v1/files, and /v1/batches. Metrics are available at /metrics.

Live requests default to priority: "interactive". Use priority: "background" or X-Arbi-Priority: background for low-priority live work that pauses while interactive traffic runs. batch is not a live priority value; use /v1/batches for asynchronous file-based jobs.

The /v1/files and /v1/batches registries are in-memory and process-local: a file or batch does not survive a server restart, and there is no durable backing store (see arbi_serve/server/batch_store.py).

Observability

The optional local Prometheus/Grafana/Tempo/Loki stack is a separate Compose project:

docker compose -f docker-compose.observability.yaml up -d

Open http://localhost:3000 for the provisioned dashboards. The server also serves Prometheus text at /metrics; disable OTLP export with ARBI_SERVE_ENABLE_OTEL=0 when the collector is not wanted.

Bare metal

Install the server dependency set first:

pip install "arbi-serve[server]"
arbi-serve --model /path/to/checkpoint --kv-cache-dtype auto --max-context 2048

For calibrated TKV, use --kv-cache-dtype tkv --calibration /path/to/bundle.json. --max-context states the deployment cap explicitly; choose it to fit the model, backend, and GPU budget. The same auto/tkv semantics apply outside Compose.

The console runs in its own container and dials the engine by address. The recipes state two things for it and nothing else: --engine, the engine's service name on the compose network, and --admin-token-file, a path to the operator credential the engine mints on first boot and both containers read off the shared cache volume. The credential is what lets the console reach /v1/admin/* from another container — or another machine — without the loopback fallback and without ever setting ARBI_ALLOW_UNAUTHENTICATED_ADMIN. See docs/admin-auth.md. Add further servers — including remote ones, each with its own credential — from the console's server picker; they are kept server-side and persist across restarts, and the browser only ever names one by id.

For a public console in a Docker bridge network, the publication check calls /console/status through that bridge's host gateway and verifies the process identity. A connection timeout can mean the host's INPUT firewall drops the container subnet. Check the network's actual subnet and its published host port: Docker can allocate 192.168.* networks after exhausting its 172.* pools, while a host may trust only 10/8 and 172.16/12. Permit the intended bridge and console port, or configure an approved Docker address pool. Existing networks retain their subnet until recreated; restarting the engine leaves it unchanged. A loopback-only console shares its callers' network namespace and needs no host publication. See the isolated host-firewall proof.

To run only the admin console from a lightweight machine:

pip install "arbi-serve[ui]"
python -m arbi_serve.admin_console --host 0.0.0.0

Open http://localhost:8899 and add a server in the picker. Pass --engine and --admin-token-file when it runs beside one; the console then refuses to serve until it has verified that engine answers, that the port it bound is one its container publishes, and that it is running the same arbi_serve source as that engine — each of which used to fail silently.

To compare two source trees of the server (the console's build A/B axis), use compose.build-ab.yaml through its driver rather than a hand-started console. It grants the console --restart-build for each named build, each of which recreates the same engine service with that tree bind-mounted (or on the baked image), and it runs the comparison twice: A→B, then B→a null control that is B plus one comment line, since the axis's own spread is one boot's:

ARBI_IMAGE=... ARBI_MODELS_ROOT=... ARBI_MODEL=/models/... ARBI_PORT=8160 \
ARBI_CONSOLE_HOST_PORT=8961 ARBI_AB_PREFILL=2048,16384 \
scripts/bench/console_build_ab.sh OUT main=image tree=/abs/tree null=/abs/tree-null
scripts/bench/console_build_ab.sh down

Benchmark and value (receipts pending)

The repository does not publish universal speed, context, or cost numbers here. Record results on the target GPU, model, context, and workload before making a deployment decision. These are intentionally explicit placeholders:

Metric Value Conditions / receipt
Time to first token (TTFT) TBD GPU, model, prompt/output lengths, warm/cold state: TBD
Decode throughput (tokens/s) TBD concurrency and sampling settings: TBD
Steady-state VRAM TBD weights, KV mode/bits, context, batch: TBD
Maximum validated context TBD model + GPU + backend: TBD
Quality/parity result TBD dataset, seed, and reference path: TBD

For measurement pitfalls and a reproducible-measurement checklist, see docs/bench-measurement-footguns.md. Methodology and raw benchmark receipts for these public values: TBD (to be published; no stable link yet).

GPU compatibility

arbi-serve runs on NVIDIA GPUs from Ampere (sm_80) onward, on x86-64 hosts. Every supported architecture runs the same SM80-class kernels: warp-level int8 mma.sync with cp.async/ldmatrix fills and ~99 KB shared-memory tiles. The image ships per-architecture kernel artifacts, so nothing compiles at boot on a listed card.

  • 🟢 Target: tuned and qualified here (decode-tune and verify-crossover tables, boot-store packs, CI GPU lanes).
  • 🟡 Works: verified end to end (boot, serving, GPU kernel tests, turbo-attn tests, DFlash losslessness gate), but the kernels are not optimised for that architecture (listed under the table).
  • 🔴 Not supported out of the box.
GPU SM Status Qwen3.8 + DFlash, prefill / decode tok/s¹
RTX A5000 sm_86 🟢 1,734 / 116 (in-house)
RTX A5500 sm_86 🟢 1,963 / 119 (in-house)
RTX 3090 sm_86 🟢 2,141 / 135 (container, RunPod)
A40 sm_86 🟢 2,066 / 125 (container, RunPod)
RTX 4090 sm_89 🟢 reference 5,019 / 182 (in-house)
RTX 4000 Ada sm_89 🟢 1,644 / 73 (in-house)
L40S sm_89 🟢 3,942 / 166 (container, RunPod)
L4 sm_89 🟢 1,354 / 67 (cloud VM, OVH)
RTX 5090 sm_120 🟢 5,269 / 261 (in-house)
RTX PRO 6000 Blackwell Server Edition sm_120 🟢 4,288 / 239 (container, RunPod)
A100 80GB PCIe sm_80 🟡 2,356 / 141 (container, RunPod)
H100 80GB HBM3 (SXM) sm_90 🟡 3,164 / 178 (container, RunPod)
H100 NVL sm_90 🟡 3,585 / 155 (container, RunPod)
B200 sm_100 🟡 2,006 / 184 (container, RunPod)
DGX Spark (GB10) sm_121 🟢 1,768 / 52 (cloud container, GPUwerk)

Where the kernels are not optimised (🟡):

  • sm_80: works, not optimised. The A100 has no wgmma or tcgen05, so it already uses its best tensor-core path (mma.sync, ldmatrix, cp.async), and it has its own measured verify-crossover table. What is left is tuning the EXL3 int8 GEMM for it: the tiles use 99 KB of its 164 KB shared memory, and decode does not use its 2 TB/s bandwidth (it decodes slower than a 4090). A deeper prefill-attention pipeline was measured and is slower on the A100. Roadmap: #4541.
  • sm_90: no wgmma/TMA mainloops. Prefill attention and the int8 GEMMs run on warp-level mma.sync, roughly two thirds of Hopper's int8 peak; FP8 GEMMs go through cuBLAS. The 227 KB of shared memory is not used by the int8 prefill tile, and there are no tuning tables. Plan: #4541.
  • sm_100: no tcgen05/TMEM mainloops. int8 runs on legacy mma.sync, far below B200's peak, and the vendored GDN kernel carries a correctness workaround for Triton on tensor-memory GPUs. No tuning tables. Roadmap: #4541.
  • sm_86: decode-tune and verify-crossover tables are taken from sm_89, and there are no FP8 tensor cores, so FP8 paths fall back to bf16/fp16.

Arm hosts (aarch64):

  • DGX Spark (GB10): supported by the arm64 image, measured above.

Not supported out of the box (🔴):

  • sm_75 and older (Turing, Volta): prefill needs sm_80 instructions (int8 mma.sync m16n8k32, cp.async); the server refuses these cards by name.
  • Jetson (Orin, Thor): out of scope. Embedded Tegra/L4T stack and GPU archs (sm_87, sm_110) outside the build; not a serving target.

¹ Qwen3.8-27B-exl3-4.0bpw-servedcal with the Qwen3.8-27B-DFlash2-exl3-6.0bpw drafter: served sampler (thinking on, stochastic sampling, K=7), the admin console's serving_bench, one stream, 512-token prompt, mean of 3 reps, measured 2026-11-06/08. This shows the stack running on each card; it is not a performance comparison between cards.

Feature status

This is a forward-looking feature map, not a backwards-compatibility matrix. The server intentionally owns the seams that matter for fast self-hosted iteration: load, profile, capture, swap, schedule, offload, and observe. If a doc disagrees with the implementation, the implementation wins.

Shipped

Area Status
OpenAI API /v1/completions, /v1/chat/completions, /v1/models, /v1/embeddings, /v1/rerank, /v1/files, /v1/batches; streaming for generation. /v1/files and /v1/batches are in-memory and process-local — state does not survive a restart.
Native turbo-attn TKV is the default center of gravity: KV-cache quantization, calibration bundles, per-layer bit allocation, hot-swap, profiling, and compare tooling.
Other attention kernels tkv-bypass (the Turbo prefill CuTeDSL kernel + the split-K decode kernel, the default bf16 path), FlashInfer prefill backend, and vendored kernels where the engine needs tighter control.
Scheduling Continuous batching, chunked prefill, prefix-aware admission, interactive-vs-background priority, batch prefill caps, MTP K-bucketing, and pool-aware admission.
Prefix cache Radix prefix cache with per-request opt-out, tenant namespace isolation, admin flush, and recurrent savepoints for hybrid models.
Fast load / reload Safetensors loading, flat-dump cache, model reload, backend reload, calibration reload, post-load compaction, and memory-attribution checks.
Backend hot-swap Per-StateKind active backend map; admin hot-swap drains, swaps, and rebuilds per-rank state coherently.
Tensor parallel TP=2 serving under torchrun, including rank-0 scheduling, worker-rank forward replay, TP collectives, hot-swap, CUDA graph capture, and bundled MTP.
Speculative decoding Bundled MTP heads, block-diffusion draft models (DFlash2 — the drafter the reference single-card recipe serves, see compose.dflash.yaml), mixed-K admission bucketing, greedy and stochastic rejection sampling, graph-safe seed buffers, captured drafter/verify paths, and external draft-model mode for single-GPU paged-KV models.
Capture / compile CUDA graph decode, piecewise capture, MTP drafter/verify capture, sleep/resume graph survival, and optional torch.compile integration.
Hybrid architectures GDN, Mamba/Mamba2, ShortConv, MLA, SWA/GQA dense paths; recurrent rollback/savepoint plumbing where needed.
Suspended-job offload Batch-job KV snapshots to host RAM and disk, fault-in on resume, persisted disk index, scheduler integration, and hybrid recurrent-state opt-in.
Weight quantization AWQ, EXL3, FP8, NVFP4 detection and load paths behind a backend-agnostic quant registry.
LoRA Runtime LoRA load/list/unload, mixed-adapter batches, BGMV apply, capture-aware state.
Structured output xgrammar-backed JSON schema, regex, grammar, and JSON-object constraints with batched bitmask application and in-memory/disk grammar cache.
Multimodal OpenAI image input parsing, Qwen-VL preprocessing, M-RoPE positions, vision/text merge, and Gemma/Qwen vision seams.
Observability / DX OTel, Prometheus metrics, NVML/process gauges, Grafana dashboards, request timelines, memory diagnostics, allocator-history dump endpoints, and backend comparison harnesses.
Admin operations Critical-section drain/mutate/resume for backend swap, model reload, calibration reload, cache flush, dynamic config, sleep/release/resume, and flat-weight dump/resume.

For Qwen-VL chat images, use the existing per-image detail field to choose resolution: {"type":"image_url","image_url":{"url":"data:image/png;base64,...","detail":"low"}}. low caps the processed image at 1,048,576 pixels with aspect ratio and patch alignment preserved. high, auto, and an omitted field retain the checkpoint's normal pixel budget. This is an explicit quality/cost choice; no content-based resolution decision is made. Low detail currently applies to Qwen-VL processors; other processors reject an unsupported low-detail request. Allowing high detail still requires reserving or admitting for its larger working set.

Roadmap / partial

Area Current boundary
Arbitrary TP TP=2 is shipped. Current roadmap priority is general TP across 2/4/8/16 and non-power-of-two layouts where the model geometry allows it.
LoRA at TP>1 Refused at driver construction until per-row adapter state has a worker broadcast path.
Multi-group at TP>1 Single-rank multi-group hot-swap exists; TP composition is not wired.
Expert parallel / MoE all-to-all Dense and some MoE model code exists, but EP serving and missing all-to-all paths are not a production surface yet.
Draft models Bundled MTP is the production multi-rank speculative path. On a single card the reference recipe serves a separate DFlash2 draft checkpoint (compose.dflash.yaml); external draft models more broadly are an active expansion area.
Prefix-cache warm/cold tiers Shipped: reusable prefix-cache page migration across GPU hot / host warm / encrypted-disk cold tiers (cache/prefix_tier_store.py), faulted back on prefix lookup.
Broader architecture matrix Qwen3 and Qwen3.5/3.6/3.8 GDN, DeepSeek/Kimi MLA, LFM2, Gemma4, Nemotron-H, Granite, and Llama paths are wired. More architectures are added through the documented model seam rather than a broad Transformers fallback.
Hardware validation Ada / sm_89 / RTX 4090 is the reference architecture. Per-architecture status, tested GPUs and what is not yet optimised: GPU compatibility. Hopper wgmma and Blackwell tcgen05 mainloops: #4541.

Out of scope

Area Reason
Generic Transformers fallback The server owns model code and kernel/capture contracts directly; unsupported architectures fail loudly instead of running slow or subtly wrong fallback paths.
Cross-repo private TKV imports arbi-serve intentionally consumes only public tkv.runtime.*, tkv.codec, and tkv.core surfaces.
Silent compatibility aliases First-party consumers are updated in lockstep; stale shims are avoided.
Returning plausible data from stubs Unwired model/backend/quant paths raise NotImplementedError with a precise boundary.
Distributed prefix cache across server instances Current cache isolation is per-process/per-tenant. Cross-instance cache sharing is a separate product architecture.
  • Public release scope — files retained in or excluded from the public distribution.
  • Supported models — architecture coverage and tiering.
  • Runtime flags — python -m arbi_serve.runtime_flags --doc lists every ARBI_* / TKV_* runtime config knob (name, type, default, allowed values, impact). Auto-generated from arbi_serve.runtime_flags.
  • API schemas — request / response shapes.
  • Slim image — production-tuned Docker image.
  • Container privilege — the engine serves as a non-root uid with every capability dropped; what was measured to establish that nothing here needs privilege, and the one stated exception.
  • Benchmark measurement guidance — controls and pitfalls for collecting comparable receipts.

Repo layout

  • arbi_serve/ — the importable package (backends, scheduler, server, models, …). See CONTRIBUTING.md for the per- module breakdown.
  • client/ — generated OpenAI-style client.
  • Dockerfile + compose.yaml — container build and general-purpose stack.
  • docker/ — model-specific Docker Compose recipes.
  • docs/, examples/ — user-facing reference and runnable snippets.
  • tests/ — pytest suite (CPU, GPU, and live tiers).

Contributing

Issues and PRs welcome. See CONTRIBUTING.md for development setup, test tiers, and style.

Security reports: please email security@arbi.city rather than filing a public issue. See SECURITY.md.

Credits

EXL3 serving reads the EXL3 format and trellis quantisation created by turboderp in exllamav3 (MIT), which builds on QTIP (Tseng et al.). Derived files and full attributions are listed in NOTICE; the native EXL3 design is docs/design/exl3-native.md.

License

Apache-2.0. See LICENSE.

Metadata

Release files for arbi-serve 0.3.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arbi-serve 0.3.35
File Size Uploaded Provenance Actions
arbi_serve-0.3.35.tar.gz 58.0 MB Without provenance Details for arbi_serve-0.3.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arbi-serve 0.3.35
File Interpreter ABI Platform Actions
arbi_serve-0.3.35-py3-none-any.whl Python 3 none any Details for arbi_serve-0.3.35-py3-none-any.whl

Total release size: 74.4 MB

Release files / arbi_serve-0.3.35.tar.gz

Download URL arbi_serve-0.3.35.tar.gz
Size 58.0 MB
Tags Source
SHA-256 checksum
How to use checksums
9855c583fbffd508df15d9b10ab3b4747b6df4748109ee9484ff43855fa02f0e
BLAKE2b-256 checksum
How to use checksums
724fd877fb6b5abcda9360dc5c55f17226312914924ebdd2943750b91413bb3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / arbi_serve-0.3.35-py3-none-any.whl

Download URL arbi_serve-0.3.35-py3-none-any.whl
Size 16.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
089621745e8177dd4f45409d7fc0ea871b5ccb4860fe8e988797be14a96d4670
BLAKE2b-256 checksum
How to use checksums
b877ef05ed25ef0dd1637365f3a642fb31634d25338c62f61e07db961f501248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for arbi-serve 0.3.35

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.35 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page