Port native decode and shared speculative execution to standalone Skippy #9
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #9"
general
weight: 0.35
jaredwy
Summary
Share target verification and compatible DFlash draft forwards across independent requests, while retaining per-request sampling, checkpoints and repair. This PR layers the remaining native decode work onto main's earlier placement/batching/cache baseline from #71. It keeps llama.cpp pinned to
8954f194, uses native ABI0.1.88, and leaves model/quantization inputs unchanged.Review follow-up
BatchPolicy, using the configured decode wait capped at 300 microseconds, and trace the waits. Compatible-lane packing remains unchanged for the separate selection/chunk-sizing work.dflash-proposediagnostic-string barrier exception with an explicit operation kind.f985bb5) so process-wide counter updates from parallel tests cannot invalidate its exact assertions.Matched M3 Ultra pilot
Candidate
ab0dd87versus pinned main5008074, on the same 256 GB M3 Ultra, Qwen3.6-35B-A3B original GGUF and DFlash draft bytes, upstream pin and serving settings:| Serving mode | Main TPS | Candidate TPS | Change |
| --- | ---: | ---: | ---: |
| Plain, concurrency 1 | 94.84 | 99.56 | +4.97% |
| Plain, concurrency 2, aggregate | 150.46 | 161.93 | +7.62% |
| DFlash, concurrency 1 | 162.63 | 164.79 | +1.33% |
| DFlash, concurrency 2, aggregate | 157.72 | 207.70 | +31.69% |
A separate comparison against pre-fix PR head
1ebce5emeasured concurrent DFlash at 205.70 → 208.07 TPS (+1.15%). The large main comparison includes all PR work; it is not attributable to these review fixes alone. Later follow-ups only wire the native test, backport the telemetry test fix, and record evidence.Each comparison/mode has one fresh-process campaign, three warmup cycles and three measured cycles, eight fixed prompts and a 128-token output budget. These are pooled HTTP serving rates including prefill. All accepted outputs match exactly, with zero prompt-cache hits; whole ABBA blocks with competing load or non-nominal thermals were rejected. The observations are provisional; no headline is promoted from a single campaign.
Measurement job · Raw archives and SHA-256 manifest · Benchmark report and source identities
Validation
skippy_graph_contract_glm4-expansionafter 131 preceding passes. The replay/resume recorded 335 distinct native passes, with the opt-in resident-checkpoint long test skipped; this is not a clean full-replay pass.f45fcc1: binding freshness, lint, full tests and CI gate, plus all seven source-bound model configurations.PR checksandInference qualificationare green. Package/device-smoke jobs were not selected in this run and are not counted as passing qualification. CI fix #176 is merged and the author licensing declaration is confirmed. #9 remains open and unmerged.The changed native recipe does not renew the split/family certification rosters. Keep release admission separate from experimental PR smoke.
Historical performance
Older tables remain source-pinned historical observations. Their large gains over the early standalone extraction are not gains over current main or isolated gains over Jared's work. Use the matched pilot above for the present comparison, with its single-campaign limitation.
CI image repair
Stacked PR CI inherited references to the retired
ghcr.io/general-inference/skippy-ci-namespace. The quality job in the failed run was denied before it could execute checks. The affected compiler image references now useghcr.io/mesh-llm/skippy-ci-, matching the repository’s published images.CI image validation
actionlint .github/workflows/ci.yml,node --test .github/scripts/.test.cjs, andSKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just automation-contractspassed locally. These validate workflow syntax and offline contracts; fresh package and hardware checks remain pending in CI.Workflow diagrams
The diagrams compare the live target branch with the proposed
.github/workflows/ci.yml. Arrows show job dependencies; CPU-to-backend CLI artifact handoffs are labeled. Qualification/publication outside this workflow remains separately gated.Before
After
Native cache validation
The v1 shared Cargo/sccache inputs omitted the native patch recipe, allowing native artifacts from another source tree to be reused. Ported main’s source-bound dependency/extra-file identity and cold-build directory fix. Native patch edits/removals now invalidate dependency caches; Rust-only changes retain their permitted dependency reuse.
SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just automation-contractsandgit diff --checkpassed on macOS ARM64, including the native-cache regressions. Fresh model/device qualification is pending on the new head.CI repair validation —
5fd7a54b49519b5da355358df700861067eb8d2fMerged main
cc2a27435e798649a9cb938d600d39722e4a2263, including separate qualification queue/execution budgets and formation-bound peer/listener checks. Reconciled the native decode/speculative/Metal queue with llama.cpp5bacb7c868a2bc98682de15f447fc1ce17c9c49c: branch core patches follow main as 0061–0070, and its ABI patch is model-support 0025. The routed-vector kernel rebase preserves 64-bit destination offsets.Updated the static/dynamic adapters for the three device-row functions now exported with C linkage. Native ABI 0.1.90, regenerated bindings, API reference and source-recipe identity agree. This avoids reusing ABI 0.1.89 already present on child APIs. Runtime bundles must be rebuilt for the new ABI/recipe; wire and model hash contracts are preserved.
Completed validation:
LLAMA_STAGE_BACKEND=cpu just llama-preparereplay;LLAMA_STAGE_BACKEND=cpu just skippy-ffi-bindgen;just --command cargo fmt --all;LLAMA_STAGE_BACKEND=cpu just --command cargo check --workspace --all-targets;LLAMA_STAGE_BACKEND=cpu just lint; andLLAMA_STAGE_BACKEND=cpu just testpassed, including both Rust workspaces and integration/doc/native facade tests.LLAMA_STAGE_BACKEND=cpu just skippy-ffi-bindgen-checkpassed.SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just llama-checkcompleted its Metal native build, deterministic generated-family validation and API-reference check. Its 322-test native run recorded 321 passes and one optional long GPU checkpoint skip. That skip does not establish GPU/model qualification.SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automation, generated API documentation check andgit diff --checkpassed. All-workflow actionlint passed with narrow local 1.7.12 exceptions for documented GitHub cache-mode and queue: max keys; repository lint rules were retained.Fresh exact-head hosted checks and real-model/device qualification remain pending. Earlier performance measurements apply to their recorded sources, not this refreshed head. Contributor declarations remain unchanged.
Split preparation rendezvous repair
<!-- split-preparation-rendezvous-repair -->
The follow-up to main's peer lifecycle improvements is included at
c8d5a396ad1791242918ae3c06d3de5e61049ada. The failed #239 split attempt showed a late-starting peer remained invisible during model admission and stage planning. Control now exposes the matching formation/source/attempt in thepreparingphase during those operations. Native-child readiness, listener ownership and completion evidence remain required; timeouts and qualification policy are unchanged.Validation for this head:
git diff --check,just --command env PYTHONPATH=scripts /tmp/skippy-ci-repair/automation-venv312/bin/python scripts/tests/inference_peer.py(12 tests), andSKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automationall passed. The new real-loopback regression covers both roles and both preparation operations, rejects premature readiness, and verifies cleanup on preparation failure. Exact-head hardware qualification is pending CI.Acceptance criteria
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Compatible concurrent requests can now share speculative draft generation and verification while keeping each request’s generation state independent.
Added benchmark options for comparing shared verification, concurrent DFlash runs, and reference decoding, with throughput and timing reports.
Added optional native draft readout and device-side feature processing, with fallback behavior when unavailable.
Improved Metal decoding and recurrent-state handling.
Documentation
Expanded guidance for configuring shared execution, packaged native runtimes, and benchmark comparisons.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->