Skip to content

refactor: rename EP short names to snake_case and AITK to Foundry Toolkit#373

Merged
timenick merged 11 commits into
mainfrom
zhiwang/docs-rename-foundry-eps
Apr 24, 2026
Merged

refactor: rename EP short names to snake_case and AITK to Foundry Toolkit#373
timenick merged 11 commits into
mainfrom
zhiwang/docs-rename-foundry-eps

Conversation

@timenick

Copy link
Copy Markdown
Collaborator

Closes #372.

Summary

  • Rename EP short names for consistency (snake_case, match ORT symbol casing)
    • directmldml
    • tensorrt / tensorrt_rtxnv_tensorrt_rtx
  • Rename WinMLCompileConfig.for_tensorrtfor_nv_tensorrt_rtx (+ dispatch table + tests)
  • Rename pytest markers: directmldml, tensorrtnv_tensorrt_rtx
  • Drop dead classic TensorrtExecutionProvider references (not supported)
  • Fix bug: docstring cited non-existent DirectMLExecutionProvider (ORT symbol is DmlExecutionProvider)
  • Prose corrections: DirectMLDml and TensorRTNvTensorRTRTX in EP-list contexts
  • Rebrand: "group": "AITK""group": "Foundry Toolkit" in testset JSONs, build script, README, and viewer HTML
  • Drop onnxruntime-directml references — DML is shipped inside onnxruntime-windowsml on Windows

Kept intentionally

  • DirectML stays when referring to the Microsoft product/API (e.g., "Factory for DirectML compilation" docstring)
  • Pip package literals (real PyPI names) untouched where they are the actual install target

…lkit

- Rename EP short names: directml -> dml, tensorrt/tensorrt_rtx -> nv_tensorrt_rtx
- Rename WinMLCompileConfig.for_tensorrt -> for_nv_tensorrt_rtx
- Rename pytest markers: directml -> dml, tensorrt -> nv_tensorrt_rtx
- Drop dead classic TensorrtExecutionProvider references
- Fix incorrect DirectMLExecutionProvider docstring (-> DmlExecutionProvider)
- Update EP name prose (DirectML -> Dml, TensorRT -> NvTensorRTRTX in EP lists)
- Rename AITK group -> Foundry Toolkit in testsets and scripts
DML support ships inside onnxruntime-windowsml on Windows; the separate
onnxruntime-directml package is not the recommended install path here.
@timenick timenick requested a review from a team as a code owner April 21, 2026 08:05
The onnxruntime-windowsml package is the single install path; pointing
users at onnxruntime-gpu alongside it is redundant.
…wsml

onnxruntime-windowsml is the single Windows install target covering both
NPU and GPU execution providers.
@chinazhangchao

Copy link
Copy Markdown
Contributor

@copilot Does this change affect the names of op json files generated by check_ops.py or the names of rules files generate by result_processor.py?

Comment thread src/winml/modelkit/session/session.py

Copilot AI commented Apr 21, 2026

Copy link
Copy Markdown

@copilot Does this change affect the names of op json files generated by check_ops.py or the names of rules files generate by result_processor.py?

No—this PR’s EP short-name refactor does not change check_ops.py op JSON naming or result_processor.py rule-file naming. Both scripts still use the full EP token in filenames (for example <op>_<ep_name>_<device>_... and <ep_name>_<device>_...), and neither file was modified in this PR branch. Verified at 96691d8.

@DingmaomaoBJTU DingmaomaoBJTU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The rename is thorough — I verified the PR branch and found zero stale references for any of the renamed patterns (directml short name, tensorrt, tensorrt_rtx, for_tensorrt, AITK, onnxruntime-directml, DirectMLExecutionProvider, TensorrtExecutionProvider). The code-level changes (EP maps, factory methods, pytest markers, CLI help, session install suggestions) are all internally consistent.

One design concern below: the PR description says "DirectML stays when referring to the Microsoft product/API", but several user-facing prose contexts were changed from product names to ORT symbol names.

