Created
May 22, 2026 14:26
-
-
Save voxels/db56aa8088defd5ddad081582a0f1371 to your computer and use it in GitHub Desktop.
Install OpenTrainer for NVidia 3080 Ti
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Good β this is the right moment to reset. Your current env is in βdependency whack-a-mole mode,β so a clean stack will actually save time. | |
| Below is a **known-stable Windows 11 + RTX 3080 Ti + OneTrainer SDXL LoRA setup** that avoids all the version traps you just hit (torch/torchvision/xformers/numpy/diffusers mismatches). | |
| --- | |
| # 𧨠CLEAN INSTALL SCRIPT (Windows 11 / SDXL / OneTrainer) | |
| ## β οΈ What this does | |
| * Creates a fresh conda env | |
| * Pins stable PyTorch stack (cu121) | |
| * Installs OneTrainer dependencies correctly | |
| * Avoids NumPy 2 / broken torchvision / broken xformers | |
| * Prevents diffusers conflicts | |
| --- | |
| # π STEP 1 β Create fresh environment | |
| ```bash | |
| conda create -n onetrainer_clean python=3.10 -y | |
| conda activate onetrainer_clean | |
| ``` | |
| --- | |
| # π STEP 2 β Upgrade pip tools | |
| ```bash | |
| python -m pip install --upgrade pip setuptools wheel | |
| ``` | |
| --- | |
| # π STEP 3 β Install stable PyTorch stack (IMPORTANT) | |
| This is the **correct SDXL baseline for RTX 3080 Ti** | |
| ```bash | |
| pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121 | |
| ``` | |
| --- | |
| # π STEP 4 β Install core ML dependencies (PINNED) | |
| ```bash | |
| pip install numpy==1.26.4 | |
| pip install transformers==4.44.2 | |
| pip install accelerate==0.33.0 | |
| pip install safetensors | |
| pip install pillow | |
| pip install tqdm | |
| ``` | |
| --- | |
| # π STEP 5 β Install xformers (MATCHED) | |
| ```bash | |
| pip install xformers==0.0.23.post1 | |
| ``` | |
| --- | |
| # π STEP 6 β Install diffusers (IMPORTANT: compatible range) | |
| ```bash | |
| pip install diffusers==0.30.3 | |
| ``` | |
| (Stable SDXL-compatible version, avoids your `quantizers.gguf` mismatch issues) | |
| --- | |
| # π STEP 7 β Install HuggingFace tooling | |
| ```bash | |
| pip install huggingface_hub | |
| ``` | |
| --- | |
| # π STEP 8 β Clone OneTrainer cleanly | |
| ```bash | |
| cd D:\Documents\dev | |
| git clone https://github.com/Nerogar/OneTrainer.git | |
| cd OneTrainer | |
| ``` | |
| --- | |
| # π STEP 9 β Install OneTrainer requirements | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| --- | |
| # π STEP 10 β Verify system before running | |
| ```bash | |
| python -c "import torch; print(torch.__version__)" | |
| python -c "import torchvision; print(torchvision.__version__)" | |
| python -c "import diffusers; print(diffusers.__version__)" | |
| ``` | |
| Expected: | |
| ```txt | |
| torch 2.1.2 | |
| torchvision 0.16.2 | |
| diffusers 0.30.3 | |
| ``` | |
| --- | |
| # π STEP 11 β Launch OneTrainer | |
| ```bash | |
| python scripts/train_ui.py | |
| ``` | |
| --- | |
| # π§ What this fixes (your exact errors) | |
| ### β Fixes torchvision errors | |
| * `register_fake` | |
| * `nms missing` | |
| * `GroupName missing` | |
| ### β Fixes NumPy crash | |
| * `_ARRAY_API not found` | |
| ### β Fixes diffusers import crash | |
| * `diffusers.quantizers.gguf` | |
| ### β Fixes xformers mismatch | |
| * compiled extension mismatch errors | |
| ### β Prevents future breakage | |
| * no bleeding-edge torch builds | |
| * no NumPy 2.x | |
| * no mixed pip + bundled diffusers | |
| --- | |
| # β οΈ IMPORTANT RULES (donβt skip these) | |
| After this install: | |
| ### β NEVER do: | |
| ```bash | |
| pip install torch --upgrade | |
| pip install numpy --upgrade | |
| pip install diffusers --upgrade | |
| ``` | |
| ### β NEVER mix: | |
| * pip diffusers + OneTrainer src diffusers | |
| * torch 2.4+ with old xformers | |
| * NumPy 2.x | |
| --- | |
| # π‘ Optional (recommended for your 3080 Ti) | |
| Add VRAM optimizations: | |
| ```bash | |
| pip install bitsandbytes | |
| ``` | |
| and in training config: | |
| * enable gradient checkpointing | |
| * use batch size 1β2 | |
| * use 1024 SDXL resolution with bucketing | |
| --- | |
| # π If you want next step | |
| Once this is working, I can help you: | |
| * tune SDXL LoRA settings for **maximum style fidelity** | |
| * fix captioning pipeline (your earlier script) | |
| * optimize for **16GB VRAM stability** | |
| * or build a ComfyUI inference pipeline for your trained LoRA | |
| Just tell me π |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment