Instructions to use Jamesb040/llama-cpp-python-wheels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Jamesb040/llama-cpp-python-wheels with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Jamesb040/llama-cpp-python-wheels", filename="{{GGUF_FILE}}", )output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from Jamesb040/llama-cpp-python-wheels: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/Jamesb040/llama-cpp-python-wheels/resolve/14da0d0c65b8e9410ceb114b332e30ddc8d99bdc/README.md
- Command line
-
hf download hf://Jamesb040/llama-cpp-python-wheels@14da0d0c65b8e9410ceb114b332e30ddc8d99bdc/README.md
-
curl -L -o README.md https://huggingface.co/Jamesb040/llama-cpp-python-wheels/resolve/14da0d0c65b8e9410ceb114b332e30ddc8d99bdc/README.md
1 kB
| license: mit | |
| tags: | |
| - llama-cpp-python | |
| - prebuilt-wheels | |
| - huggingface-spaces | |
| - cpu-only | |
| - python-3.13 | |
| # Llama-CPP-Python Pre-built Wheels (CPU Only) | |
| This repository provides pre-compiled Python wheels for `llama-cpp-python`, specifically optimized for **Hugging Face Spaces (Free CPU Tier)**. | |
| ## 🚀 Key Features | |
| - **Zero Compilation:** Skips the 15-minute C++ build process on HF Spaces. | |
| - **Python 3.13 Support:** Built for the latest Python version. | |
| - **Generic CPU:** Compiled with `GGML_NATIVE=OFF` to ensure compatibility with older cloud processors (no "Illegal Instruction" errors). | |
| ## 🛠 Usage in HF Spaces | |
| ### Dockerfile (Recommended) | |
| Add this to your Dockerfile to install the wheel instantly: | |
| ```dockerfile | |
| RUN pip install [https://huggingface.co/Jameson040/llama-cpp-python-wheels/resolve/main/llama_cpp_python-0.3.16-cp313-cp313-linux_x86_64.whl](https://huggingface.co/Jameson040/llama-cpp-python-wheels/resolve/main/llama_cpp_python-0.3.16-cp313-cp313-linux_x86_64.whl) |