Skip to content

attributeerror: 'distributeddataparallel' object has no attribute 'dtype'. did you mean: 'type'? #11417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
asjqmasjqm opened this issue Apr 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@asjqmasjqm
Copy link

Describe the bug

attributeerror: 'distributeddataparallel' object has no attribute 'dtype'. did you mean: 'type'?

Reproduction

export MODEL_NAME="black-forest-labs/FLUX.1-dev"
export OUTPUT_DIR="trained-flux-dev-dreambooth-lora"

accelerate launch train_dreambooth_lora_flux.py
--pretrained_model_name_or_path=$MODEL_NAME
--instance_data_dir=$INSTANCE_DIR
--output_dir=$OUTPUT_DIR
--mixed_precision="bf16"
--train_text_encoder
--instance_prompt="a photo of sks dog"
--resolution=512
--train_batch_size=1
--guidance_scale=1
--gradient_accumulation_steps=4
--optimizer="prodigy"
--learning_rate=1.
--report_to="wandb"
--lr_scheduler="constant"
--lr_warmup_steps=0
--max_train_steps=500
--validation_prompt="A photo of sks dog in a bucket"
--seed="0"
--push_to_hub

Logs

System Info

  • 🤗 Diffusers version: 0.33.0
  • Platform: Linux-5.15.0-78-generic-x86_64-with-glibc2.35
  • Running on Google Colab?: No
  • Python version: 3.10.12
  • PyTorch version (GPU?): 2.4.0+cu121 (True)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Huggingface_hub version: 0.30.2
  • Transformers version: 4.44.1
  • Accelerate version: 0.32.1
  • PEFT version: 0.15.2
  • Bitsandbytes version: not installed
  • Safetensors version: 0.4.2
  • xFormers version: 0.0.27.post2

Who can help?

No response

@asjqmasjqm asjqmasjqm added the bug Something isn't working label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant