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
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"authority": "checkout",
"metadata": {
"id": "bound-windowed-attention-replay.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Bound replay or prefill query rows across a producer/consumer boundary whose retained inputs and separately preserved historical state satisfy the full dependency closure. Use when a model has shared hidden state or preserved-compressed KV and the retained region must be derived rather than assumed. Derives the retain rule from window plus rollback depth, separates query-row compaction from dropping historical keys, and names what becomes unrecoverable.",
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/deepinfer/bound-windowed-attention-replay/SKILL.md",
"sha256": "06e007f578f19bda7e047bf860fbbe0c899791553fab99e92ef20e929caded54"
},
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/input_metadata/prepare_tensor_input_v4.cpp",
"deepinfer/engine/llm_engine.py",
"deepinfer/model_executor/input_metadata/yoco.py",
"deepinfer/model_executor/model_metadata_utils.py",
"deepinfer/model_executor/models/decoder_layer.py",
"deepinfer/model_executor/models/v4_modules/attn.py",
"deepinfer/model_executor/models/v4_modules/yoco.py",
"deepinfer/worker/cache_engine.py",
"deepinfer/worker/model_runner.py",
"deepinfer/environ.py",
"LICENSE"
],
"readset": "references/source-notes.md",
"revision_precision": "full"
}
],
"applicability": {
"scope": "Decoders with an explicit producer/consumer boundary and a demonstrated dependency closure for compact query rows, including separately preserved historical state",
"prerequisites": "A derived dependency closure; a full-length KV write at the boundary; known rollback depth; control over metadata construction",
"hardware": "Backend-independent retain arithmetic; window sizes, boundary index and ring lengths come from the model config and do not transfer",
"input_contract": "The actual producer/consumer split and transitive dependency closure, boundary index, window and rollback depth, consumer KV sharing/compression layout and separately preserved historical keys.",
"produced_artifact": "A dependency listing, enforced retain length, compact query/position/store-slot/visibility metadata, a separate historical-key retention statement and a diagnostic equivalence-reference mode.",
"failure_modes": "Applying window-plus-rollback without dependency closure, discarding full-layout state, clipping away the sampling row, or comparing across preemption can invalidate replay; compact queries do not imply historical keys were dropped.",
"refusal_point": "Stop if required consumer state is unavailable without a preserved full-length copy, the boundary representation cannot be captured, or comparison preemption moves the anchor. Do not use for clipped-region outputs or required bit-identical preemption replay."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no equivalence run was performed.",
"Applies to architectures with a demonstrated boundary dependency, not to arbitrary sliding-window stacks.",
"Window sizes, boundary-layer index and ring lengths are model-config specific and are not transferable.",
"Query-row compaction does not imply dropping historical keys; the two decisions are separate.",
"Prompt logprobs are unrecoverable for the clipped region; the reference forces them off with a warning.",
"The truncation path is off by default in the reference source.",
"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": [
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/input_metadata/prepare_tensor_input_v4.cpp",
"deepinfer/engine/llm_engine.py",
"deepinfer/model_executor/input_metadata/yoco.py",
"deepinfer/model_executor/model_metadata_utils.py",
"deepinfer/model_executor/models/decoder_layer.py",
"deepinfer/model_executor/models/v4_modules/attn.py",
"deepinfer/model_executor/models/v4_modules/yoco.py",
"deepinfer/worker/cache_engine.py",
"deepinfer/worker/model_runner.py",
"deepinfer/environ.py",
"LICENSE"
],
"readset": "references/source-notes.md"
}
],
"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/systems/engines/deepinfer/bound-windowed-attention-replay/SKILL.md",
"byte_range": [
0,
16349
],
"sha256": "06e007f578f19bda7e047bf860fbbe0c899791553fab99e92ef20e929caded54"
}
}
},
"content": {
"guide.md": {
"path": "engines/deepinfer/bound-windowed-attention-replay/guide.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
513
],
"sha256": "ca50d7dc5d858d86cecaa2951eeeeb10610e8181e97e13e22dc3a3de97a4d591"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
4572
],
"sha256": "ca77d23d54acfc6fa610e76a51c6160db2096144b4e7af452a1b9aa659057810"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
4572,
16349
],
"sha256": "f7040b1bc4bdee2810f0679f7e618fe737118e5c654851178537c9e29ee055e0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/deepinfer/bound-windowed-attention-replay/references/source-notes.md",
"sha256": "fd917bd5ac80bee9c9f4525f8e0300f6d67dc144e2a16632af42a67f3d53d098"
},
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/input_metadata/prepare_tensor_input_v4.cpp",
"deepinfer/engine/llm_engine.py",
"deepinfer/model_executor/input_metadata/yoco.py",
"deepinfer/model_executor/model_metadata_utils.py",
"deepinfer/model_executor/models/decoder_layer.py",
"deepinfer/model_executor/models/v4_modules/attn.py",
"deepinfer/model_executor/models/v4_modules/yoco.py",
"deepinfer/worker/cache_engine.py",
"deepinfer/worker/model_runner.py",
"deepinfer/environ.py",
"LICENSE"
],
"readset": "references/source-notes.md",
"revision_precision": "full"
}
],
"applicability": {
"scope": "Decoders with an explicit producer/consumer boundary and a demonstrated dependency closure for compact query rows, including separately preserved historical state",
"prerequisites": "A derived dependency closure; a full-length KV write at the boundary; known rollback depth; control over metadata construction",
"hardware": "Backend-independent retain arithmetic; window sizes, boundary index and ring lengths come from the model config and do not transfer",
"input_contract": "The actual producer/consumer split and transitive dependency closure, boundary index, window and rollback depth, consumer KV sharing/compression layout and separately preserved historical keys.",
"produced_artifact": "A dependency listing, enforced retain length, compact query/position/store-slot/visibility metadata, a separate historical-key retention statement and a diagnostic equivalence-reference mode.",
"failure_modes": "Applying window-plus-rollback without dependency closure, discarding full-layout state, clipping away the sampling row, or comparing across preemption can invalidate replay; compact queries do not imply historical keys were dropped.",
"refusal_point": "Stop if required consumer state is unavailable without a preserved full-length copy, the boundary representation cannot be captured, or comparison preemption moves the anchor. Do not use for clipped-region outputs or required bit-identical preemption replay."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no equivalence run was performed.",
"Applies to architectures with a demonstrated boundary dependency, not to arbitrary sliding-window stacks.",
"Window sizes, boundary-layer index and ring lengths are model-config specific and are not transferable.",
"Query-row compaction does not imply dropping historical keys; the two decisions are separate.",
"Prompt logprobs are unrecoverable for the clipped region; the reference forces them off with a warning.",
"The truncation path is off by default in the reference source.",
"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": [
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/input_metadata/prepare_tensor_input_v4.cpp",
"deepinfer/engine/llm_engine.py",
"deepinfer/model_executor/input_metadata/yoco.py",
"deepinfer/model_executor/model_metadata_utils.py",
"deepinfer/model_executor/models/decoder_layer.py",
"deepinfer/model_executor/models/v4_modules/attn.py",
"deepinfer/model_executor/models/v4_modules/yoco.py",
"deepinfer/worker/cache_engine.py",
"deepinfer/worker/model_runner.py",
"deepinfer/environ.py",
"LICENSE"
],
"readset": "references/source-notes.md"
}
],
"empirical_validation": "not_run",
"title": "Source notes: bound windowed-attention replay",
"summary": "Source notes: bound windowed-attention replay",
"id": "bound-windowed-attention-replay.references-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/systems/engines/deepinfer/bound-windowed-attention-replay/references/source-notes.md",
"byte_range": [
0,
12036
],
"sha256": "fd917bd5ac80bee9c9f4525f8e0300f6d67dc144e2a16632af42a67f3d53d098"
}
}
},
"content": {
"source-notes.md": {
"path": "engines/deepinfer/bound-windowed-attention-replay/source-notes.md"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/deepinfer/bound-windowed-attention-replay/references/validation.md",
"sha256": "60e71e70c5519bcdf6c171eec2be2f342e8801bedd746d6005f11adc646dfaff"
},
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/input_metadata/prepare_tensor_input_v4.cpp",
"deepinfer/engine/llm_engine.py",
"deepinfer/model_executor/input_metadata/yoco.py",
"deepinfer/model_executor/model_metadata_utils.py",
"deepinfer/model_executor/models/decoder_layer.py",
"deepinfer/model_executor/models/v4_modules/attn.py",
"deepinfer/model_executor/models/v4_modules/yoco.py",
"deepinfer/worker/cache_engine.py",
"deepinfer/worker/model_runner.py",
"deepinfer/environ.py",
"LICENSE"
],
"readset": "references/source-notes.md",
"revision_precision": "full"
}
],
"applicability": {
"scope": "Decoders with an explicit producer/consumer boundary and a demonstrated dependency closure for compact query rows, including separately preserved historical state",
"prerequisites": "A derived dependency closure; a full-length KV write at the boundary; known rollback depth; control over metadata construction",
"hardware": "Backend-independent retain arithmetic; window sizes, boundary index and ring lengths come from the model config and do not transfer",
"input_contract": "The actual producer/consumer split and transitive dependency closure, boundary index, window and rollback depth, consumer KV sharing/compression layout and separately preserved historical keys.",
"produced_artifact": "A dependency listing, enforced retain length, compact query/position/store-slot/visibility metadata, a separate historical-key retention statement and a diagnostic equivalence-reference mode.",
"failure_modes": "Applying window-plus-rollback without dependency closure, discarding full-layout state, clipping away the sampling row, or comparing across preemption can invalidate replay; compact queries do not imply historical keys were dropped.",
"refusal_point": "Stop if required consumer state is unavailable without a preserved full-length copy, the boundary representation cannot be captured, or comparison preemption moves the anchor. Do not use for clipped-region outputs or required bit-identical preemption replay."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no equivalence run was performed.",
"Applies to architectures with a demonstrated boundary dependency, not to arbitrary sliding-window stacks.",
"Window sizes, boundary-layer index and ring lengths are model-config specific and are not transferable.",
"Query-row compaction does not imply dropping historical keys; the two decisions are separate.",
"Prompt logprobs are unrecoverable for the clipped region; the reference forces them off with a warning.",
"The truncation path is off by default in the reference source.",
"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": [
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/input_metadata/prepare_tensor_input_v4.cpp",
"deepinfer/engine/llm_engine.py",
"deepinfer/model_executor/input_metadata/yoco.py",
"deepinfer/model_executor/model_metadata_utils.py",
"deepinfer/model_executor/models/decoder_layer.py",
"deepinfer/model_executor/models/v4_modules/attn.py",
"deepinfer/model_executor/models/v4_modules/yoco.py",
"deepinfer/worker/cache_engine.py",
"deepinfer/worker/model_runner.py",
"deepinfer/environ.py",
"LICENSE"
],
"readset": "references/source-notes.md"
}
],
"empirical_validation": "not_run",
"title": "Validation: bound windowed-attention replay",
"summary": "Validation: bound windowed-attention replay",
"id": "bound-windowed-attention-replay.references-validation",
"kind": "knowledge",
"entrypoint": "validation.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/systems/engines/deepinfer/bound-windowed-attention-replay/references/validation.md",
"byte_range": [
0,
5402
],
"sha256": "60e71e70c5519bcdf6c171eec2be2f342e8801bedd746d6005f11adc646dfaff"
}
}
},
"content": {
"validation.md": {
"path": "engines/deepinfer/bound-windowed-attention-replay/validation.md"
}
}
}
Loading
Loading