ollama - 💡(How to fix) Fix Intel Arc 770: Q4_K_M and other quantization formats produce gibberish or hang [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14978Fetched 2026-04-08 01:03:38
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
subscribed ×2labeled ×1
RAW_BUFFERClick to expand / collapse

What is the issue?

Summary

Intel Arc 770 (16GB) works perfectly with certain quantization formats but produces gibberish, hangs, or repeats output with others when using Vulkan GPU acceleration via Ollama served through Alpaca. Working Models (Q4_0 and Q8_0 quantizations)

llama3.2:1b
hermes3:8b
Wizard Vicuna Uncensored 13b
samantha mistral 7b
llama2 uncensored 7b

Non-Working Models (Q4_K_M quantization)

llama3.2:3b — produces dense stream of gibberish
llama3.1:8b — produces dense stream of gibberish
Gemma3:12b — hangs, produces no output
Gemma3N:7b — repeats same sentence over and over

Key Findings

The issue is quantization-specific: Q4_K_M quantizations fail, while Q4_0 and Q8_0 work perfectly
Not a size issue: Wizard Vicuna 13b (Q4_0) works fine, while Gemma3 12b (Q4_K_M) hangs
Not an OS issue: All models work correctly on CPU (though slower)
Mysterious pattern: llama3.2:1b works but llama3.2:3b doesn't, despite being similar models
Vision models affected: Gemma3 (vision model) exhibits different failure modes than text models

Environment

Hardware: Intel Arc 770 16GB
OS: Bazzite (immutable/atomic)
Ollama served through: Alpaca Flatpak
GPU acceleration: Vulkan
Ollama v 0.18.2
Vulkan Instance Version: 1.4.341

Expected Behavior

All quantization formats should produce coherent output or fail gracefully, not produce gibberish or hang. Actual Behavior

Q4_K_M quantizations produce invalid output or hang entirely on Intel Arc 770.

Relevant log output

OS

Linux

GPU

Intel

CPU

Intel

Ollama version

0.18.2

extent analysis

Fix Plan

To address the quantization-specific issue with Q4_K_M formats on Intel Arc 770 with Vulkan GPU acceleration, we will:

  • Update Ollama to the latest version to ensure any known fixes are applied.
  • Modify the Vulkan configuration to optimize for the Intel Arc 770.
  • Implement a fallback to CPU for Q4_K_M quantizations if the issue persists.

Code Changes

Example code to implement a fallback to CPU for specific quantizations:

import ollama

def process_model(model, quantization):
    if quantization == "Q4_K_M":
        # Fallback to CPU for Q4_K_M quantizations
        ollama.set_device("CPU")
    else:
        ollama.set_device("GPU")

    # Process the model
    output = ollama.process(model)
    return output

Configuration Changes

  1. Update ollama.cfg to include the following settings:
[device]
fallback_cpu = True
  1. Ensure the Vulkan instance version is up-to-date.

Verification

  1. Test the models with Q4_K_M quantizations to verify they no longer produce gibberish or hang.
  2. Verify that models with Q4_0 and Q8_0 quantizations still work correctly.
  3. Monitor system logs for any errors or warnings related to Vulkan or Ollama.

Extra Tips

  • Regularly update Ollama and Vulkan to ensure you have the latest fixes and optimizations.
  • Consider reporting the issue to the Ollama and Vulkan communities to help improve support for Intel Arc 770.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING