Hugging Face Forums
Device error when extending Trainer class
🤗Transformers
sgugger
April 10, 2023, 1:28pm
2
in this line the weights should be put on the same device as the model.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Using Trainer with custom model and custom dataset
Beginners
1
4073
May 7, 2023
Implementing a Trainer with custom loss produces key error
🤗Accelerate
2
3011
April 30, 2023
Huggingface transformer sequence classification
🤗Transformers
3
489
March 26, 2022
Can I use CUDA with Trainer.train?
Beginners
3
7763
May 10, 2022
Transformers replacing loss function
🤗Transformers
0
3328
March 26, 2022