Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions src/inferrsi/knowledge/atoms/assess-serving-preemption.original.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"authority": "checkout",
"metadata": {
"id": "assess-serving-preemption.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Assess whether LLM serving queue delays justify token-boundary priority preemption, accounting for suspended KV, host swapping or recomputation, and long-request service guarantees. Use for admission-versus-service-order diagnosis, not current scheduler implementation or tenant-fairness certification.",
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-serving-preemption/SKILL.md",
"sha256": "7167ef93338f5acdf2eab867372748259bfd7cfc8480ea7ddefe166882e04570"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"applicability": {
"scope": "Diagnosing whether LLM serving queue delay justifies token-boundary priority preemption, including suspended KV, host swap or recomputation and long-request service guarantees; admission-versus-service-order diagnosis, not current scheduler implementation or tenant-fairness certification",
"prerequisites": "The packaged source notes are read before quoting a metric or comparing a baseline; installing, benchmarking, changing scheduling or admission, migrating state, editing a repository or running a reproduction needs a separately authorized task",
"input_contract": "The late boundary (first token, token gap, completion or a stated cohort's service) with its exact percentile or attainment target and denominator; model and KV format, engine revision, safe interruption boundary, request batch limit, input/output/context distributions, arrival bursts, device live/reserved/allocated bytes, active and suspended requests, host budget, transfer path, recovery time and queue/phase/service timings; per-tenant or priority-class obligations kept apart from aggregate latency",
"produced_artifact": "A read-only decision naming the observed failure boundary, the smallest candidate that addresses it, unchanged assumptions, missing evidence, resource cost, affected cohorts, counter-signal and next authorized gate, plus a proposed verification plan; not a validated configuration",
"failure_modes": [
"An ordinary iteration boundary is taken to permit interrupting a prefill halfway through",
"Unknown output length is treated as known from the prompt",
"KV is counted for the running batch only, omitting started requests that are suspended",
"Reservations are removed because some reserved capacity is not live",
"Recompute-based eviction is proposed without a progress invariant, so two jobs can repeatedly displace each other",
"Host-device copies or same-host IPC are charged to Network instead of their local resource"
],
"refusal_point": "Withholds a preemption recommendation when the apparent gain can be explained by different kernels, unmatched parallelism or an incomparable latency metric; unknown safe boundaries, unsupported state recovery, uncalibrated timing or unclear service obligations are blockers"
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-serving-preemption/SKILL.md",
"byte_range": [
0,
10170
],
"sha256": "7167ef93338f5acdf2eab867372748259bfd7cfc8480ea7ddefe166882e04570"
}
}
},
"content": {
"guide.md": {
"path": "playbooks/assess-serving-preemption.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
352
],
"sha256": "e6690e0a776e9a5ad44803d0d2179ef7effe2da8cd8e9ae682d46804dee61569"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
4124
],
"sha256": "9019dacd63dd9793d57bdb82424909100fcc658a167181a79315faee5a6be3e6"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
4124,
10170
],
"sha256": "b3514895ebdc3e474b26c3dcc33507d1f2c6511d59e1e9e1437e6561a47df298"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Diagnosing whether LLM serving queue delay justifies token-boundary priority preemption, including suspended KV, host swap or recomputation and long-request service guarantees; admission-versus-service-order diagnosis, not current scheduler implementation or tenant-fairness certification",
"prerequisites": "The packaged source notes are read before quoting a metric or comparing a baseline; installing, benchmarking, changing scheduling or admission, migrating state, editing a repository or running a reproduction needs a separately authorized task",
"input_contract": "The late boundary (first token, token gap, completion or a stated cohort's service) with its exact percentile or attainment target and denominator; model and KV format, engine revision, safe interruption boundary, request batch limit, input/output/context distributions, arrival bursts, device live/reserved/allocated bytes, active and suspended requests, host budget, transfer path, recovery time and queue/phase/service timings; per-tenant or priority-class obligations kept apart from aggregate latency",
"produced_artifact": "A read-only decision naming the observed failure boundary, the smallest candidate that addresses it, unchanged assumptions, missing evidence, resource cost, affected cohorts, counter-signal and next authorized gate, plus a proposed verification plan; not a validated configuration",
"failure_modes": [
"An ordinary iteration boundary is taken to permit interrupting a prefill halfway through",
"Unknown output length is treated as known from the prompt",
"KV is counted for the running batch only, omitting started requests that are suspended",
"Reservations are removed because some reserved capacity is not live",
"Recompute-based eviction is proposed without a progress invariant, so two jobs can repeatedly displace each other",
"Host-device copies or same-host IPC are charged to Network instead of their local resource"
],
"refusal_point": "Withholds a preemption recommendation when the apparent gain can be explained by different kernels, unmatched parallelism or an incomparable latency metric; unknown safe boundaries, unsupported state recovery, uncalibrated timing or unclear service obligations are blockers"
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"title": "Self-contained source notes",
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-serving-preemption/references/source-notes.md",
"sha256": "f29fcecfba0490008a354c11b42403983fe165e56ff907ad61cc6040d2b6407f"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"id": "assess-serving-preemption.source-notes",
"kind": "knowledge",
"entrypoint": "source-notes.md",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-serving-preemption/references/source-notes.md",
"byte_range": [
0,
30405
],
"sha256": "f29fcecfba0490008a354c11b42403983fe165e56ff907ad61cc6040d2b6407f"
}
}
},
"content": {
"source-notes.md": {
"path": "playbooks/assess-serving-preemption/references/source-notes.md"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"authority": "checkout",
"metadata": {
"id": "assess-split-backward-schedule.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Evaluate memory-capped split-backward and V-shaped pipeline scheduling proposals, preserving synchronous update, global-batch and optimizer-validation semantics.",
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-split-backward-schedule/SKILL.md",
"sha256": "f777607e0158371f4025efff3fa63e57e1622e2a86ec087cc580f076681e9ac5"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"applicability": {
"scope": "Assessing memory-capped split-backward and V-shaped pipeline schedule proposals when a pipeline trace suggests input-gradient propagation waits behind deferrable weight-gradient work or an optimizer barrier, while preserving synchronous update, global-batch and optimizer-validation semantics",
"prerequisites": "The packaged evidence notes are read before citing the paper; installing or running frameworks, benchmarking schedules, changing training semantics, configuring hardware or modifying repositories needs separate authorization",
"input_contract": "Stage and microbatch counts, microbatch and global batch, precision, optimizer and clipping/NaN behavior; F, input-gradient B, weight-gradient W and transfer timings; per-pass retained and released bytes; total device peak and margin; collective ordering; kernel-splitting support; calculated bubble rate kept apart from measured idle time and useful samples/s",
"produced_artifact": "A candidate schedule and fallback with per-pass order rationale, peak-memory and transfer costs, unchanged semantic requirements, counter-signals and a future verification proposal; a reviewable plan, not an enabled schedule",
"failure_modes": [
"Completion of B is equated with releasing all activations, so W inputs retained by deferral go uncounted",
"The equal-time zero-bubble construction replaces observed F/B/W and transfer times, or kernel-splitting and synchronization overhead is left out",
"The schedule is chosen by minimum modeled bubble rate instead of whole-step throughput under the memory and quality constraint",
"pMB activation capacity is read as total memory, hiding HBM, workspace, buffers or per-rank imbalance",
"Removing the optimizer barrier drops global norm, clipping or NaN decisions, rollback and re-update, or the correctness of work that depends on a tentative update",
"Optimizer post-validation is conflated with accepting stale-gradient delayed updates"
],
"refusal_point": "Withholds an enablement recommendation under frequent clipping/NaNs, small available memory, strongly unequal passes, unsupported split kernels, hidden collectives or dynamic shapes, and retains the synchronized fallback while optimizer reversibility and rollback coverage are unverified"
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-split-backward-schedule/SKILL.md",
"byte_range": [
0,
6631
],
"sha256": "f777607e0158371f4025efff3fa63e57e1622e2a86ec087cc580f076681e9ac5"
}
}
},
"content": {
"guide.md": {
"path": "playbooks/assess-split-backward-schedule.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
216
],
"sha256": "ce2f53bb28791ee2d4e3b59eb7e2a4767e1b3d9a3a1ecc007f463b36489fed68"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
3670
],
"sha256": "1d38c4bb530a75ff000714b4460608ae86b3c34ab33696831c4f42fa505b067d"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
3670,
6631
],
"sha256": "45f1121e8dd3eb00f4c2cec6642aea2da2d3eb5f0cf5c5eb4552631f3ee1f1be"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Assessing memory-capped split-backward and V-shaped pipeline schedule proposals when a pipeline trace suggests input-gradient propagation waits behind deferrable weight-gradient work or an optimizer barrier, while preserving synchronous update, global-batch and optimizer-validation semantics",
"prerequisites": "The packaged evidence notes are read before citing the paper; installing or running frameworks, benchmarking schedules, changing training semantics, configuring hardware or modifying repositories needs separate authorization",
"input_contract": "Stage and microbatch counts, microbatch and global batch, precision, optimizer and clipping/NaN behavior; F, input-gradient B, weight-gradient W and transfer timings; per-pass retained and released bytes; total device peak and margin; collective ordering; kernel-splitting support; calculated bubble rate kept apart from measured idle time and useful samples/s",
"produced_artifact": "A candidate schedule and fallback with per-pass order rationale, peak-memory and transfer costs, unchanged semantic requirements, counter-signals and a future verification proposal; a reviewable plan, not an enabled schedule",
"failure_modes": [
"Completion of B is equated with releasing all activations, so W inputs retained by deferral go uncounted",
"The equal-time zero-bubble construction replaces observed F/B/W and transfer times, or kernel-splitting and synchronization overhead is left out",
"The schedule is chosen by minimum modeled bubble rate instead of whole-step throughput under the memory and quality constraint",
"pMB activation capacity is read as total memory, hiding HBM, workspace, buffers or per-rank imbalance",
"Removing the optimizer barrier drops global norm, clipping or NaN decisions, rollback and re-update, or the correctness of work that depends on a tentative update",
"Optimizer post-validation is conflated with accepting stale-gradient delayed updates"
],
"refusal_point": "Withholds an enablement recommendation under frequent clipping/NaNs, small available memory, strongly unequal passes, unsupported split kernels, hidden collectives or dynamic shapes, and retains the synchronized fallback while optimizer reversibility and rollback coverage are unverified"
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"title": "Split-backward evidence and mechanism reference",
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-split-backward-schedule/references/source-notes.md",
"sha256": "61b1609f71c37b61d136b8c4d39f793de87cffb1cf31c8ec737a1c3fa6fb1b4e"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"id": "assess-split-backward-schedule.source-notes",
"kind": "knowledge",
"entrypoint": "source-notes.md",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/planning/assess-split-backward-schedule/references/source-notes.md",
"byte_range": [
0,
10548
],
"sha256": "61b1609f71c37b61d136b8c4d39f793de87cffb1cf31c8ec737a1c3fa6fb1b4e"
}
}
},
"content": {
"source-notes.md": {
"path": "playbooks/assess-split-backward-schedule/references/source-notes.md"
}
}
}
Loading
Loading