Downloads · 30 days
18
2% of all-time downloads
takuoko/tiny_sd_xl_pokemon_blip
tiny_sd_xl_pokemon_blip is a machine learning model from takuoko. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as apache-2.0.
This is the example model of Distill SDXL. The training is based on DiffEngine, the open-source toolbox for training state-of-the-art Diffusion Models with diffusers and mmengine.
Downloads · 30 days
18
2% of all-time downloads
All-time downloads
732
Public
Parameters
1.3B
17.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.2 GB · 100%
From the Hugging Face model README
This is the example model of Distill SDXL. The training is based on DiffEngine, the open-source toolbox for training state-of-the-art Diffusion Models with diffusers and mmengine.
pip install openmim
pip install git+https://github.com/okotaku/diffengine.git
mim train diffengine tiny_sd_xl_pokemon_blip.py
More details to my blog post:
I used lambdalabs/pokemon-blip-captions.
import torch
from diffusers import DiffusionPipeline, UNet2DConditionModel, AutoencoderKL
checkpoint = 'takuoko/tiny_sd_xl_pokemon_blip'
prompt = 'a very cute looking pokemon with a hat on its head'
unet = UNet2DConditionModel.from_pretrained(
checkpoint, torch_dtype=torch.bfloat16
)
vae = AutoencoderKL.from_pretrained(
'madebyollin/sdxl-vae-fp16-fix',
torch_dtype=torch.bfloat16,
)
pipe = DiffusionPipeline.from_pretrained(
'stabilityai/stable-diffusion-xl-base-1.0', unet=unet, vae=vae, torch_dtype=torch.bfloat16
)
pipe.to('cuda')
image = pipe(
prompt,
num_inference_steps=50,
).images[0]
image.save('demo.png')
prompt = 'a very cute looking pokemon with a hat on its head'

Paper: On Architectural Compression of Text-to-Image Diffusion Models
Unofficial implementation: https://github.com/segmind/distill-sd