davanstrien HF Staff Claude commited on
Commit
cf61cef
·
1 Parent(s): d2ade5c

Add UV_TORCH_BACKEND=auto to HF Jobs example

Browse files

This ensures UV automatically selects the correct PyTorch wheel
based on the available CUDA/GPU environment during installation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. deepseek-ocr-vllm.py +1 -0
deepseek-ocr-vllm.py CHANGED
@@ -476,6 +476,7 @@ if __name__ == "__main__":
476
  print("\n6. Running on HF Jobs:")
477
  print(" hf jobs uv run --flavor l4x1 \\")
478
  print(" -s HF_TOKEN \\")
 
479
  print(" https://huggingface.co/datasets/uv-scripts/ocr/raw/main/deepseek-ocr-vllm.py \\")
480
  print(" your-document-dataset \\")
481
  print(" your-markdown-output")
 
476
  print("\n6. Running on HF Jobs:")
477
  print(" hf jobs uv run --flavor l4x1 \\")
478
  print(" -s HF_TOKEN \\")
479
+ print(" -e UV_TORCH_BACKEND=auto \\")
480
  print(" https://huggingface.co/datasets/uv-scripts/ocr/raw/main/deepseek-ocr-vllm.py \\")
481
  print(" your-document-dataset \\")
482
  print(" your-markdown-output")