transformers
Enforce pin memory disabling when using cpu only
#27745
Merged

Enforce pin memory disabling when using cpu only #27745

qgallouedec
qgallouedec if use_cpu: dataloader_pin_memory = False
0df52e7e
muellerzr
muellerzr approved these changes on 2023-11-28
muellerzr muellerzr requested a review from ArthurZucker ArthurZucker 2 years ago
qgallouedec qgallouedec changed the title Fix training failure when GPU memory saturated and `--use_cpu` Enforce pin memory disabling when using cpu only 2 years ago
HuggingFaceDocBuilderDev
ArthurZucker
ArthurZucker approved these changes on 2023-11-28
ArthurZucker ArthurZucker merged 0b9c9345 into main 2 years ago
qgallouedec qgallouedec deleted the fix-use-cpu-pin-memory branch 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone