You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the trainer is running by default on GPU (from transformers import Trainer), how can I run it on CPU ? I did not find an argument "device" in Trainer.
trainer = Trainer(
model=model,
args=train_args,
train_dataset=train_dataset,
eval_dataset=valid_dataset,
callbacks=[early_stopping_callback],
)
trainer.train()
Thank you
The text was updated successfully, but these errors were encountered:
Hi,
It seems that the trainer is running by default on GPU (from transformers import Trainer), how can I run it on CPU ? I did not find an argument "device" in Trainer.
trainer = Trainer(
model=model,
args=train_args,
train_dataset=train_dataset,
eval_dataset=valid_dataset,
callbacks=[early_stopping_callback],
)
trainer.train()
Thank you
The text was updated successfully, but these errors were encountered: