Skip to content

skill: add model-level speed-of-light analysis (model-sol-analysis) - #386

Merged
amy-why-3459 merged 11 commits into
InferMatrixLab:mainfrom
fake0fan:feat/model-sol-analysis
Nov 23, 2026
Merged

amy-why-3459 merged 11 commits into
InferMatrixLab:mainfrom
fake0fan:feat/model-sol-analysis

Conversation

@fake0fan

@fake0fan fake0fan commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Refs #385. The maintainer accepted the separate model-level playbook and bounded catalog filtering change for implementation. Scope decision

Scope

#351 added two prerequisites to performance-ceiling-analysis: the checkpoint header join and the per-rank weight ledger. This PR builds on those gates to compose prefill and decode timing for a whole model under a declared layout. It adds a separate candidate playbook with causal attention counts, fusion provenance, collective traffic and KV growth.

The playbook reports a resource-total latency bound and a serial per-op estimate. The bound applies to the declared layout, irreducible demand and evidenced peaks. The estimate assumes full compute/memory overlap within an op, sequential link phases, and no overlap between ops.

Reproduce the H200 SXM TP4 analysis

Analyze Qwen3.8-Flash-Next on one node with four H200 SXM GPUs and vLLM 0.32.0. Use pure-text BF16, TP4/ETP4, EP1, batch one, 8,192 input tokens in one prefill chunk and 256 output tokens. Disable MTP, prefix reuse and sequence parallelism. Report per-rank weights, cache, compute, HBM and link demand. Keep the datasheet scenario and the qualified whole-model result separate.

The first command below runs offline after checkout. The second additionally reads the official pinned config, index and the headers of the 131 checkpoint shards using byte-range requests. Both run on a CPU with Python's standard library.

skill=src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis
python3 "$skill/scripts/qwen38_h200_tp4.py" --prompt-tokens 8192 --output-tokens 256
python3 "$skill/scripts/qwen38_h200_tp4.py" --prompt-tokens 8192 --output-tokens 256 --verify-hub-headers

Results for counted work

Each rank uses the H200 SXM specification of about 989.5 dense BF16 TFLOP/s, 4.8 TB/s HBM and 450 GB/s outgoing NVLink. The model assumes one HBM stream per distinct matrix per forward, resident n-gram tables and a ring for the 96 decoder hidden-state reductions. Both ends of the prefill routing range are shown. NVIDIA H200 specifications · Model config · Worked example, assumptions and source code locators

Phase Compute time HBM time NVLink transmit time Largest resource time Limiting resource in this scenario
Prefill, 10 distinct experts/layer 35.680 ms 0.961 ms 13.422 ms 35.680 ms Compute
Prefill, 512 distinct experts/layer 35.680 ms 13.298 ms 13.422 ms 35.680 ms Compute
First decode, 8,193 visible tokens 0.00471 ms 0.95226 ms 0.00164 ms 0.95226 ms HBM
  • Prefill emits token one. The 255 following decode steps average 0.95228 ms/token, equivalent to 1,050.1 generated tokens/s for the single TP4 replica under this model. Summing the phase resource maxima gives 278.51 ms for the modeled work. The alternative serial grouping of operation families gives 49.17–51.99 ms for prefill and about 0.954 ms for the first decode.
  • The source audit found 1,658 stored tensors totaling 359,999,963,128 bytes. All 1,294 text-path tensors matched the independently derived names, shapes and dtypes. The TP ledger gives 83.467 GiB of logical checkpoint-format weights per rank, including the GPU-resident n-gram shard. At the end of prefill one sequence retains 129.715 MiB/rank of modeled cache/state, including 96 MiB of main QSA K/V.
  • These figures come from offline arithmetic. Whole-model TTFT, TPOT, achieved throughput and allocated memory remain unverified. Missing inputs include hardware clocks, actual kernel dispatch/padding, HBM reuse, intermediate traffic, GDN recurrence arithmetic, embedding/PLE reductions, logits gathering and scheduling. The replay reports whole_model.analysis_status = INSUFFICIENT_EVIDENCE and a null qualified bound. No H200 inference or benchmark was run.

Updates for this head

  • Rebased the seven previously submitted commits onto main at 65f7149f17f4759b459340a5f64746b6d747f2fd and rebuilt the catalog from the combined sources. This includes the checkpoint-gate clarification from docs(skills): link weight loading to checkpoint anchoring gates #580 as well as the prior layout migration.

  • The PR builds on the mainline changes at 1b826b5f, which contains docs: anchor L1 weight demand against the checkpoint in performance-ceiling-analysis #351 and the layout migration in #516. Ported the new bundle to playbooks/measurement/model-sol-analysis, moved its metadata into SKILL.md, and regenerated the two compiled inputs and the coverage view.

  • The checkpoint join reports header tensors claimed by multiple selectors and treats missing or null shapes as unknown. Explicit scalar shapes and same-name aggregation are supported.

  • Empty KV inputs return INSUFFICIENT_EVIDENCE. The playbook maps MHA, GQA, MQA, MLA, sliding windows, compressed caches and recurrent state to their evidenced growth laws.

  • A phase bound requires explicit irreducible counts for every positive scheduled demand. A missing, empty, null or incomplete declaration leaves the affected lower total, phase bound and bound throughput unavailable. The serial estimate remains available for a well-specified schedule. Datasheet references use actual scheduled totals. Review counterexample

  • Phase arithmetic guards against non-finite derived totals and throughput. Tests cover missing intra- and inter-node fabric rates and show how repartitioning one phase can change its serial estimate while preserving the resource-total bound.

  • Catalog discovery and index generation ignore local interpreter bytecode created by running the replay. The source audit verifies the exact tensor-name, shape and dtype mapping. Datasheet inputs leave the qualified bound unavailable.

At e8068e08, the prior reviewer verified the phase-bound fix. The follow-up below addresses the remaining regression coverage in the scope decision. Prior review

Final-head regressions

  • A non-bytecode resource in scripts/__pycache__/ appears in discovery and triggers source drift. Removing that resource restores the index check while the interpreter cache is still present.
  • Both intra-node and inter-node links have transfer fixtures with missing, zero, negative and non-finite bandwidth. A positive transfer yields INSUFFICIENT_EVIDENCE and null timing and throughput. A one-rank copy with zero fabric bytes remains computable. Non-finite link readings appear as null in the returned strict-JSON snapshot.
  • The full default Qwen/H200 TP4 result at c4ccee6b matches the previous head byte for byte. On this head 293 focused tests, Ruff, both generated-view checks and the clean installed-wheel smoke (771 resources) passed. Implementation and regression tests

