-
Notifications
You must be signed in to change notification settings - Fork 77
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
TypeError with torch.finfo() #457
Comments
Not really understanding this one. We don't appear to have a lookaside for |
Without a traceback, it is hard to guess:
gives
likely options:
As an aside: Quite likely, it would help debugging these cases if Thunder objects had more Pythonic representations that informed about the fact that they are thunder objects... (ported over #510 for this) |
@athitten to add the full trace. |
dropping 'triage review' until the trace comes in, will revisit then. |
Repro:
Aside from the obvious implementation strategy of implementing finfo: Maybe it would be nice to do a replacement of thunder dtype (and device) to PyTorch when calling opaque functions. |
Hello Team! FYI I will be working on this issue. (cc. @t-vi ) |
Thank you @k223kim |
🐛 Bug
NeMo's Stable Diffusion uses HuggingFace Transformers that uses
torch.finfo
in one of its operations. Whenthunder.jit
is used with Stable Diffusion, it gives an error:although torch supports the
dtype
intorch.finfo(dtype)
to be eithertorch.float32
or justfloat32
.CC: @tfogal
cc @tfogal
The text was updated successfully, but these errors were encountered: