Skip to content
Open
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,130 @@
{
"authority": "checkout",
"metadata": {
"id": "audit-recurrent-kv-finalization.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Audit vLLM-RLT synchronous early-exit KV propagation, later depth-specific attention reads, and request storage retirement. Use when shallow token exits leave deeper history or release order in question.",
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm-rlt/audit-recurrent-kv-finalization/SKILL.md",
"sha256": "fb59f58e1c1ee9490f9c933b9c5ac7788bff367511e6f947c96f53939fc8f521"
},
{
"type": "git",
"url": "https://github.com/InferMatrixLab/vllm-rlt",
"commit": "4a350344027960a48384626aa646f1765fda6d4f",
"paths": [
"README.md",
"LICENSE",
"NOTICE",
"vllm_rlt/core/kv_cache_manager.py",
"vllm_rlt/worker/model_runner.py",
"tests/test_kv_cache.py",
"pyproject.toml",
"vllm_rlt/config.py",
"vllm_rlt/engine/stage_engine.py",
"vllm_rlt/core/scheduler.py",
"vllm_rlt/worker/executor.py",
"vllm_rlt/attention/__init__.py",
"vllm_rlt/attention/backend.py",
"vllm_rlt/models/ouro.py",
"vllm_rlt/layers/__init__.py",
"vllm_rlt/__init__.py",
"tests/conftest.py",
"vllm_rlt/request.py",
"vllm_rlt/worker/metadata.py",
"vllm_rlt/kernels/paged_attention.py",
"vllm_rlt/worker/buffers.py"
],
"readset": "references/source-notes.md",
"identity": "references/source-identity.json",
"license": "Apache-2.0",
"third_party_notices": "references/NOTICE.md",
"revision_precision": "full"
}
],
"applicability": {
"scope": "Pinned vLLM-RLT native Ouro synchronous scheduling with host KVMetadata: LAST_EXITED propagation versus SHARED, later depth-specific Torch-reference attention and normal release/wait/free order. No speculation, connector, preemption, prefix sharing, split/packed prefill or graph/static-buffer path qualification.",
"prerequisites": "The selected native Ouro synchronous path uses host KVMetadata, no speculation/connector/preemption, atomic prefill and disabled graph/static-buffer/packed-prefill paths; changed execution conditions need a new bounded check.",
"input_contract": "Repository revision, model/configuration, recurrent-layer set, loop count, cache layout and block size, dtype/device, attention backend and effective flags, plus the traced token/depth/layer and its next consumer.",
"produced_artifact": "A bounded token/finalization/consumer/retirement trace separating source call order, observed data and written validity, completion evidence and remaining native model/backend/performance gaps.",
"failure_modes": "Substituting mark_finalized for K/V propagation, accepting allocated pages as a complete written prefix, applying LAST_EXITED copy expectations to SHARED, or treating event recording as completion can invalidate the ownership diagnosis.",
"refusal_point": "On a failed prerequisite or complete-prefix check, retain the first failing token/depth/layer and trace the missing operation. Stop the conclusion when flags or metadata ownership leave the selected path."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; native CPU/CUDA, model correctness/quality, performance and agent efficacy are not validated.",
"Allocated capacity, host written-position validity, copied K/V bytes, event recording and completed device work are distinct; host-row checks do not qualify DeviceKVMetadata.",
"Repository Apache-2.0 and retained model/configuration NOTICE attribution do not constitute a whole-tree or model-weight license audit.",
"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/InferMatrixLab/vllm-rlt",
"commit": "4a350344027960a48384626aa646f1765fda6d4f",
"paths": [
"README.md",
"LICENSE",
"NOTICE",
"vllm_rlt/core/kv_cache_manager.py",
"vllm_rlt/worker/model_runner.py",
"tests/test_kv_cache.py",
"pyproject.toml",
"vllm_rlt/config.py",
"vllm_rlt/engine/stage_engine.py",
"vllm_rlt/core/scheduler.py",
"vllm_rlt/worker/executor.py",
"vllm_rlt/attention/__init__.py",
"vllm_rlt/attention/backend.py",
"vllm_rlt/models/ouro.py",
"vllm_rlt/layers/__init__.py",
"vllm_rlt/__init__.py",
"tests/conftest.py",
"vllm_rlt/request.py",
"vllm_rlt/worker/metadata.py",
"vllm_rlt/kernels/paged_attention.py",
"vllm_rlt/worker/buffers.py"
],
"readset": "references/source-notes.md",
"identity": "references/source-identity.json",
"license": "Apache-2.0",
"third_party_notices": "references/NOTICE.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/vllm-rlt/audit-recurrent-kv-finalization/SKILL.md",
"byte_range": [
0,
11778
],
"sha256": "fb59f58e1c1ee9490f9c933b9c5ac7788bff367511e6f947c96f53939fc8f521"
}
}
},
"content": {
"guide.md": {
"path": "engines/vllm-rlt/audit-recurrent-kv-finalization.md"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"authority": "checkout",
"metadata": {
"id": "budget-speculative-verification.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Decide how many draft tokens to verify per decode step when acceptance varies by request and position. Use when an engine already runs a draft head with multi-token speculation and verification cost grows with query rows. Separates draft cost from verify cost, builds a cumulative-acceptance rate vector, fits a cost model, and allocates a per-step row budget.",
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/deepinfer/budget-speculative-verification/SKILL.md",
"sha256": "6e0dfacc7aa59b383761798656fd52e99b66fc7794c65dc3fc4f1c180b73072c"
},
{
"type": "git",
"url": "https://github.com/deepseek-ai/DeepInfer",
"commit": "8b16149741a4935e1dec8cea27853f273b374c5b",
"paths": [
"csrc/engine/mtp_varlen.hpp",
"csrc/engine/scheduler.hpp",
"deepinfer/worker/worker.py",
"deepinfer/environ.py",
"deepinfer/sampling_params.py",
"deepinfer/model_executor/models/mtp/dflash.py",
"deepinfer/model_executor/layers/sampler.py",
"deepinfer/model_executor/layers/tilelang_ops/fused_sample.py",
"LICENSE"
],
"readset": "references/source-notes.md",
"revision_precision": "full"
}
],
"applicability": {
"scope": "Engines with multi-token speculative decoding whose verification forward cost grows with query rows",
"prerequisites": "A calibrated per-position acceptance signal; a measured (rows, step_time) curve; a handle on metadata construction",
"hardware": "Backend-independent procedure; the reference implementation targets NVIDIA SM100 and Ascend 950 only",
"input_contract": "Draft width and row representation, the defined individual/conditional versus cumulative acceptance semantics, verify rows/time curve, sampler cost and acceptance round actually available at schedule time.",
"produced_artifact": "A per-step verification row budget, per-request query lengths from one through draft_width plus one, cumulative acceptance vectors and predicted-versus-realized acceptance error logs.",
"failure_modes": "Confusing verification savings with reduced drafting, misreading confidence semantics or available rounds, allowing later-position confidence to select an earlier token, or generating non-prefix grants can invalidate the budget or sampling claim.",
"refusal_point": "Stop if unthrottled drafting or sampler cost dominates, the signal cannot be made cumulative, or no round supplies acceptance estimates; the procedure also does not apply without a per-step cost model."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation and no reproduced gain.",
"The reference budgets verification rows only; draft compute is unchanged.",
"The budgeted path is off by default in the reference source.",
"Budgeting can lower accepted length; equal accepted length is not an acceptance criterion.",
"Per-position independence of the confidence used for verification is a correctness requirement, not only a scheduling convenience.",
"Cross-backend rejection-comparison parity is unproven; the reference has no equality assertion.",
"Numeric acceptance rates and warmup curves are deployment-specific and are not carried here.",
"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/mtp_varlen.hpp",
"csrc/engine/scheduler.hpp",
"deepinfer/worker/worker.py",
"deepinfer/environ.py",
"deepinfer/sampling_params.py",
"deepinfer/model_executor/models/mtp/dflash.py",
"deepinfer/model_executor/layers/sampler.py",
"deepinfer/model_executor/layers/tilelang_ops/fused_sample.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/budget-speculative-verification/SKILL.md",
"byte_range": [
0,
15070
],
"sha256": "6e0dfacc7aa59b383761798656fd52e99b66fc7794c65dc3fc4f1c180b73072c"
}
}
},
"content": {
"guide.md": {
"path": "engines/deepinfer/budget-speculative-verification.md"
}
}
}
Loading
Loading