Instructions to use Felipe97/llama-cpp-compiled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Felipe97/llama-cpp-compiled with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: ./build/bin/llama cli -hf Felipe97/llama-cpp-compiled
Use Docker
docker model run hf.co/Felipe97/llama-cpp-compiled
- Llama new
- LM Studio
- Jan
- Ollama
How to use Felipe97/llama-cpp-compiled with Ollama:
ollama run hf.co/Felipe97/llama-cpp-compiled
- Unsloth Desktop
- Docker Model Runner
How to use Felipe97/llama-cpp-compiled with Docker Model Runner:
docker model run hf.co/Felipe97/llama-cpp-compiled
- Lemonade
How to use Felipe97/llama-cpp-compiled with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Felipe97/llama-cpp-compiled
Run and chat with the model
lemonade run user.llama-cpp-compiled-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download scripts/snapdragon/qdc/tests/run_backend_ops_posix.py from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/scripts/snapdragon/qdc/tests/run_backend_ops_posix.py
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/scripts/snapdragon/qdc/tests/run_backend_ops_posix.py
-
curl -L -o run_backend_ops_posix.py https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/scripts/snapdragon/qdc/tests/run_backend_ops_posix.py
1.35 kB
| """ | |
| On-device test-backend-ops runner for llama.cpp (HTP0 backend). | |
| On Android: executed by QDC's Appium test framework on the QDC runner. | |
| The runner has ADB access to the allocated device. | |
| On Linux: runs test-backend-ops directly via run_linux.sh (BASH framework). | |
| """ | |
| import os | |
| import sys | |
| import pytest | |
| from utils import ( | |
| BIN_PATH, | |
| push_bundle_if_needed, | |
| run_snapdragon, | |
| write_qdc_log, | |
| ) | |
| def install(driver): | |
| push_bundle_if_needed(f"{BIN_PATH}/test-backend-ops") | |
| def test_backend_ops_htp0(type_a): | |
| if type_a == "q4_0": | |
| pattern = r'^(?=.*type_a=q4_0)(?!.*type_b=f32,m=576,n=512,k=576).*$' | |
| else: | |
| pattern = f"type_a={type_a}" | |
| result = run_snapdragon( | |
| ["test-backend-ops", "-b", "HTP0", "-o", "MUL_MAT", "-p", pattern], | |
| ) | |
| write_qdc_log(f"backend_ops_{type_a}.log", result.stdout or "") | |
| assert result.returncode == 0, ( | |
| f"test-backend-ops type_a={type_a} failed (exit {result.returncode})" | |
| ) | |
| if __name__ == "__main__": | |
| ret = pytest.main(["-s", "--junitxml=results.xml", os.path.realpath(__file__)]) | |
| if os.path.exists("results.xml"): | |
| with open("results.xml") as f: | |
| write_qdc_log("results.xml", f.read()) | |
| sys.exit(ret) | |