Skip to content

knowledge: add PyTorch and TorchNPU skills without process artifacts - #312

Merged
david6666666 merged 1 commit into
mainfrom
codex/pytorch-torchnpu-clean
Nov 2, 2026
Merged

david6666666 merged 1 commit into
mainfrom
codex/pytorch-torchnpu-clean

Conversation

@david6666666

@david6666666 david6666666 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #309

Reintroduces the PyTorch and TorchNPU operating skills after the owner-requested revert #311, as one signed-off commit based on 977289d2.

The replacement contains 206 files, +9,352 / −277 lines, compared with the original 366 files, +229,535 / −277: approximately 96% fewer additions. It omits all 160 construction-inventory and process-report files. Historical evidence remains linked at the immutable original delivery instead of being copied into the maintained tree.

Retained scope:

  • Two root skills, sixteen child procedures, twelve helpers, immutable source readsets and upstream licenses/notices. All 111 runtime files retain the previously reviewed bytes.
  • Required registry, catalog, coverage, wheel/plugin resource packaging and reader/license tests. The 77 existing catalog entries receive the shared source-revision/registry-digest update required by the existing generator contract; that contract is unchanged.
  • Eight focused integration cases. The two report-adapter cases were removed because they depended on the omitted process fixtures; the actual reader, metadata and license-byte checks remain.

Validation so far: all 681 generator input paths and raw-byte hashes exactly match the published source revision 8115da15b9ef34978de500b08aa9f14ea790c35b, so the existing generated catalog remains accurate. Full-tree Ruff and whitespace checks (with core.whitespace=cr-at-eol for byte-preserved upstream notices) passed.

Final validation at e3247382860bae094d7ca81e164ba2d28bd3e84b:

  • Stable local focused suite: 122 passed; the previously failing node also passed within a separate 13-case contract-module rerun.
  • Ubuntu CI: Python 3.10 and 3.11 each 3,389 passed, 13 skipped, 284 subtests passed. Both clean wheel installation jobs and the applicable lightweight checks passed; native execution remained skipped.
  • Independent exact-head review: no actionable findings; eight integration cases, catalog/coverage checks and 159 local links independently verified.

An initial local run recorded 121 passed / 1 failed while it overlapped the parent's rebase checkout; the failure observed a transiently absent skill root. The stable reruns required no code fix. That interrupted-content run is retained as a test-coordination failure, not counted as passing evidence.

The historical source/usability evidence applies to unchanged runtime bytes; this repackaging does not rerun or upgrade it. CUDA/NPU/HCCL and pinned-source builds remain unverified; Windows Gloo failures remain recorded historically. Native execution is not claimed.

{
  "schema_version": 1,
  "head_sha": "e3247382860bae094d7ca81e164ba2d28bd3e84b",
  "human_only": false,
  "material_ai_authors": [
    {"tool": "Codex pytorch_author", "model_id": "gpt-6.1-sol", "effort": "xhigh", "role": "author"},
    {"tool": "Codex torchnpu_author", "model_id": "gpt-6.1-sol", "effort": "xhigh", "role": "author"},
    {"tool": "Codex integration_author", "model_id": "gpt-6.1-sol", "effort": "xhigh", "role": "author"}
  ]
}

Add two source-grounded operating graphs with eight child procedures each, retained source provenance and notices, and focused reader and packaging coverage. Keep construction inventories and process reports in their immutable historical delivery instead of the maintained source tree.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=xhigh] (PyTorch source author)
Agent-assisted-by: Codex / gpt-6.1-sol [effort=xhigh] (TorchNPU source author)
Agent-assisted-by: Codex / gpt-6.1-sol [effort=xhigh] (integration author)
Signed-off-by: David Chen <530634352@qq.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T07:05:14.884438Z e324738 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 2, 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: resolve check applicability at head e3247382860bae094d7ca81e164ba2d28bd3e84b.
  • Blockers: No verified ancestor source pin for automatic command selection. No unsafe fallback; details below.
  • Selected comparisons: 0 · Estimated task calls: 0. Uncovered/unsupported changes: 206; Canonical library paths: 114; Generated projection paths: 80; Other paths: 12. 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 e3247382860bae094d7ca81e164ba2d28bd3e84b. If it differs, obtain a current plan; do not reuse old results.
  2. Resolve the index source pin before checking. No verified ancestor source pin for automatic command selection. Identify the committed source matching the canonical inputs and record why it applies; do not substitute HEAD or label the projection verified.
    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: 114; Generated projection paths: 80; Other paths: 12. 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 1796195031 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: 5f8078c2807add5a79e047696dda8d94aee38dfee7d839f78baf3bdea54a8fb1
    Base: 977289d290092dcb4251cadb9593950771b6178c · Head: e3247382860bae094d7ca81e164ba2d28bd3e84b
    Trusted implementation: 977289d290092dcb4251cadb9593950771b6178c

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):