Source and verification

  • The HuggingArch source is pinned at e69d20a028e5b17524aa48b53bddf8b9aad5d15b (MIT). At the previously verified head 8fcc920d, all 44 per-file sizes, SHA-256 digests and Git blob IDs matched the pinned upstream bytes. The helper implements the documented method locally. HuggingArch code, hardware tables and its measured corpus remain upstream.
  • Compared the full 12-file readset from docs: anchor L1 weight demand against the checkpoint in performance-ceiling-analysis #351 across both HuggingArch revisions. Nine files match. The changed files are docs/parallelism.md, docs/measured_calibration.md and backend/inference/op_calibration.py. The checkpoint gates use the earlier pin. The model-walk and calibration claims use the later pin. Corrected source comparison
  • H200 case verification at ec22cfd1 on Linux with Python 3.11.15 and Git 2.56.1. The offline replay and live header audit succeeded. Ruff, 268 focused tests, both generated-view checks and a clean installed-wheel smoke passed. The wheel replayed the H200 example and verified 771 packaged resources.
  • At e8068e08, 281 focused tests passed, including 74 model SOL tests. Ruff, the generated index and coverage checks, and the clean installed-wheel smoke with 771 resources passed. The complete default H200 replay JSON matched 8fcc920d byte for byte.
  • Reproduced the review case at 100 B/s. With 400 scheduled bytes, omitted, null and empty irreducible counts yield a 4 s serial estimate and a null bound. Explicit evidence for 100 irreducible bytes yields a 1 s bound and the same 4 s estimate.
  • locally_verified: false, empirical_validation: not_run. There was no accelerator, real model or HuggingArch execution.
python tools/build_skill_index.py --source-revision 2b72038b6d9468c085ee977786a769a849e79cf7 --check
python tools/build_skill_coverage.py --check

Knowledge author declaration

The port retains its unknown Codex model ID and effort. The subsequent Codex work uses gpt-6.2-astra with unknown effort. Dong1017 granted the exception for e8068e08. Dong1017 renewed the exception for this final head and the same 19 protected paths. Current grant Previous grant · Exception procedure

{
  "schema_version": 1,
  "head_sha": "c4ccee6bc286bceadb4ed5f7cc14f849dd825e96",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Claude Code",
      "model_id": "claude-opus-5-5",
      "effort": "xhigh",
      "role": "author"
    },
    {
      "tool": "Codex",
      "model_id": "unknown",
      "effort": "unknown",
      "role": "author"
    },
    {
      "tool": "Codex",
      "model_id": "gpt-6.2-astra",
      "effort": "unknown",
      "role": "author"
    }
  ],
  "exception": {
    "paths": [
      "docs/knowledge-base.md",
      "docs/reference-matrix.md",
      "docs/searchspace-matrix.md",
      "src/inferrsi/knowledge/data/skill_library/README.md",
      "src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json",
      "src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/SKILL.md",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-contract.md",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-example.json",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.json",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.md",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/model_sol.py",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_checkpoint.py",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_h200_tp4.py",
      "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/performance-ceiling-analysis/SKILL.md",
      "src/inferrsi/knowledge/data/skill_library/skill-index.json",
      "src/inferrsi/knowledge/skill_catalog.py"
    ],
    "reason": "The original Codex port has an unknown model ID and effort. The subsequent H200, source, phase-bound and final bandwidth and catalog-test work used gpt-6.2-astra with unknown effort. The author requests a current-head exception for these unavailable settings."
  }
}

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Skill evaluation

PLANNED: not executed; there are no task outcomes yet.
No approval, model efficacy or current-head test result is implied.

  • Next: run the pinned source/index --check below at head c4ccee6bc286bceadb4ed5f7cc14f849dd825e96.
  • Task selection: no supported automatic comparison; choose a relevant source/content check and disposition uncovered claims.
  • Selected comparisons: 0 · Estimated task calls: 0. Uncovered/unsupported changes: 30; Canonical library paths: 13; Generated projection paths: 2; Other paths: 15. These are paths, not independent claims.
  • Return: command, input/source pin, exit status, outputs/failures and untested claims for independent verified/refuted/unverified disposition.
Author verification steps (nonpaid; not yet run)
  1. Bind the checkout. Run git rev-parse HEAD; it must equal c4ccee6bc286bceadb4ed5f7cc14f849dd825e96. If it differs, obtain a current plan; do not reuse old results.
  2. Check source/index consistency. At that PR checkout, using the reviewed repository tool and its documented development dependencies, run:
python tools/build_skill_index.py --source-revision 2b72038b6d9468c085ee977786a769a849e79cf7 --check

The declared source pin matches this head's canonical library bytes. The command has not run: retain its exit code and full drift/success output. It checks the generated projection, not claim truth or skill efficacy.
No supported automatic comparison is selected. Review the canonical changes and explain which claims need evidence, are unaffected, or remain unverified; do not treat generated records as separate behavioral claims.
Uncovered scope by location: Canonical library paths: 13; Generated projection paths: 2; Other paths: 15. Path counts are not claim counts; no metadata-only conclusion is inferred.
3. Return evidence for independent review: head, check/task/source pin, command, environment, exit status, outputs/failures and untested claims. Label scripted controls. Request each claim's disposition: verified, refuted or unverified; this plan proves neither model provenance nor benefit.
Check recipes and evidence limits

Evidence and logs · Retention: 30 days.
Retained artifacts are verifiable only before Unix time 1798015824 while the linked artifact is available. Expired evidence is unverified.

Plan bindings, budget, frozen exam and advisory details

Advisory: obtain missing evidence

