Uh oh!
There was an error while loading. Please reload this page.
implementing flux on TPUs with ptxla - #10515
Conversation
sayakpaul
commented
Jan 10, 2025
Okay for me to create a new class even if that means duplication. Once we start to more formally support PyTorch XLA (i.e., through inclusion in our CI), we can start revisiting them to refactor but for now, new classes are completely fine by me. Cc: @yiyixuxu WDYT? |
HuggingFaceDocBuilderDev
commented
Jan 10, 2025
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Uh oh!
There was an error while loading. Please reload this page.
entrpn
commented
Jan 13, 2025
@hlky@sayakpaul created new class and addressed the comments + ran make style/quality. Please take another look. |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: YiYi Xu <yixu310@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: YiYi Xu <yixu310@gmail.com>
sayakpaul
commented
Jan 15, 2025
@entrpn could you run |
entrpn
commented
Jan 15, 2025
done |
sayakpaul
commented
Jan 17, 2025
Thanks for contributing this! |
Sorry if I've misunderstood, as I don't understand this very well, but was this change in I think it reverts this change? |
entrpn
commented
Mar 7, 2025
@josephrocca yes this should not have changed. I'll need to make a PR to revert this change. |

What does this PR do?
Flux inference using PyTorch XLA.
I still need to validate that the readme works on a new machine and I didn't miss any steps then run the linter. Will do it tomorrow.
@pcuenca@sayakpaul I have a question regarding the AttentionProcessors. In a previous PR it was recommended to create a new AttentionProcessor for ptxla. Unfortunately that one doesn't work for Flux and I feel its a lot of duplication of code if I do the same for Flux as it would almost be a copy/paste of FluxAttentionProcessors. Please advice.
Fixes # (issue)
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.