Comment thread README.md
Comment thread CLAUDE.md
Comment thread src/winml/modelkit/optracing/base.py
@timenick

Copy link
Copy Markdown
Collaborator Author

The rename is thorough — I verified the PR branch and found zero stale references for any of the renamed patterns (directml short name, tensorrt, tensorrt_rtx, for_tensorrt, AITK, onnxruntime-directml, DirectMLExecutionProvider, TensorrtExecutionProvider). The code-level changes (EP maps, factory methods, pytest markers, CLI help, session install suggestions) are all internally consistent.

One design concern below: the PR description says "DirectML stays when referring to the Microsoft product/API", but several user-facing prose contexts were changed from product names to ORT symbol names.

Thanks for the thorough check on the rename coverage.

On the design concern — I don't think the three flagged locations are "product/API prose" contexts. All three are explicitly EP-symbol contexts, not product-name contexts. I'd keep these three as Dml / NvTensorRTRTX for consistency with the EP-canonical-names convention.

@timenick timenick enabled auto-merge (squash) April 24, 2026 06:41
@timenick timenick merged commit 5581ca9 into main Apr 24, 2026
9 checks passed
@timenick timenick deleted the zhiwang/docs-rename-foundry-eps branch April 24, 2026 06:42
DingmaomaoBJTU added a commit that referenced this pull request Apr 27, 2026
- Fix absolute imports to relative: constants.py uses ..sysinfo, ep_utils.py
  uses ...sysinfo per CLAUDE.md import rules
- Export has_rule_data_for_ep and get_devices_with_rule_data in
  analyze/utils/__init__.py with __all__
- Derive device probe list from _EP_DEVICE_MAP instead of hardcoded tuple,
  preserving NPU > GPU > CPU priority order
- Rename alias trtrtx to nv_tensorrt_rtx matching codebase convention (PR #373)
- Tighten test assertion from permissive 'or' to strict exit_code == 0 + called
DingmaomaoBJTU added a commit that referenced this pull request Apr 27, 2026
- Fix absolute imports to relative: constants.py uses ..sysinfo, ep_utils.py
  uses ...sysinfo per CLAUDE.md import rules
- Export has_rule_data_for_ep and get_devices_with_rule_data in
  analyze/utils/__init__.py with __all__
- Derive device probe list from _EP_DEVICE_MAP instead of hardcoded tuple,
  preserving NPU > GPU > CPU priority order
- Rename alias trtrtx to nv_tensorrt_rtx matching codebase convention (PR #373)
- Tighten test assertion from permissive 'or' to strict exit_code == 0 + called
ssss141414 pushed a commit that referenced this pull request Apr 27, 2026
…lkit (#373)

Closes #372.

## Summary

- Rename EP short names for consistency (snake_case, match ORT symbol
casing)
  - `directml` → `dml`
  - `tensorrt` / `tensorrt_rtx` → `nv_tensorrt_rtx`
- Rename `WinMLCompileConfig.for_tensorrt` → `for_nv_tensorrt_rtx` (+
dispatch table + tests)
- Rename pytest markers: `directml` → `dml`, `tensorrt` →
`nv_tensorrt_rtx`
- Drop dead classic `TensorrtExecutionProvider` references (not
supported)
- Fix bug: docstring cited non-existent `DirectMLExecutionProvider` (ORT
symbol is `DmlExecutionProvider`)
- Prose corrections: `DirectML` → `Dml` and `TensorRT` → `NvTensorRTRTX`
in EP-list contexts
- Rebrand: `"group": "AITK"` → `"group": "Foundry Toolkit"` in testset
JSONs, build script, README, and viewer HTML
- Drop `onnxruntime-directml` references — DML is shipped inside
`onnxruntime-windowsml` on Windows

## Kept intentionally

- `DirectML` stays when referring to the Microsoft product/API (e.g.,
"Factory for DirectML compilation" docstring)
- Pip package literals (real PyPI names) untouched where they are the
actual install target
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.

Rebrand AITK → Foundry Toolkit and correct EP naming inconsistencies

5 participants