[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AHW3EFVHBHB2S7103YA21":3,"skill-same:01M69AHW3EFVHBHB2S7103YA21":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M69AHW3EFVHBHB2S7103YA21","ort-test","ONNX Runtime 测试执行与调试","Run ONNX Runtime tests. Use this skill when asked to run tests, debug test failures, or find and execute specific test cases in ONNX Runtime.","运行 ONNX Runtime 测试。当被要求运行测试、调试测试失败，或在 ONNX Runtime 中查找并执行特定测试用例时使用此技能。","microsoft\u002Fonnxruntime","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AGY0EW9AJXAH7HK223SQZ",22306,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fort-test\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"test","ort test","run tests","debug","debug test","onnx","debug test failures","run","find","execute","use","runtime","tests","test cases","when","2026-11-10 10:12:30",false,"---\nname: ort-test\ndescription: Run ONNX Runtime tests. Use this skill when asked to run tests, debug test failures, or find and execute specific test cases in ONNX Runtime.\n---\n\n# Running ONNX Runtime Tests\n\nONNX Runtime uses **Google Test** for C++ and **unittest** (preferred) \u002F **pytest** for Python.\n\n## C++ tests\n\n### Test executables\n\n| Executable | What it tests |\n|---|---|\n| `onnxruntime_test_all` | Core framework, graph, optimizer, session tests |\n| `onnxruntime_provider_test` | Operator\u002Fkernel tests (Conv, MatMul, etc.) across execution providers |\n\n### Two `attention_op_test.cc` files — don't confuse them\n\nThere are two same-named files testing **different operators**. Both build into\n`onnxruntime_provider_test`:\n\n| Path | Operator | gtest suite |\n|---|---|---|\n| `test\u002Fproviders\u002Fcpu\u002Fllm\u002Fattention_op_test.cc` | **ONNX-domain** `Attention` (opset 23\u002F24) | `AttentionTest.*` |\n| `test\u002Fcontrib_ops\u002Fattention_op_test.cc` | **contrib** MultiHeadAttention \u002F GroupQueryAttention | `ContribOpAttentionTest.*` |\n\nThe MEA negative-offset regression tests (`Attention_Causal_NonPadKVSeqLen_MEA_*`,\ne.g. `..._MEA_NegOffset_ForceFlashDisabled_FP16_CUDA`) live in the **providers\u002Fcpu\u002Fllm** file —\nthe ONNX-domain op.\n\nUse `--gtest_filter` to select specific tests:\n\n```bash\n.\u002Fonnxruntime_provider_test --gtest_filter=\"*Conv3D*\"\n```\n\n### Running tests\n\n**Always run from the build output directory** — tests may fail to find dependencies otherwise.\n\n```bash\n# Linux\ncd build\u002FLinux\u002FRelease\n.\u002Fonnxruntime_provider_test --gtest_filter=\"*TestName*\"\n\n# macOS\ncd build\u002FMacOS\u002FRelease\n.\u002Fonnxruntime_provider_test --gtest_filter=\"*TestName*\"\n\n# Windows\ncd build\\Windows\\Release\n.\\onnxruntime_provider_test.exe --gtest_filter=\"*TestName*\"\n```\n\nYou can also run all tests via the build script (assumes a prior successful build):\n\n```bash\n.\u002Fbuild.sh --config Release --test\n.\\build.bat --config Release --test    # Windows\n```\n\n### Locating the build output directory\n\nThe default path follows the pattern `build\u002F\u003CPlatform>\u002F\u003CConfig>\u002F` where Platform is `Linux`, `MacOS`, or `Windows`. With Visual Studio multi-config generators on Windows, the config may appear twice (e.g., `build\u002FWindows\u002FRelease\u002FRelease\u002F`). The path can also be customized via `--build_dir`.\n\nIf you can't find a test binary, search for it:\n\n```powershell\n# Windows\nGet-ChildItem -Path build -Recurse -Filter \"onnxruntime_provider_test.exe\" | Select-Object -ExpandProperty FullName\n\n# Linux\u002FmacOS\nfind build -name \"onnxruntime_provider_test\" -type f\n```\n\n## Python tests\n\nUse `pytest` as the test runner:\n\n```bash\npytest onnxruntime\u002Ftest\u002Fpython\u002Ftest_specific.py                          # entire file\npytest onnxruntime\u002Ftest\u002Fpython\u002Ftest_specific.py::TestClass::test_method  # specific test\npytest -k \"test_keyword\" onnxruntime\u002Ftest\u002Fpython\u002F                        # by keyword\n```\n\nPython test naming convention: `test_\u003Cmethod>_\u003Cexpected_behavior>_[when_\u003Ccondition>]`\n\n## Agent tips\n\n- **Activate a Python virtual environment** before running tests. See \"Python > Virtual environment\" in `AGENTS.md`.\n- **Beware false-green results** — a green run does not always prove anything. See the\n  \"False-green taxonomy\" section below for the four ways a test can pass without testing\n  your change.\n- **Redirect test output to a file** (e.g., `> test_output.txt 2>&1`) — output can be large.\n- For C++ tests, verify the build directory exists and a prior build completed before running.\n- Use `--gtest_filter` to run a targeted subset when the full suite takes too long.\n- **Running WebGPU tests locally on Linux without a GPU** — WebGPU op tests build into `onnxruntime_provider_test` and can run against a software Vulkan adapter (Mesa lavapipe). See the `webgpu-local-testing` skill.\n\n## False-green taxonomy — ways a test can \"pass\" without proving anything\n\nA green result is not always a real pass. Watch for all five modes:\n\n1. **Zero-match filter.** A `--gtest_filter` that matches no tests still exits 0 (green).\n   Confirm the `[==========] N tests ran` line is non-zero — a zero-match run prints\n   `0 tests from 0 test suites`. Many operator\u002Fkernel gtests run only in\n   **`onnxruntime_provider_test`** (CI runs this), NOT `onnxruntime_test_all`; the wrong\n   binary matches nothing and looks green.\n2. **Stale binary from an incremental build.** If the build did not actually recompile your\n   change (e.g. a header not tracked by the compiler's depfile), the \"passing\" run executes\n   the OLD code. A test that was failing cannot truly flip to passing without a real\n   rebuild — treat an unexpected FAIL→PASS with suspicion and confirm the linked artifact's\n   mtime advanced. CUDA\u002FCUTLASS instance (nvcc depfiles don't track `cutlass_fmha\u002F*.h`): see\n   the `cuda-cutlass-fmha-incremental-rebuild` skill.\n3. **Checking the wrong artifact's freshness.** With a dlopen'd shared provider (e.g.\n   `libonnxruntime_providers_cuda.so`), the test executable is NOT relinked when the provider\n   recompiles — its mtime stays old while the `.so` advances. Verify the artifact that\n   actually links your change, not the test exe. Detail: `cuda-cutlass-fmha-incremental-rebuild`\n   skill.\n4. **A correct fallback path masks the intended path.** A value-only assertion can pass via a\n   *different, correct* code path without ever exercising the one you meant to test (e.g. a\n   test meant for MEA silently handled by the unfused fallback). Assert\u002Fverify **which path\n   ran**, not just the output value — see \"Verify which path\u002Fkernel actually executed\" below.\n5. **Arch-portability false-green (verified on only one GPU arch).** A CUDA kernel that\n   launches on a large-dynamic-smem arch (e.g. sm90\u002FH100, ~227KB) can **fail to launch** on a\n   smaller opt-in cap (sm86\u002F89 ~99KB, sm80 ~163KB) with `CUDA failure 1: invalid argument` —\n   and a path with no fallback (e.g. ORT's MEA) turns that into a hard error, not a silent\n   degrade. So a green run on your local GPU can mask a launch failure on CI's arch. Verify\n   arch-portability, or pick a config whose shared-memory footprint fits **every** target arch\n   (e.g. a small `head_size`). Concrete instance: CUTLASS MEA `head_size=512` FP16 exceeds\n   sm86's smem opt-in cap and dies at launch — live bug #28388 (the\n   `cuda-attention-kernel-patterns` skill §1 has the dispatch detail).\n\n## Verify which path\u002Fkernel actually executed\n\nValue equality alone does not prove the intended code path ran — a correct fallback can\nproduce the right answer (false-green mode 4 above). When a test targets a specific\nkernel\u002Fpath, confirm it actually dispatched there instead of trusting the output:\n\n- Enable verbose logging and check the dispatch log line. ORT attention logs one of these\n  exact strings (`core\u002Fproviders\u002Fcuda\u002Fllm\u002Fattention.cc`):\n  - `ONNX Attention: using Flash Attention` (:1400)\n  - `ONNX Attention: using Memory Efficient Attention` (:1451)\n  - `Attention: using unified unfused path` (:1482) — note: **no `ONNX ` prefix** and it\n    reads \"unified unfused path\", not \"Unfused\".\n- Or force the path via the relevant env var \u002F build config AND add a compile-time guard so\n  the test **SKIPs** (not silently passes) when the target path is unavailable — e.g.\n  `SKIP_IF_MEA_NOT_COMPILED`.\n\nOperator-specific routing\u002Fforcing details: `cuda-attention-kernel-patterns` skill §1\u002F§7.\n","# Running ONNX Runtime Tests\n\nONNX Runtime uses **Google Test** for C++ and **unittest** (preferred) \u002F **pytest** for Python.\n\n## C++ tests\n\n### Test executables\n\n| Executable | What it tests |\n|---|---|\n| `onnxruntime_test_all` | Core framework, graph, optimizer, session tests |\n| `onnxruntime_provider_test` | Operator\u002Fkernel tests (Conv, MatMul, etc.) across execution providers |\n\n### Two `attention_op_test.cc` files — don't confuse them\n\nThere are two same-named files testing **different operators**. Both build into\n`onnxruntime_provider_test`:\n\n| Path | Operator | gtest suite |\n|---|---|---|\n| `test\u002Fproviders\u002Fcpu\u002Fllm\u002Fattention_op_test.cc` | **ONNX-domain** `Attention` (opset 23\u002F24) | `AttentionTest.*` |\n| `test\u002Fcontrib_ops\u002Fattention_op_test.cc` | **contrib** MultiHeadAttention \u002F GroupQueryAttention | `ContribOpAttentionTest.*` |\n\nThe MEA negative-offset regression tests (`Attention_Causal_NonPadKVSeqLen_MEA_*`,\ne.g. `..._MEA_NegOffset_ForceFlashDisabled_FP16_CUDA`) live in the **providers\u002Fcpu\u002Fllm** file —\nthe ONNX-domain op.\n\nUse `--gtest_filter` to select specific tests:\n\n```bash\n.\u002Fonnxruntime_provider_test --gtest_filter=\"*Conv3D*\"\n```\n\n### Running tests\n\n**Always run from the build output directory** — tests may fail to find dependencies otherwise.\n\n```bash\n# Linux\ncd build\u002FLinux\u002FRelease\n.\u002Fonnxruntime_provider_test --gtest_filter=\"*TestName*\"\n\n# macOS\ncd build\u002FMacOS\u002FRelease\n.\u002Fonnxruntime_provider_test --gtest_filter=\"*TestName*\"\n\n# Windows\ncd build\\Windows\\Release\n.\\onnxruntime_provider_test.exe --gtest_filter=\"*TestName*\"\n```\n\nYou can also run all tests via the build script (assumes a prior successful build):\n\n```bash\n.\u002Fbuild.sh --config Release --test\n.\\build.bat --config Release --test    # Windows\n```\n\n### Locating the build output directory\n\nThe default path follows the pattern `build\u002F\u003CPlatform>\u002F\u003CConfig>\u002F` where Platform is `Linux`, `MacOS`, or `Windows`. With Visual Studio multi-config generators on Windows, the config may appear twice (e.g., `build\u002FWindows\u002FRelease\u002FRelease\u002F`). The path can also be customized via `--build_dir`.\n\nIf you can't find a test binary, search for it:\n\n```powershell\n# Windows\nGet-ChildItem -Path build -Recurse -Filter \"onnxruntime_provider_test.exe\" | Select-Object -ExpandProperty FullName\n\n# Linux\u002FmacOS\nfind build -name \"onnxruntime_provider_test\" -type f\n```\n\n## Python tests\n\nUse `pytest` as the test runner:\n\n```bash\npytest onnxruntime\u002Ftest\u002Fpython\u002Ftest_specific.py                          # entire file\npytest onnxruntime\u002Ftest\u002Fpython\u002Ftest_specific.py::TestClass::test_method  # specific test\npytest -k \"test_keyword\" onnxruntime\u002Ftest\u002Fpython\u002F                        # by keyword\n```\n\nPython test naming convention: `test_\u003Cmethod>_\u003Cexpected_behavior>_[when_\u003Ccondition>]`\n\n## Agent tips\n\n- **Activate a Python virtual environment** before running tests. See \"Python > Virtual environment\" in `AGENTS.md`.\n- **Beware false-green results** — a green run does not always prove anything. See the\n  \"False-green taxonomy\" section below for the four ways a test can pass without testing\n  your change.\n- **Redirect test output to a file** (e.g., `> test_output.txt 2>&1`) — output can be large.\n- For C++ tests, verify the build directory exists and a prior build completed before running.\n- Use `--gtest_filter` to run a targeted subset when the full suite takes too long.\n- **Running WebGPU tests locally on Linux without a GPU** — WebGPU op tests build into `onnxruntime_provider_test` and can run against a software Vulkan adapter (Mesa lavapipe). See the `webgpu-local-testing` skill.\n\n## False-green taxonomy — ways a test can \"pass\" without proving anything\n\nA green result is not always a real pass. Watch for all five modes:\n\n1. **Zero-match filter.** A `--gtest_filter` that matches no tests still exits 0 (green).\n   Confirm the `[==========] N tests ran` line is non-zero — a zero-match run prints\n   `0 tests from 0 test suites`. Many operator\u002Fkernel gtests run only in\n   **`onnxruntime_provider_test`** (CI runs this), NOT `onnxruntime_test_all`; the wrong\n   binary matches nothing and looks green.\n2. **Stale binary from an incremental build.** If the build did not actually recompile your\n   change (e.g. a header not tracked by the compiler's depfile), the \"passing\" run executes\n   the OLD code. A test that was failing cannot truly flip to passing without a real\n   rebuild — treat an unexpected FAIL→PASS with suspicion and confirm the linked artifact's\n   mtime advanced. CUDA\u002FCUTLASS instance (nvcc depfiles don't track `cutlass_fmha\u002F*.h`): see\n   the `cuda-cutlass-fmha-incremental-rebuild` skill.\n3. **Checking the wrong artifact's freshness.** With a dlopen'd shared provider (e.g.\n   `libonnxruntime_providers_cuda.so`), the test executable is NOT relinked when the provider\n   recompiles — its mtime stays old while the `.so` advances. Verify the artifact that\n   actually links your change, not the test exe. Detail: `cuda-cutlass-fmha-incremental-rebuild`\n   skill.\n4. **A correct fallback path masks the intended path.** A value-only assertion can pass via a\n   *different, correct* code path without ever exercising the one you meant to test (e.g. a\n   test meant for MEA silently handled by the unfused fallback). Assert\u002Fverify **which path\n   ran**, not just the output value — see \"Verify which path\u002Fkernel actually executed\" below.\n5. **Arch-portability false-green (verified on only one GPU arch).** A CUDA kernel that\n   launches on a large-dynamic-smem arch (e.g. sm90\u002FH100, ~227KB) can **fail to launch** on a\n   smaller opt-in cap (sm86\u002F89 ~99KB, sm80 ~163KB) with `CUDA failure 1: invalid argument` —\n   and a path with no fallback (e.g. ORT's MEA) turns that into a hard error, not a silent\n   degrade. So a green run on your local GPU can mask a launch failure on CI's arch. Verify\n   arch-portability, or pick a config whose shared-memory footprint fits **every** target arch\n   (e.g. a small `head_size`). Concrete instance: CUTLASS MEA `head_size=512` FP16 exceeds\n   sm86's smem opt-in cap and dies at launch — live bug #28388 (the\n   `cuda-attention-kernel-patterns` skill §1 has the dispatch detail).\n\n## Verify which path\u002Fkernel actually executed\n\nValue equality alone does not prove the intended code path ran — a correct fallback can\nproduce the right answer (false-green mode 4 above). When a test targets a specific\nkernel\u002Fpath, confirm it actually dispatched there instead of trusting the output:\n\n- Enable verbose logging and check the dispatch log line. ORT attention logs one of these\n  exact strings (`core\u002Fproviders\u002Fcuda\u002Fllm\u002Fattention.cc`):\n  - `ONNX Attention: using Flash Attention` (:1400)\n  - `ONNX Attention: using Memory Efficient Attention` (:1451)\n  - `Attention: using unified unfused path` (:1482) — note: **no `ONNX ` prefix** and it\n    reads \"unified unfused path\", not \"Unfused\".\n- Or force the path via the relevant env var \u002F build config AND add a compile-time guard so\n  the test **SKIPs** (not silently passes) when the target path is unavailable — e.g.\n  `SKIP_IF_MEA_NOT_COMPILED`.\n\nOperator-specific routing\u002Fforcing details: `cuda-attention-kernel-patterns` skill §1\u002F§7.\n",{"name":5,"description":7},"main","4edd78a847b9d7755f32d6c99aa60cab2addd39b",".github\u002Fskills\u002Fort-test",4449,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime","https:\u002F\u002Fonnxruntime.ai","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 02:23:16",{"source":9,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add microsoft\u002Fonnxruntime --skill ort-test",{"tool":67,"command":68},"bunx","bunx skills add microsoft\u002Fonnxruntime --skill ort-test",{"tool":70,"command":71},"pnpm","pnpm dlx skills add microsoft\u002Fonnxruntime --skill ort-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fort-test\u002FSKILL.md",true,[75,81,85,91],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"assets\u002Ffan-out-pool.md","ASSET","资产文件",1396,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Fpackages\u002Fautopilot\u002Fautopilot-pr-triage-scheduler\u002F.apm\u002Fskills\u002Fautopilot-pr-triage-scheduler\u002Fassets\u002Ffan-out-pool.md",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"assets\u002Flabel-contract.json",4653,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Fpackages\u002Fautopilot\u002Fautopilot-pr-triage-scheduler\u002F.apm\u002Fskills\u002Fautopilot-pr-triage-scheduler\u002Fassets\u002Flabel-contract.json",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Ffetch_queue.py","SCRIPT","脚本",22451,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Fpackages\u002Fautopilot\u002Fautopilot-pr-triage-scheduler\u002F.apm\u002Fskills\u002Fautopilot-pr-triage-scheduler\u002Fscripts\u002Ffetch_queue.py",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Ftriage_state.py",4648,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Fpackages\u002Fautopilot\u002Fautopilot-pr-triage-scheduler\u002F.apm\u002Fskills\u002Fautopilot-pr-triage-scheduler\u002Fscripts\u002Ftriage_state.py",[96,130,163,193,215,247],{"skillNo":97,"name":98,"nameZh":99,"description":100,"descriptionZh":101,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":110,"publishedAt":46},"01M69AJ65WPPT5DS4JA8YWN37B","workspace-estimation-shared-header","工作空间估计共享头文件","Use when editing a boundary-safe shared header meant to be included by both in-tree and shared-provider\u002Fplugin-bridge code (e.g. include\u002Fonnxruntime\u002Fcore\u002Fframework\u002Fworkspace_requirement.h, or any future header supporting OrtKernelWorkspaceEstimateFunc \u002F DeclareWorkspaceRequirements per issue #29775's Phase-A workspace-estimation roadmap), or when a workspace-estimation math helper needs to be callable from a future plugin EP DLL. Covers a Node forward-declaration ODR trap and the math-helper vs. graph-parsing-wrapper reuse boundary discovered while implementing PR #29811 (MatMulNBits pilot).","在编辑边界安全的共享头文件时使用，该头文件须同时被树内代码和共享提供者\u002F插件桥接代码包含（例如 include\u002Fonnxruntime\u002Fcore\u002Fframework\u002Fworkspace_requirement.h，或任何未来支持 OrtKernelWorkspaceEstimateFunc \u002F DeclareWorkspaceRequirements 的头文件，参见 issue #29775 的 Phase-A 工作空间估计路线图），或者当工作空间估计数学辅助函数需要从未来的插件 EP DLL 中调用时。涵盖 Node 前向声明的 ODR 陷阱，以及在实现 PR #29811（MatMulNBits 试点）时发现的数学辅助函数与图解析包装器之间的重用边界。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkspace-estimation-shared-header\u002FSKILL.md",[104,107],{"categoryNo":105,"categoryName":106,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":108,"categoryName":109,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRXQPYT60FQ3976GDV4Q","C++ 开发",[111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,45],"workspace estimation shared header","workspace","estimation","shared","safe","pr","code","framework","graph","parsing","node","math","bridge","roadmap","Wrapper","issue","tree","implementing","phase",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":142,"publishedAt":46},"01M69AJ3F3NXDS7QP76KZ9EX5H","webgpu-local-testing","ONNX Runtime WebGPU 本地测试","Build and run ONNX Runtime WebGPU provider tests on Linux WITHOUT a real GPU, using a software Vulkan adapter (Mesa lavapipe). Use when you need to exercise WebGPU EP kernels off-Mac — the Linux webgpu CI leg is build-only, so software Vulkan is how you actually run WebGPU correctness tests locally. SCOPE - lavapipe only validates host-side enforce\u002Fshape bugs and MatMul-free kernels; any graph containing MatMul (including the expanded-Attention node tests) crashes lavapipe and runs ONLY on macOS-arm64 Metal, which is the source of truth for those. Covers install (dnf on Azure Linux), the --use_webgpu build flag, the onnxruntime_provider_test target, VK_ICD_FILENAMES, and the lavapipe MatMul crash gotcha.","在没有真实 GPU 的 Linux 上构建并运行 ONNX Runtime WebGPU 提供者测试，使用软件 Vulkan 适配器（Mesa lavapipe）。当需要在非 Mac 环境下运行 WebGPU EP 内核时使用——Linux 的 webgpu CI 环节仅做构建，因此软件 Vulkan 是本地实际运行 WebGPU 正确性测试的方式。范围——lavapipe 仅能验证主机侧的 enforce\u002Fshape 缺陷以及不含 MatMul 的内核；任何包含 MatMul 的图（包括扩展的 Attention 节点测试）都会使 lavapipe 崩溃，此类测试仅在 macOS-arm64 Metal 上运行，Metal 是这些测试的权威来源。涵盖安装（在 Azure Linux 上用 dnf）、--use_webgpu 构建标志、onnxruntime_provider_test 目标、VK_ICD_FILENAMES，以及 lavapipe 的 MatMul 崩溃陷阱。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwebgpu-local-testing\u002FSKILL.md",[138,139],{"categoryNo":105,"categoryName":106,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":140,"categoryName":141,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[143,144,145,146,147,148,149,150,151,31,36,38,152,153,154,121,155,156,157,158,159,160,161,162,45],"testing","webgpu","webgpu local testing","local testing","local","macos","metal","vulkan","linux","ci","exercise","how","install","only","free","host","scope","you","vk","which",{"skillNo":164,"name":165,"nameZh":166,"description":167,"descriptionZh":168,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":169,"categories":170,"keywords":177,"publishedAt":46},"01M69AJ1ASRSCJ90HDWN05TW82","python-kwargs-setattr-security","Python setattr 安全审查","When reviewing or fixing Python code that uses setattr() with user-controlled kwargs to configure C++ extension objects (SessionOptions, RunOptions, etc.) in ONNX Runtime. Use this to apply the allowlist pattern that prevents arbitrary file writes and other attacks via reflected property access.","在审查或修复 ONNX Runtime 中使用用户可控的 kwargs 通过 setattr() 配置 C++ 扩展对象（SessionOptions、RunOptions 等）的 Python 代码时使用。用于应用白名单模式，防止通过反射属性访问进行任意文件写入和其他攻击。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpython-kwargs-setattr-security\u002FSKILL.md",[171,174],{"categoryNo":172,"categoryName":173,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":175,"categoryName":176,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程",[178,179,180,36,117,181,182,183,41,184,185,186,42,187,188,189,190,191,192,45],"python","security","python kwargs setattr security","file","access","configure","objects","pattern","c++","extension","via","with","attacks","python code","apply",{"skillNo":194,"name":195,"nameZh":196,"description":197,"descriptionZh":198,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":199,"categories":200,"keywords":203,"publishedAt":46},"01M69AHZ0M0Q90TP0KYMZ10HEP","ort-transformers-gpu-pytest","ONNX Runtime Transformers GPU 测试","Run the ONNX Runtime transformers Python tests (onnxruntime\u002Ftest\u002Fpython\u002Ftransformers) against a GPU wheel, and confirm real cuDNN\u002Fflash SDPA dispatch. Use when a transformers pytest fails with ModuleNotFoundError onnxruntime.capi, when torch's bundled CUDA\u002FcuDNN libs shadow the ORT-built ones (wrong-version dispatch or load errors), or when you must PROVE a test exercised the cuDNN SDPA decode tier instead of silently skipping\u002Ffalling back to MATH.","针对 GPU wheel 运行 ONNX Runtime transformers Python 测试（onnxruntime\u002Ftest\u002Fpython\u002Ftransformers），并确认真实的 cuDNN\u002Fflash SDPA 调度。当 transformers pytest 因 ModuleNotFoundError onnxruntime.capi 失败、torch 自带的 CUDA\u002FcuDNN 库覆盖了 ORT 构建的库（导致错误版本调度或加载错误），或必须证明测试确实执行了 cuDNN SDPA 解码层而非静默跳过或回退到 MATH 时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fort-transformers-gpu-pytest\u002FSKILL.md",[201,202],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[204,205,206,207,178,31,36,38,208,122,41,209,42,43,210,160,211,212,213,214,45],"ort transformers gpu pytest","gpu","Transformers","pytest","flash","back","SDPA","errors","load","prove","decode",{"skillNo":216,"name":217,"nameZh":218,"description":219,"descriptionZh":220,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":221,"categories":222,"keywords":229,"publishedAt":46},"01M69AHSKXBSERP5NGAJB5E6XD","ort-release-notes","ONNX Runtime 发布说明撰写","Draft ONNX Runtime release notes using preset configurations for full ORT or scoped component releases. Use when generating highlights with PR links, compiling human contributor acknowledgments from compile_contributors.py output, and applying preset path filtering.","使用预设配置为完整 ORT 或限定范围的组件发布起草 ONNX Runtime 发布说明。适用于生成带 PR 链接的亮点摘要、根据 compile_contributors.py 的输出整理人工贡献者致谢名单，以及应用预设的路径过滤。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fort-release-notes\u002FSKILL.md",[223,226],{"categoryNo":224,"categoryName":225,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":227,"categoryName":228,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",[230,231,232,233,234,235,36,116,236,237,238,239,240,241,42,242,243,244,245,246,45],"notes","ort release notes","release notes","release","component","preset","compile","compiling","contributors","releases","human","full","links","path","for","scoped","contributor",{"skillNo":248,"name":249,"nameZh":250,"description":251,"descriptionZh":252,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":253,"categories":254,"keywords":259,"publishedAt":46},"01M69AHQAPER0CRAZ0FTX0G2FT","ort-lint","ONNX Runtime 代码检查与格式化","Lint and format ONNX Runtime code. Use this skill when asked to lint, format, or check code style for C++ or Python files in ONNX Runtime.","对 ONNX Runtime 代码执行代码检查（lint）和格式化。当被要求对 ONNX Runtime 中的 C++ 或 Python 文件进行 lint、格式化或代码风格检查时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fort-lint\u002FSKILL.md",[255,256],{"categoryNo":105,"categoryName":106,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":257,"categoryName":258,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[260,261,178,262,36,117,263,264,41,265,186,42,266,244,45],"ort lint","lint","code style","format","check","files","style"]