Run this model with HF Jobs
Run Faitlesses/boy on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Faitlesses/boy. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Faitlesses/boy on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Faitlesses/boy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Faitlesses/boy with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Faitlesses/boy") prompt = "QWSA" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (4)
- README.mdAdded+31
- dataset.tomlAdded+14
- sample_prompts.txtAdded+1
- train.shAdded+43
12345678910111213141516171819202122232425262728293031---tags:- text-to-image- flux- lora- diffusers- template:sd-lora- fluxgym
base_model: black-forest-labs/FLUX.1-devinstance_prompt: QWSAlicense: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md---
# boy
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
<Gallery />
## Trigger words
You should use `QWSA` to trigger the image generation.
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
Weights for this model are available in Safetensors format.
1234567891011121314[general]shuffle_caption = falsecaption_extension = '.txt'keep_tokens = 1
[[datasets]]resolution = 512batch_size = 1keep_tokens = 1
[[datasets.subsets]] image_dir = '/workspace/fluxgym/datasets/boy' class_tokens = 'QWSA' num_repeats = 201QWSA naked man taking a selfie in the mirror. He man holding a mobile phone in his hand and making selfie. He has a big penis erect. In the background we can the wall, a towel and a few objects.12345678910111213141516171819202122232425262728293031323334353637383940414243accelerate launch \ --mixed_precision bf16 \ --num_cpu_threads_per_process 1 \ sd-scripts/flux_train_network.py \ --pretrained_model_name_or_path "/workspace/fluxgym/models/unet/flux1-dev.sft" \ --clip_l "/workspace/fluxgym/models/clip/clip_l.safetensors" \ --t5xxl "/workspace/fluxgym/models/clip/t5xxl_fp16.safetensors" \ --ae "/workspace/fluxgym/models/vae/ae.sft" \ --cache_latents_to_disk \ --save_model_as safetensors \ --sdpa --persistent_data_loader_workers \ --max_data_loader_n_workers 2 \ --seed 42 \ --gradient_checkpointing \ --mixed_precision bf16 \ --save_precision bf16 \ --network_module networks.lora_flux \ --network_dim 32 \ --optimizer_type adamw8bit \--sample_prompts="/workspace/fluxgym/outputs/boy/sample_prompts.txt" --sample_every_n_steps="200" \ --learning_rate 8e-4 \ --cache_text_encoder_outputs \ --cache_text_encoder_outputs_to_disk \ --fp8_base \ --highvram \ --max_train_epochs 20 \ --save_every_n_epochs 1 \ --dataset_config "/workspace/fluxgym/outputs/boy/dataset.toml" \ --output_dir "/workspace/fluxgym/outputs/boy" \ --output_name boy \ --timestep_sampling shift \ --discrete_flow_shift 3.1582 \ --model_prediction_type raw \ --guidance_scale 1 \ --loss_type l2 \ --enable_bucket \ --full_fp16 \ --lr_warmup_steps 400 \ --network_alpha 32 \ --network_train_unet_only \ --sample_every_n_epochs 200 \ --save_last_n_epochs 10 \ --shuffle_caption \ --train_batch_size 8README.mdAdded+31
dataset.tomlAdded+14
sample_prompts.txtAdded+1
train.shAdded+43