Views
No views yet
Lumina-Next-SFT is a Next-DiT model containing 2B parameters and utilizes Gemma-2B as the text encoder, enhanced through high-quality supervised fine-tuning (SFT).Next-DiT as the backbone, the text encoder is the Gemma 2B model, and the VAE uses a version of sdxl fine-tuned by stabilityai.Lumina-Next-SFT model.Lumina-Next-T2I model to support 2K Resolution image generation..pth weights to .safetensors weights. Please pull the latest code to use demo.py for inference.Lumina-T2I, called Lumina-Next-T2I for faster and lower memory usage image generation model.| Resolution | Next-DiT Parameter | Text Encoder | Prediction | Download URL |
|---|---|---|---|---|
| 1024 | 2B | Gemma-2B | Rectified Flow | hugging face |
1conda create -n Lumina_T2X -y
2conda activate Lumina_T2X
3conda install python=3.11 pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=12.1 -c pytorch -c nvidia -ypip install diffusers huggingface_hubflash-attnpip install flash-attn --no-build-isolationhuggingface-cli download --resume-download Alpha-VLLM/Lumina-Next-SFT-diffusers --local-dir /path/to/ckpt1from diffusers import LuminaText2ImgPipeline
2import torch
3
4pipeline = LuminaText2ImgPipeline.from_pretrained("/path/to/ckpt/Lumina-Next-SFT-diffusers", torch_dtype=torch.bfloat16).to("cuda")
5
6# or you can download the model using code directly
7# pipeline = LuminaText2ImgPipeline.from_pretrained("Alpha-VLLM/Lumina-Next-SFT-diffusers", torch_dtype=torch.bfloat16).to("cuda")
8
9image = pipeline(prompt="Upper body of a young woman in a Victorian-era outfit with brass goggles and leather straps. "
10 "Background shows an industrial revolution cityscape with smoky skies and tall, metal structures").images[0]