Installation¶
Requirements¶
- Python 3.10 or higher
- pip
Install from PyPI¶
Lightweight install (no ML dependencies)¶
Good for using ai-suggest, hub, and config validate without downloading PyTorch:
With training support¶
Installs: torch, transformers, peft, accelerate, bitsandbytes, datasets
With AI provider support¶
pip install xlmtec[claude] # Anthropic Claude
pip install xlmtec[gemini] # Google Gemini
pip install xlmtec[codex] # OpenAI GPT
pip install xlmtec[ai] # All three providers
Everything¶
Install from source¶
Verify installation¶
GPU setup (optional)¶
xlmtec works on CPU but training is significantly faster with a CUDA GPU.
For a specific CUDA version:
# CUDA 11.8
pip install torch --index-url https://download.pytorch.org/whl/cu118
# CUDA 12.1
pip install torch --index-url https://download.pytorch.org/whl/cu121
HuggingFace token (optional)¶
Required only for uploading models or accessing private repos: