Datasets:
docs: complete README with 8333 wheel stats and install guide
Browse files
README.md
CHANGED
|
@@ -1,206 +1,99 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
task_categories:
|
| 4 |
-
- text-generation
|
| 5 |
tags:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
- gpu
|
| 12 |
-
- manylinux
|
| 13 |
-
- gguf
|
| 14 |
-
- inference
|
| 15 |
-
pretty_name: "llama-cpp-python Prebuilt Wheels"
|
| 16 |
size_categories:
|
| 17 |
-
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# π llama-cpp-python
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16+openblas_avx2_fma_f16c-cp311-cp311-manylinux_2_31_x86_64.whl
|
| 28 |
-
```
|
| 29 |
-
|
| 30 |
-
## π What's Inside
|
| 31 |
|
| 32 |
-
| |
|
| 33 |
|---|---|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
|
| 38 |
-
|
|
| 39 |
-
|
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
| 44 |
-
|---------|-----|-------------|
|
| 45 |
-
| **OpenBLAS** | `openblas` | CPU BLAS acceleration β best general-purpose choice |
|
| 46 |
-
| **Intel MKL** | `mkl` | Intel Math Kernel Library β fastest on Intel CPUs |
|
| 47 |
-
| **Basic** | `basic` | No BLAS β maximum compatibility, no extra dependencies |
|
| 48 |
-
| **Vulkan** | `vulkan` | Universal GPU acceleration β works on NVIDIA, AMD, Intel |
|
| 49 |
-
| **CLBlast** | `clblast` | OpenCL GPU acceleration |
|
| 50 |
-
| **SYCL** | `sycl` | Intel GPU acceleration (Data Center, Arc, iGPU) |
|
| 51 |
-
| **OpenCL** | `opencl` | Generic OpenCL GPU backend |
|
| 52 |
-
| **RPC** | `rpc` | Distributed inference over network |
|
| 53 |
-
|
| 54 |
-
## π₯οΈ CPU Optimization Profiles
|
| 55 |
-
|
| 56 |
-
Wheels are built with specific CPU instruction sets enabled. Pick the one that matches your hardware:
|
| 57 |
-
|
| 58 |
-
| CPU Tag | Instructions | Best For |
|
| 59 |
-
|---------|-------------|----------|
|
| 60 |
-
| `basic` | None | Any x86-64 CPU (maximum compatibility) |
|
| 61 |
-
| `avx` | AVX | Sandy Bridge+ (2011) |
|
| 62 |
-
| `avx_f16c` | AVX + F16C | Ivy Bridge+ (2012) |
|
| 63 |
-
| `avx2_fma_f16c` | AVX2 + FMA + F16C | **Haswell+ (2013) β most common** |
|
| 64 |
-
| `avx2_fma_f16c_avxvnni` | AVX2 + FMA + F16C + AVX-VNNI | Alder Lake+ (2021) |
|
| 65 |
-
| `avx512_fma_f16c` | AVX-512 + FMA + F16C | Skylake-X+ (2017) |
|
| 66 |
-
| `avx512_fma_f16c_vnni` | + AVX512-VNNI | Cascade Lake+ (2019) |
|
| 67 |
-
| `avx512_fma_f16c_vnni_vbmi` | + AVX512-VBMI | Ice Lake+ (2019) |
|
| 68 |
-
| `avx512_fma_f16c_vnni_vbmi_bf16_amx` | + BF16 + AMX | Sapphire Rapids+ (2023) |
|
| 69 |
-
|
| 70 |
-
### How to Pick the Right Wheel
|
| 71 |
-
|
| 72 |
-
**Don't know your CPU?** Start with `avx2_fma_f16c` β it works on any CPU from 2013 onwards (Intel Haswell, AMD Ryzen, and newer).
|
| 73 |
-
|
| 74 |
-
**Want maximum compatibility?** Use `basic` β works on literally any x86-64 CPU.
|
| 75 |
-
|
| 76 |
-
**Have a server CPU?** Check if it supports AVX-512:
|
| 77 |
-
```bash
|
| 78 |
-
grep -o 'avx[^ ]*\|fma\|f16c\|bmi2\|sse4_2' /proc/cpuinfo | sort -u
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
## π¦ Filename Format
|
| 82 |
-
|
| 83 |
-
All wheels follow the [PEP 440](https://peps.python.org/pep-0440/) local version identifier standard:
|
| 84 |
-
|
| 85 |
-
```
|
| 86 |
-
llama_cpp_python-{version}+{backend}_{cpu_flags}-{python}-{python}-{platform}.whl
|
| 87 |
-
```
|
| 88 |
-
|
| 89 |
-
Examples:
|
| 90 |
-
```
|
| 91 |
-
llama_cpp_python-0.3.16+openblas_avx2_fma_f16c-cp311-cp311-manylinux_2_31_x86_64.whl
|
| 92 |
-
llama_cpp_python-0.3.16+vulkan-cp312-cp312-manylinux_2_31_x86_64.whl
|
| 93 |
-
llama_cpp_python-0.3.16+basic-cp310-cp310-manylinux_2_31_x86_64.whl
|
| 94 |
-
```
|
| 95 |
-
|
| 96 |
-
The local version label (`+openblas_avx2_fma_f16c`) encodes:
|
| 97 |
-
- **Backend**: `openblas`, `mkl`, `basic`, `vulkan`, `clblast`, `sycl`, `opencl`, `rpc`
|
| 98 |
-
- **CPU flags** (in order): `avx`, `avx2`, `avx512`, `fma`, `f16c`, `vnni`, `vbmi`, `bf16`, `avxvnni`, `amx`
|
| 99 |
|
| 100 |
-
## π
|
| 101 |
|
| 102 |
-
|
| 103 |
|
| 104 |
```bash
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16+openblas_avx2_fma_f16c-cp311-cp311-manylinux_2_31_x86_64.whl
|
| 108 |
```
|
| 109 |
|
| 110 |
-
###
|
| 111 |
-
|
| 112 |
-
```bash
|
| 113 |
-
sudo apt-get install libvulkan1
|
| 114 |
|
| 115 |
-
pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16+vulkan-cp311-cp311-manylinux_2_31_x86_64.whl
|
| 116 |
```
|
| 117 |
-
|
| 118 |
-
### Basic (zero dependencies)
|
| 119 |
-
|
| 120 |
-
```bash
|
| 121 |
-
pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16+basic-cp311-cp311-manylinux_2_31_x86_64.whl
|
| 122 |
```
|
| 123 |
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
```python
|
| 127 |
-
from llama_cpp import Llama
|
| 128 |
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
max_tokens=256,
|
| 138 |
-
)
|
| 139 |
-
print(output["choices"][0]["message"]["content"])
|
| 140 |
-
```
|
| 141 |
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|---------|------------------|
|
| 146 |
-
| OpenBLAS | `libopenblas0` (runtime) or `libopenblas-dev` (build) |
|
| 147 |
-
| MKL | Intel oneAPI MKL |
|
| 148 |
-
| Vulkan | `libvulkan1` |
|
| 149 |
-
| CLBlast | `libclblast1` |
|
| 150 |
-
| OpenCL | `ocl-icd-libopencl1` |
|
| 151 |
-
| Basic | **None** |
|
| 152 |
-
| SYCL | Intel oneAPI DPC++ runtime |
|
| 153 |
-
| RPC | Network access to RPC server |
|
| 154 |
|
| 155 |
-
##
|
| 156 |
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|-----------|------|
|
| 161 |
-
| π Dispatcher | [wheel-factory-dispatcher](https://huggingface.co/spaces/AIencoder/wheel-factory-dispatcher) |
|
| 162 |
-
| βοΈ Workers 1-4 | [wheel-factory-worker-1](https://huggingface.co/spaces/AIencoder/wheel-factory-worker-1) ... 4 |
|
| 163 |
-
| π Auditor | [wheel-factory-auditor](https://huggingface.co/spaces/AIencoder/wheel-factory-auditor) |
|
| 164 |
-
|
| 165 |
-
The factory uses explicit cmake flags matching llama.cpp's official CPU variant builds:
|
| 166 |
-
|
| 167 |
-
```
|
| 168 |
-
CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_AVX2=ON -DGGML_FMA=ON -DGGML_F16C=ON -DGGML_AVX=OFF -DGGML_AVX512=OFF -DGGML_NATIVE=OFF"
|
| 169 |
-
```
|
| 170 |
-
|
| 171 |
-
Every flag is set explicitly (no cmake defaults) to ensure reproducible, deterministic builds.
|
| 172 |
-
|
| 173 |
-
## β FAQ
|
| 174 |
-
|
| 175 |
-
**Q: Which wheel should I use?**
|
| 176 |
-
For most people: `openblas_avx2_fma_f16c` with your Python version. It's fast, works on 90%+ of modern CPUs, and only needs `libopenblas`.
|
| 177 |
-
|
| 178 |
-
**Q: Can I use these on Ubuntu / Debian / Fedora / Arch?**
|
| 179 |
-
Yes β `manylinux_2_31` wheels work on any Linux distro with glibc 2.31 or newer (Ubuntu 20.04+, Debian 11+, Fedora 34+, Arch).
|
| 180 |
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
- [abetlen's official wheel index](https://abetlen.github.io/llama-cpp-python/whl/) β CPU, CUDA 12.1-12.5, Metal
|
| 184 |
-
- [jllllll's CUDA wheels](https://github.com/jllllll/llama-cpp-python-cuBLAS-wheels) β cuBLAS + AVX combos
|
| 185 |
|
| 186 |
-
|
| 187 |
-
|
| 188 |
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
```bash
|
| 192 |
-
grep -o 'avx[^ ]*\|fma\|f16c' /proc/cpuinfo | sort -u
|
| 193 |
```
|
| 194 |
|
| 195 |
-
|
| 196 |
-
No. The factory is a private space only to be accessable by me but you can suggest some wheels to add via community tab
|
| 197 |
-
|
| 198 |
-
## π License
|
| 199 |
|
| 200 |
-
|
|
|
|
| 201 |
|
| 202 |
-
##
|
| 203 |
|
| 204 |
-
-
|
| 205 |
-
-
|
| 206 |
-
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
+
- llama-cpp-python
|
| 5 |
+
- wheels
|
| 6 |
+
- pre-built
|
| 7 |
+
- binary
|
| 8 |
+
pretty_name: llama-cpp-python Pre-Built Wheels
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# π llama-cpp-python Pre-Built Wheels
|
| 14 |
|
| 15 |
+
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.
|
| 16 |
|
| 17 |
+
No more building from source. Just find your wheel and `pip install` it directly.
|
| 18 |
|
| 19 |
+
## π Collection Stats
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
| Platform | Wheels |
|
| 22 |
|---|---|
|
| 23 |
+
| π§ Linux x86_64 (manylinux) | 4,940 |
|
| 24 |
+
| π macOS Intel (x86_64) | 1,040 |
|
| 25 |
+
| πͺ Windows (amd64) | 1,010 |
|
| 26 |
+
| πͺ Windows (32-bit) | 634 |
|
| 27 |
+
| π macOS Apple Silicon (arm64) | 289 |
|
| 28 |
+
| π§ Linux i686 | 214 |
|
| 29 |
+
| π§ Linux aarch64 | 120 |
|
| 30 |
+
| π§ Linux x86_64 (plain) | 81 |
|
| 31 |
+
| π§ Linux RISC-V | 5 |
|
| 32 |
+
| **Total** | **8,333** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
+
## π How to Install
|
| 35 |
|
| 36 |
+
Find your wheel using the naming convention below, then install directly:
|
| 37 |
|
| 38 |
```bash
|
| 39 |
+
pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/YOUR_WHEEL_NAME.whl"
|
|
|
|
|
|
|
| 40 |
```
|
| 41 |
|
| 42 |
+
### Wheel Naming Convention
|
|
|
|
|
|
|
|
|
|
| 43 |
|
|
|
|
| 44 |
```
|
| 45 |
+
llama_cpp_python-{version}+{backend}_{profile}-{pytag}-{pytag}-{platform}.whl
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
```
|
| 47 |
|
| 48 |
+
**Versions:** `0.2.82` through `0.3.18+`
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
**Backends (manylinux wheels):**
|
| 51 |
+
- `openblas` β OpenBLAS BLAS acceleration
|
| 52 |
+
- `mkl` β Intel MKL acceleration
|
| 53 |
+
- `basic` β No BLAS, maximum compatibility
|
| 54 |
+
- `vulkan` β Vulkan GPU
|
| 55 |
+
- `clblast` β CLBlast OpenCL GPU
|
| 56 |
+
- `opencl` β OpenCL GPU
|
| 57 |
+
- `rpc` β Distributed inference
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
**CPU Profiles (manylinux wheels):**
|
| 60 |
+
- `basic` β Any x86-64 CPU
|
| 61 |
+
- `sse42` β Nehalem+ (2008+)
|
| 62 |
+
- `sandybridge` β AVX (2011+)
|
| 63 |
+
- `ivybridge` β AVX + F16C (2012+)
|
| 64 |
+
- `haswell` β AVX2 + FMA + BMI2 (2013+) β most common
|
| 65 |
+
- `skylakex` β AVX-512 (2017+)
|
| 66 |
+
- `icelake` β AVX-512 VNNI+VBMI (2019+)
|
| 67 |
+
- `alderlake` β AVX-VNNI (2021+)
|
| 68 |
+
- `sapphirerapids` β AVX-512 BF16 + AMX (2023+)
|
| 69 |
|
| 70 |
+
**Python tags:** `cp38`, `cp39`, `cp310`, `cp311`, `cp312`, `cp313`, `cp314`, `pp38`, `pp39`, `pp310`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
### Examples
|
| 73 |
|
| 74 |
+
```bash
|
| 75 |
+
# Linux x86_64, Python 3.11, OpenBLAS, Haswell CPU (most common setup)
|
| 76 |
+
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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
+
# Windows, Python 3.11
|
| 79 |
+
pip install "https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.18-cp311-cp311-win_amd64.whl"
|
|
|
|
|
|
|
| 80 |
|
| 81 |
+
# macOS Apple Silicon, Python 3.12
|
| 82 |
+
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"
|
| 83 |
|
| 84 |
+
# macOS Intel, Python 3.11
|
| 85 |
+
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"
|
|
|
|
|
|
|
| 86 |
```
|
| 87 |
|
| 88 |
+
## ποΈ Sources
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
+
- **manylinux wheels** β Built by the [Ultimate Llama Wheel Factory](https://huggingface.co/AIencoder) β a distributed 4-worker HuggingFace Space system covering every llama.cpp cmake option possible on manylinux
|
| 91 |
+
- **Windows / macOS / Linux ARM wheels** β Sourced from [abetlen/llama-cpp-python](https://github.com/abetlen/llama-cpp-python) official releases
|
| 92 |
|
| 93 |
+
## π Notes
|
| 94 |
|
| 95 |
+
- All wheels are MIT licensed (same as llama-cpp-python)
|
| 96 |
+
- manylinux wheels target `manylinux_2_31_x86_64` (glibc 2.31+, Ubuntu 20.04+)
|
| 97 |
+
- CUDA wheels for Windows/macOS are included (cu121βcu124)
|
| 98 |
+
- Metal wheels for macOS are included
|
| 99 |
+
- This collection is updated periodically as new versions are released
|