102 words
1 minute
[FLUX.2] LoRA Training
UPDATE LOG
- ai-toolkit FLUX.2 LoRA Training
[FLUX.2] LoRA Training
Flux.2 Model
Waiting for api.github.com...
LoRA Training
Waiting for api.github.com...
git clone https://github.com/ostris/ai-toolkit.gitcd ai-toolkitpython -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130python -m pip install -r requirements.txtcd uinpm run build_and_startWSL Huggingface Download
sudo apt install python3.12-venvsource .venv/bin/activatepython -m pip install huggingface_hubexport HF_ENDPOINT="https://hf-mirror.com"hf auth loginhf download black-forest-labs/FLUX.1-dev --repo-type model --local-dir FLUX.1-dev --exclude "flux1-dev.safetensors"WSL SimpleTuner
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.debsudo dpkg -i cuda-keyring_1.1-1_all.debsudo apt-get updatesudo apt-get -y install cuda-toolkit-12-8
sudo apt-get install -y nvidia-open
sudo apt install python3.12-venvpython3 -m venv .venvsource .venv/bin/activatepip install torch torchvisionpip install simpletuner[cuda]
sudo apt -y install libopenmpi-dev openmpi-bin libaio-devSome information may be outdated