[GH-ISSUE #3807] Error: unable to initialize llm library extract binaries: expected payloads not included in this build of ollama #2352

Closed
opened 2026-04-12 12:40:18 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @ricesin888 on GitHub (Apr 22, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3807

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

Error: unable to initialize llm library extract binaries: expected payloads not included in this build of ollama
??

OS

Windows

GPU

Nvidia

CPU

No response

Ollama version

No response

Originally created by @ricesin888 on GitHub (Apr 22, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3807 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? Error: unable to initialize llm library extract binaries: expected payloads not included in this build of ollama ?? ### OS Windows ### GPU Nvidia ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bugwindows labels 2026-04-12 12:40:18 -05:00
Author
Owner

@igorschlum commented on GitHub (Apr 22, 2024):

Hi @ricesin888
Could you please share the version of Ollama you are using and could you please better explain the issue you are raising.

"unable to initialize llm library extract binaries". Is the problem with LLMs that don't load and run? Did you tried with different LLMs. Could you try with a tiny one to see if it's a memory issue?

<!-- gh-comment-id:2068394501 --> @igorschlum commented on GitHub (Apr 22, 2024): Hi @ricesin888 Could you please share the version of Ollama you are using and could you please better explain the issue you are raising. "unable to initialize llm library extract binaries". Is the problem with LLMs that don't load and run? Did you tried with different LLMs. Could you try with a tiny one to see if it's a memory issue?
Author
Owner

@ricesin888 commented on GitHub (Apr 22, 2024):

used release v0.1.32 ,or Compiling the new version is also the same issue.

error msg:
time=2024-04-22T09:53:14.231+08:00 level=INFO source=routes.go:1143 msg="Listening on 127.0.0.1:11434 (version 0.0.0)"
time=2024-04-22T09:53:14.233+08:00 level=INFO source=payload.go:28 msg="extracting embedded files" dir=C:\Users\pc\AppData\Local\Temp\ollama2402335861\runners
Error: unable to initialize llm library extract binaries: expected payloads not included in this build of ollama

<!-- gh-comment-id:2068401879 --> @ricesin888 commented on GitHub (Apr 22, 2024): used release v0.1.32 ,or Compiling the new version is also the same issue. error msg: time=2024-04-22T09:53:14.231+08:00 level=INFO source=routes.go:1143 msg="Listening on 127.0.0.1:11434 (version 0.0.0)" time=2024-04-22T09:53:14.233+08:00 level=INFO source=payload.go:28 msg="extracting embedded files" dir=C:\Users\pc\AppData\Local\Temp\ollama2402335861\runners Error: unable to initialize llm library extract binaries: expected payloads not included in this build of ollama
Author
Owner

@dhiltgen commented on GitHub (May 2, 2024):

We've been adjusting how we handle the runner binaries on Windows. Please give the latest RC of 0.1.33 a try, and if you're building from source, you may want to rm -r dist and rm -r llm\build to make sure you've got a clean slate. If you're still seeing problems, please share your server log, ($env:OLLAMA_DEBUg="1" will likely help shed more light)

https://github.com/ollama/ollama/releases

<!-- gh-comment-id:2089312983 --> @dhiltgen commented on GitHub (May 2, 2024): We've been adjusting how we handle the runner binaries on Windows. Please give the latest RC of 0.1.33 a try, and if you're building from source, you may want to `rm -r dist` and `rm -r llm\build` to make sure you've got a clean slate. If you're still seeing problems, please share your server log, (`$env:OLLAMA_DEBUg="1"` will likely help shed more light) https://github.com/ollama/ollama/releases
Author
Owner

@dhiltgen commented on GitHub (May 21, 2024):

If you're still having troubles please let us know.

<!-- gh-comment-id:2123134393 --> @dhiltgen commented on GitHub (May 21, 2024): If you're still having troubles please let us know.
Author
Owner

@SmartManoj commented on GitHub (Jul 8, 2024):

In an existing GitHub Codespace, got the following error. Works in new Codespace.

Installed through sh file curl -fsSL https://ollama.com/install.sh | sh

Version:

Warning: could not connect to a running Ollama instance
Warning: client version is 0.1.48

Output:

$ ollama serve
2024/07/08 12:41:20 routes.go:1064: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE: OLLAMA_LLM_LIBRARY: OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:512 OLLAMA_MAX_VRAM:0 OLLAMA_MODELS:/home/codespace/.ollama/models OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://*] OLLAMA_RUNNERS_DIR: OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES:]"
time=2024-07-08T12:41:20.729Z level=INFO source=images.go:730 msg="total blobs: 0"
time=2024-07-08T12:41:20.729Z level=INFO source=images.go:737 msg="total unused blobs removed: 0"
time=2024-07-08T12:41:20.730Z level=INFO source=routes.go:1111 msg="Listening on 127.0.0.1:11434 (version 0.1.48)"
time=2024-07-08T12:41:20.730Z level=INFO source=payload.go:30 msg="extracting embedded files" dir=/tmp/ollama817345568/runners
Error: unable to initialize llm library extract binaries: copy payload build/linux/x86_64/rocm_v60101/bin/ollama_llama_server: gzip: invalid checksum

Debug info

$ OLLAMA_DEBUG="1" ollama serve
2024/07/08 12:48:24 routes.go:1064: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: OLLAMA_DEBUG:true OLLAMA_FLASH_ATTENTION:false OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE: OLLAMA_LLM_LIBRARY: OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:512 OLLAMA_MAX_VRAM:0 OLLAMA_MODELS:/home/codespace/.ollama/models OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://*] OLLAMA_RUNNERS_DIR: OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES:]"
time=2024-07-08T12:48:24.938Z level=INFO source=images.go:730 msg="total blobs: 0"
time=2024-07-08T12:48:24.938Z level=INFO source=images.go:737 msg="total unused blobs removed: 0"
time=2024-07-08T12:48:24.938Z level=INFO source=routes.go:1111 msg="Listening on 127.0.0.1:11434 (version 0.1.48)"
time=2024-07-08T12:48:24.938Z level=INFO source=payload.go:30 msg="extracting embedded files" dir=/tmp/ollama678608272/runners
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cpu file=build/linux/x86_64/cpu/bin/ollama_llama_server.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cpu_avx file=build/linux/x86_64/cpu_avx/bin/ollama_llama_server.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cpu_avx2 file=build/linux/x86_64/cpu_avx2/bin/ollama_llama_server.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/libcublas.so.11.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/libcublasLt.so.11.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/libcudart.so.11.0.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/ollama_llama_server.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=rocm_v60101 file=build/linux/x86_64/rocm_v60101/bin/deps.txt.gz
time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=rocm_v60101 file=build/linux/x86_64/rocm_v60101/bin/ollama_llama_server.gz
time=2024-07-08T12:48:30.975Z level=DEBUG source=assets.go:112 msg="cleaning up" dir=/tmp/ollama678608272
Error: unable to initialize llm library extract binaries: copy payload build/linux/x86_64/rocm_v60101/bin/ollama_llama_server: gzip: invalid checksum
<!-- gh-comment-id:2214002651 --> @SmartManoj commented on GitHub (Jul 8, 2024): In an existing GitHub Codespace, got the following error. Works in new Codespace. Installed through sh file `curl -fsSL https://ollama.com/install.sh | sh` **Version:** ```$ ollama -v Warning: could not connect to a running Ollama instance Warning: client version is 0.1.48 ``` **Output:** ``` $ ollama serve 2024/07/08 12:41:20 routes.go:1064: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE: OLLAMA_LLM_LIBRARY: OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:512 OLLAMA_MAX_VRAM:0 OLLAMA_MODELS:/home/codespace/.ollama/models OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://*] OLLAMA_RUNNERS_DIR: OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES:]" time=2024-07-08T12:41:20.729Z level=INFO source=images.go:730 msg="total blobs: 0" time=2024-07-08T12:41:20.729Z level=INFO source=images.go:737 msg="total unused blobs removed: 0" time=2024-07-08T12:41:20.730Z level=INFO source=routes.go:1111 msg="Listening on 127.0.0.1:11434 (version 0.1.48)" time=2024-07-08T12:41:20.730Z level=INFO source=payload.go:30 msg="extracting embedded files" dir=/tmp/ollama817345568/runners Error: unable to initialize llm library extract binaries: copy payload build/linux/x86_64/rocm_v60101/bin/ollama_llama_server: gzip: invalid checksum ``` **Debug info** ``` $ OLLAMA_DEBUG="1" ollama serve 2024/07/08 12:48:24 routes.go:1064: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: OLLAMA_DEBUG:true OLLAMA_FLASH_ATTENTION:false OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE: OLLAMA_LLM_LIBRARY: OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:512 OLLAMA_MAX_VRAM:0 OLLAMA_MODELS:/home/codespace/.ollama/models OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://*] OLLAMA_RUNNERS_DIR: OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES:]" time=2024-07-08T12:48:24.938Z level=INFO source=images.go:730 msg="total blobs: 0" time=2024-07-08T12:48:24.938Z level=INFO source=images.go:737 msg="total unused blobs removed: 0" time=2024-07-08T12:48:24.938Z level=INFO source=routes.go:1111 msg="Listening on 127.0.0.1:11434 (version 0.1.48)" time=2024-07-08T12:48:24.938Z level=INFO source=payload.go:30 msg="extracting embedded files" dir=/tmp/ollama678608272/runners time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cpu file=build/linux/x86_64/cpu/bin/ollama_llama_server.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cpu_avx file=build/linux/x86_64/cpu_avx/bin/ollama_llama_server.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cpu_avx2 file=build/linux/x86_64/cpu_avx2/bin/ollama_llama_server.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/libcublas.so.11.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/libcublasLt.so.11.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/libcudart.so.11.0.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=cuda_v11 file=build/linux/x86_64/cuda_v11/bin/ollama_llama_server.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=rocm_v60101 file=build/linux/x86_64/rocm_v60101/bin/deps.txt.gz time=2024-07-08T12:48:24.938Z level=DEBUG source=payload.go:180 msg=extracting variant=rocm_v60101 file=build/linux/x86_64/rocm_v60101/bin/ollama_llama_server.gz time=2024-07-08T12:48:30.975Z level=DEBUG source=assets.go:112 msg="cleaning up" dir=/tmp/ollama678608272 Error: unable to initialize llm library extract binaries: copy payload build/linux/x86_64/rocm_v60101/bin/ollama_llama_server: gzip: invalid checksum ```
Author
Owner

@dhiltgen commented on GitHub (Jul 8, 2024):

@SmartManoj is this reproducible? An invalid checksum of the embedded payload implies the ollama binary may have been corrupted during download/install.

<!-- gh-comment-id:2214672096 --> @dhiltgen commented on GitHub (Jul 8, 2024): @SmartManoj is this reproducible? An invalid checksum of the embedded payload implies the ollama binary may have been corrupted during download/install.
Author
Owner

@SmartManoj commented on GitHub (Jul 9, 2024):

Reinstall solved the issue. Thanks 🙏

<!-- gh-comment-id:2216511209 --> @SmartManoj commented on GitHub (Jul 9, 2024): Reinstall solved the issue. Thanks 🙏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2352