Skip to content

module 'torch' has no attribute 'float8_e4m3fn' #31

@anlorla

Description

@anlorla

Dear developers,
I've followed all the instructions provided in the README to set up the environment and run the code. However, when I execute the relevant part (accelerate launch attacks/mist.py --cuda --low_vram_mode --instance_data_dir data/training --output_dir output/ --class_data_dir data/class --instance_prompt "a photo of a misted person, high quality, masterpiece" --class_prompt "a photo of a person, high quality, masterpiece" --mixed_precision bf16) , I keep getting the following error:
AttributeError: module 'torch' has no attribute 'float8_e4m3fn'
And the related screenshots are as follows:

![Image](https://github.com/user-attachments/assets/9c9c0d8f-2cc4-4801-aa42-b82734c82576

Image

Here is some information about my environment:

Image

Image

Could you please provide some guidance on how to resolve this issue? Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions