jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: When using an Intel GPU locally with ollama.cpp, get strange random results in chat

Open LouGit opened this issue 3 weeks ago • 0 comments

Version: 0.7.3

Describe the Bug

Unexpected random gobblish results when using a local llama.cpp model with an Intel GPU

Steps to Reproduce

  1. Use an Intel graphics card: GPU Meteor Lake-P [Intel Arc Graphics]
  2. Settings -> Hardware -> GPUs, "Intel(R) Arc(tm) Graphics (MTL)" => switched on
  3. Hub -> pick up models to be used by Llama.cpp
  4. New Chat -> choose Llama.cpp, choose any model
  5. Type a simple prompt, such as: "Hello, can you please write a Rebol program where the user guesses a random number."
  6. Watch the answer being written, I just got: "libertin Gül胜负润/browseorld coraz pik Cav/browseỔ pikobl/browseordo/browseustum/browse开奖结果胜负 Reality黢forme kupforme pik pxforme/browse该游戏formeicontrolorld corazordorita Cav Cav胜负/browseredo многие润开奖结果 многиеFalsyuales/browse coraz胜负obl"
  7. Cancel the answer by pressing the red square button
  8. Settings -> Hardware -> GPUs, "Intel(R) Arc(tm) Graphics (MTL)" => switch off
  9. Go back to the recent chat, ask the same question again
  10. The answer comes slowly, but it makes sense.

Screenshots / Logs

  • Extract from lshw output concerning the video card: *-display description: VGA compatible controller product: Meteor Lake-P [Intel Arc Graphics] vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 logical name: /dev/fb0 version: 08 width: 64 bits clock: 33MHz capabilities: vga_controller bus_master cap_list rom fb configuration: depth=32 driver=i915 latency=0 resolution=1920,1200 resources: iomemory:500-4ff iomemory:400-3ff irq:200 memory:5010000000-5010ffffff memory:4000000000-400fffffff mem>

  • Chat: the first question is asked with GPU on, the second one is asked with GPU off:

Hello, can you please write a Rebol program where the user guesses a random number.

👋
Jan
Nov 13, 2025, 7:52 PM
libertin Gül胜负润/browseorld coraz pik Cav/browseỔ pikobl/browseordo/browseustum/browse开奖结果胜负 Reality黢forme kupforme pik pxforme/browse该游戏formeicontrolorld corazordorita Cav Cav胜负/browseredo многие润开奖结果 многиеFalsyuales/browse coraz胜负oblỔ起/browseordo многиеordoforme многиеformeỔ многие/browse胜负/browseforme многие многие Gül Reality многиеredo pik/browse Reality многиеorldorldỔ/browse起forme/browse起 pik
1 tokens/sec

Hello, can you please write a Rebol program where the user guesses a random number.

👋
Jan
Nov 13, 2025, 8:37 PM
Sure! Below is a simple Rebol program where the user tries to guess a randomly generated number:
1rebol []
2
3random-number: to-integer random 100  ; Generate a random number between 1 and 100
4
5guess: 0
6
7while [guess <> random-number] [
8    print "Guess a number between 1 and 100:"
9    guess: to-integer input
10    if guess < random-number [
11        print "Too low!"
12    ] else if guess > random-number [
13        print "Too high!"
14    ] else [
15        print "Congratulations! You guessed it right!"
16    ]
17]
To run this program, you can copy and paste it into a Rebol interpreter. The program will prompt you to enter guesses until you correctly guess the random number between 1 and 100.

Operating System

  • [ ] MacOS
  • [ ] Windows
  • [x] GNU/Linux

LouGit avatar Nov 13 '25 19:11 LouGit