Support memory_format
on to()
#144
Labels
enhancement
New feature or request
MegatronImagen
Needed to support NeMo's MegatronImagen model (text to image generation)
nemo
Issues needed to support NVIDIA NeMo models.
🚀 Feature
to(memory_format=something)
is part of theMegatronImagen
model in NeMo.Ideally, this would work:
Motivation
Trying to evaluate NeMo models in thunder and expand our model support there. Megatron-based models appear to be widely used.
Alternatives
I wonder if we could temporarily just accept the keyword without actually doing anything about it. I imagine that would be very slow, but it might allow us to get models like this one into thunder more easily.
I'll start trying to convert smaller parts of the model next.
Additional context
Model in question:
https://github.com/NVIDIA/NeMo/blob/23baa48e441ecb6cc6b49c23bf8cfc076db38bdc/nemo/collections/multimodal/models/text_to_image/imagen/imagen.py#L175
I think the
to
that is failing for meis actually this line:
https://github.com/NVIDIA/NeMo/blob/23baa48e441ecb6cc6b49c23bf8cfc076db38bdc/nemo/collections/multimodal/models/text_to_image/imagen/imagen.py#L135
Model test:
log.txt
The text was updated successfully, but these errors were encountered: