Skip to content

[Bounty #15] Multi-tenant LoRA paging · engine (S-LoRA) #96

Closed as not planned

Description

@zeekay

Umbrella HIP: HIP-1345: Agent-Aware Model Serving and Cache Reuse (hanzoai/hips)
Bounty Class: Research + Implementation Bounty
Primary Research / Code: S-LoRA paper · code

Objective & Acceptance Test

Serve many fine-tuned Zen LoRA adapters concurrently against shared base weights. Measure adapters per GPU, adapter-switch latency, and throughput under mixed-rank load while enforcing strict tenant isolation.

Scope & Canonical Architecture

Verify Apache-2.0 / MIT compatibility before porting kernels or scheduler logic.

Canonical stack boundaries MUST stay intact (vfs -> hanzoai/s3 -> visor, Cloud owning lifecycle & billing, Enso routing models, Zen generating outputs, Kai returning structured non-generative decisions). Reported figures in referenced FAST/conference papers belong strictly to the original authors' environments and MUST NOT be treated as Hanzo expectations until reproduced here.

Research-to-PR Acceptance Contract (0 of 6 requirements)

  • 1. Paper & License Audit: Link primary paper/code, summarize design, and verify license compatibility (prefer Apache-2.0/MIT for production merges; clean-room implementation or research-only report otherwise) and patent restrictions.
  • 2. Matched Baselines: Provide reproducible upstream baseline and identical Hanzo baseline scripts/configs.
  • 3. Falsifiable Hypothesis: Document target metrics and expected failure modes up front.
  • 4. Deliverable: Submit bounded implementation PR (Implementation Bounty) or documented reproducible experiment including valid negative results (Research Bounty).
  • 5. Evidence & Safety: Include correctness, concurrency, multi-tenant isolation, security, and regression tests appropriate to the subsystem.
  • 6. Measurements & HIP Update: Publish raw before/after measurements, methodology, and status update against HIP-1345.

Activity

  1. added
    help wanted
    on Nov 16, 2026
  2. breezesamuel commented on Nov 17, 2026

    @breezesamuel
    Contributor

    Claiming this bounty as first-mover.

    Starting initial research phase:
    • Primary paper/code audit + license compatibility check
    • Matched baseline design draft
    • Falsifiable hypothesis formulation

    Publishing methodology document within 24h.

    — breezesamuel

  3. breezesamuel commented on Nov 17, 2026

    @breezesamuel
    Contributor

    Deliverable: Draft PR #104 (fabric policy layer, Phase 1)

    #104

    • hanzo-kv-fabric/src/adapter_paging.rs: AdapterPagingRegistry — tenant-salted adapter keys (HIP-1345 §1.1), per-(key, layer) pages, hard device-byte budget, LRU eviction over unpinned residents only, pin/unpin, deregister, registration-time SHA-256 digests carried on every lease.
    • examples/lora_paging_bench.rs: 8 tenants × 2 adapters × 4 layers × 4 MiB pages (256 MiB demand / 40 MiB budget) standing storm, with and without pinning.
    • 12 new tests (salt isolation, fail-closed config, hard-budget eviction accounting, pin/DoS-resistance, unpin restore, deregister budget release, 8-thread concurrency): cargo test -p hanzo-kv-fabric — 15/15 pass.

    Measured from the example (release build):

    phase A (unpinned)          : 0 hits / 2048 misses (0.0% hit ratio), 2038 evictions
    phase B (tenant-0 pinned)   : 248 hits / 1800 misses, 1800 evictions
    pinned tenant hit ratio     : 248/256 (96.9%)
    unpinned tenants hit ratio  : 0/1792 (0.0%)
    policy cost, resident hit   : ~558 ns/lookup
    policy cost, admission      : ~1386 ns/lookup
    pinned pages after storm    : 8/8 still Pinned
    

    Acceptance contract: (1) ✔ S-LoRA audit, Apache-2.0 ↔ MIT, clean-room — no reference code consulted; (2) ✔ Phase A of the example is the matched baseline (identical workload, no pinning); (3) ✔ hypotheses + failure modes documented in the module docs; (4) ✔ this bounded PR; (5) ✔ tests above; (6) partial — fabric-level counters measured; GPU-side adapters-per-GPU / switch-latency and the HIP-1345 §2.3 status update follow with the scheduler integration (Phase 2).

    No new dependencies, no workspace changes, no device I/O. The attention-path RoPE translation and real-weight paging are explicitly Phase 2.

  4. zeekay commented on Nov 21, 2026

    @zeekay
    MemberAuthor

    Duplicate of #88; continue there. Open PRs are retargeted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountyhelp wantedperfresearch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions