Skip to content

ARGUS v2.0.1 — P0 Decode Roofline Profiler & P3 Multi-LoRA Cassettes

Choose a tag to compare

@Zwannfrederick Zwannfrederick released this 02 Dec 14:17
· 33 commits to main since this release

ARGUS v2.0.1

Incremental release adding P0 decode roofline profiling and P3 GGUF-verified Multi-LoRA specialist cassette management, plus two C++ KV/LoRA root-cause fixes caught during live verification.

Highlights

  • P0 Zero-Perturbation Decode Roofline Profiler (ARGUS_DECODE_PROFILE=1|2):
    • Non-overlapping host wall-clock decomposition (graph_build_ms, event_sync_ms, h2d_copy_ms, d2h_copy_ms, d2h_sync_ms, gpu_pre_submit_ms, cpu_split_ms, gpu_split_submit_ms, final_sync_ms, other_host_ms) + H2D/D2H byte counters.
    • Separate 256-slot async CUDA hardware event ring resolved post-sync (gpu_pre_hw_ms, gpu_post_hw_ms, theoretical overlap_upper_bound_ms, event_ring_overflows).
    • Level-2 (ARGUS_DECODE_PROFILE=2) opt-in CPU inner breakdown (cpu_mmid_prep_ms, cpu_mmid_compute_ms, cpu_barrier_ms, cpu_other_ops_ms).
    • Exported under GET /props["argus"]["profile"] with GET /props?reset_profile=1 reset hook and controlled VRAM-guarded harness (benchmarks/profile_decode.py).
  • P3 Multi-LoRA Specialist Cassette Management (argus_cache/adapters/lora.py):
    • Full GGUF compatibility verification (is_lora, general.architecture, base tensor existence, and exact input/output/rank matrix dimensions).
    • VRAM-gated planner (max 4 adapters, KAT default active 1.0 and standby adapters 0.0 via --lora-scaled, config.json precedence over auto-discovery, zero hardcoded external repo paths — configure via extra_dirs / ARGUS_LORA_DIRS).
    • Bare Ollama-style WebUI cassette selector, slot_lock concurrency isolation, per-request lora_id, and active cassette provenance in SSE meta.
  • Root-Cause Fixes:
    • llama_kv_cache::state_read_data() now refreshes ARGUS host KV GPU mirrors (argus_kv_mirror_refresh()) across prompt-cache and checkpoint restores.
    • server-context.cpp calls slot.prompt_clear() on LoRA switch to clear KV memory and prompt_moe_top_k atomically.
    • Evidence audit across README.md, README_TR.md, and docs/architecture.md.

Verified Hardware Measurements (RTX 3050 Ti 4 GB + i5-11300H + 32 GiB DDR4)

Full dataset & methodology: docs/measurements/v201-2026-12-02/README.md (git_rev=fe27820, git_dirty=false, event_ring_overflows=0):

  • Roofline flip (gemma-4-26B_q4_0-it): At K=8, CPU routed MoE dominates (41.08 / 56.60 ms, 72.6%; 92.4% MUL_MAT_ID, only 2.1% across 512 barriers). At K=2, GPU sync (d2h_sync_ms + final_sync_ms = 11.33 / 24.45 ms, 46.4%) overtakes CPU MoE (10.71 ms, 43.8%).
  • Overlap & LoRA cost: overlap=1 realizes 95.4% (3.48 ms, K=4) and 91.2% (3.31 ms, K=2) of overlap_upper_bound_ms (3.63–3.65 ms). gemma4_kat_v1 adds +2.90 ms/tok pure GPU HW (+1.12 ms hidden in overlap pre-launch; +1.65–1.81 ms/tok wall time).
  • v2.1.0 discovery: 30-layer Gemma 4 runs 87 scheduler splits/tok (41 CPU + 46 GPU) vs 61 nominal — 11 extra CPU splits (0.78–1.63 ms/tok) identified for v2.1.0 consolidation.
  • Multi-LoRA live gates (3 cassettes): 2,525 MiB total VRAM (+80 MiB for 2 standby cassettes), 7.08 ms 12-cycle hot-swap median, cache_n=0 cross-LoRA invalidation (A→B, B→C), 100% cold A→B→A & concurrent isolation parity, +9.4 MiB RSS / +6 MiB VRAM over 12 cycles.
  • CI & Tests: packaging.yml green (packaging + Ubuntu CPU llama-server + K1 float64 reference), 40/40 Python tests + 16/16 native CUDA tests passing.
  • PyPI: https://pypi.org/project/argus-cache/2.0.1/