Lightning-AI / lightning-thunder

Make PyTorch models up to 40% faster! Thunder is a source to source compiler for PyTorch. It enables using different hardware executors at once; across one or thousands of GPUs.
Apache License 2.0
1.21k stars 81 forks source link

Support NeMo MegatronImagen network #179

Open tfogal opened 7 months ago

tfogal commented 7 months ago

🚀 Feature

NeMo's "Imagen" network implements text-to-image generation.

Initial examine:

Found 55 distinct operations, of which 46 (83.6%) are supported

Motivation

Pitch

Work items

cc @tfogal

tfogal commented 7 months ago

Quick update: I talked to the NeMo team and Eric had the (reasonable) concern that swapping in-place for out-of-place might increase memory consumption. The onus is on me to give it a try and look at the torch memory use with both in-place and out-of-place options; if the delta is minimal or nonexistent, we could do this.

I'll edit the issue as such.