Closed baldassarreFe closed 4 months ago
Looking into it. No, torch.compile should just work.
Hmm, something must be broken in Pytorch 2.5.0. @baldassarreFe how do you install it? I never touched Pytorch Dev.
I missed that you mentioned that you upgraded to pytorch 2.5.0. Yeah, I'm seeing the same issue.
@baldassarreFe Please give the last git version a try:
pip install git+https://github.com/xl0/lovely-tensors
~Thanks for the quick fix. It still gives graph breaks in my env, same messages as before. I'll try again on monday with the newest nightly.~
Thanks for the quick fix, it works!
Hello, thanks a lot for the library, I use it a lot and I love it!
After updating to a recent pytorch nightly I found that lovely tensors introduces many many graph breaks when using
torch.compile
. Below is a minimal reproduction:With the line
lovely_tensors.monkey_patch()
commented out, the output is very simply:But with monkey patching enabled I get warnings about graph breaks with a clear reference to
StrProxy
:The output above is only the first of many graph breaks. I attached the full log: tmp.log
Can this library remain compatible with
torch.compile
?