Open IvanYashchuk opened 4 days ago
Sending no_grad to Thunder was disabled in https://github.com/Lightning-AI/lightning-thunder/pull/1282 for a good reason (https://github.com/Lightning-AI/lightning-thunder/issues/1219). Maybe it's time to properly support the no_grad
context in Thunder?
🐛 Bug
Splitter for Thunder as a Dynamo backend should send regions of code under a "no_grad" context manager to Thunder. Currently, it chooses to send these computations to Inductor.
prints:
HF's Qwen 2 model added in https://github.com/Lightning-AI/lightning-thunder/pull/1406 creates a small Inductor region because
Qwen2RotaryEmbedding.forward
is decorated with atorch.no_grad
.