PulseAugur
EN
LIVE 03:47:23

Ollama bug misapplies Gemma 4 prompt templates

Ollama version 0.35.1 exhibits a subtle bug where it incorrectly selects the prompt template for Gemma 4 models. The software defaults to a 'small' template when a 'large' template is intended, particularly affecting models derived from the base Gemma 4 12B model or when the model name lacks explicit size indicators. This discrepancy can lead to a missing 'thought block' in the model's output when 'thinking' is disabled, though the impact on generated answers is minimal. Users can manually specify the correct 'large' template in their Modelfile to ensure accurate rendering. AI

IMPACT This bug fix in Ollama ensures correct prompt template application for Gemma 4 models, potentially improving output consistency for users.

RANK_REASON The item describes a bug fix or behavior change in a specific version of a software tool.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Ollama bug misapplies Gemma 4 prompt templates

How we ranked this

Signal score
1 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item describes a bug fix or behavior change in a specific version of a software tool.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Same-day
Cluster formed today. Ranking reflects the current source set at time of score.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · The Homelab Postmortem ·

    Ollama picks the Gemma 4 prompt template from the model's name

    <p><strong>TL;DR</strong>: Gemma 4 models in Ollama carry <code>RENDERER gemma4</code>, which Ollama 0.35.1 resolves per request to <code>gemma4-small</code> (the e2b/e4b template) or <code>gemma4-large</code> (12b, 26b, 31b). It decides by looking for <code>e2b</code>/<code>e4b<…