AIencoder commited on
Commit
a309759
·
verified ·
1 Parent(s): 16a2a08

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -154
README.md CHANGED
@@ -1,189 +1,95 @@
1
  ---
2
  license: mit
3
- task_categories:
4
- - text-generation
5
- language:
6
- - en
7
  tags:
8
- - code
9
- - llama-cpp
10
- - llama-cpp-python
11
- - wheels
12
- - pre-built
13
- - binary
14
- - linux
15
- - windows
16
- - macos
17
- pretty_name: llama-cpp-python Pre-Built Wheels
18
- size_categories:
19
- - 1K<n<10K
20
  ---
21
- If you like this please consider liking and donating (https://buymeacoffee.com/aiencoder)
22
 
23
- # 🏭 llama-cpp-python Mega-Factory Wheels
24
 
25
- > **"Stop waiting for `pip` to compile. Just install and run."**
 
 
26
 
27
- The most complete collection of pre-built `llama-cpp-python` wheels in existence — **8,333 wheels** across every platform, Python version, backend, and CPU optimization level.
28
 
29
- No more `cmake`, `gcc`, or compilation hell. No more waiting 10 minutes for a build that might fail. Just find your wheel and `pip install` it directly.
 
 
 
 
30
 
31
- ---
32
-
33
- ## 🚀 Why These Wheels?
34
-
35
- Standard wheels target the "lowest common denominator" to avoid crashes on old hardware. This collection goes further — the manylinux wheels are built using a massive **Everything Preset** targeting specific CPU instruction sets, maximizing your **Tokens per Second (T/s)**.
36
 
37
- - **Zero Dependencies:** No `cmake`, `gcc`, or `nvcc` required on your target machine.
38
- - **Every Platform:** Linux (manylinux, aarch64, i686, RISC-V), Windows (amd64, 32-bit), macOS (Intel + Apple Silicon).
39
- - **Server-Grade Power:** Optimized builds for `Sapphire Rapids`, `Ice Lake`, `Alder Lake`, `Haswell`, and more.
40
- - **Full Backend Support:** `OpenBLAS`, `MKL`, `Vulkan`, `CLBlast`, `OpenCL`, `RPC`, and plain CPU builds.
41
- - **Cutting Edge:** Python `3.8` through experimental `3.14`, plus PyPy `pp38`–`pp310`.
42
- - **GPU Too:** CUDA wheels (cu121–cu124) and macOS Metal wheels included.
43
-
44
- ---
45
 
46
- ## 📊 Collection Stats
47
-
48
- | Platform | Wheels |
49
- |:---|---:|
50
- | 🐧 Linux x86_64 (manylinux) | 4,940 |
51
- | 🍎 macOS Intel (x86\_64) | 1,040 |
52
- | 🪟 Windows (amd64) | 1,010 |
53
- | 🪟 Windows (32-bit) | 634 |
54
- | 🍎 macOS Apple Silicon (arm64) | 289 |
55
- | 🐧 Linux i686 | 214 |
56
- | 🐧 Linux aarch64 | 120 |
57
- | 🐧 Linux x86\_64 (plain) | 81 |
58
- | 🐧 Linux RISC-V | 5 |
59
- | **Total** | **8,333** |
60
-
61
- The manylinux builds alone cover **3,600+ combinations** across versions, backends, Python versions, and CPU profiles.
62
-
63
- ---
64
-
65
- ## 🚀 How to Install
66
-
67
- ### Quick Install
68
-
69
- Find your wheel filename (see naming convention below), then:
70
 
71
  ```bash
72
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/YOUR_WHEEL_NAME.whl"
73
  ```
74
 
75
- ### Common Examples
76
 
77
  ```bash
78
- # Linux x86_64, Python 3.11, OpenBLAS, Haswell CPU (most common Linux setup)
79
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18+openblas_haswell-cp311-cp311-manylinux_2_31_x86_64.whl"
80
-
81
- # Linux x86_64, Python 3.12, Basic CPU (maximum compatibility)
82
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18+basic_basic-cp312-cp312-manylinux_2_31_x86_64.whl"
83
-
84
- # Windows, Python 3.11
85
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18-cp311-cp311-win_amd64.whl"
86
-
87
- # macOS Apple Silicon, Python 3.12
88
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18-cp312-cp312-macosx_11_0_arm64.whl"
89
-
90
- # macOS Intel, Python 3.11
91
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18-cp311-cp311-macosx_10_9_x86_64.whl"
92
-
93
- # Linux ARM64 (Raspberry Pi, AWS Graviton), Python 3.11
94
- pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18-cp311-cp311-linux_aarch64.whl"
95
  ```
96
 
97
- ---
98
-
99
- ## 📁 Wheel Naming Convention
100
-
101
- ### manylinux wheels (custom-built)
102
 
103
  ```
104
- llama_cpp_python-{version}+{backend}_{profile}-{pytag}-{pytag}-{platform}.whl
 
 
 
 
105
  ```
106
 
107
- **Versions covered:** `0.3.0` through `0.3.18+`
108
-
109
- **Backends:**
110
-
111
- | Backend | Description |
112
- |:---|:---|
113
- | `openblas` | OpenBLAS BLAS acceleration — best general-purpose CPU performance |
114
- | `mkl` | Intel MKL acceleration — best on Intel CPUs |
115
- | `basic` | No BLAS, maximum compatibility |
116
- | `vulkan` | Vulkan GPU backend |
117
- | `clblast` | CLBlast OpenCL GPU backend |
118
- | `opencl` | Generic OpenCL GPU backend |
119
- | `rpc` | Distributed inference over network |
120
-
121
- **CPU Profiles:**
122
-
123
- | Profile | Instruction Sets | Era | Notes |
124
- |:---|:---|:---|:---|
125
- | `basic` | x86-64 baseline | Any | Maximum compatibility |
126
- | `sse42` | SSE 4.2 | 2008+ | Nehalem |
127
- | `sandybridge` | AVX | 2011+ | |
128
- | `ivybridge` | AVX + F16C | 2012+ | |
129
- | `haswell` | AVX2 + FMA + BMI2 | 2013+ | **Most common** |
130
- | `skylakex` | AVX-512 | 2017+ | |
131
- | `icelake` | AVX-512 + VNNI + VBMI | 2019+ | |
132
- | `alderlake` | AVX-VNNI | 2021+ | |
133
- | `sapphirerapids` | AVX-512 BF16 + AMX | 2023+ | Highest performance |
134
-
135
- **Python tags:** `cp38`, `cp39`, `cp310`, `cp311`, `cp312`, `cp313`, `cp314`, `pp38`, `pp39`, `pp310`
136
 
137
- **Platform:** `manylinux_2_31_x86_64` (glibc 2.31+, compatible with Ubuntu 20.04+, Debian 11+)
138
 
139
- ### Windows / macOS / Linux ARM wheels (from abetlen)
 
 
 
 
140
 
141
- ```
142
- llama_cpp_python-{version}-{pytag}-{pytag}-{platform}.whl
143
- ```
144
-
145
- These are the official pre-built wheels from the upstream maintainer, covering versions `0.2.82` through `0.3.18+`.
146
-
147
- ---
148
-
149
- ## 🔍 How to Find Your Wheel
150
 
151
- 1. **Identify your Python version:** `python --version` → e.g. `3.11` → tag `cp311`
152
- 2. **Identify your platform:**
153
- - Linux x86\_64 → `manylinux_2_31_x86_64`
154
- - Windows 64-bit → `win_amd64`
155
- - macOS Apple Silicon → `macosx_11_0_arm64`
156
- - macOS Intel → `macosx_10_9_x86_64`
157
- 3. **Pick a backend** (manylinux only): `openblas` for most use cases
158
- 4. **Pick a CPU profile** (manylinux only): `haswell` works on virtually all modern CPUs
159
- 5. **Browse the files** in this repo or construct the filename directly
160
 
161
- ---
 
 
162
 
163
- ## 🏗️ Sources & Credits
164
 
165
- ### manylinux Wheels — Built by AIencoder
166
- The 4,940 manylinux x86\_64 wheels were built by a distributed **4-worker HuggingFace Space factory** system (`AIencoder/wheel-factory-*`) — a custom-built automated pipeline covering every possible llama.cpp cmake option on manylinux:
167
- - Every backend: OpenBLAS, MKL, Basic, Vulkan, CLBlast, OpenCL, RPC
168
- - Every CPU hardware profile from baseline x86-64 up to Sapphire Rapids AMX
169
- - Python 3.8 through 3.14
170
- - llama-cpp-python versions 0.3.0 through 0.3.18+
171
 
172
- ### Windows / macOS / Linux ARM Wheels — abetlen
173
- The remaining 3,393 wheels (Windows, macOS, Linux aarch64/i686/riscv64, PyPy) were sourced from the official releases by **Andrei Betlen ([@abetlen](https://github.com/abetlen))**, the original author and maintainer of `llama-cpp-python`. These include:
174
- - CPU wheels for all platforms via `https://abetlen.github.io/llama-cpp-python/whl/cpu/`
175
- - Metal wheels for macOS GPU acceleration
176
- - CUDA wheels (cu121–cu124) for Windows and Linux
177
 
178
- > All credit for the underlying library goes to **Georgi Gerganov ([@ggerganov](https://github.com/ggerganov))** and the [llama.cpp](https://github.com/ggml-org/llama.cpp) team, and to **Andrei Betlen** for the Python bindings.
 
 
 
 
179
 
180
  ---
181
 
182
- ## 📝 Notes
183
-
184
- - All wheels are **MIT licensed** (same as llama-cpp-python upstream)
185
- - manylinux wheels require **glibc 2.31+** (Ubuntu 20.04+, Debian 11+)
186
- - `manylinux` and `linux_x86_64` are **not the same thing** — manylinux wheels have broad distro compatibility, plain linux wheels do not
187
- - CUDA wheels require the matching CUDA toolkit to be installed
188
- - Metal wheels require macOS 11.0+ and an Apple Silicon or AMD GPU
189
- - This collection is updated periodically as new versions are released
 
1
  ---
2
  license: mit
3
+ pretty_name: llama-cpp-python Wheels — Complete Collection
 
 
 
4
  tags:
5
+ - llama-cpp-python
6
+ - llama.cpp
7
+ - wheels
8
+ - cuda
9
+ - metal
10
+ - prebuilt
11
+ viewer: false
 
 
 
 
 
12
  ---
 
13
 
14
+ # llama-cpp-python Wheels — the complete collection
15
 
16
+ Prebuilt [`llama-cpp-python`](https://github.com/abetlen/llama-cpp-python) wheels, assembled to be
17
+ the most complete single place to grab one — **10,000+ wheels** spanning every published upstream
18
+ version and every backend this project can build, for **Linux, Windows, and macOS**.
19
 
20
+ It contains two things:
21
 
22
+ 1. **A full mirror of the official upstream wheels** — abetlen's `cpu`, `metal`, and `cu121`–`cu124`
23
+ releases, across all historical versions (`0.1.x` → `0.3.x`) and all three OSes.
24
+ 2. **Thousands of additional builds that upstream never shipped** — produced here by an automated
25
+ GitHub Actions "wheel factory": extra CUDA versions, extra CPU instruction-set variants, and
26
+ extra backends (see the table below).
27
 
28
+ > These are self-contained builds. CUDA wheels bundle the CUDA runtime, so you only need an NVIDIA
29
+ > **driver** installed — not the full CUDA toolkit.
 
 
 
30
 
31
+ ## Install a wheel
 
 
 
 
 
 
 
32
 
33
+ Every wheel is a direct download. Install one by pointing `pip` at its URL:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  ```bash
36
+ pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/<path-to-wheel>
37
  ```
38
 
39
+ For example, llama-cpp-python 0.3.19 with CUDA 12.4 on Python 3.11 / Windows:
40
 
41
  ```bash
42
+ pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.19+cu124-cp311-cp311-win_amd64.whl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  ```
44
 
45
+ ## Reading a filename
 
 
 
 
46
 
47
  ```
48
+ llama_cpp_python-0.3.19+cu124-cp311-cp311-win_amd64.whl
49
+ │ │ │ │ └── platform (win_amd64 / manylinux… / macosx…)
50
+ │ │ └─────┴──────── Python tag (cp311 = CPython 3.11)
51
+ │ └── build variant / backend (see table)
52
+ └── llama-cpp-python version
53
  ```
54
 
55
+ The part after `+` (the "local version") is the **backend / build variant**. Upstream base wheels
56
+ have no `+` tag (plain CPU). Factory builds encode the backend there, e.g. `+cu126`,
57
+ `+basic_avx2_fma_f16c`, `+openblas_avx512_fma_f16c_vnni_vbmi`, `+vulkan`, `+metal`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
+ ## What's covered
60
 
61
+ | OS | Backends | Notes |
62
+ |----|----------|-------|
63
+ | **Linux** (`manylinux`) | CPU (plain + AVX / AVX2 / AVX-512 up to VNNI·VBMI·BF16·AMX), OpenBLAS, MKL, CLBlast, OpenCL, Vulkan, SYCL, RPC, and **CUDA 12.4 / 12.6 / 12.8 / 12.9** | The broadest coverage — every CPU instruction-set tier so you can match your exact chip |
64
+ | **Windows** (`win_amd64`) | Full upstream mirror + **CUDA 12.4 / 12.6 / 12.8** | CUDA wheels self-contained (driver only) |
65
+ | **macOS** (`macosx`) | Metal + CPU (upstream mirror) | Apple-Silicon and Intel |
66
 
67
+ - **Python:** cp38 – cp314 for factory builds; upstream mirror covers whatever upstream shipped (back to cp37 / PyPy on old versions).
68
+ - **Versions:** factory builds target the latest releases (0.3.16 – 0.3.19); the mirror covers everything from 0.1.x onward.
 
 
 
 
 
 
 
69
 
70
+ ## Repository layout
 
 
 
 
 
 
 
 
71
 
72
+ Because HuggingFace caps any single folder at 10,000 files, wheels are organised into **per-version
73
+ subfolders** (`0.3.19/`, `0.1.30/`, …). Earlier wheels live in the repository root; both are equally
74
+ valid — use the Hub file browser or the filename to find what you need.
75
 
76
+ ## How these are built
77
 
78
+ The additional wheels are compiled automatically by a GitHub Actions factory (no GPU required — `nvcc`
79
+ cross-compiles the CUDA kernels). Each wheel is built from the official `abetlen/llama-cpp-python`
80
+ source at the tagged version, repaired to be self-contained, import/structure-checked, and uploaded.
81
+ The queue is derived by diffing this dataset against the target matrix, so the collection fills in
82
+ and stays current on its own.
 
83
 
84
+ ## Caveats
 
 
 
 
85
 
86
+ - **CUDA wheels need a matching NVIDIA driver** on the machine that runs them (the CUDA runtime is
87
+ bundled; the driver is not).
88
+ - **CUDA wheels are large** (~0.6–1.3 GB) because they bundle the runtime and fat CUDA kernels — this
89
+ is expected and is what makes them work without a separate CUDA install.
90
+ - These are community builds, provided as-is, under the same MIT license as llama-cpp-python.
91
 
92
  ---
93
 
94
+ *Collection maintained by [AIencoder](https://huggingface.co/AIencoder). Wheels are builds of
95
+ [abetlen/llama-cpp-python](https://github.com/abetlen/llama-cpp-python).*