Run this model with HF Jobs
Run crivera123/flux-dev-comic-lora 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/crivera123/flux-dev-comic-lora. 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/crivera123/flux-dev-comic-lora 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 crivera123/flux-dev-comic-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use crivera123/flux-dev-comic-lora 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("crivera123/flux-dev-comic-lora") prompt = "TOK" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (3)
- README.md+46-3
- config.yamlAdded+59
- lora.safetensorsAdded+3
123---license: mit---12345678910111213141516171819202122232425262728293031323334353637383940414243444546---license: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.mdlanguage:- entags:- flux- diffusers- lora- replicatebase_model: "black-forest-labs/FLUX.1-dev"pipeline_tag: text-to-image# widget:# - text: >-# prompt# output:# url: https://...instance_prompt: TOK---# Flux Dev Comic Lora<!-- <Gallery /> -->Trained on Replicate using:https://replicate.com/ostris/flux-dev-lora-trainer/train## Trigger wordsYou should use `TOK` to trigger the image generation.## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)```pyfrom diffusers import AutoPipelineForText2Imageimport torchpipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')pipeline.load_lora_weights('crivera123/flux-dev-comic-lora', weight_name='lora.safetensors')image = pipeline('your prompt').images[0]```For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859job: custom_jobconfig: name: flux_train_replicate process: - type: custom_sd_trainer training_folder: output device: cuda:0 trigger_word: TOK network: type: lora linear: 32 linear_alpha: 32 save: dtype: float16 save_every: 1001 max_step_saves_to_keep: 1 datasets: - folder_path: input_images caption_ext: txt caption_dropout_rate: 0.05 shuffle_tokens: false cache_latents_to_disk: true resolution: - 512 - 768 - 1024 train: batch_size: 1 steps: 1000 gradient_accumulation_steps: 1 train_unet: true train_text_encoder: false content_or_style: balanced gradient_checkpointing: true noise_scheduler: flowmatch optimizer: adamw8bit lr: 0.0004 ema_config: use_ema: true ema_decay: 0.99 dtype: bf16 model: name_or_path: FLUX.1-dev is_flux: true quantize: true sample: sampler: flowmatch sample_every: 1001 width: 1024 height: 1024 prompts: [] neg: '' seed: 42 walk_seed: true guidance_scale: 3.5 sample_steps: 28meta: name: flux_train_replicate version: '1.0'123version https://git-lfs.github.com/spec/v1oid sha256:d172b9d97f39d2b49b21d329195ee975285716c86208fd025e4f5c8bbc120d04size 343805448README.md+46-3
config.yamlAdded+59
lora.safetensorsAdded+3