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 files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233---license: apache-2.0pipeline_tag: text-to-imagelibrary_name: diffusers---NucleusMoE-Image is a 17B flow-based text-to-image generation MoE model with only 2B active parameters. Technical report coming soon...## Usage```pythonimport torchfrom diffusers import DiffusionPipelinepipe = DiffusionPipeline.from_pretrained("NucleusAI/NucleusMoE-Image", torch_dtype=torch.bfloat16)pipe.to("cuda")config = TextKVCacheConfig()pipe.transformer.enable_cache(config)prompt = "Vintage-style poster for Artificial Analysis depicting a retro-futuristic cityscape dominated by AI. Towering structures shaped like neural networks loom over sleek flying cars. In the foreground, a stylized robot extends a hand towards the viewer. Bold, sans-serif typography at the top reads 'Welcome to the AI Revolution' with 'Artificial Analysis' prominently displayed at the bottom in a retro chrome effect. The color palette consists of deep blues, vibrant oranges, and metallic silvers, reminiscent of 1950s sci-fi illustrations."image = pipe(prompt,height=1024,width=1024,guidance_scale=4.0,num_inference_steps=50,).images[0]image.save("nucleus_image_demo.png")```
README.md+33-3