Open RameshArvind opened 1 year ago
Hi @RameshArvind ,
To use torch.compile
with einops for training you need to set:
from einops._torch_specific import allow_ops_in_compiled_graph # requires einops>=0.6.1
allow_ops_in_compiled_graph()
I will have to do further investigation into the Hidet backend for training as I have only tested it out for inference.
I am also refactoring the code to provide a second training script and remove Huggingface and work directly with PyTorch FSDP/DDP.
I will work on integrating torch.compile
there.
Best,
Enrico
Hello! I was wondering if there was anything extra that needed to be done to get training with Hidet compiler working.
Out of the box I seem to be running into errors
Some of the errors I faced were around the usage of rearrange here and here.
It also seems like einsum isn't supported. Even after replacing those OPs with equivalent alternatives. I'm still running into some reshape errors from hidet
I can post additional info as needed, but wondering if you ran into those same errors or if I'm doing something incorrectly.
Thanks!