Retained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Applicable only while these revisions and inputs match the current PR.
Paid execution requires trusted label authorization and cumulative PR reservation. Unknown accounting blocks new paid calls; planning is not execution.
Pipeline evidence only; offline fixed outputs do not establish skill efficacy.
Unchanged-correct is valid neutral evidence, not incremental benefit.
Content/source review and authorship admission remain separate.
Trusted regrading checks retained answers, not model/hardware provenance or a hostile executor; this is not an efficacy certification.

  • Retained evidence is planned / unexecuted.
  • No supported comparison cases were selected.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.
    Plan SHA-256: d1921c2c14b8229b2cf7e8dfda43a7b2941070e7b653c00fe86f2cd5cd2c6db6
    Base: 65f7149f17f4759b459340a5f64746b6d747f2fd · Head: c4ccee6bc286bceadb4ed5f7cc14f849dd825e96
    Trusted implementation: 65f7149f17f4759b459340a5f64746b6d747f2fd

Model/settings: {"effort":"not_applicable","name":"claude-opus-5-5"}
Budget: {"comparisons":0,"estimated_calls":0,"limits_per_comparison":{"campaign_seconds":600,"max_task_calls":2,"repeats":1,"timeout_seconds":180,"token_stop_new_trials":200000},"provider_config_sha256":"b28d80f8194fbe0f5a9f01515efb24b218979fd45f702776560da276f4b30d04","reservation":null}

Skill Comparison Cases Estimated calls

Automatic execution / cumulative PR budget:

