[GH-ISSUE #7187] AMD ROCm 0.3.13 >> ggml_cuda_compute_forward at /c/ollama/llm/llama.cpp/ggml/src/ggml-cuda.cu:2326 #4567

Closed
opened 2026-04-12 15:30:06 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @unclemusclez on GitHub (Oct 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7187

What is the issue?

/usr/local/bin/ollama0.3.13 run llama3.1:70b-instruct-q2_K < /dev/null --verbose
Error: llama runner process has terminated: CUDA error: invalid device function
  current device: 0, in function ggml_cuda_compute_forward at /c/ollama/llm/llama.cpp/ggml/src/ggml-cuda.cu:2326
  err
/c/ollama/llm/llama.cpp/ggml/src/ggml-cuda.cu:102: CUDA error

its looking for a file where i compiled the application. /c/ollama/ is where i git cloned

sudo journalctl -xeu ollama.service
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :222 : 69460772140 us: [pid:64447 tid:0x7e47be4006c0] Handler: value(0), timestamp(0x14d87300), handle(0x7e48c6bff480)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :177 : 69460772155 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15af7130 complete
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :162 : 69460772162 us: [pid:64447 tid:0x7e47be4006c0] Signal = (0x7e48c6bff480), start = 69460772012823, end = 69460772135223 time taken= 122400 ns
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :171 : 69460772167 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15405330 complete (Wall: 81160364, CPU: 0, GPU: 122 us)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp           :1508: 69460773202 us: [pid:64447 tid:0x7e49ddfbe340]  hipMemcpyAsync ( 0x7e477e828e00, 0x7e417ed00000, 1048576, hipMemcpyHostToDevice, stream:0x51af180 )
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :347 : 69460773229 us: [pid:64447 tid:0x7e49ddfbe340] Command (CopyDeviceToDevice) enqueued: 0x15af7130
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocblit.cpp              :750 : 69460773248 us: [pid:64447 tid:0x7e49ddfbe340] HSA Async Copy on copy_engine=0x2, dst=0x7e477e828e00, src=0x7e417ed00000, size=1048576, forceSDMA=0, wait_eve>
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp           :1509: 69460773264 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync: Returned hipSuccess : : duration: 62 us
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :418 : 69460773279 us: [pid:64447 tid:0x7e49ddfbe340]  hipEventRecord ( event:0x14b6a250, stream:0x51af180 )
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :347 : 69460773292 us: [pid:64447 tid:0x7e49ddfbe340] Command (InternalMarker) enqueued: 0x15978330
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.hpp           :66  : 69460773302 us: [pid:64447 tid:0x7e49ddfbe340] Host active wait for Signal = (0x7e48c6bff400) for 10000 ns
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :475 : 69460773355 us: [pid:64447 tid:0x7e49ddfbe340] Set Handler: handle(0x7e48c6bff380), timestamp(0x15b67fb0)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocvirtual.cpp           :1076: 69460773368 us: [pid:64447 tid:0x7e49ddfbe340] SWq=0x7e499b446000, HWq=0x7e417eb00000, id=1, BarrierAND Header = 0x1503 (type=3, barrier=1, acquire=2, releas>
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :419 : 69460773378 us: [pid:64447 tid:0x7e49ddfbe340] hipEventRecord: Returned hipSuccess :
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :429 : 69460773387 us: [pid:64447 tid:0x7e49ddfbe340]  hipEventSynchronize ( event:0x14b68ee0 )
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :449 : 69460773406 us: [pid:64447 tid:0x7e49ddfbe340] hipEventSynchronize: Returned hipSuccess :
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :222 : 69460773487 us: [pid:64447 tid:0x7e47be4006c0] Handler: value(0), timestamp(0x14d873d0), handle(0x7e48c6bff380)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :177 : 69460773501 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15af7130 complete
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :162 : 69460773513 us: [pid:64447 tid:0x7e47be4006c0] Signal = (0x7e48c6bff380), start = 69460773397940, end = 69460773481460 time taken= 83520 ns
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :171 : 69460773537 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15978330 complete (Wall: 81161710, CPU: 0, GPU: 83 us)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp           :1508: 69460774430 us: [pid:64447 tid:0x7e49ddfbe340]  hipMemcpyAsync ( 0x7e477e928e00, 0x7e417f300000, 1048576, hipMemcpyHostToDevice, stream:0x51af180 )
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :347 : 69460774446 us: [pid:64447 tid:0x7e49ddfbe340] Command (CopyDeviceToDevice) enqueued: 0x15af7130
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocblit.cpp              :750 : 69460774458 us: [pid:64447 tid:0x7e49ddfbe340] HSA Async Copy on copy_engine=0x2, dst=0x7e477e928e00, src=0x7e417f300000, size=1048576, forceSDMA=0, wait_eve>
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp           :1509: 69460774467 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync: Returned hipSuccess : : duration: 37 us
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :418 : 69460774476 us: [pid:64447 tid:0x7e49ddfbe340]  hipEventRecord ( event:0x14b68ee0, stream:0x51af180 )
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :347 : 69460774482 us: [pid:64447 tid:0x7e49ddfbe340] Command (InternalMarker) enqueued: 0x1597b7e0
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.hpp           :66  : 69460774488 us: [pid:64447 tid:0x7e49ddfbe340] Host active wait for Signal = (0x7e48c6bff300) for 10000 ns
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :475 : 69460774513 us: [pid:64447 tid:0x7e49ddfbe340] Set Handler: handle(0x7e48c6bff280), timestamp(0x15b68210)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocvirtual.cpp           :1076: 69460774524 us: [pid:64447 tid:0x7e49ddfbe340] SWq=0x7e499b446000, HWq=0x7e417eb00000, id=1, BarrierAND Header = 0x1503 (type=3, barrier=1, acquire=2, releas>
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :419 : 69460774533 us: [pid:64447 tid:0x7e49ddfbe340] hipEventRecord: Returned hipSuccess :
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :429 : 69460774540 us: [pid:64447 tid:0x7e49ddfbe340]  hipEventSynchronize ( event:0x14b69580 )
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp            :449 : 69460774548 us: [pid:64447 tid:0x7e49ddfbe340] hipEventSynchronize: Returned hipSuccess :
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :222 : 69460774700 us: [pid:64447 tid:0x7e47be4006c0] Handler: value(0), timestamp(0x8843f0), handle(0x7e48c6bff280)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :177 : 69460774710 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15af7130 complete
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp           :162 : 69460774721 us: [pid:64447 tid:0x7e47be4006c0] Signal = (0x7e48c6bff280), start = 69460774546898, end = 69460774691858 time taken= 144960 ns
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp              :171 : 69460774735 us: [pid:64447 tid:0x7e47be4006c0] Command 0x1597b7e0 complete (Wall: 81162921, CPU: 0, GPU: 144 us)
Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp           :1508: 69460775599 us: [pid:64447 tid:0x7e49ddfbe340]  hipMemcpyAsync ( 0x7e477ea28e00, 0x7e417f100000, 1048576, hipMemcpyHostToDevice, stream:0x51af180 )
Oct 12 20:46:15 kamala systemd[1]: ollama.service: Control process exited, code=exited, status=1/FAILURE

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

origin/main

Originally created by @unclemusclez on GitHub (Oct 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7187 ### What is the issue? ``` /usr/local/bin/ollama0.3.13 run llama3.1:70b-instruct-q2_K < /dev/null --verbose Error: llama runner process has terminated: CUDA error: invalid device function current device: 0, in function ggml_cuda_compute_forward at /c/ollama/llm/llama.cpp/ggml/src/ggml-cuda.cu:2326 err /c/ollama/llm/llama.cpp/ggml/src/ggml-cuda.cu:102: CUDA error ``` its looking for a file where i compiled the application. `/c/ollama/` is where i git cloned ``` sudo journalctl -xeu ollama.service Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :222 : 69460772140 us: [pid:64447 tid:0x7e47be4006c0] Handler: value(0), timestamp(0x14d87300), handle(0x7e48c6bff480) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :177 : 69460772155 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15af7130 complete Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :162 : 69460772162 us: [pid:64447 tid:0x7e47be4006c0] Signal = (0x7e48c6bff480), start = 69460772012823, end = 69460772135223 time taken= 122400 ns Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :171 : 69460772167 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15405330 complete (Wall: 81160364, CPU: 0, GPU: 122 us) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp :1508: 69460773202 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync ( 0x7e477e828e00, 0x7e417ed00000, 1048576, hipMemcpyHostToDevice, stream:0x51af180 ) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :347 : 69460773229 us: [pid:64447 tid:0x7e49ddfbe340] Command (CopyDeviceToDevice) enqueued: 0x15af7130 Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocblit.cpp :750 : 69460773248 us: [pid:64447 tid:0x7e49ddfbe340] HSA Async Copy on copy_engine=0x2, dst=0x7e477e828e00, src=0x7e417ed00000, size=1048576, forceSDMA=0, wait_eve> Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp :1509: 69460773264 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync: Returned hipSuccess : : duration: 62 us Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :418 : 69460773279 us: [pid:64447 tid:0x7e49ddfbe340] hipEventRecord ( event:0x14b6a250, stream:0x51af180 ) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :347 : 69460773292 us: [pid:64447 tid:0x7e49ddfbe340] Command (InternalMarker) enqueued: 0x15978330 Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.hpp :66 : 69460773302 us: [pid:64447 tid:0x7e49ddfbe340] Host active wait for Signal = (0x7e48c6bff400) for 10000 ns Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :475 : 69460773355 us: [pid:64447 tid:0x7e49ddfbe340] Set Handler: handle(0x7e48c6bff380), timestamp(0x15b67fb0) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocvirtual.cpp :1076: 69460773368 us: [pid:64447 tid:0x7e49ddfbe340] SWq=0x7e499b446000, HWq=0x7e417eb00000, id=1, BarrierAND Header = 0x1503 (type=3, barrier=1, acquire=2, releas> Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :419 : 69460773378 us: [pid:64447 tid:0x7e49ddfbe340] hipEventRecord: Returned hipSuccess : Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :429 : 69460773387 us: [pid:64447 tid:0x7e49ddfbe340] hipEventSynchronize ( event:0x14b68ee0 ) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :449 : 69460773406 us: [pid:64447 tid:0x7e49ddfbe340] hipEventSynchronize: Returned hipSuccess : Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :222 : 69460773487 us: [pid:64447 tid:0x7e47be4006c0] Handler: value(0), timestamp(0x14d873d0), handle(0x7e48c6bff380) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :177 : 69460773501 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15af7130 complete Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :162 : 69460773513 us: [pid:64447 tid:0x7e47be4006c0] Signal = (0x7e48c6bff380), start = 69460773397940, end = 69460773481460 time taken= 83520 ns Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :171 : 69460773537 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15978330 complete (Wall: 81161710, CPU: 0, GPU: 83 us) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp :1508: 69460774430 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync ( 0x7e477e928e00, 0x7e417f300000, 1048576, hipMemcpyHostToDevice, stream:0x51af180 ) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :347 : 69460774446 us: [pid:64447 tid:0x7e49ddfbe340] Command (CopyDeviceToDevice) enqueued: 0x15af7130 Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocblit.cpp :750 : 69460774458 us: [pid:64447 tid:0x7e49ddfbe340] HSA Async Copy on copy_engine=0x2, dst=0x7e477e928e00, src=0x7e417f300000, size=1048576, forceSDMA=0, wait_eve> Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp :1509: 69460774467 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync: Returned hipSuccess : : duration: 37 us Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :418 : 69460774476 us: [pid:64447 tid:0x7e49ddfbe340] hipEventRecord ( event:0x14b68ee0, stream:0x51af180 ) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :347 : 69460774482 us: [pid:64447 tid:0x7e49ddfbe340] Command (InternalMarker) enqueued: 0x1597b7e0 Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.hpp :66 : 69460774488 us: [pid:64447 tid:0x7e49ddfbe340] Host active wait for Signal = (0x7e48c6bff300) for 10000 ns Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :475 : 69460774513 us: [pid:64447 tid:0x7e49ddfbe340] Set Handler: handle(0x7e48c6bff280), timestamp(0x15b68210) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:rocvirtual.cpp :1076: 69460774524 us: [pid:64447 tid:0x7e49ddfbe340] SWq=0x7e499b446000, HWq=0x7e417eb00000, id=1, BarrierAND Header = 0x1503 (type=3, barrier=1, acquire=2, releas> Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :419 : 69460774533 us: [pid:64447 tid:0x7e49ddfbe340] hipEventRecord: Returned hipSuccess : Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :429 : 69460774540 us: [pid:64447 tid:0x7e49ddfbe340] hipEventSynchronize ( event:0x14b69580 ) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_event.cpp :449 : 69460774548 us: [pid:64447 tid:0x7e49ddfbe340] hipEventSynchronize: Returned hipSuccess : Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :222 : 69460774700 us: [pid:64447 tid:0x7e47be4006c0] Handler: value(0), timestamp(0x8843f0), handle(0x7e48c6bff280) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :177 : 69460774710 us: [pid:64447 tid:0x7e47be4006c0] Command 0x15af7130 complete Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:rocvirtual.cpp :162 : 69460774721 us: [pid:64447 tid:0x7e47be4006c0] Signal = (0x7e48c6bff280), start = 69460774546898, end = 69460774691858 time taken= 144960 ns Oct 12 20:46:11 kamala ollama0.3.13[64422]: :4:command.cpp :171 : 69460774735 us: [pid:64447 tid:0x7e47be4006c0] Command 0x1597b7e0 complete (Wall: 81162921, CPU: 0, GPU: 144 us) Oct 12 20:46:11 kamala ollama0.3.13[64422]: :3:hip_memory.cpp :1508: 69460775599 us: [pid:64447 tid:0x7e49ddfbe340] hipMemcpyAsync ( 0x7e477ea28e00, 0x7e417f100000, 1048576, hipMemcpyHostToDevice, stream:0x51af180 ) Oct 12 20:46:15 kamala systemd[1]: ollama.service: Control process exited, code=exited, status=1/FAILURE ``` ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version origin/main
GiteaMirror added the bug label 2026-04-12 15:30:06 -05:00
Author
Owner

@unclemusclez commented on GitHub (Oct 12, 2024):

Working systemctl script

I had tried to originally compile ollama with AMDGPU_TARGETS="gfx906:xnack+" which seems unsupported, but exists.

we also have Flash attention with ROCM 6.2.X. i'm not sure if Ollama utilizes flash with AMD's Composable kernel without the Environment="OLLAMA_FLASH_ATTENTION=1 , but I think in theory it should be an FA2/FA3 equivalent.

[Unit]
Description=Ollama Service
After=network-online.target

[Service]
User=ollama
Group=ollama
Restart=Always
RestartSec=10
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
Environment="HSA_OVERRIDE_GFX_VERSION=9.0.6"
Environment="OLLAMA_HOST=0.0.0.0"
Environment="OLLAMA_KEEP_ALIVE=-1"
#Environment="HSA_XNACK=1"
#Environment="AMD_LOG_LEVEL=4"
#Environment="OLLAMA_FLASH_ATTENTION=1"
Environment="HIP_VISIBLE_DEVICES=0"
Environment="ROCM_PATH=/opt/rocm"

ExecStart=/usr/local/bin/ollama0.3.13 serve
TimeoutSec=210
ExecStartPost=/usr/local/bin/ollama0.3.13 run llama3.1:70b-instruct-q2_K < /dev/null


[Install]
WantedBy=default.target
<!-- gh-comment-id:2408703508 --> @unclemusclez commented on GitHub (Oct 12, 2024): Working `systemctl` script I had tried to originally compile ollama with `AMDGPU_TARGETS="gfx906:xnack+"` which seems unsupported, but exists. we also have Flash attention with ROCM 6.2.X. i'm not sure if Ollama utilizes flash with AMD's Composable kernel without the `Environment="OLLAMA_FLASH_ATTENTION=1` , but I think in theory it should be an FA2/FA3 equivalent. ```ini [Unit] Description=Ollama Service After=network-online.target [Service] User=ollama Group=ollama Restart=Always RestartSec=10 Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" Environment="HSA_OVERRIDE_GFX_VERSION=9.0.6" Environment="OLLAMA_HOST=0.0.0.0" Environment="OLLAMA_KEEP_ALIVE=-1" #Environment="HSA_XNACK=1" #Environment="AMD_LOG_LEVEL=4" #Environment="OLLAMA_FLASH_ATTENTION=1" Environment="HIP_VISIBLE_DEVICES=0" Environment="ROCM_PATH=/opt/rocm" ExecStart=/usr/local/bin/ollama0.3.13 serve TimeoutSec=210 ExecStartPost=/usr/local/bin/ollama0.3.13 run llama3.1:70b-instruct-q2_K < /dev/null [Install] WantedBy=default.target
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4567