Getting Started With Diffusion LLMs: Making Art From Noise
Most chatbots build answers word by word, but diffusion LLMs start with static and refine the whole reply at once.AI
Generative AI is a blanket term that is often used to refer to a wide range of text, image, audio, and video models. Zoom in, however, and two strong forks emerge. Text models, such as the large language models available through ChatGPT and Claude, typically use an autoregressive architecture that spits out tokens one after another in a sequence. But image and video models, such as Google’s Nano Banana and Midjourney, use a diffusion architecture where the entire image emerges from random noise.
Unlike that old type of electromagnetic static, “diffusion noise” is mathematical, designed to help determine the way an image is created. Different random patterns of that noise are why sometimes, if you prompt for an image of an astronaut riding a rubber ducky, you might get them looking left, or toward the camera, or different versions where they’re to the side of the image or dead center.
It is in many ways a modern version of the quote from the Renaissance artist Michelangelo, who is said to have described his starting marble blocks as sculptures, with the artwork “already complete” inside. “I just chip away everything that doesn’t look like David,” one version of the quote goes.
In a similar way, AIs find their images in that noise, using its randomness to determine some elements while using your prompt to help guide the process.
You may be tempted to think of diffusion models as focused on images and video, but they can actually be used alongside a variety of modalities, including text. Diffusion LLMs (diffusion large language models) that generate text aren’t as common, but there are several notable examples, including a model from Google that you may be able to run on your own PC.
What is diffusion, and how can it create a large language model?
Diffusion is a term borrowed from physics that describes the net movement of particles, atoms, molecules, and many other things from a state of high concentration and uneven distribution into a state of low concentration and even distribution.
Diffusion run backward: a diffusion LLM unmasks a whole block of words over many passes, while an autoregressive LLM writes in order.
Imagine you’ve dumped a packet of creamer into your coffee. At first it’s a concentrated swirl, but over time it diffuses until the mixture is uniform. Now imagine running that backward: starting from evenly mixed coffee and pulling the creamer back into its original swirl. In real life you can’t un-stir your coffee, but an AI model can learn to do something like that.
That’s the idea behind diffusion models. To train an image model, researchers take real pictures, gradually bury them in random noise, and teach the model to undo each step. To generate a new image, the model starts with pure noise and removes noise step by step, guided by its understanding of the user’s prompt, until an image emerges.
Diffusion in text works similarly. Randomness is added by randomly removing some words. During training, sentences are masked to varying degrees and the model learns to fill them back in. To write something new, the model starts with a block of blanks and fills them over many passes, locking in the words it’s most confident about until the response is complete.
Diffusion vs. autoregression: what’s the difference?
The difference between a diffusion model and an autoregressive LLM is subtle but important. Autoregressive LLMs are given samples of text and then trained to predict each next word. Diffusion LLMs are given chunks of text with missing elements and trained to predict what is missing.
This difference carries over to inference, too. An autoregressive LLM generates text by predicting tokens in a linear sequence from start to finish. Each pass predicts the next token. Diffusion models generate text by predicting and refining across all tokens, over multiple steps.
| Autoregressive LLM | Diffusion LLM | |
|---|---|---|
| Training | Predict the next word in a sample of text | Fill in words masked out of a chunk of text |
| Generation | One token per pass, start to finish | Refines all tokens in a block over multiple passes |
| Main hardware bottleneck | Memory bandwidth | Compute performance |
| Examples | Models behind ChatGPT and Claude, Gemma 4 | Inception Mercury, Google DiffusionGemma |
Are diffusion models… better?
A diffusion model’s architecture implies a couple of big advantages, some of which may be relevant to running a model on local hardware.
Diffusion LLMs plan a response in their entirety: Autoregressive models make predictions in a sequence, and that can lead to strange behavior. For example, you’ll sometimes see an autoregressive LLM reply with a clearly incorrect or untrue statement but then correct itself later in the reply. Diffusion LLMs don’t suffer this problem. That’s not to say diffusion models are always correct, but they do have a general understanding of what the entire reply will be. Autoregressive LLMs, on the other hand, don’t know what they’re going to say until they say it.
Diffusion LLMs put more demand on compute and less on memory: As I’m sure you know, memory is a hot commodity right now, and autoregressive LLMs are a big part of why. Each token prediction requires that all model weights be available in memory and passed through to compute hardware. Diffusion models require the same, but here’s the trick: with each pass, a diffusion model calculates the probabilities for all tokens in the reply instead of just a single token. That shifts the hardware bottleneck away from memory bandwidth and toward compute performance.
Read more: Reading vs. Answering: The Two Hardware Bottlenecks Behind Local AI Performance
Diffusion LLMs can be very fast: Inception’s diffusion LLM, Mercury, is an example of how shifting the bottleneck from memory to compute can improve inference performance. In my use of the AI on Inception’s website and through OpenRouter, I’ve observed performance that ranges from 600 to 1,000 (or slightly more) tokens per second. Most autoregressive LLMs deliver about 100 tokens per second, or less.
What’s the catch?
The catch is that diffusion LLMs are not as well understood as autoregressive LLMs. Nowhere near as much effort has been put into researching their capabilities and optimizing their training and inference, though we have come a long way from the famous Will Smith eating spaghetti meme.
It’s also hard to tell how that might change, or when. OpenAI famously shuttered its Sora social video service reportedly because of its high costs. It might also turn out that throwing gobs of cash and effort at diffusion LLM research leads to models that are just as good as, or better than, autoregressive LLMs. Or it could turn out that diffusion LLMs have some fundamental limitation that is hard to overcome.
How to use DiffusionGemma on local hardware
Diffusion LLMs are so uncommon that they’re not fully supported by LM Studio or Ollama. Trying to download and run the models through these tools will result in an error.
But there is one bit of software that can handle diffusion LLMs, and it’s a relatively new player in the GUI LLM client arena, called Unsloth Studio. Unsloth is an open-source tool for training and fine-tuning LLMs locally, and it was released all the way back in December of 2023. But Unsloth Studio, the GUI interface, was released into beta in March of 2026.
Here’s how you can use it:
- Install Unsloth Studio. Download Unsloth Studio for Windows and install it. During installation, choose Chat Only if desired. This means Unsloth Studio will not be usable for training and fine-tuning LLMs.
- Download DiffusionGemma. Open the Model Hub and search for DiffusionGemma. You want “diffusiongemma-26B-A4B-it-GGUF” to be precise. Several quantizations are available. The 4-bit model is a good option for 32GB of RAM or less. Try the 8-bit quantization if you have 64GB of RAM or more. Download it.
- Start chatting. After the download is finished, start a new chat, select DiffusionGemma as the model, and ask a question.
Search the Model Hub for DiffusionGemma, then pick a quantization: Q4_K_M (4-bit) or Q8_0 (8-bit).
Installation trouble?
I had some issues installing Unsloth Studio through the Windows installer. I had to run the CLI installer and then install Unsloth Studio before I could load DiffusionGemma. I was using AMD’s Ryzen AI Halo workstation. Your mileage may vary.
DiffusionGemma 26B A4B (Q4_K_M) loaded and ready to chat in Unsloth Studio.
How fast is DiffusionGemma?
As I mentioned earlier, the architecture of diffusion LLMs has the potential to move the bottleneck from memory to compute. That’s in theory great news for running a local LLM, because memory bandwidth tends to be a precious resource. So, does that mean DiffusionGemma is fast?
Yes, actually, it does. The AMD Ryzen AI Halo ran the 4-bit quantization of DiffusionGemma 26B A4B at up to 350 tokens per second. By comparison, the 4-bit quantization (MXFP4_MOE) variant of Google’s Gemma 4 26B A4B autoregressive model output only 42.7 tokens per second.
But before you get too excited, across three runs, DiffusionGemma took an average of 68 seconds to write the program from start to finish, while the autoregressive model finished in about 47 seconds. Why? The two tokens-per-second figures don’t measure the same thing.
| Model | Architecture | Reported speed (tokens/sec) | Avg. time to finish (3 runs) |
|---|---|---|---|
| DiffusionGemma 26B A4B | Diffusion | Up to 350 | 68 seconds |
| Gemma 4 26B A4B (MXFP4_MOE) | Autoregressive | 42.7 | About 47 seconds |
An autoregressive model produces one token per pass through the network, so its rate is simply output divided by time. DiffusionGemma instead refines a block of 256 placeholder tokens over many passes, reworking every position each time until the text settles. Its reported rate appears to count all that refinement work, not just the finished text. Put simply: DiffusionGemma’s tokens-per-second number is inflated because it counts tokens differently.
The Breakout games written by DiffusionGemma and Gemma 4, side by side.
Interestingly, though, both models generated extremely similar results (see the screenshot above). I saw this in several other tests, as well. That suggests that DiffusionGemma is able to output real-world results that are often very similar to the autoregressive model.
Mercury 3 via OpenRouter is another option
Unlike Google’s Gemma autoregressive LLM family, which includes many different types and sizes of models, DiffusionGemma comes in one flavor: a model with 26 billion parameters and four billion active parameters. The 4-bit quantization requires about 18GB of memory for the model, and the 8-bit quantization requires about 26GB.
Read more: Mixture of Experts (MoE) Explained
Fortunately, there is an easy way to play with a diffusion model no matter what hardware you have. Just access Inception’s Mercury 3 through an LLM client like AnythingLLM. AnythingLLM has broad API support which includes OpenRouter, and OpenRouter provides access to Mercury 3.
It’s cheap, too. You only have to pay 10 cents per million input tokens and 35 cents per million output tokens. That’s less than GPT-6.1 Luna and Claude Haiku 5.5.
Setup is easy.
- Create an OpenRouter account. Visit OpenRouter’s website and create an account.
- Install AnythingLLM. Download AnythingLLM for your PC, Mac, or Linux computer, and install it.
- Create an API key. Log in to OpenRouter and create an API key.
- Connect AnythingLLM to OpenRouter. Open AnythingLLM and then open Settings. Click on AI Providers and then LLM. Select OpenRouter from the drop-down menu and then enter your API key below the drop-down menu. You can also select Mercury 3 as the default, though you can also choose a different model when you start a new chat thread.
Protect your API key
This is a paid service, and your API key is effectively a password to access it. Do not share it. I also strongly suggest implementing a monthly spending cap, which is an option that will appear when you create the API key. The spending cap will provide extra protection if the key is somehow compromised and also stop you from spending more than you wanted.
And that’s it. AnythingLLM handles the rest, so the reply you receive from the Mercury 3 diffusion model will appear just like the reply you receive from an autoregressive model.
Are diffusion LLMs worth trying today?
Diffusion LLMs aren’t ready to compete with autoregressive LLMs yet, but they offer some interesting advantages and may lead to better models for local hardware. At the moment, diffusion LLMs lack the optimization effort put into making autoregressive LLMs easy to use on local hardware, and there aren’t many small diffusion LLMs to choose from. But I expect this to change over the next few years, and it could lead to small models that run better on machines with limited memory and memory bandwidth.
TL;DR
- Diffusion LLMs generate text by refining a whole block of tokens over many passes, instead of predicting one token at a time like autoregressive LLMs.
- That shifts the bottleneck from memory bandwidth toward compute, which could help local AI hardware.
- DiffusionGemma 26B A4B runs locally in Unsloth Studio (not LM Studio or Ollama) and needs about 18GB of memory at 4-bit.
- Its reported tokens-per-second number is inflated: on an AMD Ryzen AI Halo it took longer to finish than Gemma 4 but produced very similar results.
- No suitable hardware? Try Inception’s Mercury 3 through OpenRouter in AnythingLLM.
Comment on This Post
See More Blog Categories
Recent Posts
Why Apple Shortcuts Is the Best Mac Local AI Feature You're Not Using
Shortcuts is a powerful automation tool built into Macs, iPhones, and iPads, and this year's Siri AI upgrade made it easier than ever to use.
Continue Reading About Why Apple Shortcuts Is the Best Mac Local AI Feature You're Not Using
