Text-to-Image
Diffusers
Safetensors
English
NucleusMoEImagePipeline
Mixture of Experts
sparse-moe
diffusion
image-generation
Run this model with HF Jobs
Run NucleusAI/Nucleus-Image 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/NucleusAI/Nucleus-Image. 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/NucleusAI/Nucleus-Image 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 NucleusAI/Nucleus-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use NucleusAI/Nucleus-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("NucleusAI/Nucleus-Image", 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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files11 unmodified lines12131415161718192013 unmodified lines3435363738394019 unmodified lines6061626364656658 unmodified lines12512612712812913013113213313413513613713813914014114214314414514611 unmodified lines- image-generation---<p align="center"><img src="assets/logo/nucleus_header.png" width="400"/></p><p align="center">π₯οΈ <a href="https://github.com/WithNucleusAI/Nucleus-Image"><b>GitHub</b></a> | π€ <a href="https://huggingface.co/NucleusAI/NucleusMoE-Image"><b>Hugging Face</b></a> | π <a href=""><b>Tech Report</b></a></p>13 unmodified lines## ArchitectureNucleus-Image is a 32-layer diffusion transformer where 29 of the 32 blocks replace the dense FFN with a sparse MoE layer containing 64 routed experts and one shared expert (the first 3 layers use dense FFN for training stability). Image queries attend to concatenated image and text key-value pairs via joint attention β text tokens are excluded from the transformer backbone entirely, participating only as KV contributors. This eliminates MoE routing overhead for text and enables full text KV caching across denoising steps.19 unmodified lines## Benchmark ResultsNucleus-Image achieves state-of-the-art or near state-of-the-art results on all three benchmarks despite activating only ~2B of its 17B parameters per forward pass. All results are from the base model at 1024x1024, 50 inference steps, CFG scale 8.0.58 unmodified linesNucleus-Image generations of human subjects and portraits, spanning diverse cultures, ages, and artistic styles β from expressive character studies to fine-grained close-ups with intricate skin texture and detail.### Fantasy, Surrealism & NatureNucleus-Image generations spanning fantasy, surrealism, animation, and the natural world.### Commercial & Everyday ImageryNucleus-Image generations across product photography, architecture, typography, food, and world culture β demonstrating versatility in commercial, conceptual, and everyday imagery.## License11 unmodified lines1213141516171813 unmodified lines3233343536373819 unmodified lines5859606162636458 unmodified lines12312412512612712812913013113213313413513613713813914014114214314411 unmodified lines- image-generation---<p align="center"> <img src="https://storage.googleapis.com/nucleus_image_v1/nucleus_header.png" width="400"/></p><p align="center">π₯οΈ <a href="https://github.com/WithNucleusAI/Nucleus-Image"><b>GitHub</b></a> | π€ <a href="https://huggingface.co/NucleusAI/NucleusMoE-Image"><b>Hugging Face</b></a> | π <a href=""><b>Tech Report</b></a></p>13 unmodified lines## ArchitectureNucleus-Image is a 32-layer diffusion transformer where 29 of the 32 blocks replace the dense FFN with a sparse MoE layer containing 64 routed experts and one shared expert (the first 3 layers use dense FFN for training stability). Image queries attend to concatenated image and text key-value pairs via joint attention β text tokens are excluded from the transformer backbone entirely, participating only as KV contributors. This eliminates MoE routing overhead for text and enables full text KV caching across denoising steps.19 unmodified lines## Benchmark ResultsNucleus-Image achieves state-of-the-art or near state-of-the-art results on all three benchmarks despite activating only ~2B of its 17B parameters per forward pass. All results are from the base model at 1024x1024, 50 inference steps, CFG scale 8.0.58 unmodified linesNucleus-Image generations of human subjects and portraits, spanning diverse cultures, ages, and artistic styles β from expressive character studies to fine-grained close-ups with intricate skin texture and detail.### Fantasy, Surrealism & NatureNucleus-Image generations spanning fantasy, surrealism, animation, and the natural world.### Commercial & Everyday ImageryNucleus-Image generations across product photography, architecture, typography, food, and world culture β demonstrating versatility in commercial, conceptual, and everyday imagery.## License
README.md+9-11