-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] torch compile / integrating intel extension for pytorch #1564
Comments
Hello, will you be willing to contribute such extension? |
I believe it was a reference to this project: https://github.com/intel/intel-extension-for-pytorch The latest version is compatible with |
Thanks for the pointers @duburcqa =)! I see. In that case, it is already supported as SB3 exposes its PyTorch policy via the You should also know that the bottleneck at train time is the gradient update, so it won't help you much to optimize inference time (unless you are at test time), we do have an experimental Jax version (SBX) if you need significant speed up (see README). |
I would actually welcome a PR that shows how to use |
As a follow up, it would be nice to investigate where to have torch compile for some speed boost (see https://github.com/pytorch-labs/LeanRL, cc @vmoens). |
Hey
That's the 101 but I'd be happy to review or help implement a compiled version of any script. |
🚀 Feature
Request to integrate the Intel extension for PyTorch into sb3. The Intel extension for PyTorch optimizes the PyTorch library to better utilize the computational capabilities of Intel processors. By integrating this extension, SB3 users that utilize Intel processors could potentially experience significant performance improvements.
Motivation
Maximizing the performance of Intel processors. This can lead to faster training times and more efficient resource utilization, improving the overall experience for users of SB3 who use Intel processors.
Pitch
The integration of the Intel extension for PyTorch into SB3 would involve modifying the library to utilize the extension when it detects that it is running on an Intel processor.
Alternatives
An alternative to this would be to provide guidelines on how users can manually integrate the Intel extension into their SB3 setups.
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: