AIencoder commited on
Commit
9ffd1c7
·
verified ·
1 Parent(s): 85f22a1

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +165 -125
README.md CHANGED
@@ -11,186 +11,223 @@ tags:
11
  - vulkan
12
  viewer: false
13
  ---
14
- [![Model Pulse](https://modelpulse.ifsp.dev/badge/dataset/AIencoder/llama-cpp-wheels.svg)](https://huggingface.co/spaces/tardellirs/model-pulse?dataset=AIencoder/llama-cpp-wheels)
15
  # llama-cpp-python Wheels — the complete collection
16
 
 
 
 
17
  Prebuilt [`llama-cpp-python`](https://github.com/abetlen/llama-cpp-python) wheels, gathered to be the
18
- single most complete place to grab one: **10,000+ wheels** covering **Linux, Windows, and macOS**,
19
- every published version from `0.1.x` to `0.3.x`, Python **3.7 – 3.14**, and **every backend this
20
- project can build** — from plain CPU up through AVX-512/AMX, OpenBLAS, MKL, Vulkan, OpenCL, SYCL,
21
- CLBlast, Metal, and **CUDA 12.1 → 12.9**.
22
 
23
- It combines two things:
24
 
25
  1. **A full mirror of the official upstream wheels** — everything abetlen publishes (`cpu`, `metal`,
26
- `cu121`–`cu124`) across every version and OS.
27
- 2. **Thousands of builds upstream never shipped** — produced here by an automated GitHub Actions
28
- "wheel factory": newer CUDA versions (12.6 / 12.8 / 12.9), every CPU instruction-set tier, and the
29
- OpenBLAS / MKL / Vulkan / OpenCL / SYCL / CLBlast / RPC backends, for the latest releases.
30
 
31
- > **These are self-contained.** CUDA wheels bundle the CUDA runtime, so you only need an NVIDIA
32
- > **driver** — not the full CUDA toolkit — to use them.
33
 
34
  ---
35
 
36
- ## Quick start
37
 
38
- Every wheel is a direct download. Point `pip` at its URL:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- ```bash
41
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/linux/x86_64/cuda12.4/0.3.19/llama_cpp_python-0.3.19+cu124-cp311-cp311-manylinux_2_31_x86_64.whl"
42
  ```
43
 
44
- Browse the folders (below) to find the one matching your OS, CPU, GPU, Python, and version.
 
 
 
 
 
 
45
 
46
  ---
47
 
48
- ## How the collection is organised
49
 
50
- Wheels are nested **`os / arch / backend / version /`**:
 
 
51
 
52
- ```
53
- linux/
54
- x86_64/
55
- cpu/ ← plain CPU, no special instructions (max compatibility)
56
- cpu-avx2-fma-f16c/ ← CPU, AVX2 tier (most modern x86 CPUs)
57
- cpu-avx512-fma-f16c-vnni-vbmi-bf16-amx/ ← newest Intel/AMD server CPUs
58
- openblas-avx2-fma-f16c/
59
- mkl-avx2-fma-f16c/
60
- vulkan/ opencl/ clblast/ sycl/ rpc/
61
- cuda12.4/ cuda12.6/ cuda12.8/ cuda12.9/
62
- 0.3.19/
63
- llama_cpp_python-0.3.19+cu124-cp311-cp311-manylinux_2_31_x86_64.whl
64
- …one per Python version…
65
- aarch64/ … i686/ …
66
- windows/
67
- x86_64/
68
- cpu/ cuda12.4/ cuda12.6/ cuda12.8/ (+ upstream-mirrored variants)
69
- 0.3.19/ …
70
- macos/
71
- arm64/ metal/ … (Apple Silicon)
72
- x86_64/ metal/ … (Intel Macs)
73
  ```
74
 
75
- **Why this order:** `os` is the hardest constraint (and a clean 3-way split at the root); `arch`
76
- keeps `arm64`/`aarch64`/`i686` wheels from being mixed in with `x86_64`; `backend` is the capability
77
- you actually choose; `version` sits at the leaf, which then holds just the per-Python builds for that
78
- exact combination. Every leaf folder stays tiny, which also keeps the repo under HuggingFace's hard
79
- limit of 10,000 files per directory.
80
 
81
- *(Some early wheels may still sit in the repository root during migration — both are valid; use the
82
- file browser or search.)*
 
83
 
84
  ---
85
 
86
  ## Choosing the right wheel
87
 
88
- You need to match **four** things. Work down the folder tree:
89
 
90
  ### 1. OS + architecture
91
- `linux` (manylinux/musllinux), `windows`, or `macos`; then your CPU architecture — `x86_64` (most
92
- desktops/servers, incl. Windows and Intel Macs), `arm64` (Apple Silicon), or `aarch64` (ARM Linux).
 
93
 
94
- ### 2. Python version
95
- The `cpXY` tag in the filename is your Python: `cp311` = CPython 3.11. Check with `python --version`.
96
- Pick the wheel whose `cpXY` matches exactly.
97
 
98
  ### 3. Backend — the important choice
99
 
100
- **CPU (no GPU):** pick the highest instruction tier your CPU supports. Going too high causes an
101
- `Illegal instruction` crash; too low just runs slower.
102
 
103
- | Folder | Needs | Who it's for |
104
- |--------|-------|--------------|
105
- | `cpu` | nothing | oldest CPUs / max compatibility / VMs |
106
- | `cpu-avx` , `cpu-avx-f16c` | AVX | pre-2013 CPUs |
107
- | `cpu-avx2-fma-f16c` | AVX2 | **most modern desktops/laptops** |
108
- | `cpu-avx2-fma-f16c-avxvnni` | AVX2 + VNNI | Alder Lake+ consumer Intel |
109
- | `cpu-avx512-fma-f16c` | AVX-512 | HEDT / server |
110
- | `cpu-avx512-…-vnni-vbmi` , `…-bf16-amx` | AVX-512 VNNI/VBMI/BF16/AMX | Sapphire Rapids & newer servers |
111
 
112
- Check your CPU: Linux `lscpu | grep -o 'avx[^ ]*'` · or `pip install py-cpuinfo && python -c "import cpuinfo,pprint; pprint.pp(cpuinfo.get_cpu_info()['flags'])"` on any OS.
113
 
114
- **NVIDIA GPU:** use a `cudaXX.Y` folder. Run `nvidia-smi` — the top-right "CUDA Version: 12.x" is the
115
- **maximum** your driver supports. Pick a folder with that minor version **or lower** (e.g. driver shows
116
- 12.6 → `cuda12.4` or `cuda12.6` both work; CUDA 12.x is forward-compatible within the 12 series). You
117
- do **not** need the CUDA toolkit installed — only the driver — because the runtime is bundled.
118
 
119
- **Apple GPU:** `metal` (Apple Silicon and Intel Macs with a Metal GPU).
120
 
121
- **Other accelerators / BLAS:**
122
 
123
- | Folder | What it is |
124
- |--------|-----------|
125
- | `openblas-*` | OpenBLAS-accelerated CPU BLAS (faster prompt processing on CPU) |
126
- | `mkl-*` | Intel MKL BLAS (fastest on Intel CPUs) |
127
  | `vulkan` | cross-vendor GPU (AMD / Intel / NVIDIA via Vulkan) |
128
  | `opencl` / `clblast` | OpenCL GPU acceleration (incl. older/mobile GPUs) |
129
  | `sycl` | Intel GPUs (oneAPI / SYCL) |
130
  | `rpc` | distributed inference across machines |
131
 
132
  ### 4. Version
133
- `0.3.19` is the newest release built here; older ones are kept for reproducibility. Newer is usually
134
- better unless you're pinning for compatibility.
135
 
136
  ---
137
 
138
  ## Filename anatomy
139
 
140
  ```
141
- llama_cpp_python-0.3.19+cu124-cp311-cp311-manylinux_2_31_x86_64.whl
142
- │ │ │ │ └── platform (manylinux… / win_amd64 / macosx…)
143
- │ │ └─────┴──────── Python (cp311 = CPython 3.11)
144
- │ └── backend tag (+cu124, +basic_avx2_fma_f16c, +openblas_…, +vulkan; absent = base build)
145
  └── llama-cpp-python version
146
  ```
147
 
148
- The folder name normalises that backend tag into something readable (`cu124` → `cuda12.4`,
149
  `basic_avx512_fma_f16c_vnni_vbmi` → `cpu-avx512-fma-f16c-vnni-vbmi`).
150
 
151
  ---
152
 
153
- ## More install examples
154
-
155
- ```bash
156
- # Linux, modern CPU, no GPU (AVX2):
157
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/linux/x86_64/cpu-avx2-fma-f16c/0.3.19/llama_cpp_python-0.3.19+basic_avx2_fma_f16c-cp311-cp311-manylinux_2_31_x86_64.whl"
158
 
159
- # Windows, NVIDIA GPU, CUDA 12.6, Python 3.11:
160
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/windows/x86_64/cuda12.6/0.3.19/llama_cpp_python-0.3.19+cu126-cp311-cp311-win_amd64.whl"
161
 
162
- # macOS Apple Silicon, Metal, Python 3.12:
163
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/macos/arm64/metal/0.3.4/llama_cpp_python-0.3.4-cp312-cp312-macosx_11_0_arm64.whl"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  ```
165
 
166
- ### Programmatic download
 
 
 
 
 
 
 
 
 
 
 
167
 
168
  ```python
169
- from huggingface_hub import hf_hub_download
170
- path = hf_hub_download(
171
- repo_id="AIencoder/llama-cpp-wheels", repo_type="dataset",
172
- filename="linux/x86_64/cuda12.4/0.3.19/llama_cpp_python-0.3.19+cu124-cp311-cp311-manylinux_2_31_x86_64.whl",
173
- )
174
- # then: pip install <path>
175
  ```
176
 
177
- List everything with `HfApi().list_repo_files("AIencoder/llama-cpp-wheels", repo_type="dataset")`.
178
-
179
  ---
180
 
181
  ## Coverage
182
 
183
- | | Linux (`x86_64`, plus some `aarch64`/`i686`) | Windows (`x86_64`) | macOS (`arm64` + `x86_64`) |
184
  |---|---|---|---|
185
- | **CPU** | plain + every AVX/AVX2/AVX-512 tier up to VNNI·VBMI·BF16·AMX | upstream mirror | upstream mirror |
186
  | **BLAS** | OpenBLAS, MKL (every tier) | upstream mirror | — |
187
- | **GPU** | CUDA 12.4 / 12.6 / 12.8 / 12.9, Vulkan, OpenCL, CLBlast, SYCL | CUDA 12.4 / 12.6 / 12.8 | Metal |
188
  | **Other** | RPC | — | — |
189
 
190
- - **Python:** cp38 – cp314 for factory builds; the upstream mirror goes back to cp37 / PyPy on old versions.
191
- - **Versions:** factory builds target 0.3.16 – 0.3.19; the mirror covers the full history (0.1.x → 0.3.x).
192
- - **Totals:** 10,000+ wheels and growing. The upstream mirror targets all ~6,800 official wheels; the
193
- factory adds several thousand more that upstream never produced.
 
194
 
195
  ---
196
 
@@ -198,31 +235,34 @@ List everything with `HfApi().list_repo_files("AIencoder/llama-cpp-wheels", repo
198
 
199
  The non-mirror wheels are compiled automatically by a GitHub Actions "factory":
200
 
201
- - **No GPU required to build** — `nvcc` cross-compiles the CUDA kernels on ordinary CPU runners.
 
202
  - Built from the official `abetlen/llama-cpp-python` source at the exact tagged version.
203
- - **Self-contained:** Linux wheels are `auditwheel`-repaired; Windows CUDA wheels bundle the CUDA
204
- runtime DLLs (`cudart`, `cublas`, `cublasLt`) next to `llama.dll`. You need only the GPU driver.
205
- - Each wheel is installed and structurally verified (dependency tree checked) before upload.
206
- - The build queue is **derived** by diffing this dataset against the target matrix, so the collection
207
- fills in and stays current on its own.
 
208
 
209
  ---
210
 
211
- ## Caveats & troubleshooting
212
-
213
- - **`Could not find module 'llama.dll' (or one of its dependencies)` (Windows CUDA):** you don't have an
214
- NVIDIA driver installed, or it's too old for the CUDA minor version you picked. Install/update the
215
- driver, or drop to a lower `cudaXX.Y` folder.
216
- - **`Illegal instruction` on import (CPU):** the wheel's instruction tier is higher than your CPU
217
- supports. Use a lower `cpu-…` folder (when unsure, plain `cpu`).
218
- - **CUDA wheels are large** (~0.6 – 1.3 GB): expected — they bundle the runtime and the fat multi-arch
219
- CUDA kernels, which is exactly what lets them run without a separate CUDA install.
220
- - **GPU wheels can't be import-tested without a GPU** — that's normal; the build verifies structure, not
221
- a live GPU load.
 
222
  - Community builds, provided **as-is** under the same **MIT** license as llama-cpp-python.
223
 
224
  ---
225
 
226
  *Maintained by [AIencoder](https://huggingface.co/AIencoder). Wheels are builds of
227
- [abetlen/llama-cpp-python](https://github.com/abetlen/llama-cpp-python); all credit for llama-cpp-python
228
- and llama.cpp to their authors.*
 
11
  - vulkan
12
  viewer: false
13
  ---
14
+
15
  # llama-cpp-python Wheels — the complete collection
16
 
17
+ [![Model Pulse](https://modelpulse.ifsp.dev/badge/dataset/AIencoder/llama-cpp-wheels.svg)](https://huggingface.co/spaces/tardellirs/model-pulse?dataset=AIencoder/llama-cpp-wheels)
18
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
19
+
20
  Prebuilt [`llama-cpp-python`](https://github.com/abetlen/llama-cpp-python) wheels, gathered to be the
21
+ single most complete place to grab one: **over 11,400 wheels and growing**, covering **Linux, Windows,
22
+ and macOS**, every published release from `0.1.x` through `0.3.36`, and **every backend the project can
23
+ build** — plain CPU up through AVX-512 / AMX, OpenBLAS, MKL, Vulkan, OpenCL, CLBlast, SYCL, RPC, Metal,
24
+ and **CUDA 12.1 → 12.9**.
25
 
26
+ It is two things in one repo:
27
 
28
  1. **A full mirror of the official upstream wheels** — everything abetlen publishes (`cpu`, `metal`,
29
+ and `cu121`–`cu125`), across every version and OS, back to the early `0.1.x` releases.
30
+ 2. **Thousands of builds upstream never shipped** — produced here by an automated GitHub Actions "wheel
31
+ factory": newer CUDA toolkits (**12.6 / 12.8 / 12.9**), every CPU instruction-set tier, and the
32
+ OpenBLAS / MKL / Vulkan / OpenCL / CLBlast / SYCL / RPC backends, built for the **whole 0.3.x series**.
33
 
34
+ > **Self-contained.** CUDA wheels bundle the CUDA runtime — you only need an NVIDIA **driver** installed,
35
+ > not the full CUDA toolkit.
36
 
37
  ---
38
 
39
+ ## At a glance
40
 
41
+ | | |
42
+ |---|---|
43
+ | **Wheels** | 11,400+ and climbing |
44
+ | **OSes** | Linux (`manylinux`/`musllinux`), Windows (`win_amd64`), macOS (`arm64` + `x86_64`) |
45
+ | **Versions** | full history `0.1.x` → `0.3.36` |
46
+ | **Python** | `cp37`–`cp314` + PyPy on older releases; a single `py3-none` wheel per platform from `0.3.20` on (see below) |
47
+ | **CPU** | `basic` → `avx` → `avx2` → `avx512` → `…vnni/vbmi/bf16/amx`, plus OpenBLAS & MKL at every tier |
48
+ | **GPU** | CUDA **12.1 – 12.9**, Vulkan, OpenCL, CLBlast, SYCL, Metal |
49
+ | **License** | MIT (same as llama-cpp-python) |
50
+
51
+ ---
52
+
53
+ ## ⚠️ One thing that trips people up: `py3-none` wheels (v0.3.20+)
54
+
55
+ Starting at **v0.3.20**, llama-cpp-python's bindings load the compiled library through `ctypes` — there is
56
+ no CPython ABI to vary — so upstream (and this repo) ship **one version-agnostic wheel per platform**
57
+ instead of one per Python version. That wheel is tagged **`py3-none`** and works on **any** CPython 3.x
58
+ (and PyPy):
59
 
60
+ ```
61
+ llama_cpp_python-0.3.36+cu124_basic-py3-none-manylinux_2_31_x86_64.whl ← one wheel, every Python
62
  ```
63
 
64
+ For releases **≤ 0.3.19** you still pick the wheel whose `cpXY` tag matches your Python:
65
+
66
+ ```
67
+ llama_cpp_python-0.3.19+cu124-cp311-cp311-manylinux_2_31_x86_64.whl ← cp311 = CPython 3.11
68
+ ```
69
+
70
+ So: **new versions → ignore Python, just match OS + backend. Old versions → also match `cpXY`.**
71
 
72
  ---
73
 
74
+ ## Quick start
75
 
76
+ Every wheel is a plain file you can `pip install` from its URL. The most robust way to grab the right one
77
+ (works no matter how the folders are arranged) is to let `huggingface_hub` find it by a substring and
78
+ install it:
79
 
80
+ ```python
81
+ # pip install huggingface_hub
82
+ from huggingface_hub import HfApi, hf_hub_download
83
+ import subprocess, sys
84
+
85
+ REPO = "AIencoder/llama-cpp-wheels"
86
+ WANT = "0.3.36+cu124" # version + backend you want
87
+ PLAT = "manylinux" # "manylinux" | "win_amd64" | "macosx"
88
+
89
+ f = next(p for p in HfApi().list_repo_files(REPO, repo_type="dataset")
90
+ if p.endswith(".whl") and WANT in p and PLAT in p)
91
+ whl = hf_hub_download(REPO, f, repo_type="dataset")
92
+ subprocess.run([sys.executable, "-m", "pip", "install", whl])
 
 
 
 
 
 
 
 
93
  ```
94
 
95
+ Prefer a direct `pip install`? Open the **Files** tab, find your wheel, copy its download link, and:
 
 
 
 
96
 
97
+ ```bash
98
+ pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/<path-to>/<wheel>.whl"
99
+ ```
100
 
101
  ---
102
 
103
  ## Choosing the right wheel
104
 
105
+ Match **four** things — OS, (Python), backend, version:
106
 
107
  ### 1. OS + architecture
108
+ `linux` (manylinux/musllinux), `windows` (`win_amd64`), or `macos`; then your CPU architecture —
109
+ `x86_64` (most desktops/servers, incl. Windows and Intel Macs), `arm64` (Apple Silicon), or
110
+ `aarch64` (ARM Linux).
111
 
112
+ ### 2. Python — only for releases ≤ 0.3.19
113
+ Releases `0.3.20+` are `py3-none` (one wheel, any Python — skip this step). For older releases, match the
114
+ `cpXY` tag to your interpreter: `cp311` = CPython 3.11 (`python --version`).
115
 
116
  ### 3. Backend — the important choice
117
 
118
+ **CPU (no GPU).** Pick the highest instruction tier your CPU supports. Too high → `Illegal instruction`
119
+ on import; too low → just slower.
120
 
121
+ | Backend tag | Needs | Who it's for |
122
+ |---|---|---|
123
+ | `basic` | nothing | oldest CPUs / VMs / max compatibility |
124
+ | `basic_avx`, `basic_avx_f16c` | AVX | pre-2013 CPUs |
125
+ | `basic_avx2_fma_f16c` | AVX2 | **most modern desktops/laptops** |
126
+ | `basic_avx2_fma_f16c_avxvnni` | AVX2 + VNNI | Alder Lake+ consumer Intel |
127
+ | `basic_avx512_fma_f16c` | AVX-512 | HEDT / server |
128
+ | `…_avx512_fma_f16c_vnni_vbmi`, `…_bf16_amx` | AVX-512 VNNI/VBMI/BF16/AMX | Sapphire Rapids & newer servers |
129
 
130
+ Check your CPU: Linux `lscpu | grep -o 'avx[^ ]*'`; any OS `pip install py-cpuinfo && python -c "import cpuinfo;print(cpuinfo.get_cpu_info()['flags'])"`.
131
 
132
+ **NVIDIA GPU.** Use a `cu1XY` wheel. Run `nvidia-smi`; the "CUDA Version: 12.x" shown top-right is the
133
+ **maximum** your driver supports — pick that minor **or lower** (CUDA 12.x is forward-compatible within the
134
+ 12 series, so a 12.6 driver runs `cu121`…`cu126`). You need only the **driver**, not the toolkit.
 
135
 
136
+ **Apple GPU.** `metal` (Apple Silicon and Intel Macs with a Metal GPU).
137
 
138
+ **Other accelerators / BLAS.**
139
 
140
+ | Tag | What it is |
141
+ |---|---|
142
+ | `openblas_*` | OpenBLAS CPU BLAS (faster prompt processing) |
143
+ | `mkl_*` | Intel MKL BLAS (fastest on Intel CPUs) |
144
  | `vulkan` | cross-vendor GPU (AMD / Intel / NVIDIA via Vulkan) |
145
  | `opencl` / `clblast` | OpenCL GPU acceleration (incl. older/mobile GPUs) |
146
  | `sycl` | Intel GPUs (oneAPI / SYCL) |
147
  | `rpc` | distributed inference across machines |
148
 
149
  ### 4. Version
150
+ `0.3.36` is the newest built here; everything older is kept for reproducibility. Newer is usually better
151
+ unless you're pinning for compatibility.
152
 
153
  ---
154
 
155
  ## Filename anatomy
156
 
157
  ```
158
+ llama_cpp_python-0.3.36+cu124_basic-py3-none-manylinux_2_31_x86_64.whl
159
+ │ │ │ └── platform (manylinux… / win_amd64 / macosx…)
160
+ │ │ └── Python: py3-none (any Python, v0.3.20+) or cpXY-cpXY (≤0.3.19)
161
+ │ └── backend tag (+cu124_basic, +basic_avx2_fma_f16c, +openblas_…, +vulkan, +metal; absent = plain CPU/upstream base)
162
  └── llama-cpp-python version
163
  ```
164
 
165
+ The backend tag is normalised into the readable folder names below (`cu124` → `cuda12.4`,
166
  `basic_avx512_fma_f16c_vnni_vbmi` → `cpu-avx512-fma-f16c-vnni-vbmi`).
167
 
168
  ---
169
 
170
+ ## How the collection is organised
 
 
 
 
171
 
172
+ Wheels are being filed under **`os / arch / backend / version /`**:
 
173
 
174
+ ```
175
+ linux/
176
+ x86_64/
177
+ cpu/ ← plain CPU (max compatibility)
178
+ cpu-avx2-fma-f16c/ ← AVX2 tier (most modern x86)
179
+ cpu-avx512-fma-f16c-vnni-vbmi-bf16-amx/ ← newest Intel/AMD servers
180
+ openblas-avx2-fma-f16c/ mkl-avx2-fma-f16c/
181
+ vulkan/ opencl/ clblast/ sycl/ rpc/
182
+ cuda12.4/ cuda12.6/ cuda12.8/ cuda12.9/
183
+ 0.3.36/
184
+ llama_cpp_python-0.3.36+cu124_basic-py3-none-manylinux_2_31_x86_64.whl
185
+ …+cu124_avx2_fma_f16c…, …+cu124_avx512_fma_f16c… (CPU baseline is in the filename)
186
+ aarch64/ … i686/ …
187
+ windows/
188
+ x86_64/
189
+ cpu/ cuda12.4/ cuda12.6/ cuda12.8/ (+ upstream-mirrored variants)
190
+ 0.3.36/ …
191
+ macos/
192
+ arm64/ metal/ … (Apple Silicon)
193
+ x86_64/ metal/ … (Intel Macs)
194
  ```
195
 
196
+ **Why this order:** `os` is the hardest constraint (a clean 3-way split); `arch` keeps `arm64`/`aarch64`/
197
+ `i686` from mixing with `x86_64`; `backend` is the capability you actually choose; `version` is the leaf,
198
+ so each leaf folder holds only a handful of wheels and never approaches HuggingFace's 10,000-files-per-dir
199
+ limit. CPU wheels split by instruction tier (their primary axis); CUDA wheels group by toolkit version
200
+ (their primary axis) with the CPU baseline carried in the filename.
201
+
202
+ > **Migration in progress.** The reorganisation into this tree is still running. Many wheels (especially
203
+ > upstream-mirrored and `≤0.3.19` builds) currently sit at the repository **root**, and the newest builds
204
+ > under a `version/` folder. Everything is valid and installable wherever it sits — the `huggingface_hub`
205
+ > snippet above and the **Files** tab search find a wheel regardless of its folder.
206
+
207
+ ### Programmatic listing
208
 
209
  ```python
210
+ from huggingface_hub import HfApi
211
+ files = HfApi().list_repo_files("AIencoder/llama-cpp-wheels", repo_type="dataset")
212
+ cu124 = [f for f in files if f.endswith(".whl") and "+cu124" in f]
 
 
 
213
  ```
214
 
 
 
215
  ---
216
 
217
  ## Coverage
218
 
219
+ | | Linux (`x86_64`, some `aarch64`/`i686`) | Windows (`x86_64`) | macOS (`arm64` + `x86_64`) |
220
  |---|---|---|---|
221
+ | **CPU** | plain + every AVX/AVX2/AVX-512 tier to VNNI·VBMI·BF16·AMX | upstream mirror | upstream mirror |
222
  | **BLAS** | OpenBLAS, MKL (every tier) | upstream mirror | — |
223
+ | **GPU** | CUDA 12.4/12.6/12.8/12.9, Vulkan, OpenCL, CLBlast, SYCL | CUDA 12.4/12.6/12.8 | Metal |
224
  | **Other** | RPC | — | — |
225
 
226
+ - **Python:** `py3-none` (one wheel, any Python) for `0.3.20+`; `cp38`–`cp314` for the factory's `≤0.3.19`
227
+ builds; the upstream mirror reaches back to `cp37` / PyPy on old releases.
228
+ - **Versions:** the factory builds the **entire `0.3.0`–`0.3.36` series**; the mirror covers the full
229
+ history (`0.1.x` → `0.3.x`).
230
+ - **CUDA span:** `cu121`–`cu125` from the upstream mirror, plus `cu124`/`cu126`/`cu128`/`cu129` built here.
231
 
232
  ---
233
 
 
235
 
236
  The non-mirror wheels are compiled automatically by a GitHub Actions "factory":
237
 
238
+ - **No GPU required to build** — `nvcc` cross-compiles the CUDA kernels on ordinary CPU runners, for GPU
239
+ architectures `sm_50`–`sm_90` (Maxwell through Hopper).
240
  - Built from the official `abetlen/llama-cpp-python` source at the exact tagged version.
241
+ - **Self-contained:** Linux wheels are `auditwheel`-repaired; Windows CUDA wheels bundle the CUDA runtime
242
+ DLLs next to `llama.dll`. You need only the GPU driver.
243
+ - Each wheel is installed and its import is exercised (with the CUDA driver stub, so a GPU-less runner still
244
+ loads it) before upload — catching missing runtime deps and bad symbols, not just a successful compile.
245
+ - The build queue is **derived** by diffing this dataset against the target matrix every run, so the
246
+ collection fills in and stays current on its own.
247
 
248
  ---
249
 
250
+ ## Troubleshooting
251
+
252
+ - **`Could not find module 'llama.dll' (or one of its dependencies)` (Windows CUDA)** — no NVIDIA driver, or
253
+ it's too old for the CUDA minor you picked. Install/update the driver, or drop to a lower `cu1XY` wheel.
254
+ - **`libcuda.so.1: cannot open shared object file` (Linux CUDA)** — same thing: install the NVIDIA driver
255
+ (the wheel bundles the *runtime* but never the driver), or pick a lower CUDA minor.
256
+ - **`Illegal instruction` on import (CPU)** — the wheel's instruction tier is above what your CPU supports.
257
+ Use a lower `cpu-…` tier (when unsure, plain `cpu`).
258
+ - **CUDA wheels are large (~0.5 – 3 GB)** — expected: they bundle the runtime and fat multi-arch kernels,
259
+ which is exactly what lets them run with no separate CUDA install.
260
+ - **GPU wheels can't be import-tested on a GPU-less machine beyond structure** — normal; a real GPU load is
261
+ only exercised at model-load time on your hardware.
262
  - Community builds, provided **as-is** under the same **MIT** license as llama-cpp-python.
263
 
264
  ---
265
 
266
  *Maintained by [AIencoder](https://huggingface.co/AIencoder). Wheels are builds of
267
+ [abetlen/llama-cpp-python](https://github.com/abetlen/llama-cpp-python); all credit for llama-cpp-python and
268
+ llama.cpp to their authors.*