It seems that this error may occur depending on the version of Transoformers. Of course, there are other possibilities…
John6666
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| LoRA Finetuning RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! | 4 | 458 | June 16, 2025 | |
| RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:7 and cuda:0! | 2 | 275 | March 25, 2025 | |
| Error while fine tuning with peft, lora, accelerate, SFTConfig and SFTTrainer | 3 | 2436 | November 7, 2024 | |
| RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! | 28 | 116808 | November 17, 2024 | |
| Multi-GPU Training using SFTTrainer | 3 | 645 | February 17, 2025 |