How to fix this error: AttributeError: 'AcceleratorState' object has no attribute 'distributed_type'

trainer.train()

output


arrow_upwardarrow_downwardlinkcommentsettingsdeletemore_vert

[26]

17s

!pip show accelerate

output

Name: accelerate Version: 0.29.0.dev0 Summary: Accelerate Home-page: GitHub - huggingface/accelerate: šŸš€ A simple way to train and use PyTorch models with multi-GPU, TPU, mixed-precision Author: The HuggingFace team Author-email: zach.mueller@huggingface.co License: Apache Location: /usr/local/lib/python3.10/dist-packages Requires: huggingface-hub, numpy, packaging, psutil, pyyaml, safetensors, torch Required-by: peft