Repository navigation
ARGUS v2.0.1 — P0 Decode Roofline Profiler & P3 Multi-LoRA Cassettes
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, theoreticaloverlap_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"]withGET /props?reset_profile=1reset hook and controlled VRAM-guarded harness (benchmarks/profile_decode.py).
- Non-overlapping host wall-clock decomposition (
- 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.0and standby adapters0.0via--lora-scaled,config.jsonprecedence over auto-discovery, zero hardcoded external repo paths — configure viaextra_dirs/ARGUS_LORA_DIRS). - Bare Ollama-style WebUI cassette selector,
slot_lockconcurrency isolation, per-requestlora_id, and active cassette provenance in SSEmeta.
- Full GGUF compatibility verification (
- 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.cppcallsslot.prompt_clear()on LoRA switch to clear KV memory andprompt_moe_top_katomically.- Evidence audit across
README.md,README_TR.md, anddocs/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): AtK=8, CPU routed MoE dominates (41.08 / 56.60 ms,72.6%;92.4%MUL_MAT_ID, only2.1%across512barriers). AtK=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=1realizes95.4%(3.48 ms,K=4) and91.2%(3.31 ms,K=2) ofoverlap_upper_bound_ms(3.63–3.65 ms).gemma4_kat_v1adds+2.90 ms/tokpure GPU HW (+1.12 mshidden in overlap pre-launch;+1.65–1.81 ms/tokwall time). - v2.1.0 discovery: 30-layer Gemma 4 runs
87scheduler splits/tok (41CPU +46GPU) vs61nominal —11extra CPU splits (0.78–1.63 ms/tok) identified forv2.1.0consolidation. - Multi-LoRA live gates (3 cassettes):
2,525 MiBtotal VRAM (+80 MiBfor 2 standby cassettes),7.08 ms12-cycle hot-swap median,cache_n=0cross-LoRA invalidation (A→B,B→C),100%coldA→B→A& concurrent isolation parity,+9.4 MiBRSS /+6 MiBVRAM over 12 cycles. - CI & Tests:
packaging.ymlgreen (packaging+ Ubuntu CPUllama-server+ K1 float64 reference),40/40Python tests +16/16native CUDA tests passing. - PyPI: https://pypi.org/project/argus-cache/2.0.1/