Run this model with HF Jobs
Run Dikshan1234/ImageGen 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/Dikshan1234/ImageGen. 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/Dikshan1234/ImageGen 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 Dikshan1234/ImageGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Dikshan1234/ImageGen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Dikshan1234/ImageGen") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
README @ step 200
Browse files1231234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---license: cc-by-nc-4.0------
base_model: stabilityai/stable-diffusion-xl-base-1.0
license: cc-by-nc-4.0
tags:
- text-to-image
- lora
- diffusers
- stable-diffusion-xl
library_name: diffusers
pipeline_tag: text-to-image
---
# ImageGen — SDXL LoRA (general-purpose)
LoRA fine-tune of `stabilityai/stable-diffusion-xl-base-1.0` on a broad, filtered aesthetic dataset
for improved prompt adherence and image quality over stock SDXL.
## Training status
- **Step:** 200
- **Epoch:** 0.00
- **Validation loss:** 0.1365
- **LoRA:** rank 32, alpha 64, targets `to_q, to_k, to_v, to_out.0`
- **Precision:** bf16, gradient checkpointing on
## Checkpoints
- `latest/` — most recent adapter weights
- `best/` — lowest validation-loss adapter weights

## Dataset sources
- `Spawning/PD12M` (target ~30,000)
- `common-canvas/commoncatalog-cc-by` (target ~20,000)
- `laion/laion2B-en-aesthetic` (target ~23,000)
- `laion/laion-art` (target ~7,500)
- `poloclub/diffusiondb` (target ~12,500)
- `kakaobrain/coyo-700m` (target ~5,500)
> License note: trained on research datasets of scraped image-text pairs.
> Released under `cc-by-nc-4.0` (non-commercial). Verify each source
> dataset's terms before any downstream commercial use.
## Usage
```python
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights("Dikshan1234/ImageGen", subfolder="best")
image = pipe("a cozy cabin in a snowy forest, golden hour").images[0]
```README.md+53-3