{"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}

Projection check selection (not an executed result):

{"declared_in":"src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json","source_revision":"2b72038b6d9468c085ee977786a769a849e79cf7","status":"ready"}

Provider/settings: {"client":{"api_version":"2023-06-01","endpoint":"https://yibuapi.com/v1/messages","kind":"anthropic-messages-full-context-v1","max_output_tokens":4096,"max_read_bytes":32768,"max_request_bytes":262144,"max_requests":1,"max_tool_calls":12,"provider":"yibuapi"},"limits":{"token_stop_new_trials":200000},"model":{"effort":"not_applicable","name":"claude-opus-5-5"},"pricing":{"currency":"USD","expires_at":1793271228,"group":"default","max_input_tokens":1000000,"model":"claude-opus-5-5","rate_evidence":"https://github.com/InferMatrixLab/InferRSI/issues/215#issuecomment-6467531341","rates":{"cache_read":"0.4","cache_write":"10","input":"8","output":"40"},"request_fee":"0","unit":"per_million_tokens"},"spend_limit":{"amount":"200","currency":"USD"}}

Uncovered / unsupported paths (30)
  • uncovered: "docs/knowledge-base.md"
  • uncovered: "docs/reference-matrix.md"
  • uncovered: "docs/searchspace-matrix.md"
  • uncovered: "docs/skill-coverage.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/README.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/SKILL.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-contract.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-example.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/model_sol.py"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_checkpoint.py"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_h200_tp4.py"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/performance-ceiling-analysis/SKILL.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/skill-index.json"
  • uncovered: "src/inferrsi/knowledge/skill_catalog.py"
  • uncovered: "tests/check_installed.py"
  • uncovered: "tests/test_campaign_task_selection.py"
  • uncovered: "tests/test_cli_catalog.py"
  • uncovered: "tests/test_knowledge_contract.py"
  • uncovered: "tests/test_knowledge_find.py"
  • uncovered: "tests/test_model_sol_analysis.py"
  • uncovered: "tests/test_skill_index.py"
  • uncovered: "tests/test_skill_library.py"
  • uncovered: "tests/test_source_snapshot.py"
  • uncovered: "tools/build_skill_index.py"

Copy link
Copy Markdown
Collaborator

Review (COMMENT only, not an approval)

Reviewed range: the three commits you flagged as this PR's own, 19f12f4ed00997a2a79cfd07299411e67410c7b2..dbe0cf048a1a4c534ed4bba81bb0ca5b85efa070 (64adb54a, 817f57e3, dbe0cf04). The #351 commits are covered on #351. I focused on scripts/model_sol.py, references/model-sol-contract.md and tests/test_model_sol_analysis.py. Thanks for following up #385 so quickly. The split between bound and estimate is implemented the way the issue describes.

Verified

  • phase_floors(): the bound is max_r Σ_op bound_demand_r × repeat / rate_r, with no latencies or launch floors. The estimate is Σ_op repeat × max(per-rate times, summed link time + latency, launch). Each op's max term is at least its share of every per-rate total, and bound_demand ≤ demand is enforced, so the contract's claim that the estimate "is never below the bound" holds by construction.
  • A peak rate requires clock_basis, and mixed peak/synthetic/measured rates go to INSUFFICIENT_EVIDENCE. This matches the stated rule that only a bound may reject a result.
  • Unknown dtypes, missing sources, unit mismatches and an empty header all produce unknowns instead of defaults.

Issues

  1. kv_cache_bytes([], n) reports COMPUTED with total_bytes == 0. In scripts/model_sol.py, an empty layers list leaves unknowns empty, so the result is COMPUTED with a total of 0 and bounded_as_context_grows: null. join_checkpoint explicitly flags an empty header ("an empty header passes every join"), and phase_floors flags phase.ops: empty, so this looks like an inconsistency. A KV total of 0 can make a capacity check pass silently. Suggestion: append "layers: empty" as an unknown, and add a test next to the kv_cache_bytes([], -1) case, which only covers the negative-context error.
  2. Overlapping stored names in join_checkpoint are not detected. claimed.update(selection) only records that a header tensor was selected, not how many times. If the inventory has both model.layers.X.mlp.down_proj.weight and model.layers.0.mlp.down_proj.weight, header tensor model.layers.0… is counted in both matched rows. Neither residual reports it. The per-row diffs and the byte checksum will then disagree in a way that is hard to read. Since the join is the gate, please report header tensors selected by more than one stored name, for example in a multiply_claimed_header_tensors list that makes join_clean false, and add a test.
  3. CI and stacking. On dbe0cf04, declarations failed. You note that the diff includes docs: anchor L1 weight demand against the checkpoint in performance-ceiling-analysis #351's content, and docs: anchor L1 weight demand against the checkpoint in performance-ceiling-analysis #351 itself still lacks a knowledge-policy approval. full-check (3.10/3.11) is still in progress, and installed-package passes on both. Like you said, no approval at this head. I'll re-review after the rebase onto main once docs: anchor L1 weight demand against the checkpoint in performance-ceiling-analysis #351 lands and the index is regenerated after prototype: reduce knowledge projection and declaration churn #359.

Questions

  • phase_floors(): within one op, compute and memory take a max (full overlap inside the op), while link phases are summed and the latency added. Please state in the contract that the estimate assumes full compute/memory overlap within an op. Today it only says "no overlap between ops". A reader might otherwise take the serial estimate as pessimistic in every respect.
  • kv_cache_bytes(): the scope of the first slice in task: add a model-level speed-of-light analysis skill distilled from HuggingArch #385 is still open. Which attention families does SKILL.md commit to covering, mapped to the four laws (global, window, compressed, constant)? For example, is MLA's latent cache expected to be expressed as global with a smaller bytes_per_position?

Not verified here

  • I did not check the [code]/[doc] locators in references/huggingarch-model-sol.md, or the 44 entries in huggingarch-source-identity.json, against HuggingArch at e69d20a0….
  • Tests were not run locally. The provisional regeneration (817f57e3, 81 records) was not checked beyond the file list.

No approval implied.

@Dong1017 Dong1017 added area:knowledge Knowledge line: packs, skill library, knowledge admission kind:task Bounded delivery task with a delegated slice labels Nov 10, 2026

Copy link
Copy Markdown
Collaborator

#351 has now landed: it was squash-merged into main as f536288710c726a827bfa3e4357c2c911984cbc3 (2026-11-16 10:53 Asia/Shanghai). #359 already merged on 2026-11-10.

This head is still dbe0cf048a1a4c534ed4bba81bb0ca5b85efa070 and has not been rebased onto current main, so I still cannot approve it. The two code issues and the two contract questions in my earlier comment (#386 (comment)) also remain open because the commit has not changed.

Please rebase onto main, regenerate the index, and address those remaining items; I will re-review the new head.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Independent first review of base d699e570025d768b38528bd620d60b17553996ef → head dbe0cf048a1a4c534ed4bba81bb0ca5b85efa070 for #385, acting as zengchuang-hw under the owner's standing delegation to review other-author PRs and publish COMMENT/APPROVE. I did not author this change or use other reviewers' opinions. Previous review: none; resolved prior findings: not applicable. This COMMENT records blockers; it does not adopt the proposed scope or authorize merge.

Required before approval

  1. The checkpoint gate accepts double-counted stored tensors (model_sol.py:191–220). A header with one layers.0.weight tensor (F32, shape [2]) and inventory rows layers.X.weight plus layers.0.weight (both F32, shape [2]) returns join_clean: true, no residuals/mismatches, but header bytes 8 and inventory bytes 16. Each selector independently matches the same header tensor; claimed.update loses that multiplicity. The skill explicitly treats this join as the weights gate before pricing, so an overlapping inventory can be certified despite double demand. Reject overlapping matches across distinct stored names, or define a disjoint allocation that checks combined per-header contributions. Retain the intentional same-name aggregation behavior and add an overlap regression.
  2. Missing shapes are silently accepted as scalar shapes (model_sol.py:131–136, called at header/inventory ingestion). _list(None) becomes [], whose product is 1. A header {"w":{"dtype":"F32"}} and inventory [{"name":"w","dtype":"F32"}], with valid synthetic source locators, return COMPUTED and a clean 4-byte join. This violates the requirement to report missing evidence rather than guess; an omitted/null shape is not an explicitly declared scalar shape: []. Require a present shape or record an unknown, preserving valid scalar handling, and test missing/null shapes on both sides.
  3. Derived throughput can be non-finite despite finite inputs (model_sol.py:465–466). Using the checked-in example, setting tokens_per_step to 1e308 and each op demand to 1e-308 produces tokens_per_s_at_bound == inf; strict json.dumps(result, allow_nan=False) raises ValueError. The returned-rate divisions bypass _finite. Guard those derived rates (and audit the output for other overflow paths), with a finite-extreme-value regression. The contract promises JSON-serializable output, not Infinity.

Checks actually performed

  • Read repository AGENTS, contribution/privacy/collaboration guidance, review skill, the governing task requirements, all changed-file metadata (104 files over two pages), new skill and helper contract, helper implementation, tests and source-reference structure. Examined generated-index/count and checkpoint-anchor deltas.
  • Materialized the exact head in an isolated checkout; independently reran the overlap and missing-shape reproductions there.
  • Focused tests: tests/test_model_sol_analysis.py tests/test_skill_index.py tests/test_skill_library.py tests/test_knowledge_contract.py: 74 passed (Python 3.12). The existing helper tests do not cover these three reproduced edges.
  • Repository Ruff over src/tests/tools: passed. PYTHONPATH=src python tools/build_skill_coverage.py --check: passed. An initial coverage invocation without PYTHONPATH failed against an unrelated installed package; the corrected exact-checkout invocation passed. Earlier partial-materialization arithmetic-only tests are not counted as additional coverage.
  • Exact-head hosted ready run 42786410762 reports success; knowledge-declaration run 42787804170 reports failure. These statuses do not invalidate the local counterexamples or establish approval.

Not completed: full repository test suite, fresh-wheel installed smoke, all upstream pinned-source claims/digests or license/provenance revalidation, real model/device execution, and measured performance comparison. A source connector read for one upstream file did not return usable JSON; I did not substitute author claims for independent verification. These limits remain explicit; the actionable helper defects above are independently reproduced. No optional suggestion beyond adding regression coverage. No branch edits, push, merge, or REQUEST_CHANGES action.

@david6666666

Copy link
Copy Markdown
Collaborator

#516 has been merged into main. Please rebase this branch onto the latest main and adjust the changes as needed. Please port model-sol-analysis to the current src/inferrsi/knowledge/data/skill_library/ layout, put its metadata in SKILL.md, and regenerate the catalog inputs.

@fake0fan
fake0fan force-pushed the feat/model-sol-analysis branch from dbe0cf0 to ef8a45a Compare November 20, 2026 03:32

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

增量 dbe0cf04 → ef8a45af,上轮检视。三个代码问题均已解决:selector 只认领尚未分配的张量;缺失 shape 为 unknown,不再当作显式标量;非有限吞吐不会进入输出。已核对对应回归定义及新目录的注册、资源和链接,未发现新代码阻塞。

暂不批准实施的唯一前置项是 #385 仍标明 Proposed、未采纳把该分析做成独立 methods owner,也未授予本实施范围。请先在原 Issue 记录范围选择和授权;这不是因 PR 是 Draft 或 CI 状态。仅静态复核,未运行测试或实机,也不把较早候选的验证当成本 head 复测。

Copy link
Copy Markdown
Collaborator

Independent full review of 1b826b5f9666a8b734000e1eb2990e582cdef876…ef8a45af6341ddb5c1699c541d74386467e19fa4 (amy-why-3459 has no prior review on any head of this PR). I also used the earlier dbe0cf04 findings only as context for what was supposed to be fixed.

The three previous helper problems look addressed in the current scripts/model_sol.py and tests/test_model_sol_analysis.py: overlapping selectors are reported as multiply-claimed and the join is not clean; omitted or null shapes are unknown instead of implicit scalars; non-finite derived throughput is rejected rather than serialized as Infinity. Catalog registration, resource counts (for example installed resources 761→767 and skill abstracts 88→89), and the new playbooks/measurement/model-sol-analysis layout are consistent with one added playbook. I did not run the tests or a device/HuggingArch job.

I still cannot recommend approval. #385 remains Proposed, with no accepted decision to make this analysis a separate owner and no grant of this implementation scope. The issue still names a methods/model-sol-analysis owner, while this head implements playbooks/measurement/model-sol-analysis. Please record the scope choice and authorization on the Issue before asking for an implementation approve. This is not because the PR is Draft or because of CI status.

Separately, the knowledge-model declaration on this head still lists Codex as a material author with unknown model and effort, and the PR body already says that declaration does not qualify for admission. Please provide verifiable provenance that meets the policy, or hand the unresolved authorship to the policy owner; do not guess the missing fields.

I am not raising a new helper defect from this static pass. locally_verified: false / empirical_validation: not_run remain appropriate.

@fake0fan
fake0fan marked this pull request as ready for review November 23, 2026 03:03
@fake0fan

Copy link
Copy Markdown
Contributor Author

Review follow-up for 8fcc920d. #386 is ready for review. The author-side scope and delegation are recorded in #385. A maintainer decision on the separate measurement playbook is still pending. Scope decision request

The current regression suite covers overlapping selectors, absent shapes, empty KV groups, non-finite derived throughput and missing fabric rates. All 268 focused tests passed, as did Ruff and both catalog checks. I also verified all 44 source byte records and corrected the comparison with the checkpoint anchor. The 12-file comparison includes a change to the memoization decorators in backend/inference/op_calibration.py. Source comparison

@Dong1017, please review the knowledge-authorship exception requested in the PR description. It names this full head, the 19 protected paths and the unavailable author settings. Exception procedure

@Dong1017

Copy link
Copy Markdown
Collaborator

Accepted. Knowledge-authorship exception for head 8fcc920d0f6695117e6011a08d081b3bc84eb94a on the 19 paths named in the PR description.

Dong-bot (authorized delegate). The block matches the current head and base 1b826b5f9666a8b734000e1eb2990e582cdef876. No formal APPROVED review is on this head, and there is no outstanding CHANGES_REQUESTED.

Accepted clauses

  • schema_version 1, human_only false, head_sha 8fcc920d0f6695117e6011a08d081b3bc84eb94a.
  • Claude Code / claude-opus-5-5 / effort xhigh / author: complete material-author record.
  • Codex / model_id unknown / effort unknown / author: exception covers the unavailable original-port identity. Those two fields stay unknown.
  • Codex / gpt-6.2-astra / effort unknown / author: exception covers the unavailable effort on the H200 example and the source comparison. The model id stays gpt-6.2-astra.
  • Reason, as written: current-head exception because the original Codex port has an unknown model ID and effort, and the H200 example plus source comparison used gpt-6.2-astra with unknown effort.
  • Paths (19):
    • docs/knowledge-base.md
    • docs/reference-matrix.md
    • docs/searchspace-matrix.md
    • src/inferrsi/knowledge/data/skill_library/README.md
    • src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json
    • src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/SKILL.md
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-contract.md
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-example.json
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.json
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.md
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/model_sol.py
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_checkpoint.py
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_h200_tp4.py
    • src/inferrsi/knowledge/data/skill_library/playbooks/measurement/performance-ceiling-analysis/SKILL.md
    • src/inferrsi/knowledge/data/skill_library/skill-index.json
    • src/inferrsi/knowledge/skill_catalog.py

Bounds

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Granted: the knowledge-authorship exception for #386 at head 8fcc920d0f6695117e6011a08d081b3bc84eb94a. It covers only the 19 paths and the reason requested in the PR body. This is admission metadata only. Dong-bot (authorized delegate) is the approver and did not author this PR.

  • Accepted: the unknown model ID and effort of the original Codex port, and the unknown effort for gpt-6.2-astra. The policy lets the approval owner consider explicitly unknown settings. The declaration is truthful and names all three material authors. claude-opus-5-5 at xhigh qualifies on its own.
  • Not covered: the exception is not a content review or a scope acceptance. It does not satisfy the two independent Approves or CI on this head. Any new commit needs a renewed approval.
  • task: add a model-level speed-of-light analysis skill distilled from HuggingArch #385 is still open: the maintainer decision on playbooks/measurement/model-sol-analysis as a separate owner is not made here. The blocker amy-why-3459 and zengchuang-hw raised (the Issue lacks an accepted scope) is unchanged by this comment.
  • Check: this is approval metadata only. CI compares the exact paths and reason, and a mismatch fails closed. I could not see the whole diff, so I did not check the 19-path list against every changed protected file.
Details

The approval block below has the fields the policy requires. It matches the PR body's exception paths and reason exactly.

{
  "schema_version": 1,
  "pull_request": 386,
  "head_sha": "8fcc920d0f6695117e6011a08d081b3bc84eb94a",
  "decision": "approve",
  "no_material_involvement": true,
  "approvals": [
    {
      "kind": "exception",
      "paths": [
        "docs/knowledge-base.md",
        "docs/reference-matrix.md",
        "docs/searchspace-matrix.md",
        "src/inferrsi/knowledge/data/skill_library/README.md",
        "src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json",
        "src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/SKILL.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-contract.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-example.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/model_sol.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_checkpoint.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_h200_tp4.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/performance-ceiling-analysis/SKILL.md",
        "src/inferrsi/knowledge/data/skill_library/skill-index.json",
        "src/inferrsi/knowledge/skill_catalog.py"
      ],
      "reason": "The original Codex port has an unknown model ID and effort. The H200 example and source comparison used gpt-6.2-astra with unknown effort. The author requests a current-head exception for these unavailable settings."
    }
  ]
}

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw. 增量:ef8a45af..8fcc920d0f6695117e6011a08d081b3bc84eb94a,基线 1b826b5f9666a8b734000e1eb2990e582cdef876。此前 selector、缺失 shape、非有限吞吐问题的处理保留。分离整模型 playbook 的方向见 #385 意见;该意见不是维护者的范围采纳。

批准前必做:未知的不可约需求不能成为可否定实测的下界。 phase_floors 先用实际图的 demand 初始化下界需求,bound_demand 缺省、空或 null 都不改变它。独立执行了固定源码:在合成用例里,已知未融合图移动 400 B、峰值 100 B/s、但融合能否减少流量未定,当前仍输出 4 s 的合格下界及 4 s 串行估计。显式提供已证实的 100 B 不可约需求才应得到 1 s 下界。请将「不可约需求已证实」与「仅知道该调度的开销」分开;未知时保留 4 s 的带标签估计,受影响下界为空,不得据此否定更快的实测。补齐缺省、null 与已证实三类回归。

另请先在 #385 记录决定和共享 catalog 行为扩展的范围。知识来源例外的讨论是另一道门,不替代该决定或代码检视。

独立核对了实际代码、合成离线输入和既有回归;未运行设备、远程头部审计、完整套件或 CI。

@Dong1017

Copy link
Copy Markdown
Collaborator

Already granted. The knowledge-authorship exception for #386 at head 8fcc920d0f6695117e6011a08d081b3bc84eb94a stands. Implementation approval of this head stays with the open #385 scope decision.

  • Admission record: skill: add model-level speed-of-light analysis (model-sol-analysis) #386 (comment) covers the 19 paths and the reason in the PR body. The same acceptance is in skill: add model-level speed-of-light analysis (model-sol-analysis) #386 (comment). Head matches current 8fcc920d0f6695117e6011a08d081b3bc84eb94a; base is 1b826b5f9666a8b734000e1eb2990e582cdef876.
  • Accepted settings stay as written: Codex model id and effort unknown for the original port; gpt-6.2-astra with effort unknown for the H200 example and source comparison; claude-opus-5-5 at xhigh is a complete material-author record. A later commit needs its own declaration or a new exception.
  • task: add a model-level speed-of-light analysis skill distilled from HuggingArch #385 still has no accepted maintainer scope for playbooks/measurement/model-sol-analysis as a separate owner. amy-why-3459’s review of 1b826b5f…ef8a45af and zengchuang-hw’s COMMENTs on ef8a45af and dbe0cf04 left implementation approval waiting on that decision. No formal APPROVED review is on this head, and there is no outstanding CHANGES_REQUESTED.
  • Path check stays limited to the PR body. The approval block matches that 19-path list and reason. The skill-eval plan lists 30 uncovered paths, including docs/skill-coverage.md, which sits outside the exception. The full diff is not in this seed, so the 19 paths were not compared to every changed protected file. Tests, Ruff, catalog checks, and the 44-file byte audit were not re-run here.

Dong-bot (authorized delegate).

fake0fan and others added 9 commits November 23, 2026 15:26
Adapt the original candidate to the current skill layout. Keep its pinned references and the checkpoint prerequisites from the merged ceiling playbook. Reject overlapping checkpoint selectors, missing shapes or KV groups, and non-finite derived results. Exercise the helper and packaged resource paths.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)
Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Derive and audit the text tensor inventory, TP placements and hybrid cache payload. Replay explicit compute, HBM and collective demand at published rates, keeping whole-model and measured timing unavailable. Cover partial compressed groups, unqualified datasheet rates and first-token accounting.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Running an owner-local helper imports packaged Python resources and creates bytecode beside them. Exclude that cache from the checkout resource list and source scan while preserving the pinned Git inventory.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Compare the complete checkpoint-anchor readset against the model-walk pin and account for the change to calibration identity memoization.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Keep unknown lower counts separate from scheduled traffic and preserve the serial estimate when only bound evidence is missing. Price datasheet scenarios using actual scheduled totals. Cover missing, partial, null, zero and evidenced demand in the calculator and its consumers.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
@fake0fan
fake0fan force-pushed the feat/model-sol-analysis branch from 8fcc920 to e8068e0 Compare November 23, 2026 07:37

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS
dot, acting for @zengchuang-hw

增量:8fcc920d0f6695117e6011a08d081b3bc84eb94a → e8068e085862af226f0d651f0eb36e56d339ca7a;base 从 1b826b5f9666a8b734000e1eb2990e582cdef876 更新为 65f7149f17f4759b459340a5f64746b6d747f2fd。上轮检视。

上轮代码阻塞已修复。 当前 helper 区分调度需求与不可约需求。静态核对并独立复算:400 B、100 B/s 的例子,遗漏、null 或空的 bound_demand 仍有 4 s 串行估计,但不再输出合格下界;显式 100 B 证据得 1 s,显式 0 B 得 0 s。对应条件也有新增回归。本轮未发现新的代码阻塞。

批准前仍需两项记录。 (1) #385 仍是 Proposed,请维护者在范围讨论确认独立 playbook 和共享 catalog 过滤的范围;我的边界建议不是维护者接受决定。(2) PR 声明和此前例外仍绑定 8fcc920d。当前 19 个受保护路径含本轮修改的 bound 合约与实现,请更新精确 head,保留真实的未知值,并由有权维护者在本 head 重新记录例外;旧例外不能覆盖新改动。

本轮核对了两组 base/head 的净差异、测试源码与生成目录指纹;上述数值是独立静态复算,不是 Python 回放。未运行 pytest、远程 checkpoint 审计、设备或 CI。

@fake0fan

Copy link
Copy Markdown
Contributor Author

@zengchuang-hw,已在 e8068e08 处理这条评审,并将原有七个提交 rebase 到 main 的 65f7149f。目录索引和覆盖视图已从合并后的源文件重新生成。

用评审中的 400 B 调度流量、100 B/s 带宽复测,结果如下。

不可约需求证据 条件下界 串行估计
缺省、null、空映射或该资源缺证 null 4 s
显式给出有依据的 100 B 1 s 4 s

缺证时,对应资源的下界总量、阶段下界、限制资源和下界吞吐均不可用。其余已证实的资源总量、已知的调度需求和串行估计仍可读取。H200 标称规格计算使用调度需求,默认示例的完整 JSON 与旧 head 逐字节相同。281 项相关测试、Ruff、索引及覆盖视图校验、干净 wheel 安装检查均已通过。修复与回归测试

#385 已记录作者选择保留的共享 catalog 缓存过滤范围,以及离线重放和显式联网审计的边界。请复核这个 head 的代码修复。维护者对范围的决定在 Issue 中单独记录。范围决定请求

@Dong1017,旧知识作者例外已获批于 8fcc920d。PR 描述中的声明现已绑定新 head 和 19 个受保护路径,请按当前声明决定是否续批。旧 head 的决定

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Granted: the knowledge-authorship exception for #386 is renewed for head e8068e085862af226f0d651f0eb36e56d339ca7a. It covers the 19 paths and the reason declared in the PR body. This is admission metadata only. Dong-bot (authorized delegate).

  • Accepted: the declaration is schema_version 1, human_only false, and head_sha e8068e08. Claude Code / claude-opus-5-5 / xhigh is a complete record. The Codex unknown/unknown port and Codex gpt-6.2-astra with effort unknown stay as written. The unknown values are kept, not guessed. The reason now also names the phase-bound fix, which falls in the same unknown-effort category I accepted on 8fcc920d.
  • Paths: the 19 paths match the set I accepted on 8fcc920d. The bound contract and model_sol.py changed in this head and are both inside the set. docs/skill-coverage.md is generated and remains outside the exception, as before.
  • Not covered: this is not a code review, a scope acceptance, or an independent vote. task: add a model-level speed-of-light analysis skill distilled from HuggingArch #385 still has no maintainer decision on the separate playbook, so implementation approval stays with that decision. The two independent Approves and green CI are still required. Any later commit needs its own renewal.
  • Code re-check: zengchuang-hw's COMMENT on e8068e08 found no new code blocker. I am not adding a verdict.
Details

The diff I was given was cut off partway through model_sol.py. I could not check every changed protected file against the path list. I did not re-run the 281 tests, Ruff, the catalog checks, or the wheel smoke. Those results are the author's.

{
  "schema_version": 1,
  "pull_request": 386,
  "head_sha": "e8068e085862af226f0d651f0eb36e56d339ca7a",
  "decision": "approve",
  "no_material_involvement": true,
  "approvals": [
    {
      "kind": "exception",
      "paths": [
        "docs/knowledge-base.md",
        "docs/reference-matrix.md",
        "docs/searchspace-matrix.md",
        "src/inferrsi/knowledge/data/skill_library/README.md",
        "src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json",
        "src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/SKILL.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-contract.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-example.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/model_sol.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_checkpoint.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_h200_tp4.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/performance-ceiling-analysis/SKILL.md",
        "src/inferrsi/knowledge/data/skill_library/skill-index.json",
        "src/inferrsi/knowledge/skill_catalog.py"
      ],
      "reason": "The original Codex port has an unknown model ID and effort. The H200 example, source comparison and phase-bound fix used gpt-6.2-astra with unknown effort. The author requests a current-head exception for these unavailable settings."
    }
  ]
}

zengchuang-hw
zengchuang-hw previously approved these changes Nov 23, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for @zengchuang-hw

Reviewed base 65f7149f17f4759b459340a5f64746b6d747f2fd and head e8068e085862af226f0d651f0eb36e56d339ca7a. 这是对同一提交的上轮检视的证据更新,代码没有再变。上轮技术阻塞已修复:缺失不可约需求时保留串行估计,不再给出合格下界。独立静态复算的 400 B、100 B/s 情形,缺证为「无下界 / 4 s」,显式 100 B 为「1 s / 4 s」。H200 标称规格与合格下界仍分开。

上轮待补记录现已齐备:维护者接受 #385 的独立 playbook 与窄范围 catalog 过滤,当前提交 19 个路径的知识作者例外与声明匹配。静态复核了缓存过滤只排除 __pycache__/ 直接下的 *.pyc;建议为同目录非 pyc 文件补一条显式 drift 回归。

本轮依据准确的差异、源码和测试用例;未独立运行 Python 测试、wheel、远程头部审计或硬件,也未查看 CI。不代表实验验证、Issue 验收或合入。

Defer link-bandwidth evidence checks until actual transfer demand is known, preserve strict JSON snapshots, and cover used and unused fabrics. Verify that a non-bytecode resource in a Python cache directory is discovered and trips the pinned-index drift check.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=unknown] (author)
Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
@fake0fan

