Run this model with HF Jobs
Run aimalias/sj0h4 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/aimalias/sj0h4. 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/aimalias/sj0h4 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 aimalias/sj0h4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aimalias/sj0h4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("aimalias/sj0h4") prompt = "A cinematic shot of a SJ0H4 woman in futuristic neon armor standing amidst the rain-slicked streets of a cyberpunk Tokyo metropolis." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
End of training
Browse filesFiles changed (10)
- README.mdAdded+75
- checkpoint-1000/optimizer.binAdded+3
- checkpoint-1000/pytorch_lora_weights.safetensorsAdded+3
- checkpoint-1000/random_states_0.pklAdded+3
- checkpoint-1000/scheduler.binAdded+3
- checkpoint-500/optimizer.binAdded+3
- checkpoint-500/pytorch_lora_weights.safetensorsAdded+3
- checkpoint-500/random_states_0.pklAdded+3
- checkpoint-500/scheduler.binAdded+3
- pytorch_lora_weights.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475---base_model:- krea/Krea-2-Turbo- krea/Krea-2-Rawlibrary_name: diffuserslicense: apache-2.0instance_prompt: SJ0H4 womanwidget: []tags:- text-to-image- diffusers-training- diffusers- lora- krea2- krea2-diffusers- template:sd-lora---
<!-- This model card has been generated automatically according to the information the training script had access to. Youshould probably proofread and complete it, then remove this comment. -->
# Krea 2 DreamBooth LoRA - aimalias/sj0h4
<Gallery />
## Model description
These are aimalias/sj0h4 DreamBooth LoRA weights, trained on krea/Krea-2-Raw.
The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Krea 2 diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_krea2.md).
Krea 2 ships as two checkpoints: **RAW** (the non-distilled base you fine-tune on) and **Turbo** (an 8-step distilled checkpoint for fast, high-quality inference). Train your LoRA on RAW and run it on Turbo — LoRAs trained on RAW express strongly on Turbo.
## Trigger words
You should use `SJ0H4 woman` to trigger the image generation.
## Download model
[Download the *.safetensors LoRA](aimalias/sj0h4/tree/main) in the Files & versions tab.
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
```py>>> import torch>>> from diffusers import Krea2Pipeline
>>> # Load the LoRA onto Krea 2 Turbo (the distilled inference model)>>> pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")>>> pipe.load_lora_weights("aimalias/sj0h4")
>>> # Turbo recipe: 8 steps, no classifier-free guidance>>> image = pipe("SJ0H4 woman", num_inference_steps=8, guidance_scale=0.0).images[0]>>> image.save("output.png")```
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)
## Intended uses & limitations
#### How to use
```python# TODO: add an example code snippet for running this diffusion pipeline```
#### Limitations and bias
[TODO: provide examples of latent issues and potential remediations]
## Training details
[TODO: describe the data used to train the model]123version https://git-lfs.github.com/spec/v1oid sha256:1b459fbf2451cce8cc8e6fc75578a0164c859c452b786d3e44dde79198017d7esize 195389021123version https://git-lfs.github.com/spec/v1oid sha256:5486713283a26743ab6b6c3800e2dab828a782db988d5e31d6f57743c337024esize 191879256123version https://git-lfs.github.com/spec/v1oid sha256:ec431387d891d1f5931a02235893ac04bdfec0f4fe853e431be5f5b0a4a3bd6dsize 14757123version https://git-lfs.github.com/spec/v1oid sha256:95d5da8195335d4ea322bbf2d1a3e2e6db077cf77404469c5cb95a451f7e56fasize 1401123version https://git-lfs.github.com/spec/v1oid sha256:1baac69381ffb318a75c78348862d085ebb17f8fc5d41af4fcc7b326b66df116size 195389021123version https://git-lfs.github.com/spec/v1oid sha256:6dce8f45c88a28b588938fa732e64346deff75073552bed59a4b4b805cf313d1size 191879256123version https://git-lfs.github.com/spec/v1oid sha256:25127f6bb73dc5f93b4d12eb4c145d7ca20e9b8152cd6368739e9c17fca4e026size 14757123version https://git-lfs.github.com/spec/v1oid sha256:f6b09a32f9bd8c3811caf53e7088f9d0094eade3af68c322a05eb696814b1a19size 1401123version https://git-lfs.github.com/spec/v1oid sha256:5486713283a26743ab6b6c3800e2dab828a782db988d5e31d6f57743c337024esize 191879256README.mdAdded+75
checkpoint-1000/optimizer.binAdded+3
checkpoint-1000/pytorch_lora_weights.safetensorsAdded+3
checkpoint-1000/random_states_0.pklAdded+3
checkpoint-1000/scheduler.binAdded+3
checkpoint-500/optimizer.binAdded+3
checkpoint-500/pytorch_lora_weights.safetensorsAdded+3
checkpoint-500/random_states_0.pklAdded+3
checkpoint-500/scheduler.binAdded+3
pytorch_lora_weights.safetensorsAdded+3