Instructions to use recoilme/sdxs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use recoilme/sdxs with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("recoilme/sdxs", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Configuration Parsing Warning:Config file model_index.json cannot be fetched (too big)
SDXS-1B (CLIP version)
Text-to-image diffusion model on a custom UNet with CLIP text encoder (converted from Qwen).
Architecture
- UNet: ~1.585B params,
cross_attention_dim=768block_out_channels: [320, 640, 1280, 1536]layers_per_block: [4, 3, 2, 2]transformer_layers_per_block: [2, 2, 3, 4]
- Text encoder: CLIPTextModel (768 hidden, 12 layers, 248 max tokens) โ LongCLIP-style
- VAE: AsymmetricAutoencoderKL (32ch, 8x encoder / 16x decoder, built-in 2x upscaler)
- Scheduler: FlowMatchEulerDiscreteScheduler, shift=5.0, 40 steps default
- Embeddings:
hidden_states[-2]+final_layer_norm
Usage
import torch
from pipeline_sdxs import SdxsPipeline
pipe = SdxsPipeline.from_pretrained(
"recoilme/sdxs",
torch_dtype=torch.float16,
trust_remote_code=True,
).to("cuda")
image = pipe(
prompt="1girl, smiling, red eyes, blue hair, white shirt",
negative_prompt="bad quality grainy image with low details, incomplete text, despite numerous technical flaws and distorted figures",
width=1024,
height=1280,
guidance_scale=5.0,
seed=0,
)[0][0]
image.show()
Notes
- Converted from the Qwen-based SDXS-1B: text encoder replaced with CLIP, UNet cross-attention migrated 2048 โ 768 (warm-started projections).
- No
refine_prompts(CLIP is not an LLM) and no image conditioning. - Training: flow matching (velocity), cfg-dropout 0.10, timestep shift aligned with the scheduler.
- Downloads last month
- 9