Copy link
Copy Markdown
Contributor Author

@Dong1017,请审核最终提交 c4ccee6bc286bceadb4ed5f7cc14f849dd825e96 的知识作者例外续批请求。PR 正文的声明已绑定此 head,19 个受保护路径已与 GitHub 的实际 diff 核对,保留了先前申报的未知作者信息。上一提交的批准

这次补齐了你在 #385 提出的两项验证。同一个 __pycache__/ 下,新增 notes.md 会被发现并触发源文件漂移。发生跨卡传输时,两种 fabric 的缺失、零、负数和非有限带宽均返回 INSUFFICIENT_EVIDENCE,零传输用例仍可计算。293 项相关测试、Ruff、目录校验及干净 wheel 检查已通过,H200 示例完整输出与上一提交逐字节一致。最终增量 · 实施范围决定

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS
dot, acting for @zengchuang-hw

增量:e8068e085862af226f0d651f0eb36e56d339ca7a → c4ccee6bc286bceadb4ed5f7cc14f849dd825e96,base 65f7149f17f4759b459340a5f64746b6d747f2fd。上轮。

本轮未发现新的代码阻塞。 正传输量遇到无效或缺失的 fabric 带宽时,代码保留实际字节数但不计算阶段时间;零传输不会除以无效带宽。非有限带宽在返回的输入快照中记为 null。新增回归覆盖两类 fabric 的缺失、零、负值及非有限输入,也验证同一缓存目录的非 pyc 文件仍会发现并触发漂移。#385 的实施范围已接受。

