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_bench_tests_posix.py from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.95 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/scripts/snapdragon/qdc/tests/run_bench_tests_posix.py
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/scripts/snapdragon/qdc/tests/run_bench_tests_posix.py
-
curl -L -o run_bench_tests_posix.py https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/scripts/snapdragon/qdc/tests/run_bench_tests_posix.py
2.95 kB
| """ | |
| On-device bench and completion test runner for llama.cpp (CPU, GPU, NPU backends). | |
| On Android: calls scripts/snapdragon/run.py on the QDC runner host | |
| (script wraps commands in adb shell internally). | |
| On Linux: runs llama-bench directly via run_linux.sh (BASH framework). | |
| Placeholders replaced at artifact creation time by run_qdc_jobs.py: | |
| <<MODEL_URL>> Direct URL to the GGUF model file (downloaded on-device) | |
| """ | |
| import os | |
| import subprocess | |
| import sys | |
| import pytest | |
| from utils import ( | |
| BIN_PATH, | |
| MODEL_DEVICE_PATH, | |
| PROMPT_DIR, | |
| push_bundle_if_needed, | |
| run_adb_command, | |
| run_snapdragon, | |
| write_qdc_log, | |
| ) | |
| MODEL_URL = "<<MODEL_URL>>" | |
| def install(driver): | |
| push_bundle_if_needed(f"{BIN_PATH}/llama-cli") | |
| run_adb_command(f"mkdir -p /data/local/tmp/gguf {PROMPT_DIR}") | |
| run_adb_command(f"echo 'What is the capital of France?' > {PROMPT_DIR}/bench_prompt.txt") | |
| check = subprocess.run( | |
| ["adb", "shell", f"ls {MODEL_DEVICE_PATH}"], | |
| text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, | |
| ) | |
| if check.returncode != 0: | |
| run_adb_command(f'curl -L -J --output {MODEL_DEVICE_PATH} "{MODEL_URL}"') | |
| def test_llama_completion(device): | |
| args = [ | |
| "llama-completion", | |
| "-m", MODEL_DEVICE_PATH, | |
| "-f", f"{PROMPT_DIR}/bench_prompt.txt", | |
| "-no-cnv", | |
| "--ctx-size", "8192", | |
| "-n", "128", | |
| "--seed", "42", | |
| ] | |
| if device == "HTP0": | |
| args += ["--ubatch-size", "1024"] | |
| result = run_snapdragon(args, device=device) | |
| write_qdc_log(f"llama_completion_{device}.log", result.stdout or "") | |
| assert result.returncode == 0, ( | |
| f"llama-completion {device} failed (exit {result.returncode})" | |
| ) | |
| _DEVICE_LOG_NAME = {"none": "cpu", "GPUOpenCL": "gpu", "HTP0": "htp"} | |
| def test_llama_bench(device): | |
| args = [ | |
| "llama-bench", | |
| "-m", MODEL_DEVICE_PATH, | |
| "-ngl", "99", | |
| "-p", "128", | |
| "-n", "32", | |
| ] | |
| if device == "HTP0": | |
| args += ["--ubatch-size", "1024"] | |
| result = run_snapdragon(args, device=device) | |
| write_qdc_log(f"llama_bench_{_DEVICE_LOG_NAME[device]}.log", result.stdout or "") | |
| assert result.returncode == 0, ( | |
| f"llama-bench {device} 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) | |