Instructions to use Alpha-VLLM/Lumina-Image-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Alpha-VLLM/Lumina-Image-2.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Alpha-VLLM/Lumina-Image-2.0", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Question about the consolidated file
#7
by Nap - opened
I was trying to run the original FP32 weights in ComfyUI but they weren't compatible, the consolidated file you posted recently is compatible but has BF16 precision.
Could you point to a script that generated the consolidated file? I'd like to make a FP32 version of it to test the model in ComfyUI.
Thanks.