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,174 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Model-level prefill and decode speed-of-light analysis for decoder-only (optionally multimodal) inference under a declared parallel layout; extends performance-ceiling-analysis L1 from one operation to a whole model without replacing its evidence rules",
"hardware": "any; per-dtype peaks, memory bandwidth and link bandwidths must be supplied with sources",
"prerequisites": "Model config and forward source at a pinned revision, the checkpoint's tensor headers where a checkpoint exists, the serving framework release that will run, and the layout and workload; reading the skill does not authorize execution",
"input_contract": "Model config, forward source and checkpoint headers; serving framework and release with source anchors for every fusion; per-world parallel degrees, ranks per node and node count; batch, input, output, prefix and verify tokens, and the measured expert load skew when expert placement makes per-rank work depend on routing; per-dtype compute peaks at the sustained clock, memory and link bandwidths with sources; any launch floor or link latency labelled as an assumption",
"produced_artifact": "A per-phase table with per-op counts and binding resource, per-resource totals, the conditional bound and its binding resources, the serial per-op estimate, headline TTFT, TPOT and throughput figures each labelled bound or estimate, every anchor and gate result, assumptions and unknowns; analytical only, not a measured result",
"failure_modes": [
"The serial per-op sum is reported as a bound, or used to reject a faster measurement",
"Counts come from the unfused graph, overstating launches and activation round-trips, or from fusions the framework does not run, understating bytes",
"A degree that does not divide a weight is silently replaced by a divisor that does",
"Expert load skew is left at its default, making routed time and exchange optimistic",
"A windowed layer is priced as global, or a dense layer as windowed, because the cache growth law was not checked",
"Prefill attention is counted as a full square rather than causal pairs",
"An unmeasured launch floor or link latency, or a spec-sheet peak below the sustained clock, enters the bound",
"A measured envelope replaces the analytical figure instead of sitting beside it"
],
"refusal_point": "Stops when an anchor gate fails or cannot be judged, when a required peak, used fabric rate or required expert-parallel load skew is missing, or when weights plus one request's KV do not fit a rank. Unanchored fusion permits only a labelled unfused estimate when its counts are available."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"The serial estimate assumes full compute/memory overlap within an op, no overlap between ops and no pipeline bubble. The source uses one link latency for every fabric.",
"Counts are only as good as the anchors and the framework binding behind them; behaviour that lives only in weights or custom runtime code is out of reach.",
"Decoder-only models, optionally multimodal; encoder-decoder models are out of scope.",
"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."
],
"empirical_validation": "not_run",
"title": "HuggingArch: model-level speed-of-light method, source reading",
"attribution": [
{
"type": "git",
"url": "https://github.com/shenh10/HuggingArch",
"commit": "e69d20a028e5b17524aa48b53bddf8b9aad5d15b",
"revision_precision": "full",
"license": "MIT",
"observed_at": "2026-11-10",
"paths": [
"docs/inference_cost_model.md",
"docs/evaluation_model.md",
"docs/symbolic_evaluation.md",
"docs/design.md",
"docs/parallelism.md",
"docs/kv_cache_storage.md",
"docs/attention_families.md",
"docs/moe_expert_axis.md",
"docs/quantization.md",
"docs/validation.md",
"docs/measured_calibration.md",
"docs/known_limitations.md",
"README.md",
"backend/inference/row_roofline.py",
"backend/inference/phases.py",
"backend/inference/phase_formulas.py",
"backend/arch/eval/binding.py",
"backend/arch/eval/transforms.py",
"backend/arch/eval/fusion.py",
"backend/inference/framework_bindings/__init__.py",
"backend/arch/layout/weight_endpoints.py",
"backend/arch/layout/layout.py",
"backend/arch/layout/workload.py",
"backend/arch/layout/physical.py",
"backend/arch/layout/comm_volume.py",
"backend/inference/comm_cost.py",
"backend/arch/eval/cache.py",
"backend/arch/eval/formats.py",
"backend/arch/dtypes.py",
"backend/arch/validate/_axioms.py",
"backend/arch/validate/_orchestrator.py",
"backend/arch/validate/_type_contracts.py",
"backend/inference/sol_closure.py",
"backend/inference/op_calibration.py",
"backend/inference/calibration_overlay.py",
"backend/measure/lookup.py"
],
"identity": "references/huggingarch-source-identity.json",
"readset": "references/huggingarch-model-sol.md",
"note": "Cited paths only; the identity file records every retrieved file, its digests and its inspection scope, including files read but not cited. performance-ceiling-analysis keeps its own earlier pin for the checkpoint anchor."
}
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md",
"sha256": "79d5f350964a578fea199c1d77b0c767bb73e85e0fefbb4cebb3f8e0e6264504"
},
{
"type": "git",
"url": "https://github.com/shenh10/HuggingArch",
"commit": "e69d20a028e5b17524aa48b53bddf8b9aad5d15b",
"revision_precision": "full",
"license": "MIT",
"observed_at": "2026-11-10",
"paths": [
"docs/inference_cost_model.md",
"docs/evaluation_model.md",
"docs/symbolic_evaluation.md",
"docs/design.md",
"docs/parallelism.md",
"docs/kv_cache_storage.md",
"docs/attention_families.md",
"docs/moe_expert_axis.md",
"docs/quantization.md",
"docs/validation.md",
"docs/measured_calibration.md",
"docs/known_limitations.md",
"README.md",
"backend/inference/row_roofline.py",
"backend/inference/phases.py",
"backend/inference/phase_formulas.py",
"backend/arch/eval/binding.py",
"backend/arch/eval/transforms.py",
"backend/arch/eval/fusion.py",
"backend/inference/framework_bindings/__init__.py",
"backend/arch/layout/weight_endpoints.py",
"backend/arch/layout/layout.py",
"backend/arch/layout/workload.py",
"backend/arch/layout/physical.py",
"backend/arch/layout/comm_volume.py",
"backend/inference/comm_cost.py",
"backend/arch/eval/cache.py",
"backend/arch/eval/formats.py",
"backend/arch/dtypes.py",
"backend/arch/validate/_axioms.py",
"backend/arch/validate/_orchestrator.py",
"backend/arch/validate/_type_contracts.py",
"backend/inference/sol_closure.py",
"backend/inference/op_calibration.py",
"backend/inference/calibration_overlay.py",
"backend/measure/lookup.py"
],
"identity": "references/huggingarch-source-identity.json",
"readset": "references/huggingarch-model-sol.md",
"note": "Cited paths only; the identity file records every retrieved file, its digests and its inspection scope, including files read but not cited. performance-ceiling-analysis keeps its own earlier pin for the checkpoint anchor."
}
],
"id": "model-sol-analysis.huggingarch-model-sol",
"kind": "knowledge",
"entrypoint": "huggingarch-model-sol.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/measurement/model-sol-analysis/references/huggingarch-model-sol.md",
"byte_range": [
0,
19954
],
"sha256": "79d5f350964a578fea199c1d77b0c767bb73e85e0fefbb4cebb3f8e0e6264504"
}
}
},
"content": {
"huggingarch-model-sol.md": {
"path": "playbooks/model-sol-analysis/references/huggingarch-model-sol.md"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Model-level prefill and decode speed-of-light analysis for decoder-only (optionally multimodal) inference under a declared parallel layout; extends performance-ceiling-analysis L1 from one operation to a whole model without replacing its evidence rules",
"hardware": "any; per-dtype peaks, memory bandwidth and link bandwidths must be supplied with sources",
"prerequisites": "Model config and forward source at a pinned revision, the checkpoint's tensor headers where a checkpoint exists, the serving framework release that will run, and the layout and workload; reading the skill does not authorize execution",
"input_contract": "Model config, forward source and checkpoint headers; serving framework and release with source anchors for every fusion; per-world parallel degrees, ranks per node and node count; batch, input, output, prefix and verify tokens, and the measured expert load skew when expert placement makes per-rank work depend on routing; per-dtype compute peaks at the sustained clock, memory and link bandwidths with sources; any launch floor or link latency labelled as an assumption",
"produced_artifact": "A per-phase table with per-op counts and binding resource, per-resource totals, the conditional bound and its binding resources, the serial per-op estimate, headline TTFT, TPOT and throughput figures each labelled bound or estimate, every anchor and gate result, assumptions and unknowns; analytical only, not a measured result",
"failure_modes": [
"The serial per-op sum is reported as a bound, or used to reject a faster measurement",
"Counts come from the unfused graph, overstating launches and activation round-trips, or from fusions the framework does not run, understating bytes",
"A degree that does not divide a weight is silently replaced by a divisor that does",
"Expert load skew is left at its default, making routed time and exchange optimistic",
"A windowed layer is priced as global, or a dense layer as windowed, because the cache growth law was not checked",
"Prefill attention is counted as a full square rather than causal pairs",
"An unmeasured launch floor or link latency, or a spec-sheet peak below the sustained clock, enters the bound",
"A measured envelope replaces the analytical figure instead of sitting beside it"
],
"refusal_point": "Stops when an anchor gate fails or cannot be judged, when a required peak, used fabric rate or required expert-parallel load skew is missing, or when weights plus one request's KV do not fit a rank. Unanchored fusion permits only a labelled unfused estimate when its counts are available."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"The serial estimate assumes full compute/memory overlap within an op, no overlap between ops and no pipeline bubble. The source uses one link latency for every fabric.",
"Counts are only as good as the anchors and the framework binding behind them; behaviour that lives only in weights or custom runtime code is out of reach.",
"Decoder-only models, optionally multimodal; encoder-decoder models are out of scope.",
"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."
],
"empirical_validation": "not_run",
"title": "HuggingArch source identity and inspection scope",
"attribution": [
{
"type": "git",
"url": "https://github.com/shenh10/HuggingArch",
"commit": "e69d20a028e5b17524aa48b53bddf8b9aad5d15b",
"revision_precision": "full",
"license": "MIT",
"observed_at": "2026-11-10",
"paths": [
"docs/inference_cost_model.md",
"docs/evaluation_model.md",
"docs/symbolic_evaluation.md",
"docs/design.md",
"docs/parallelism.md",
"docs/kv_cache_storage.md",
"docs/attention_families.md",
"docs/moe_expert_axis.md",
"docs/quantization.md",
"docs/validation.md",
"docs/measured_calibration.md",
"docs/known_limitations.md",
"README.md",
"backend/inference/row_roofline.py",
"backend/inference/phases.py",
"backend/inference/phase_formulas.py",
"backend/arch/eval/binding.py",
"backend/arch/eval/transforms.py",
"backend/arch/eval/fusion.py",
"backend/inference/framework_bindings/__init__.py",
"backend/arch/layout/weight_endpoints.py",
"backend/arch/layout/layout.py",
"backend/arch/layout/workload.py",
"backend/arch/layout/physical.py",
"backend/arch/layout/comm_volume.py",
"backend/inference/comm_cost.py",
"backend/arch/eval/cache.py",
"backend/arch/eval/formats.py",
"backend/arch/dtypes.py",
"backend/arch/validate/_axioms.py",
"backend/arch/validate/_orchestrator.py",
"backend/arch/validate/_type_contracts.py",
"backend/inference/sol_closure.py",
"backend/inference/op_calibration.py",
"backend/inference/calibration_overlay.py",
"backend/measure/lookup.py"
],
"identity": "references/huggingarch-source-identity.json",
"readset": "references/huggingarch-model-sol.md",
"note": "Cited paths only; the identity file records every retrieved file, its digests and its inspection scope, including files read but not cited. performance-ceiling-analysis keeps its own earlier pin for the checkpoint anchor."
}
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json",
"sha256": "40ef6bd6d0d11e48aea4f2b30fcad11d226c32e869ea7e97fe8431b55c8dc65f"
},
{
"type": "git",
"url": "https://github.com/shenh10/HuggingArch",
"commit": "e69d20a028e5b17524aa48b53bddf8b9aad5d15b",
"revision_precision": "full",
"license": "MIT",
"observed_at": "2026-11-10",
"paths": [
"docs/inference_cost_model.md",
"docs/evaluation_model.md",
"docs/symbolic_evaluation.md",
"docs/design.md",
"docs/parallelism.md",
"docs/kv_cache_storage.md",
"docs/attention_families.md",
"docs/moe_expert_axis.md",
"docs/quantization.md",
"docs/validation.md",
"docs/measured_calibration.md",
"docs/known_limitations.md",
"README.md",
"backend/inference/row_roofline.py",
"backend/inference/phases.py",
"backend/inference/phase_formulas.py",
"backend/arch/eval/binding.py",
"backend/arch/eval/transforms.py",
"backend/arch/eval/fusion.py",
"backend/inference/framework_bindings/__init__.py",
"backend/arch/layout/weight_endpoints.py",
"backend/arch/layout/layout.py",
"backend/arch/layout/workload.py",
"backend/arch/layout/physical.py",
"backend/arch/layout/comm_volume.py",
"backend/inference/comm_cost.py",
"backend/arch/eval/cache.py",
"backend/arch/eval/formats.py",
"backend/arch/dtypes.py",
"backend/arch/validate/_axioms.py",
"backend/arch/validate/_orchestrator.py",
"backend/arch/validate/_type_contracts.py",
"backend/inference/sol_closure.py",
"backend/inference/op_calibration.py",
"backend/inference/calibration_overlay.py",
"backend/measure/lookup.py"
],
"identity": "references/huggingarch-source-identity.json",
"readset": "references/huggingarch-model-sol.md",
"note": "Cited paths only; the identity file records every retrieved file, its digests and its inspection scope, including files read but not cited. performance-ceiling-analysis keeps its own earlier pin for the checkpoint anchor."
}
],
"id": "model-sol-analysis.huggingarch-source-identity",
"kind": "knowledge",
"entrypoint": "huggingarch-source-identity.json",
"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/measurement/model-sol-analysis/references/huggingarch-source-identity.json",
"byte_range": [
0,
18566
],
"sha256": "40ef6bd6d0d11e48aea4f2b30fcad11d226c32e869ea7e97fe8431b55c8dc65f"
}
}
},
"content": {
"huggingarch-source-identity.json": {
"path": "playbooks/model-sol-analysis/references/huggingarch-source-identity.json"
}
}
}
Loading
Loading