Installation Guide¶
Use this page as a lightweight companion to Workflow · Step 1, which remains the authoritative walkthrough. This guide summarizes requirements, gives a compact install recipe, and captures platform-specific notes and troubleshooting tips.
Requirements at a Glance¶
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 8 GB | 16 GB+ |
| Disk | 10 GB free | 50 GB+ (datasets) |
| GPU | Optional | NVIDIA 8 GB+ VRAM, CUDA 11+ |
| Python | 3.8+ | Latest 3.10/3.11 |
CPU-only training works everywhere; GPU support requires CUDA-capable hardware.
Install in Three Steps¶
- Get the source (clone or open your checkout)
- Activate an environment (optional but recommended)
- Install the package
To include extras, add the suffixes from the workflow (e.g. ".[dev,optuna]"). After installation the CLI commands (ml-train, ml-inference, etc.) are on your PATH.
Quick Verification¶
python -c "import torch; print(f'PyTorch {torch.__version__}'); print('CUDA:', torch.cuda.is_available())"
ml-train --help
When a GPU is present, nvidia-smi should list it. If CUDA is unavailable, training will fall back to CPU.
Platform Notes¶
- Ubuntu/Debian:
sudo apt-get install python3 python3-venv && curl -LsSf https://astral.sh/uv/install.sh | sh - macOS: Install Python via Homebrew; CUDA is not available, so run on CPU or external GPU resources.
- Windows: Use
python -m venv .venvthen.venv\Scripts\activate;uvinstalls via PowerShell (irm https://astral.sh/uv/install.ps1 | iex).
Docker or cloud setups follow the same installation command inside the container/VM. Mount your data/ directory when running containers.
Troubleshooting Highlights¶
uv: command not found→ install uv first (curl -LsSf https://astral.sh/uv/install.sh | sh) or temporarily usepip install uv.- Import errors for torch/torchvision → reinstall via the appropriate PyTorch wheel index (match CUDA version as per PyTorch local install guide).
- CUDA mismatch → pick the wheel that corresponds to
nvidia-smi’s CUDA version, or install the CPU-only wheel. - Permission or disk issues → use
--user, clean caches (uv cache clean), or install to a larger target (--target /mnt/bigdisk).
For a full setup sequence (including dataset prep and verification runs), continue with Workflow Step 2.
Update Specific Package¶
Check for Outdated Packages¶
Next Steps¶
After installation:
-
Verify installation works:
-
Prepare your data:
-
Try a quick start:
-
Explore configuration:
- See Configuration Documentation
Getting Help¶
Check System Info¶
python -c "
import sys, torch, torchvision
print(f'Python: {sys.version}')
print(f'PyTorch: {torch.__version__}')
print(f'Torchvision: {torchvision.__version__}')
print(f'CUDA available: {torch.cuda.is_available()}')
if torch.cuda.is_available():
print(f'CUDA version: {torch.version.cuda}')
print(f'GPU: {torch.cuda.get_device_name(0)}')
"
Save this output when reporting issues.
Common Resources¶
Summary¶
✅ Installation checklist:
- [ ] Python 3.8+ installed
- [ ] uv installed (curl -LsSf https://astral.sh/uv/install.sh | sh)
- [ ] Virtual environment created and activated
- [ ] Package installed (uv pip install -e .)
- [ ] CLI commands available globally
- [ ] PyTorch imported successfully
- [ ] CUDA available (optional, for GPU)
- [ ] Test run completed
You're ready to start training! Proceed to Data Preparation.