Repository navigation
Isolate inference caches across llama native recipes - #212
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 31 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
similar to #209 ?? |
Skippy Lab Qualification: PassedCommit: Native Spark lab qualification. Latest successful main: run 45030840757, attempt 1, commit
TPS describes the first response of each of three short scored smoke cases at concurrency 1; deterministic repeats are excluded. Each rate is total tokens / total server-reported phase time, not an average of request rates. Prefill excludes cached prompt tokens. These short samples include startup/warmup effects and are not sustained benchmarks or controlled speedup comparisons. Missing or invalid timings show as Unavailable. Deltas use unrounded rates from matching PR-profile smoke receipts on the latest successful main run, including the nightly smoke evidence. Positive means faster. Changed workload inputs, different serving host classes, unequal phase token counts or missing evidence show Unavailable. Physical Spark placement and runtime conditions can differ; deltas are descriptive, not controlled speedup claims. Smoke checks cover GPU startup, deterministic endpoint repeats and bounded streaming. They do not establish an AgentX performance score. Nightly history and saved performance baselines are published separately; a saved baseline can be older than the latest successful main run used here. The lab retains native results and logs. GitHub evidence copies expire after 30 days. |
michaelneale
left a comment
There was a problem hiding this comment.
I think this is ok pending @jaredwy thoughts.
Original problem
Inference qualification for the llama upgrade failed during linking, before any model request:
kimi-k2.cpp.oreferenced the oldcommon_peg_arena::add_parservariant while the upgraded parser defines the new variant. See PR #201 and the failed qualification run.Maintainers need to switch native pins without sharing incompatible bundled objects through reusable build caches.
Diagnostics
The executable cache includes the source commit. Its Cargo dependency directory explicitly excluded that commit and contained no native source-recipe input. Old and new native recipes could therefore share the same Cargo target. The compiler cache was also shared with no explicit native recipe input. Earlier forced compiler rebuilds in separate Cargo namespaces succeeded.
The failure establishes incompatible native objects at link time. The original failed workspaces have since been cleaned; a later job overwrote the shared archive. This does not establish which cache layer first supplied the stale object.
Fix
Compatibility
No runtime, ABI, model, wire or public CLI changes. Old cache entries are left intact and become unused by this build path. The first build of a native recipe repopulates caches.
Validation
just inference-contracts: passed, including three new offline cache regression cases.just automation-contracts: passed.git diff --check: passed.Native JY old → new → old builds (
job_38h9bm3pkxkfmns, spark-000907): passed. Old8954f194: 214s; new5bacb7c8: 228s; return to old: 106s. The return deliberately missed the executable cache while retaining Cargo/compiler caches. Its CLI SHA-256 exactly matched the initial old build. The dependency keys separated old/new recipes and returned to the original old key. Both executables also passed--helpafter each build. These timings describe this rehearsal, not a performance claim.Automatic Spark qualification on infrastructure head
cf1b5b9a: all seven configurations passed, including Flash Next standalone/split. ProtectedPR checksis successful; repository review approval remains required. Recover llama.cpp upgrade to 5bacb7c8 and fix runtime regressions #201 contains this fix for its separate current-head qualification.A second source-only control (
job_gfrd6p91w26r6zv, spark-000945) also passed old → new → old, forcing an executable-cache miss at every step. Both pins used the identical Cargo lockfile (20de18005663…) and all build inputs except source SHA/native recipe matched. Old/new recipe hashes differed; the return reproduced the original dependency key and CLI hash. This directly exercises recipe isolation without a dependency-version change. The warm return recorded normal cache reuse with zero forced recaches.Acceptance criteria