批准前还缺本提交的知识作者例外决定。 本轮声明已绑定当前 19 个受保护路径并保留未知作者设置;已记录的例外只覆盖旧 head,不能覆盖本轮修改的计时实现和契约。

静态核对了本轮八文件差异与回归源码;作者报告的 293 项测试和 wheel 检查未独立复跑,未跑硬件、联网头部审计或查看 CI。

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Granted: the knowledge-authorship exception for #386 is renewed for head c4ccee6bc286bceadb4ed5f7cc14f849dd825e96. It covers the same 19 declared paths and the reason in the PR body. It is admission metadata only. Dong-bot (authorized delegate).

  • Accepted: schema_version 1, human_only false, head_sha c4ccee6b. Claude Code / claude-opus-5-5 / xhigh is a complete record. Codex unknown/unknown and Codex gpt-6.2-astra / effort unknown stay as declared, not guessed.
  • Reason: it now also names the final bandwidth and catalog-test work, which falls in the same unknown-effort category I accepted on e8068e08.
  • Paths: the 19 paths are unchanged from the e8068e08 grant, and I counted 19 in the body. The generated docs/skill-coverage.md stays outside the exception, as before.
  • Not covered: this is not a code review, a scope acceptance or an independent vote. task: add a model-level speed-of-light analysis skill distilled from HuggingArch #385 scope is already accepted (7094678898). zengchuang-hw's COMMENT on c4ccee6b found no new code blocker and named this exception as the remaining gate. Two independent Approves and green CI are still required. A later commit needs its own renewal. This replaces the e8068e08 grant (7094596158).
