!pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 torchtext==0.14.1 fastai==2.7.11
!pip install tokenizers
!pip install torchdata==0.5.1
from diffusers import UNet2DModel
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. gcsfs 2024.10.0 requires fsspec==2024.10.0, but you have fsspec 2024.9.0 which is incompatible.
from diffusers import UNet2DModel
RuntimeError: Failed to import diffusers.models.unets.unet_2d because of the following error (look up to see its traceback):
module ‘torch’ has no attribute ‘float8_e4m3fn’
The AI tool explains the error as follows “The error message AttributeError: module ‘torch’ has no attribute ‘float8_e4m3fn’ indicates that the version of PyTorch you are using does not support the float8_e4m3fn data type. This data type was introduced in a recent version of PyTorch, and your installed version might be older.”
So it means that the installs in the beginning have become outdated. Can you please tell me the updated versions to install for the code segment given below.
!pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 torchtext==0.14.1 fastai==2.7.11
!pip install tokenizers
!pip install torchdata==0.5.1