RuntimeError: invalid dtype for bias
when use compile + autocast
#124901
Labels
module: amp (automated mixed precision)
autocast
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
When I tried using
torch.compile
along withautocast
to infereance a llama's decoder block, I encounteredRuntimeError: invalid dtype for bias - should match query's dtype
.Versions
cc @mcarilli @ptrblck @leslie-fang-intel @jgong5 @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang
The text was updated successfully, but these errors were encountered: