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 tools/server/bench/speed-bench/speed_bench_compare.py from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 3.15 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/server/bench/speed-bench/speed_bench_compare.py
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/server/bench/speed-bench/speed_bench_compare.py
-
curl -L -o speed_bench_compare.py https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/server/bench/speed-bench/speed_bench_compare.py
3.15 kB
| #!/usr/bin/env python3 | |
| from __future__ import annotations | |
| import argparse | |
| import json | |
| import sys | |
| from typing import Any | |
| from speed_bench import fmt_value, print_rows | |
| def load_summary(path: str) -> list[dict[str, Any]]: | |
| with open(path, "r", encoding="utf-8") as f: | |
| data = json.load(f) | |
| summary = data.get("summary") | |
| if not isinstance(summary, list): | |
| raise ValueError(f"{path} does not contain a summary list") | |
| return summary | |
| def compare_rows(baseline: list[dict[str, Any]], speculative: list[dict[str, Any]]) -> list[dict[str, Any]]: | |
| baseline_by_category = {row["category"]: row for row in baseline} | |
| comparisons = [] | |
| for row in speculative: | |
| base = baseline_by_category.get(row["category"]) | |
| if not base: | |
| continue | |
| base_speed = base.get("avg_pred_t_s") | |
| spec_speed = row.get("avg_pred_t_s") | |
| base_latency = base.get("avg_latency") | |
| spec_latency = row.get("avg_latency") | |
| comparisons.append( | |
| { | |
| "category": row["category"], | |
| "base_avg_pred_t_s": base_speed, | |
| "spec_avg_pred_t_s": spec_speed, | |
| "decode_speedup": (spec_speed / base_speed) if base_speed and spec_speed else None, | |
| "base_avg_latency": base_latency, | |
| "spec_avg_latency": spec_latency, | |
| "latency_speedup": (base_latency / spec_latency) if base_latency and spec_latency else None, | |
| "accept_rate": row.get("accept_rate"), | |
| } | |
| ) | |
| return comparisons | |
| def print_comparison(rows: list[dict[str, Any]]) -> None: | |
| if not rows: | |
| print("No overlapping categories found for comparison.") | |
| return | |
| columns = [ | |
| ("category", "category", ""), | |
| ("base_avg_pred_t/s", "base_avg_pred_t_s", "speed"), | |
| ("spec_avg_pred_t/s", "spec_avg_pred_t_s", "speed"), | |
| ("decode_speedup", "decode_speedup", "speedup"), | |
| ("base_avg_latency", "base_avg_latency", "seconds"), | |
| ("spec_avg_latency", "spec_avg_latency", "seconds"), | |
| ("latency_speedup", "latency_speedup", "speedup"), | |
| ("accept_rate", "accept_rate", "rate"), | |
| ] | |
| print_rows(rows, columns) | |
| def main(argv: list[str] | None = None) -> int: | |
| parser = argparse.ArgumentParser(description="Compare two SPEED-Bench runs (baseline vs speculative).") | |
| parser.add_argument("--baseline", required=True, help="Baseline results JSON produced by speed_bench.py --output") | |
| parser.add_argument("--speculative", required=True, help="Speculative decoding results JSON produced by speed_bench.py --output") | |
| args = parser.parse_args(argv) | |
| try: | |
| baseline = load_summary(args.baseline) | |
| speculative = load_summary(args.speculative) | |
| except Exception as exc: | |
| print(f"speed_bench_compare: failed to load inputs: {exc}", file=sys.stderr) | |
| return 2 | |
| comparisons = compare_rows(baseline, speculative) | |
| print(f"Comparison: baseline={args.baseline} speculative={args.speculative}") | |
| print_comparison(comparisons) | |
| return 0 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |