Skip to content

Add new apex module to jit load system#294

Merged
amd-sriram merged 16 commits intomasterfrom
create_jit_module_automation
Feb 18, 2026
Merged

Add new apex module to jit load system#294
amd-sriram merged 16 commits intomasterfrom
create_jit_module_automation

Conversation

@amd-sriram
Copy link
Copy Markdown
Collaborator

@amd-sriram amd-sriram commented Feb 3, 2026

Motivation

Integrate a new apex extension to jit loader system. Users create a apex module with C++/CUDA source code. The user would like to easily add it to JIT. The script helps to create initial builder and loader modules to help the module integrate into JIT system.

Technical Details

Run the scripts/jit_module.py script.

The script scripts/jit_module.py creates a loader module in compatibility folder and builder module in op_builder.

More details in the readme file.

Test Plan

  • Delete existing loader and builder for a module.
  • Run the script for the module.
  • Run its unit test.
rm compatibility/fused_bias_swiglu.py
rm op_builder/fused_bias_swiglu.py
python scripts/jit_module.py fused_bias_swiglu
pip install . --no-build-isolation  
python tests/L0/run_transformer/test_fused_bias_swiglu.py

Test Result

Apex builds and the unit test passes.

Submission Checklist

@amd-sriram amd-sriram changed the title Create jit module automation Add new apex module to jit load system Feb 3, 2026
…me from the builder, update missing entries in the table in readme for adding new module in jit
@pruthvistony
Copy link
Copy Markdown

I am not sure of the request here,
@jithunnair-amd , please review this PR.

@amd-sriram amd-sriram marked this pull request as draft February 10, 2026 13:58
@amd-sriram amd-sriram marked this pull request as ready for review February 18, 2026 15:06
@amd-sriram amd-sriram merged commit e17d1ed into master Feb 18, 2026
@amd-sriram amd-sriram deleted the create_jit_module_automation branch February 18, 2026 15:06
@amd-sriram
Copy link
Copy Markdown
Collaborator Author

! cherry-pick --onto release/1.10.0

amd-sriram added a commit that referenced this pull request Feb 19, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
amd-sriram added a commit that referenced this pull request Feb 19, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
amd-sriram added a commit that referenced this pull request Mar 2, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
amd-sriram added a commit that referenced this pull request Mar 2, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
amd-sriram added a commit that referenced this pull request Mar 2, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
amd-sriram added a commit that referenced this pull request Mar 2, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Mar 3, 2026
Commit Messages:
- Update release notes for clarity and conciseness
(ROCm/apex#311)

Removed redundant information and clarified release notes.
- Add new apex module to jit load system
(ROCm/apex#294)
(ROCm/apex#302)

Co-authored-by: sriram <sriram.kumar@silo.ai>
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Mar 3, 2026
Commit Messages:
- Update release notes (ROCm/apex#312)
- Add new apex module to jit load system
(ROCm/apex#294)
(ROCm/apex#307)

Co-authored-by: sriram <sriram.kumar@silo.ai>
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Mar 3, 2026
Commit Messages:
- release notes for 1.8.0 (ROCm/apex#313)

Updated release notes to reflect changes for version 1.8.0 including
unit test fixes and new features.
- Add new apex module to jit load system
(ROCm/apex#294)
(ROCm/apex#308)

Co-authored-by: sriram <sriram.kumar@silo.ai>
amd-sriram added a commit that referenced this pull request Mar 4, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
amd-sriram added a commit that referenced this pull request Mar 4, 2026
* add code to add loader module for jit module

* fix errors to create jit module adder - use correct file name to save code to

* fix errors to create jit module adder - use correct class name of the builder and parameter to supply builder module name

* fix errors to create jit module loader

* add description about jit module script to add jit loader for a jit module with builder provided

* add description about jit module script to add jit loader for a jit module with builder provided

* add attributes and methods to override when creating a jit module builder

* add extra new lines

* update jit module to take the builder file name and extract module name from the builder, update missing entries in the table in readme for adding new module in jit

* refine the description about module to jit

* add description about jit

* add description about jit

* add code to create a builder based on user inputs

* change the example from fused_dense to swiglu

* allow user to skip sources list

* change description of cxx and nvcc flags, add description of methods and fields in the initial builder code created by script
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Mar 5, 2026
Commit Messages:
- Create custom python operators for MixedFusedLayerNorm and
MixedFusedRMSNorm. (ROCm/apex#304)
- Add new apex module to jit load system
(ROCm/apex#294)
- add details of fused_conv_bias_relu in table of modules and fix error
of maximum depth reached (ROCm/apex#297)
- Port fused_conv_bias_relu to ROCm
(ROCm/apex#295)

Co-authored-by: sriram <sriram.kumar@silo.ai>
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.

2 participants