Instructions to use diffusers-modular/flux3-tarot-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers-modular/flux3-tarot-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-3-image-klein-base", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("diffusers-modular/flux3-tarot-lora") prompt = "a trtcrd of a person giving a talk on a stage under a glowing emblem, \"the speaker\" arcana, tarot style" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 2,788 Bytes
3032d53 96fe107 3032d53 96fe107 3032d53 96fe107 3032d53 96fe107 3032d53 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | ---
base_model: black-forest-labs/flux-3-image-klein-base
library_name: diffusers
license: other
tags:
- flux3
- lora
- diffusers
- text-to-image
- tarot
instance_prompt: a trtcrd, tarot style
widget:
- text: a trtcrd of a person giving a talk on a stage under a glowing emblem, "the speaker" arcana, tarot style
output:
url: images/speaker.jpg
- text: a trtcrd of a man carving meat from a tall vertical rotisserie that reads "Döner", "the carver" arcana, tarot style
output:
url: images/carver.jpg
- text: a trtcrd of a dog eating a big bowl of spaghetti at a dinner table, "the glutton" arcana, tarot style
output:
url: images/glutton.jpg
- text: a trtcrd of an astronaut planting a flag on a tiny planet among stars, "the explorer" arcana, tarot style
output:
url: images/explorer.jpg
---
# FLUX.3 Tarot LoRA
A Rider-Waite tarot-style DreamBooth LoRA for the **FLUX.3 image (klein) model**, trained with the diffusers DreamBooth FLUX.3 trainer. Trigger the style with **`trtcrd`**, e.g. `"a trtcrd of ..., tarot style"`.
<Gallery />
## Inference
```python
import torch
from diffusers.modular_pipelines import Flux3AutoBlocks
pipe = Flux3AutoBlocks().init_pipeline("black-forest-labs/flux-3-image-klein-base")
pipe.load_components(dtype=torch.bfloat16)
pipe.to("cuda")
pipe.load_lora_weights("diffusers-modular/flux3-tarot-lora", weight_name="pytorch_lora_weights.safetensors")
image = pipe(
prompt="a trtcrd of a dog eating a big bowl of spaghetti, tarot style",
height=1344, width=800, num_inference_steps=28, negative_prompt="",
max_sequence_length=512, text_encoder_out_layers=(4, 8, 12, 16, 20, 24, 28, 32),
output="images",
)[0]
image.save("tarot.png")
```
## Trigger
Use `trtcrd` in the prompt: `"a trtcrd of {your subject}, tarot style"`.
## Training
- Base model: `black-forest-labs/flux-3-image-klein-base`
- Dataset: [multimodalart/1920-raider-waite-tarot-public-domain](https://huggingface.co/datasets/multimodalart/1920-raider-waite-tarot-public-domain)
- 1500 steps · seed 0 · resolution 1024 · aspect-ratio buckets
- Default weights (`pytorch_lora_weights.safetensors`): AdamW (8-bit), rank 16, lr 1e-4
### Sweep variants
This repo also includes the configs from a small sweep (one setting changed vs the default). Load one with `weight_name="<folder>/pytorch_lora_weights.safetensors"`:
| variant | change | `weight_name` |
|---|---|---|
| default | AdamW, rank 16 | `pytorch_lora_weights.safetensors` |
| rank 8 | rank → 8 | `rank8/pytorch_lora_weights.safetensors` |
| rank 32 | rank → 32 | `rank32/pytorch_lora_weights.safetensors` |
| more layers | + modulation layers | `more-layers/pytorch_lora_weights.safetensors` |
| prodigy | Prodigy optimizer, lr 1 | `prodigy/pytorch_lora_weights.safetensors` |
|