Update dataset card
Browse files
README.md
CHANGED
|
@@ -11,186 +11,223 @@ tags:
|
|
| 11 |
- vulkan
|
| 12 |
viewer: false
|
| 13 |
---
|
| 14 |
-
|
| 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: **
|
| 19 |
-
every published
|
| 20 |
-
|
| 21 |
-
|
| 22 |
|
| 23 |
-
It
|
| 24 |
|
| 25 |
1. **A full mirror of the official upstream wheels** — everything abetlen publishes (`cpu`, `metal`,
|
| 26 |
-
`cu121`–`
|
| 27 |
-
2. **Thousands of builds upstream never shipped** — produced here by an automated GitHub Actions
|
| 28 |
-
|
| 29 |
-
OpenBLAS / MKL / Vulkan / OpenCL /
|
| 30 |
|
| 31 |
-
> **
|
| 32 |
-
>
|
| 33 |
|
| 34 |
---
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
```
|
| 41 |
-
|
| 42 |
```
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
---
|
| 47 |
|
| 48 |
-
##
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 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 |
-
|
| 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 |
-
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
---
|
| 85 |
|
| 86 |
## Choosing the right wheel
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
### 1. OS + architecture
|
| 91 |
-
`linux` (manylinux/musllinux), `windows`, or `macos`; then your CPU architecture —
|
| 92 |
-
desktops/servers, incl. Windows and Intel Macs), `arm64` (Apple Silicon), or
|
|
|
|
| 93 |
|
| 94 |
-
### 2. Python
|
| 95 |
-
|
| 96 |
-
|
| 97 |
|
| 98 |
### 3. Backend — the important choice
|
| 99 |
|
| 100 |
-
**CPU (no GPU)
|
| 101 |
-
|
| 102 |
|
| 103 |
-
|
|
| 104 |
-
|---
|
| 105 |
-
| `
|
| 106 |
-
| `
|
| 107 |
-
| `
|
| 108 |
-
| `
|
| 109 |
-
| `
|
| 110 |
-
| `
|
| 111 |
|
| 112 |
-
Check your CPU: Linux `lscpu | grep -o 'avx[^ ]*'`
|
| 113 |
|
| 114 |
-
**NVIDIA GPU
|
| 115 |
-
**maximum** your driver supports
|
| 116 |
-
12
|
| 117 |
-
do **not** need the CUDA toolkit installed — only the driver — because the runtime is bundled.
|
| 118 |
|
| 119 |
-
**Apple GPU
|
| 120 |
|
| 121 |
-
**Other accelerators / BLAS
|
| 122 |
|
| 123 |
-
|
|
| 124 |
-
|---
|
| 125 |
-
| `
|
| 126 |
-
| `
|
| 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.
|
| 134 |
-
|
| 135 |
|
| 136 |
---
|
| 137 |
|
| 138 |
## Filename anatomy
|
| 139 |
|
| 140 |
```
|
| 141 |
-
llama_cpp_python-0.3.
|
| 142 |
-
│ │
|
| 143 |
-
│ │
|
| 144 |
-
│ └── backend tag
|
| 145 |
└── llama-cpp-python version
|
| 146 |
```
|
| 147 |
|
| 148 |
-
The
|
| 149 |
`basic_avx512_fma_f16c_vnni_vbmi` → `cpu-avx512-fma-f16c-vnni-vbmi`).
|
| 150 |
|
| 151 |
---
|
| 152 |
|
| 153 |
-
##
|
| 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 |
-
|
| 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 |
-
|
| 163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
```
|
| 165 |
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
```python
|
| 169 |
-
from huggingface_hub import
|
| 170 |
-
|
| 171 |
-
|
| 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`,
|
| 184 |
|---|---|---|---|
|
| 185 |
-
| **CPU** | plain + every AVX/AVX2/AVX-512 tier
|
| 186 |
| **BLAS** | OpenBLAS, MKL (every tier) | upstream mirror | — |
|
| 187 |
-
| **GPU** | CUDA 12.4
|
| 188 |
| **Other** | RPC | — | — |
|
| 189 |
|
| 190 |
-
- **Python:**
|
| 191 |
-
|
| 192 |
-
- **
|
| 193 |
-
|
|
|
|
| 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 |
-
|
| 205 |
-
- Each wheel is installed and
|
| 206 |
-
|
| 207 |
-
|
|
|
|
| 208 |
|
| 209 |
---
|
| 210 |
|
| 211 |
-
##
|
| 212 |
-
|
| 213 |
-
- **`Could not find module 'llama.dll' (or one of its dependencies)` (Windows CUDA)
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
|
|
|
| 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 |
-
|
|
|
|
| 11 |
- vulkan
|
| 12 |
viewer: false
|
| 13 |
---
|
| 14 |
+
|
| 15 |
# llama-cpp-python Wheels — the complete collection
|
| 16 |
|
| 17 |
+
[](https://huggingface.co/spaces/tardellirs/model-pulse?dataset=AIencoder/llama-cpp-wheels)
|
| 18 |
+
[](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.*
|