this post was submitted on 05 Sep 2024
1 points (100.0% liked)

StableDiffusion

98 readers
1 users here now

/r/StableDiffusion is back open after the protest of Reddit killing open API access, which will bankrupt app developers, hamper moderation, and...

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/stablediffusion by /u/tom83_be on 2024-09-04 20:32:49+00:00.


So you got no answer from the OneTrainer team on documentation? You do not want to join any discord channels so someone maybe answers a basic setup question? You do not want to get a HF key and want to download model files for OneTrainer Flux training locally? Look no further, here is the answer:

  • Go to
  • download everything from there including all subfolders; rename files so they exactly resemble what they are named on huggingface (some file names are changed when downloaded) and so they reside in the exact same folders
    • Note: I think you can ommit all files on the main directory, especially the big flux1-dev.safetensors; the only file I think is necessary from the main directory is model_index.json as it points to all the subdirs (which you need)
  • install and startup the most recent version of OneTrainer =>
  • choose "FluxDev" and "LoRA" in the dropdowns to the upper right
  • go to the "model"-tab and to "base model"
  • point to the directory where all the files and subdirectories you downloaded are located; example:
    • I downloaded everything to ...whateveryouPathIs.../FLUX.1-dev/
    • so ...whateveryouPathIs.../FLUX.1-dev/ holds the model_index.json and the subdirs (scheduler, text_encoder, text_encoder_2, tokenizer, tokenizer_2, transformer, vae) including all files inside of them
    • hence I point to ..whateveryouPathIs.../FLUX.1-dev in the base model entry in the "model"-tab
  • use your other settings and start training

At least I got it to load the model this way. I chose weight data type nfloat4 and output data type bfloat16 for now; and Adafactor as the Optimizer. It trains with about 9,5 GB VRAM. I won't give a full turorial for all OneTrainer settings here, since I have to check it first, see results etc.

Just wanted to describe how to download the model and point to it, since this is described nowhere. Current info on Flux from OneTrainer is but at the time of writing this gives nearly no clue on how to even start training / loading the model...

PS: There probably is a way to use a HF-key or also to just git clone the HF-space. But I do not like to point to remote spaces when training locally nor do I want to get a HF key, if I can download things without it. So there may be easier ways to do this, if you cave to that. I won't.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here