Details

The diff I was given is cut off partway through model_sol.py, so I could not compare the 19 paths against every changed protected file. The author states that check was done against GitHub's diff. I did not re-run the 293 tests, Ruff, the catalog checks or the wheel smoke. Those results are the author's.

{
  "schema_version": 1,
  "pull_request": 386,
  "head_sha": "c4ccee6bc286bceadb4ed5f7cc14f849dd825e96",
  "decision": "approve",
  "no_material_involvement": true,
  "approvals": [
    {
      "kind": "exception",
      "paths": [
        "docs/knowledge-base.md",
        "docs/reference-matrix.md",
        "docs/searchspace-matrix.md",
        "src/inferrsi/knowledge/data/skill_library/README.md",
        "src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json",
        "src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/SKILL.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-model-sol.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/huggingarch-source-identity.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-contract.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/model-sol-example.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.json",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/references/qwen38-h200-tp4.md",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/model_sol.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_checkpoint.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/model-sol-analysis/scripts/qwen38_h200_tp4.py",
        "src/inferrsi/knowledge/data/skill_library/playbooks/measurement/performance-ceiling-analysis/SKILL.md",
        "src/inferrsi/knowledge/data/skill_library/skill-index.json",
        "src/inferrsi/knowledge/skill_catalog.py"
      ],
      "reason": "The original Codex port has an unknown model ID and effort. The subsequent H200, source, phase-bound and final bandwidth and catalog-test work used gpt-6.2-astra with unknown effort. The author requests a current-head exception for these unavailable settings."
    }
  ]
}

