Repository navigation
ARGUS v2.2.1
ARGUS v2.2.1 — Adaptive P3 Prefill, Scoped OpenAI /v1/* Rust Gateway & Native Rust Benchmarking
Base commit: 05b68ae · Previous release: v2.2.0 (92af153) · CI: rust-control-plane (47123365254) & packaging (47123365281) GREEN.
Hardware Scope: All hardware performance numbers below were measured exclusively on NVIDIA GeForce RTX 3050 Ti Laptop GPU (4 GiB VRAM) + Intel Core i5-11300H (4P/8T, AVX-512 VNNI) + 32 GiB DDR4 on Linux. Architectural abstractions for
>=8 GiBGPUs (e.g. L40S, GB10) and unified-memory systems are present, but those platforms are untested ([TEST EDİLMEDİ]) — no performance or compatibility claims are made for them.
Highlights & Atomic Changes
1. P3 Adaptive Prefill (7ed0825)
ARGUS_P3_COALESCEis now default ON (1; explicitly toggleable OFF viaARGUS_P3_COALESCE=0/--p3-coalesce false), collapsing multi-ubatch DMA passes while preserving checkpoints, prefix reuse, SWA, multimodal, and KV state restore.- Separate hardware-agnostic out-of-box fallback policies with zero hardcoded laptop constants in source code:
fallback_repack:512 * sqrt(k_default / k_active)(rounded to 32, clamped[256, 1536]→K=8: 512,K=4: 736,K=2: 1024)fallback_mmap:256 * min(2.0, k_default / k_active)(clamped[256, 512]→K=8: 256,K<=4: 512)
- Optional fingerprint-keyed calibration store (
~/.argus_runtime/p3_profiles.json) keyed by(model, quant, hardware, load_mode). ARGUS_CUDA_GRAPH_EXTstays default OFF (0) after Phase 4 measured-5.29%K=2regression on 4 GiB single-stream heterogeneous decode.- Gemma 4 P3 Parity:
0.000000max logprob diff across136/136tokens (p3_repackvsp3_mmap) and100%factual + SWA multi-turn recall acrosscoal1/coal0/p3_off.
2. Scoped OpenAI-Compatible Rust Gateway (/v1/*, 714fa59)
- Native Rust endpoints in
argusd(zero Python runtime deps):/v1/models,/v1/models/{model_id},/v1/chat/completions,/v1/completions,/v1/embeddings. - Scope is strictly defined by
docs/openai-compatibility.md(not the full OpenAI cloud API): supports SSE streaming +stream_options.include_usage, cancellation,tools/tool_choice,response_format,stop,seed, normalizedusage, and per-request LoRA/K/VoC isolation. - Zero silent parameter drops: unsupported/unknown fields return HTTP
400(invalid_request_error/unsupported_parameter). - Admission-control isolation: managed
llama-serverreceives an ephemeral0600<runtime_dir>/backend.keyvia--api-key-file; direct calls tollama-serverbypassingargusdare rejected with401 Unauthorized.
3. Rust Control Plane Hardening (d9307dd)
(canonical_path, len, mtime)GGUF metadata cache andmodel_sig/TTL LoRA registry cache inargusdwith strict invalidation on file update,POST /api/loras, andPOST /api/models/switch.- Typed runtime knobs (
ubatch_size,voc_dir,cuda_graph_ext,decode_profile,p3_unrepack_threads,dynamic_k_policy) withCLI > Env > config.json > Defaultprecedence and strict validation. argus start --wait [--wait-timeout]with zombie-reaping early-exit detection, supervisorERRORreporting, timeout cleanup, log tails, and byte-exactconfig.jsonrollback.- Model-agnostic
mmprojfamily-token subset matcher rejecting cross-size mismatches (e.g.12Bnever loads26Bmmproj). - Non-intrusive
benchmarks/quiet.sh(0desktop/IDE processes touched by default; opt-in--allow-desktop-pauseguards ancestors, PGID, SID, shells, andlanguage_server*).
4. Native Rust bench/profile/replay & Legacy Python Purge (e7e1d84)
- Added
GET /api/profile, nativeargus profile,argus bench(TTFT, prefill/decode tok/s, median/p95/IQR, peak VRAM/RAM, P3 sweep, profile writer), andargus replay(ARGETRCv1 binary trace parser + Markov prefetch + 5-policy cache replay,2.66×–2.76×faster than Python with verified paritymax_diff <= 0.02). - Retired legacy Python benchmark/audit scripts (
benchmarks/*.py) and legacy runtime modules (argus_cache/adapters/,argus_cache/voc.py) — net-3,707lines removed. - Python package
argus-cache(2.2.1) is now strictly the zero-dependency stdlibArgusClientSDK (dependencies = []) plus canonicalargus_cache/csrc/C++/CUDA sources.
Measured Verification Summary (v2.2.0 vs v2.2.1 on RTX 3050 Ti 4 GiB)
Full ledger: docs/measurements/v221-2026-12-03/README.md
- P3 Prefill — Out-of-Box Clean Install (no
p3_profiles.json,out_of_box_fallback.json):5/6measured Gemma 4 points are1.69×–1.86×faster out of the box (K=8 874t: 4,746 ms,1818t: 5,526 ms;K=2 445t: 2,589 ms,874t: 4,999 ms,1818t: 5,296 ms);K=8 445t(8,384 ms, below the512fallback) improves to4,430 msonce locally calibrated.
- P3 Prefill — With Local Fingerprint Calibration (
~/.argus_runtime/p3_profiles.json):- 24 / 24 measured points (
430–3,661tokens,K=8/4/2) beat or matchv2.2.0:1.01×–2.10×on Gemma 4 26BQ4_0and1.06×–3.44×on Qwen 3.6 35BQ4_K_S.
- 24 / 24 measured points (
- Decode A/B/A (
128prompt /64gen viaargusdOpenAI SSE):- Qwen 3.6 35B
Q4_K_S:25.34 / 38.03 / 47.36 tok/s(K=8/4/2,2,494 MiBpeak VRAM;-1.12% / -0.26% / -2.00%vsA_avg). - Gemma 4 26B
Q4_0:20.92 / 32.91 / 44.85 tok/s(K=8/4/2,2,756 MiBpeak VRAM;-4.30% / -2.11% / -2.58%vsA_avgwith45.5°C → 60.5°Ccold-start thermal asymmetry).
- Qwen 3.6 35B
- 64K Long-Context Check: Both models hold
65,536 / 65,536(100%)S1GPU KV mirror (s1_split_calls=0,0OOM,~203–206 MiBOS load-time swap delta). - Test Matrix:
26/26Rust tests (fmt+ strictclippy),19/19native C++/CUDA tests,argus.patch --reverse, Node WebUI XSS,8/8Python thin SDK/hygiene tests, liveargus start --wait& rollback, live OpenAI +401bypass check, and sanitized zero-PythonPATHlive smoke test (env -i PATH=<clean_bin>; note this tests a sanitizedPATH, not a fresh OS image lacking a system Python installation).
Remaining Risks & Known Limitations
- Closed-mode
<1.5%perturbation gate: RemainsNOISE_LIMITED_CANNOT_PROVE_1_5PCTon this live-desktop laptop due to80–81.4°Csustained thermal drift (A1→A2: -8.51% K8 / -11.73% K2, IQR7.1–11.3%). -tb 8vs-tb 6calibration coupling: Hyper-thread contention at-tb 8shifted Gemma 4'sK=8P3 crossover (640 → 288); joint thread + P3 calibration is planned forv2.3.0.- Auto
mmprojon 4 GiB VRAM:argus start --modelauto-attaches matching BF16mmproj;--no-visionand VRAM-awaremmprojgating are planned forv2.3.0. - Untested hardware:
>=8 GiBGPUs and unified-memory hosts remain untested.