davanstrien HF Staff commited on
Commit
847fcce
·
1 Parent(s): 0ebcd6f
Files changed (1) hide show
  1. iconclass-vlm-sft.py +2 -1
iconclass-vlm-sft.py CHANGED
@@ -4,6 +4,7 @@
4
  # "datasets",
5
  # "trl",
6
  # "huggingface-hub[hf_transfer]",
 
7
  # ]
8
  #
9
  # # Note: When using davanstrien13/unsloth-uv Docker image, the following
@@ -49,7 +50,7 @@ logger = logging.getLogger(__name__)
49
 
50
 
51
  def check_cuda_availability():
52
- """Check if CUDA is available and exit if not."""
53
  if not torch.cuda.is_available():
54
  logger.error("CUDA is not available. This script requires a GPU.")
55
  logger.error("Please run on a machine with a CUDA-capable GPU.")
 
4
  # "datasets",
5
  # "trl",
6
  # "huggingface-hub[hf_transfer]",
7
+ # "unsloth",
8
  # ]
9
  #
10
  # # Note: When using davanstrien13/unsloth-uv Docker image, the following
 
50
 
51
 
52
  def check_cuda_availability():
53
+ """Check `if CUDA is available and exit if not."""
54
  if not torch.cuda.is_available():
55
  logger.error("CUDA is not available. This script requires a GPU.")
56
  logger.error("Please run on a machine with a CUDA-capable GPU.")