@zengchuang-hw zengchuang-hw left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
PASS
dot, acting for @zengchuang-hw

Reviewed base 65f7149f17f4759b459340a5f64746b6d747f2fd and head c4ccee6bc286bceadb4ed5f7cc14f849dd825e96. 上轮同 head 检视之后没有代码增量。现已核实维护者续批逐项匹配当前 head、19 个受保护路径和声明理由;#385 的实施范围已接受。上轮唯一待补项已清。

静态复核确认:正传输量没有有效 fabric 带宽时不输出无依据的时间;零传输不要求带宽;缓存目录中非 pyc 文件仍能被发现并触发漂移。生成目录的 762 个 canonical blob 与记录的源提交匹配。未独立运行 Python、wheel、硬件或联网头部审计,未查看 CI。

@fake0fan

Copy link
Copy Markdown
Contributor Author

最终 head 的独立评审请求 c4ccee6bc286bceadb4ed5f7cc14f849dd825e96,基线 65f7149f17f4759b459340a5f64746b6d747f2fd。Dong 已为这一提交续批 19 个路径的作者例外,#385 的实施范围也已接受。本次续批 · 实施范围

@zengchuang-hw,谢谢你对本 head 的正式复核。你已选择 Approve,目前正文首行是 PASS。请在同一份正式 review 中将首个非空行改为单独一行 LGTM,保留下一行的 PASS 和原审查依据。也可以在同一 head 按这个格式重新提交 Approve。你的当前评审 · 仓库评审规则

@amy-why-3459,麻烦作为第二位独立评审人复核此 head。请重点核对有传输和零传输时的无效带宽、非有限值快照、缓存目录内非字节码文件的漂移检测,以及先前的下界问题。293 项相关测试、Ruff、目录检查和干净 wheel 已通过。若你的结论为通过,请在 GitHub 选 Approve,同一份评审的首个非空行单独写 LGTM,下一行起写结论及依据。如有阻塞,请指出具体问题。最终增量 · 完整改动

@Dong1017,作者账号没有在 Reviewers 栏指派的权限,烦请维护者协助登记第二位评审人;若上述人选无法参与,请指派另一位具备写权限且独立的评审人。

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

I can't set the Reviewers field. My decision is that the second independent review on c4ccee6 stays with @amy-why-3459, and I'm not casting that vote myself.

I did not post a PASS or DO NOT PASS on this head. The diff I was given is cut off partway through model_sol.py. I did not run the 293 tests, Ruff, the catalog checks or the wheel smoke. Those results are the author's.

Dong-bot (authorized delegate).

@fake0fan

Copy link
Copy Markdown
Contributor Author

@zengchuang-hw,Dong 已指定 @amy-why-3459 为本 head 的第二位独立评审人。他的代理和 PR 作者账号都无法操作 Reviewers 栏,烦请你用上游写权限代为登记 Amy 的正式 review request。对应命令为 gh pr edit 386 -R InferMatrixLab/InferRSI --add-reviewer amy-why-3459。当前 head 仍是 c4ccee6b。维护者指派决定 · 复审范围及格式

@fake0fan

Copy link
Copy Markdown
Contributor Author

@amy-why-3459

@amy-why-3459
amy-why-3459 merged commit a58648e into InferMatrixLab:main Nov 23, 2026
22 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants