Skip to content

ARGUS v2.2.1

Choose a tag to compare

@Zwannfrederick Zwannfrederick released this 03 Dec 14:13
· 12 commits to main since this release

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 GiB GPUs (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_COALESCE is now default ON (1; explicitly toggleable OFF via ARGUS_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_EXT stays default OFF (0) after Phase 4 measured -5.29% K=2 regression on 4 GiB single-stream heterogeneous decode.
  • Gemma 4 P3 Parity: 0.000000 max logprob diff across 136/136 tokens (p3_repack vs p3_mmap) and 100% factual + SWA multi-turn recall across coal1 / 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, normalized usage, 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-server receives an ephemeral 0600 <runtime_dir>/backend.key via --api-key-file; direct calls to llama-server bypassing argusd are rejected with 401 Unauthorized.

3. Rust Control Plane Hardening (d9307dd)

  • (canonical_path, len, mtime) GGUF metadata cache and model_sig/TTL LoRA registry cache in argusd with strict invalidation on file update, POST /api/loras, and POST /api/models/switch.
  • Typed runtime knobs (ubatch_size, voc_dir, cuda_graph_ext, decode_profile, p3_unrepack_threads, dynamic_k_policy) with CLI > Env > config.json > Default precedence and strict validation.
  • argus start --wait [--wait-timeout] with zombie-reaping early-exit detection, supervisor ERROR reporting, timeout cleanup, log tails, and byte-exact config.json rollback.
  • Model-agnostic mmproj family-token subset matcher rejecting cross-size mismatches (e.g. 12B never loads 26B mmproj).
  • Non-intrusive benchmarks/quiet.sh (0 desktop/IDE processes touched by default; opt-in --allow-desktop-pause guards ancestors, PGID, SID, shells, and language_server*).

4. Native Rust bench/profile/replay & Legacy Python Purge (e7e1d84)

  • Added GET /api/profile, native argus profile, argus bench (TTFT, prefill/decode tok/s, median/p95/IQR, peak VRAM/RAM, P3 sweep, profile writer), and argus replay (ARGETRC v1 binary trace parser + Markov prefetch + 5-policy cache replay, 2.66×–2.76× faster than Python with verified parity max_diff <= 0.02).
  • Retired legacy Python benchmark/audit scripts (benchmarks/*.py) and legacy runtime modules (argus_cache/adapters/, argus_cache/voc.py) — net -3,707 lines removed.
  • Python package argus-cache (2.2.1) is now strictly the zero-dependency stdlib ArgusClient SDK (dependencies = []) plus canonical argus_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/6 measured Gemma 4 points are 1.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 the 512 fallback) improves to 4,430 ms once locally calibrated.
  • P3 Prefill — With Local Fingerprint Calibration (~/.argus_runtime/p3_profiles.json):
    • 24 / 24 measured points (430–3,661 tokens, K=8/4/2) beat or match v2.2.0: 1.01×–2.10× on Gemma 4 26B Q4_0 and 1.06×–3.44× on Qwen 3.6 35B Q4_K_S.
  • Decode A/B/A (128 prompt / 64 gen via argusd OpenAI SSE):
    • Qwen 3.6 35B Q4_K_S: 25.34 / 38.03 / 47.36 tok/s (K=8/4/2, 2,494 MiB peak VRAM; -1.12% / -0.26% / -2.00% vs A_avg).
    • Gemma 4 26B Q4_0: 20.92 / 32.91 / 44.85 tok/s (K=8/4/2, 2,756 MiB peak VRAM; -4.30% / -2.11% / -2.58% vs A_avg with 45.5°C → 60.5°C cold-start thermal asymmetry).
  • 64K Long-Context Check: Both models hold 65,536 / 65,536 (100%) S1 GPU KV mirror (s1_split_calls=0, 0 OOM, ~203–206 MiB OS load-time swap delta).
  • Test Matrix: 26/26 Rust tests (fmt + strict clippy), 19/19 native C++/CUDA tests, argus.patch --reverse, Node WebUI XSS, 8/8 Python thin SDK/hygiene tests, live argus start --wait & rollback, live OpenAI + 401 bypass check, and sanitized zero-Python PATH live smoke test (env -i PATH=<clean_bin>; note this tests a sanitized PATH, not a fresh OS image lacking a system Python installation).

Remaining Risks & Known Limitations

  • Closed-mode <1.5% perturbation gate: Remains NOISE_LIMITED_CANNOT_PROVE_1_5PCT on this live-desktop laptop due to 80–81.4°C sustained thermal drift (A1→A2: -8.51% K8 / -11.73% K2, IQR 7.1–11.3%).
  • -tb 8 vs -tb 6 calibration coupling: Hyper-thread contention at -tb 8 shifted Gemma 4's K=8 P3 crossover (640 → 288); joint thread + P3 calibration is planned for v2.3.0.
  • Auto mmproj on 4 GiB VRAM: argus start --model auto-attaches matching BF16 mmproj; --no-vision and VRAM-aware mmproj gating are planned for v2.3.0.
  • Untested hardware: >=8 GiB GPUs and unified-memory hosts remain untested.