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
7 changes: 4 additions & 3 deletions docs/searchspace-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"matrix_path": "docs/searchspace-matrix.md",
"catalog_path": "src/inferrsi/knowledge/data/skill_library/skill-index.json",
"skill_root": "src/inferrsi/knowledge/data/skill_library",
"matrix_sha256": "128c5e860aa7da09bc9712e83d07ff4ca22ff020da2b649e790841ad88c05371",
"catalog_sha256": "d166789c9cf2cc4941671e1c281ad8a924f951805c6ee7c6314e7d307a1f644c",
"metadata_sha256": "7331728ad28be6b656299a8a41f17f9f5704ee25556562acfce7b37383ff8d69"
"matrix_sha256": "20071b07de42fcca9e82b2e6c15df3cbe5c7a91ce06896849f570f5b0bc2708a",
"catalog_sha256": "40f03f5addbbe7a3efadee1c00299d0b001eeb528b882daae27a8c9978e4472e",
"metadata_sha256": "551befb67fbf9b14fb1e61d9ab2809ec5a9f2d1554ea3e416ba7a2d48f78dd9e"
},
"skills": {
"ascend-aclgraph-capture-replay": {"path": "systems/platforms/ascend/ascend-aclgraph-capture-replay/SKILL.md", "state": "covered", "coordinates": [["Accelerator", "Configure"], ["Accelerator", "Diagnose"], ["Accelerator", "Optimize"], ["Accelerator", "Verify"]]},
Expand Down Expand Up @@ -77,6 +77,7 @@
"plan-activation-residency": {"path": "playbooks/planning/plan-activation-residency/SKILL.md", "state": "covered", "coordinates": [["Accelerator", "Diagnose"], ["Accelerator", "Optimize"], ["Accelerator", "Verify"]]},
"project-maya": {"path": "systems/engines/project-maya/SKILL.md", "state": "supplementary", "coordinates": []},
"pytorch": {"path": "systems/frameworks/pytorch/pytorch/SKILL.md", "state": "supplementary", "coordinates": []},
"reason-blackwell-kernels": {"path": "systems/platforms/cuda/reason-blackwell-kernels/SKILL.md", "state": "supplementary", "coordinates": []},
"reason-hopper-kernels": {"path": "systems/platforms/cuda/reason-hopper-kernels/SKILL.md", "state": "supplementary", "coordinates": []},
"repository-evolution-analysis": {"path": "workflows/research/repository-evolution-analysis/SKILL.md", "state": "covered", "coordinates": [["OS", "Configure"], ["OS", "Diagnose"], ["OS", "Verify"]]},
"rsi-evidence": {"path": "workflows/governance/rsi-evidence/SKILL.md", "state": "covered", "coordinates": [["Accelerator", "Verify"]]},
Expand Down
10 changes: 10 additions & 0 deletions docs/searchspace-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,16 @@ This adds conditional Hopper guidance without new measured or green coverage.
Registers, SMEM and HBM remain device resources; local CTA/cluster coordination
and tile scheduling add no RAM/Host, SSD, Network or OS-control coverage.

## Blackwell kernel reasoning (candidate)

| Resource | Stage / named mechanism | Canonical owner | Evidence boundary |
| --- | --- | --- | --- |
| Accelerator | Observe / Diagnose / Configure / Verify: `tcgen05.mma` (UMMA) single-thread async issue, TMEM allocation and epilogue budgets, 1-CTA vs 2-CTA cluster MMA, CLC dynamic scheduling and native block-scaled FP8/NVFP4/MXFP4 contracts | [reason-blackwell-kernels](../src/inferrsi/knowledge/data/skill_library/systems/platforms/cuda/reason-blackwell-kernels/SKILL.md), with [tcgen05/TMEM](../src/inferrsi/knowledge/data/skill_library/systems/platforms/cuda/reason-blackwell-kernels/references/tcgen05-and-tmem.md), [CLC/scheduling](../src/inferrsi/knowledge/data/skill_library/systems/platforms/cuda/reason-blackwell-kernels/references/clc-and-scheduling.md) and [block-scaled FP4/FP8](../src/inferrsi/knowledge/data/skill_library/systems/platforms/cuda/reason-blackwell-kernels/references/block-scaled-fp4-fp8.md) | Candidate SM100/SM100a guidance (`empirical_validation=not_run`); Hopper-only WGMMA register schedules excluded. No GPU compilation, numerical parity, ncu profiling or performance run. |

This adds conditional Blackwell guidance without new measured or green coverage.
TMEM, SMEM, registers and HBM3e remain device resources; cluster scheduling and
block-scaled MMA add no RAM/Host, SSD, Network or OS-control coverage.

## DwarfStar source-derived execution/state graph

| Resource | Stage / named mechanism | Canonical owner | Evidence boundary |
Expand Down
21 changes: 11 additions & 10 deletions docs/skill-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Generated from the registry, SKILL.md frontmatter and the two maintained
matrices. **Do not edit by hand**; regenerate after any registry, skill,
matrix or frozen-plan change.

- Input digest: `sha256:6b18ab88e41caa5d41f0d3569b2046d7cfbcf36f1bb2c62440b8f9030ba64d1f`
- Input digest: `sha256:90b751736672dfc0a422a1b036c3ffd3351aa0c12936e483c02449ffd9ebe4e7`
- Regenerate: `python tools/build_skill_coverage.py`
- Verify without writing: `python tools/build_skill_coverage.py --check`

Expand Down Expand Up @@ -33,17 +33,17 @@ matrix: every field is copied from an owner that already maintains it.

| Measure | Value |
|---|---|
| Registered skill ids | 90 |
| By category | casebooks 2, playbooks 19, systems 53, tasks 8, workflows 8 |
| By backend | ascend 16, common 69, cuda 5 |
| Registered skill ids | 91 |
| By category | casebooks 2, playbooks 19, systems 54, tasks 8, workflows 8 |
| By backend | ascend 16, common 69, cuda 6 |
| Recorded on a numbered SearchSpace resource layer | 53 |
| Recorded only in a supplementary guidance table (†) | 21 |
| Recorded only in a supplementary guidance table (†) | 22 |
| Resource layers explicitly not applicable | 15 |
| Conflicting resource-layer declarations | 0 |
| Recorded on two or more resource layers | 25 |
| Recorded in the Reference Matrix | 74 |
| Selected by a frozen evaluation plan | 2 |
| `SKILL.md` documents in the library | 153 |
| `SKILL.md` documents in the library | 154 |
| Unregistered documents (excluded from every count above) | 63 |

A complete inventory is not a coverage claim. Every registered row below
Expand Down Expand Up @@ -81,7 +81,7 @@ optimization is fully covered or that any procedure has measured benefit.
| [video-diffusion-optimization](../src/inferrsi/knowledge/data/skill_library/playbooks/optimization/video-diffusion-optimization/SKILL.md) | common | Run and verify goal-driven video diffusion optimization, backend-agnostic. Use when the user asks for latency, RTF ... | Backend-agnostic video diffusion inference and serving optimization | — | 1 Accelerator † guidance: Video diffusion campaign guidance (unvalidated) | — | candidate · not_run · 0 readset(s) | no-Reference-Matrix-row, no-eval |
| [weight-loading-optimization](../src/inferrsi/knowledge/data/skill_library/playbooks/optimization/weight-loading-optimization/SKILL.md) | common | Optimize the serving-level weight load path from storage to device: judge the load path on four dimensions (source ... | Diagnosing the serving-level weight load path from storage to device and choosing changes ... | failure_modes, input_contract, produced_artifact, refusal_point<br>6 advice | 1 Accelerator † guidance: Flare preparation and complete-session source contracts<br>2 RAM/Host † guidance: Flare preparation and complete-session source contracts; DeepSeek streamed expert-cache verification<br>3 SSD · Observe / Profile / Diagnose / Optimize / Verify † guidance: Flare preparation and complete-session source contracts; DeepSeek streamed expert-cache verification<br>4 Network · Configure / Optimize / Verify | 1 · Systems sources (Ascend/MindIE-SD @ 8481d39)<br>1 · Systems sources (NVIDIA/TensorRT-LLM @ f33e0e5fd)<br>1 · Systems sources (ascend-ai-coding/awesome-ascend-skills @ 75ec89c)<br>1 · Systems sources (foundation-model-stack/fastsafetensors @ 219e256)<br>1 · Systems sources (ggml-org/llama.cpp @ `3e390af18de1131dda27913c00511725b4274c8a` (MIT ...)<br>1 · Systems sources (mindie-agent/mindie-agent @ 6a81b41)<br>DeepSeek streamed expert-cache oracle contracts ([ronak-create/deepseek-v4-in-c](https://github.com/ronak-create/deepse ...) | candidate · not_run · 5 readset(s) | no-eval |

## Registered: Systems and implementations (53)
## Registered: Systems and implementations (54)

| Skill | Backend | Declared task | Applicability | Conditions | SearchSpace layer / stage | Reference Matrix | State | Gaps |
|---|---|---|---|---|---|---|---|---|
Expand Down Expand Up @@ -130,6 +130,7 @@ optimization is fully covered or that any procedure has measured benefit.
| [os-process-placement](../src/inferrsi/knowledge/data/skill_library/systems/platforms/host/os-process-placement/SKILL.md) | common | Place and configure inference/training processes at the OS level before measuring or optimizing: check then pin CPU ... | Prepare and record CPU/NUMA process placement, phase-specific thread settings, device ... | failure_modes, input_contract, produced_artifact<br>3 advice | 5 OS · Optimize | 1 · Systems sources (NVIDIA/TensorRT-LLM @ f33e0e5fd)<br>1 · Systems sources (ascend-ai-coding/awesome-ascend-skills @ 75ec89c)<br>1 · Systems sources (ggml-org/llama.cpp @ `3e390af18de1131dda27913c00511725b4274c8a` (MIT ...)<br>1 · Systems sources (vllm-project/vllm-ascend @ bc8115ed) | candidate · not_run · 1 readset(s) | no-eval |
| [project-maya](../src/inferrsi/knowledge/data/skill_library/systems/engines/project-maya/SKILL.md) | common | Investigate Project Maya model-family dispatch, representation and memory tiers, API versus native state, speculative ... | Model-specific dispatch/residency, API/native state and qualification investigation ... | failure_modes, input_contract, produced_artifact, refusal_point<br>3 advice | 1 Accelerator † guidance: Project Maya model-specific source contracts<br>2 RAM/Host † guidance: Project Maya model-specific source contracts<br>3 SSD † guidance: Project Maya model-specific source contracts | Project Maya source and CPU-slice extraction (mw00/project-maya @ `249f9a87d1a9d72bec2b684d704b0aa9296b1c9c` ...) | candidate · partial_cpu_only · 2 readset(s) | no-eval |
| [pytorch](../src/inferrsi/knowledge/data/skill_library/systems/frameworks/pytorch/pytorch/SKILL.md) | common | Operate and diagnose PyTorch installation, tensors and autograd, training and data, compilation and export, accelerator ... | Major user workflows and selected deep mechanisms of pinned pytorch/pytorch source; exact ... | failure_modes, input_contract, produced_artifact, refusal_point | 1 Accelerator † guidance: PyTorch framework source procedures<br>2 RAM/Host † guidance: PyTorch framework source procedures<br>3 SSD † guidance: PyTorch framework source procedures<br>4 Network † guidance: PyTorch framework source procedures | PyTorch framework operating graph (pytorch/pytorch @ `9a90a4fefcaafa63ac984621963a6fcc66aee68c`, source ...) | candidate · not_run · 1 readset(s) | no-eval |
| [reason-blackwell-kernels](../src/inferrsi/knowledge/data/skill_library/systems/platforms/cuda/reason-blackwell-kernels/SKILL.md) | cuda | Reason about Blackwell SM100/SM100a CUDA inference kernels using tcgen05 (UMMA) asynchronous execution, Tensor Memory ... | Blackwell SM100/SM100a CUDA kernel reasoning for tcgen05/UMMA, TMEM budgets and ... | architectures, excluded_mechanisms, failure_modes, input_contract, produced_artifact, refusal_point<br>3 advice | 1 Accelerator † guidance: Blackwell kernel reasoning (candidate) | — | candidate · not_run · 3 readset(s) | no-Reference-Matrix-row, no-eval |
| [reason-hopper-kernels](../src/inferrsi/knowledge/data/skill_library/systems/platforms/cuda/reason-hopper-kernels/SKILL.md) | cuda | Reason about Hopper SM90 CUDA GEMM kernels using TMA and mbarrier lifetimes, WGMMA warpgroup participation, register ... | Source-derived Hopper SM90/SM90a kernel reasoning for TMA/mbarrier, WGMMA ... | architectures, excluded_mechanisms, failure_modes, input_contract, produced_artifact<br>3 advice | 1 Accelerator † guidance: Hopper kernel reasoning (source-derived) | 1 · Systems sources (NVlabs/kda @ `acdd79343c5e9d0c7cb96289f26fd3f1051ce785` → ...) | candidate · not_run · 3 readset(s) | no-eval |
| [splash](../src/inferrsi/knowledge/data/skill_library/systems/engines/splash/SKILL.md) | common | Investigate Splash model-format compatibility, automatic memory planning, Metal and ANE execution, DFlash2 ... | Pinned Splash representation, planning, state/serving and verification investigation ... | failure_modes, input_contract, produced_artifact, refusal_point<br>3 advice | 1 Accelerator † guidance: Splash source-derived planning and state<br>2 RAM/Host † guidance: Splash source-derived planning and state<br>3 SSD † guidance: Splash source-derived planning and state | Splash portable AREX extraction (incoai/splash @ `39a97385f8560cf8a93972cec9b0a963c9195250`; AREX ...) | candidate · partial_cpu_only · 2 readset(s) | no-eval |
| [storage-io-measurement](../src/inferrsi/knowledge/data/skill_library/systems/platforms/host/storage-io-measurement/SKILL.md) | common | Measure storage I/O for LLM/diffusion serving without conflating device metrics with application outcomes: match the ... | Measure and attribute storage traffic for model loading or serving while separating ... | input_contract, produced_artifact, refusal_point<br>4 advice | 3 SSD · Observe / Profile / Diagnose / Verify | 1 · Systems sources (axboe/fio @ acb7a302)<br>1 · Systems sources (sysstat/sysstat @ efd0c445) | candidate · not_run · 0 readset(s) | no-eval |
Expand Down Expand Up @@ -240,7 +241,7 @@ an entrypoint routes to procedures below it rather than adding one.

## Integrity checks

- Registered ids resolve to an existing `SKILL.md`: 90 of 90.
- Registered ids resolve to an existing `SKILL.md`: 91 of 91.
- Duplicate ids or paths: none; `skill_catalog` rejects them before this view is built.
- Skill links in the two matrices that do not resolve: 0.

Expand All @@ -250,9 +251,9 @@ an entrypoint routes to procedures below it rather than adding one.
|---|---|
| `no-SearchSpace-layer` | 1: husky |
| `conflicting-SearchSpace-layer` | 0: — |
| `no-Reference-Matrix-row` | 16: ascend-video-diffusion-optimization, audit-fixed-workload-claim, cite-check-downstream-pr, claim-contract, competitor-scan, draft-acceptance-issue, inference-task-router, rsi-evidence, task-accuracy, task-day-0, task-debug, task-derived-engine, task-independent-engine, task-performance, task-version-alignment, video-diffusion-optimization |
| `no-Reference-Matrix-row` | 17: ascend-video-diffusion-optimization, audit-fixed-workload-claim, cite-check-downstream-pr, claim-contract, competitor-scan, draft-acceptance-issue, inference-task-router, reason-blackwell-kernels, rsi-evidence, task-accuracy, task-day-0, task-debug, task-derived-engine, task-independent-engine, task-performance, task-version-alignment, video-diffusion-optimization |
| `no-applicability` | 0: — |
| `no-eval` | 88: as listed in the Gaps column above |
| `no-eval` | 89: as listed in the Gaps column above |

These are inventory gaps, not efficacy results. Missing layer mappings stay
unknown unless the owner records a reasoned N/A. N/A is not coverage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"schema_version": 1,
"repository": "https://github.com/InferMatrixLab/InferRSI",
"source_revision": "f87e7943a36b9cc0da14b04d4a1b7300f17c55e9",
"source_revision": "a46e8c60ae1562d12473199ced4543a69ad4889a",
"registry": {
"path": "src/inferrsi/knowledge/data/skill_library/skill-index.json",
"sha256": "d166789c9cf2cc4941671e1c281ad8a924f951805c6ee7c6314e7d307a1f644c"
"sha256": "40f03f5addbbe7a3efadee1c00299d0b001eeb528b882daae27a8c9978e4472e"
}
}
21 changes: 17 additions & 4 deletions src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@
"description": "Decision guide for writing custom inference kernels: when to write one, which framework to choose (Triton, CuTe DSL, CUDA C++, AscendC/TileIR), universal correctness rules that apply regardless of framework, and the verify-before-benchmark workflow. Use before starting any kernel implementation to avoid common correctness and performance pitfalls.\n"
},
"files": {
"SKILL.md": "c6a4ef16ca5b0daf3b69221788eceafac33709a063a0885cd2e3dff315c81643",
"SKILL.md": "d951ce61f7d5291a1c7511812810f0a58e10b01ad1dc76e6001002be9acc4f9a",
"cases/causal-conv1d-dispatch-state.md": "2eb67dd522021bb2234616d7f660e6ba99acb43676f48cb23141bc69bf3e0029",
"cases/hf-qwen35-gdn-binding.md": "b3a55af3f45f01c48e1cb18c8b029e5949a494c3e51dc444a5cccbad9acbba0a",
"cases/sglang-gdn-source-contract.json": "5237ac437eb76e910bb1d08bfcc364b87dea1b947de5e67eebce511ea1ef1d23",
Expand Down Expand Up @@ -970,10 +970,11 @@
"references/papers-20261015/references/inferencebench.md": "21f47111197a0b7f8d6384ea918d139dc8318a62ca3313ce060048271f50b639",
"references/papers-20261015/references/prior-coverage.md": "35d47ac078591221fcb666219bcd824f9400fc17aafecdc0499d8336f7178238",
"references/papers-20261015/references/vidur.md": "d38602af5219f5feeb49e6cd6bf53d66098c77fad141dae676f1d8a6743cf25d",
"references/roofline-contract.md": "419ec4bcaec45ac579a133bce083d4f48779f26e664d7a86f720fa65f343b1d1",
"references/roofline-contract.md": "5fdda9251e4632f2d7df6dc5000d4f48f061c906cecda170933b477a0056e7c2",
"references/roofline-example.json": "597cd3205df043cff3ae9d15924c77934e8d8eb300c00c4840f6bb2921f90faf",
"references/sm90-sm100-operator-sol.json": "4291eedd60905a580d9106833f2f4c2be3cdb7506262c1a65e40973aad7a2499",
"references/xllm-pd-handoff.md": "66226190ab90cab2057cdd867714725a084396fa9ccaa87efab8b14ca021bd2a",
"scripts/roofline.py": "524de48a6764401695fe1444f1fa3d38f363069b0cd2fba4715a86ca4b28a5d4"
"scripts/roofline.py": "df0dac1535c71610c4c04b6e1060b235f28e3623d55ad47bf88945605c64c2c4"
}
},
"plan-activation-residency": {
Expand Down Expand Up @@ -1071,13 +1072,25 @@
"sub-skills/training-and-data/scripts/tiny_training.py": "46af58f6ba0c7d69373efc416fcc2ae8dcada717ed29336ac84f84857b1240bb"
}
},
"reason-blackwell-kernels": {
"header": {
"name": "reason-blackwell-kernels",
"description": "Reason about Blackwell SM100/SM100a CUDA inference kernels using tcgen05 (UMMA) asynchronous execution, Tensor Memory (TMEM) lifetimes and column budgets, 1-CTA vs 2-CTA cluster MMA, Cluster Launch Control (CLC) scheduling, native block-scaled FP8/NVFP4/MXFP4 MMA, and Hopper-to-Blackwell migration pitfalls. Use for a B200/GB200-family kernel diagnosis or an SM90-to-SM100 portability check; candidate guidance with no local GPU validation."
},
"files": {
"SKILL.md": "debe35502b463cb38d109e30f24a79c70e76d6e91308628226511a6885a14376",
"references/block-scaled-fp4-fp8.md": "d7f676eae44e46197e621954671c19031bc4da8f840b846117401d9ffbcf3ed0",
"references/clc-and-scheduling.md": "374a644f692c2ed9b00affcb8d1e16570cc4842ccac48b8c82a9c3c9abbf9339",
"references/tcgen05-and-tmem.md": "18684fbcf76b21b62eb96da5ff1e03b9be88d1a85376ff1b11ee8e8b7f141be0"
}
},
"reason-hopper-kernels": {
"header": {
"name": "reason-hopper-kernels",
"description": "Reason about Hopper SM90 CUDA GEMM kernels using TMA and mbarrier lifetimes, WGMMA warpgroup participation, register and pipeline budgets, layouts, software scheduling and FP8 scaling. Use for an H100/H200-family kernel diagnosis or a Blackwell-to-Hopper applicability check; source-derived candidate guidance with no local GPU validation."
},
"files": {
"SKILL.md": "1bbc5031877458f771482d5faf5e2bfa040a2c7f52c63ed43aa847325b7405eb",
"SKILL.md": "904f2a1cfa446d949baf67ac247044aaf44e11cb977cc4d3f6603f693317925e",
"references/fp8.md": "31d9c211c11c2224007abbdcd4059913c4a54833fe2d2f926411c5238fcd3501",
"references/licenses/cutlass-bsd.md": "42fec630f410aa308f70a51a89fadcd19586fa620f9831a32bee528a9a10000e",
"references/licenses/deepgemm-mit.md": "6c73a30c14a2938abaa6afe98ebb19e6d81dac5bd4ace0cb05c61c20afa37b85",
Expand Down
Loading
Loading