Closed survivebycoding closed 1 month ago
Can we change this code GPUS=(0) export CUDA_VISIBLE_DEVICES=$(IFS=,; echo "${GPUS[*]}")
GPUS=(0) export CUDA_VISIBLE_DEVICES=$(IFS=,; echo "${GPUS[*]}")
to CUDA_VISIBLE_DEVICES="" to use CPUs?
CUDA_VISIBLE_DEVICES=""
It may not directly support CPU since we implement the training process with DDP. You may need to modify the distillation.py by yourself to train models on the CPU.
distillation.py
Can we change this code
GPUS=(0) export CUDA_VISIBLE_DEVICES=$(IFS=,; echo "${GPUS[*]}")
to
CUDA_VISIBLE_DEVICES=""
to use CPUs?