The Agent Stack #037 — Monday Build


Nvidia just dropped something that changes how we think about LLM inference. Their Nemotron-Labs diffusion language models generate text at what they’re calling “speed-of-light” performance.

This isn’t marketing fluff. Traditional autoregressive models generate one token at a time. Diffusion models generate entire sequences in parallel. Think going from dial-up to fibre, but for text generation.

Building with Diffusion Language Models

The core insight is architectural. Instead of predicting the next token given all previous tokens, diffusion models start with noise and iteratively refine it into coherent text. This parallelisation is why they’re fast.

Here’s what the inference pipeline looks like:

# Traditional autoregressive (slow)
def generate_autoregressive(prompt, model, max_length=100):
    tokens = tokenize(prompt)
    for i in range(max_length):
        next_token = model.predict_next(tokens)
        tokens.append(next_token)
        if next_token == EOS: break
    return detokenize(tokens)

# Diffusion approach (fast)
def generate_diffusion(prompt, model, steps=10):
    # Start with noise
    noise = torch.randn(batch_size, seq_len, vocab_size)
    
    # Iteratively denoise
    for step in range(steps):
        noise = model.denoise_step(noise, prompt, step)
    
    return decode_tokens(noise)

The Nemotron implementation uses a continuous diffusion process. You condition the noise on your prompt, then run the denoising steps. Each step refines the entire sequence simultaneously.

For agent builders, this opens up new patterns. Instead of streaming responses token by token, you get complete thoughts in fixed time. No more waiting for the model to “think through” long chains of reasoning.

The practical setup requires some changes to your serving infrastructure. You’ll need to handle batch processing differently since the model processes entire sequences at once. Memory usage spikes during inference but wall-clock time drops significantly.

Most importantly, this works best for specific use cases. Long-form generation where you know the approximate length. Structured outputs like code or JSON. Tasks where latency matters more than perfect coherence.

The models are available on HuggingFace now. Start with the 8B parameter version if you’re experimenting locally.

Quick Hits

Google’s “disregard” bug shows how fragile AI Overviews are - one word breaks the entire search interface, revealing prompt injection vulnerabilities at scale

Samsung memory workers just negotiated £270,000 average bonuses, highlighting how AI chip demand is creating unprecedented compensation in semiconductor manufacturing

Hackers targeting chatbot personalities - new research shows attackers are exploiting specific personality traits in AI assistants rather than just technical vulnerabilities

One Thing to Try

Set up a simple diffusion vs autoregressive comparison. Take the Nemotron-Labs model and your current LLM. Generate the same 200-word response 10 times each. Measure total time, not time-to-first-token. The results will surprise you.

The future of LLM inference isn’t just about bigger models - it’s about fundamentally different architectures.