{"reason":"No verified ancestor source pin for automatic command selection","status":"unavailable"}

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 (206)
  • uncovered: ".gitattributes"
  • uncovered: "docs/knowledge-base.md"
  • uncovered: "docs/reference-matrix.md"
  • uncovered: "docs/searchspace-matrix.md"
  • uncovered: "docs/skill-coverage.md"
  • uncovered: "pyproject.toml"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/README.md"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-aclgraph-capture-replay.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-device-health.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-distributed-parallel.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-graph-mode.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-model-adaptation.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-operator-profiling.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-operator-tuning.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-optimization-casebook.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-performance-analysis.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-video-diffusion-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascendc-tiling-design.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/cann-attribution-overlap.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/torch-npu.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/torchnpu-device-memory-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/torchnpu-pinned-host-memory-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/assess-serving-preemption.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/assess-split-backward-schedule.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-fixed-workload-claim.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-h3-metal-fasth3-semantics.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-h3-runtime-residency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-llama-runtime-state.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-recurrent-kv-finalization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-sd-cpp-residency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-sglang-diffusion-lifetimes.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-vllm-kv-lifetimes.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/bound-windowed-attention-replay.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/budget-speculative-verification.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/calibrate-serving-simulation.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/cgroup-resource-controls.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/checkpoint-recovery-consistency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/choose-parallel-training-plan.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/cite-check-downstream-pr.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/claim-contract.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/comfy-ui.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/competitor-scan.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/dcp-async-save-performance.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/dense-performance-evidence.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/diagnose-vllm-admission-pressure.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/diffusers-invocation-state.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/draft-acceptance-issue.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/dwarfstar.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/evaluate-elastic-serving-placement.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/generation-cache-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/host-memory-management.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/host-overhead-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/husky.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/inference-benchmark-design.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/inference-optimization-casebook.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/kernel-writing-guide.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/kv-tier-management.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/lazy-evaluation-stream-lifetimes.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/lily.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/lithos-metal.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/local-dream.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/mistral-rs.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/mlc-llm.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/mlx-swift-lm.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/npu-skill-factory.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/optimization-search-policy.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/os-process-placement.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/performance-ceiling-analysis.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/plan-activation-residency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/project-maya.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/pytorch.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/repository-evolution-analysis.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/rsi-evidence.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/skill-evolution-playbook.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/splash.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/storage-io-measurement.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/training-input-pipeline.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/training-resource-budget.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/video-diffusion-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/vllm-metal.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/weight-loading-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/audit-afd-p2p-exchanges.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/audit-flare-session-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/diagnose-attention-bottlenecks.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/host-overhead-profiling.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/reason-hopper-kernels.json"
  • uncovered: "src/inferrsi/data/skill_library/README.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/LICENSE"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/SKILL.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/metadata.json"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/notices.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/repo-provenance.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/repo-routing-metadata.json"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/source-directory-coverage.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/source-readset.json"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/source-script-map.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/troubleshooting.md"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/references/upstream-NOTICE"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/scripts/inspect_environment.py"
  • uncovered: "src/inferrsi/data/skill_library/frameworks/pytorch/pytorch/sub-skills/compiler-and-export/SKILL.md"
    Additional paths omitted; see retained evidence.

Copy link
Copy Markdown
Collaborator Author

Independent reviewer /root/independent_review inspected exact head e3247382860bae094d7ca81e164ba2d28bd3e84b, base 977289d290092dcb4251cadb9593950771b6178c: no actionable findings.

  • All 111 runtime files remain byte-identical. All 681 generator input paths and raw SHA-256 values match across published source 8115da15, original delivery e668cff3, and this head.
  • Original-to-clean delta is exactly 160 process-fixture removals, nine documentation lines linking historical evidence, and removal of the 30-line adapter-report test (two parametrized cases).
  • All three historical links resolve to existing Git objects. All 159 local links across 69 runtime Markdown files resolve; no removed local fixture references remain.
  • Eight focused integration cases, catalog --check (79 records), and coverage --check passed independently. Worktree clean and head unchanged. Whitespace check passes with core.whitespace=cr-at-eol, preserving the upstream CRLF license bytes.

The reviewer did not rerun the broader focused suite, wheel installation or device tests. Those checks are separately attributed; historical native/accelerator limitations remain unchanged. Parent transcribed the independent result.

@david6666666
david6666666 merged commit 2baebf6 into main Nov 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant