[GH-ISSUE #2825] CPU does not have AVX or AVX2, disabling GPU support. #63755

Closed
opened 2026-05-03 14:53:22 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @mingyue0094 on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2825

I can enable GPU using pytorch.
But using ollama, the above log is displayed.
I would like to ask if it can support GPU. In CPU “does not have AVX or AVX2”

time=2024-02-29T11:21:58.722+08:00 level=INFO source=images.go:710 msg="total blobs: 5"
time=2024-02-29T11:21:58.752+08:00 level=INFO source=images.go:717 msg="total unused blobs removed: 0"
time=2024-02-29T11:21:58.755+08:00 level=INFO source=routes.go:1019 msg="Listening on 127.0.0.1:11434 (version 0.1.27)"
time=2024-02-29T11:21:58.755+08:00 level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..."
time=2024-02-29T11:21:59.004+08:00 level=INFO source=payload_common.go:146 msg="Dynamic LLM libraries [cuda_v11.3 cpu_avx cpu cpu_avx2]"
time=2024-02-29T11:22:11.585+08:00 level=INFO source=gpu.go:94 msg="Detecting GPU type"
time=2024-02-29T11:22:11.585+08:00 level=INFO source=gpu.go:265 msg="Searching for GPU management library nvml.dll"
time=2024-02-29T11:22:11.627+08:00 level=INFO source=gpu.go:311 msg="Discovered GPU libraries: [c:\\Windows\\System32\\nvml.dll C:\\WINDOWS\\system32\\nvml.dll]"
time=2024-02-29T11:22:11.649+08:00 level=INFO source=gpu.go:99 msg="Nvidia GPU detected"
time=2024-02-29T11:22:11.650+08:00 level=INFO source=cpu_common.go:18 msg="CPU does not have vector extensions"
time=2024-02-29T11:22:11.650+08:00 level=WARN source=gpu.go:128 msg="CPU does not have AVX or AVX2, disabling GPU support."
time=2024-02-29T11:22:11.650+08:00 level=INFO source=cpu_common.go:18 msg="CPU does not have vector extensions"
time=2024-02-29T11:22:11.650+08:00 level=WARN source=gpu.go:128 msg="CPU does not have AVX or AVX2, disabling GPU support."
time=2024-02-29T11:22:11.650+08:00 level=INFO source=llm.go:77 msg="GPU not available, falling back to CPU"
Originally created by @mingyue0094 on GitHub (Feb 29, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2825 I can enable GPU using pytorch. But using ollama, the above log is displayed. I would like to ask if it can support GPU. In CPU “does not have AVX or AVX2” ``` time=2024-02-29T11:21:58.722+08:00 level=INFO source=images.go:710 msg="total blobs: 5" time=2024-02-29T11:21:58.752+08:00 level=INFO source=images.go:717 msg="total unused blobs removed: 0" time=2024-02-29T11:21:58.755+08:00 level=INFO source=routes.go:1019 msg="Listening on 127.0.0.1:11434 (version 0.1.27)" time=2024-02-29T11:21:58.755+08:00 level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..." time=2024-02-29T11:21:59.004+08:00 level=INFO source=payload_common.go:146 msg="Dynamic LLM libraries [cuda_v11.3 cpu_avx cpu cpu_avx2]" time=2024-02-29T11:22:11.585+08:00 level=INFO source=gpu.go:94 msg="Detecting GPU type" time=2024-02-29T11:22:11.585+08:00 level=INFO source=gpu.go:265 msg="Searching for GPU management library nvml.dll" time=2024-02-29T11:22:11.627+08:00 level=INFO source=gpu.go:311 msg="Discovered GPU libraries: [c:\\Windows\\System32\\nvml.dll C:\\WINDOWS\\system32\\nvml.dll]" time=2024-02-29T11:22:11.649+08:00 level=INFO source=gpu.go:99 msg="Nvidia GPU detected" time=2024-02-29T11:22:11.650+08:00 level=INFO source=cpu_common.go:18 msg="CPU does not have vector extensions" time=2024-02-29T11:22:11.650+08:00 level=WARN source=gpu.go:128 msg="CPU does not have AVX or AVX2, disabling GPU support." time=2024-02-29T11:22:11.650+08:00 level=INFO source=cpu_common.go:18 msg="CPU does not have vector extensions" time=2024-02-29T11:22:11.650+08:00 level=WARN source=gpu.go:128 msg="CPU does not have AVX or AVX2, disabling GPU support." time=2024-02-29T11:22:11.650+08:00 level=INFO source=llm.go:77 msg="GPU not available, falling back to CPU" ```
Author
Owner

@tylinux commented on GitHub (Feb 29, 2024):

same as https://github.com/ollama/ollama/issues/2524, as https://github.com/ollama/ollama/issues/2187#issuecomment-1913444725 mentioned, GPU support requires the AVX instruction set, check your CPU model.

<!-- gh-comment-id:1970586684 --> @tylinux commented on GitHub (Feb 29, 2024): same as https://github.com/ollama/ollama/issues/2524, as https://github.com/ollama/ollama/issues/2187#issuecomment-1913444725 mentioned, GPU support requires the AVX instruction set, check your CPU model.
Author
Owner

@pdevine commented on GitHub (Mar 1, 2024):

cc @dhiltgen

<!-- gh-comment-id:1972282200 --> @pdevine commented on GitHub (Mar 1, 2024): cc @dhiltgen
Author
Owner

@mingyue0094 commented on GitHub (Mar 1, 2024):

I know, my CPU does not support AVX or AVX2.
图片

<!-- gh-comment-id:1973563250 --> @mingyue0094 commented on GitHub (Mar 1, 2024): I know, my CPU does not support AVX or AVX2. ![图片](https://github.com/ollama/ollama/assets/63558866/1cdceafd-ccdd-446a-a74f-1bbc83452575)
Author
Owner

@dhiltgen commented on GitHub (Mar 1, 2024):

We're tracking this in #2187

<!-- gh-comment-id:1973621852 --> @dhiltgen commented on GitHub (Mar 1, 2024): We're tracking this in #2187
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63755