Install any skill in seconds. Free to start, no credit card required.
Get Started Free →LLM inference in C/C++ with Python bindings. GPU acceleration via CUDA/Metal/Vulkan, 2-8 bit quantization (GGUF), KV cache, and grammar-based sampling. Run Llama, Mistral, Gemma, Phi locally.
.claude/skills/mkurman-llama-cpp/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -32% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -11% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 0% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 14% | 0% |
llama.cpp is a C++ inference engine for LLMs optimized for CPU and Apple Silicon. Runs GGUF-format models (Llama, Mistral, Qwen, Gemma, Phi, DeepSeek, etc.) with quantization from Q2 to Q8. Supports GPU offloading, batch inference, and OpenAI-compatible server.
bashuv pip install llama-cpp-python # For CUDA: pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
pythonfrom llama_cpp import Llama llm = Llama(model_path="qwen2.5-1.5b-instruct-q4_k_m.gguf") output = llm("Q: What is machine learning? A:", max_tokens=128) print(output["choices"][0]["text"])
pythonllm = Llama(model_path="model.gguf", chat_format="chatml") response = llm.create_chat_completion( messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Explain gradient descent."}, ] ) print(response["choices"][0]["message"]["content"])
pythonllm = Llama( model_path="model.gguf", n_gpu_layers=-1, # offload all layers to GPU n_ctx=8192, # context window n_threads=8, )
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 8,786 | 4,284 | -51% | 1 | 1 | 0% | 1,637 | 1,201 | -27% | 0 | 0 | — |
case-02 | pass→pass | 6,598 | 2,358 | -64% | 1 | 1 | 0% | 1,138 | 769 | -32% | 0 | 0 | — |
case-03 | pass→pass | 5,004 | 2,417 | -52% | 1 | 1 | 0% | 905 | 803 | -11% | 0 | 0 | — |
case-04 | pass→pass | 7,112 | 5,058 | -29% | 1 | 1 | 0% | 1,299 | 1,305 | +0% | 0 | 0 | — |
case-05 | pass→pass | 4,574 | 3,086 | -33% | 1 | 1 | 0% | 828 | 942 | +14% | 0 | 0 | — |
case-06 | pass→pass | 4,172 | 2,432 | -42% | 1 | 1 | 0% | 671 | 849 | +27% | 0 | 0 | — |
case-07 | pass→pass | 6,369 | 3,811 | -40% | 1 | 1 | 0% | 1,104 | 1,093 | -1% | 0 | 0 | — |
case-08 | pass→pass | 8,463 | 4,908 | -42% | 1 | 1 | 0% | 1,587 | 1,262 | -20% | 0 | 0 | — |
case-09 | pass→pass | 6,139 | 3,658 | -40% | 1 | 1 | 0% | 1,185 | 1,151 | -3% | 0 | 0 | — |
case-10 | pass→pass | 3,320 | 3,520 | +6% | 1 | 1 | 0% | 562 | 813 | +45% | 0 | 0 | — |
case-11 | pass→pass | 6,877 | 2,695 | -61% | 1 | 1 | 0% | 1,350 | 868 | -36% | 0 | 0 | — |
case-12 | pass→pass | 4,221 | 2,467 | -42% | 1 | 1 | 0% | 711 | 848 | +19% | 0 | 0 | — |
case-13 | pass→pass | 11,424 | 2,002 | -82% | 1 | 1 | 0% | 2,130 | 701 | -67% | 0 | 0 | — |
case-14 | pass→pass | 7,668 | 1,928 | -75% | 1 | 1 | 0% | 1,221 | 669 | -45% | 0 | 0 | — |
case-15 | pass→pass | 6,097 | 1,962 | -68% | 1 | 1 | 0% | 1,162 | 745 | -36% | 0 | 0 | — |
case-16 | pass→pass | 4,946 | 1,736 | -65% | 1 | 1 | 0% | 848 | 737 | -13% | 0 | 0 | — |
case-17 | pass→pass | 2,262 | 1,873 | -17% | 1 | 1 | 0% | 362 | 695 | +92% | 0 | 0 | — |
case-18 | pass→pass | 3,579 | 1,465 | -59% | 1 | 1 | 0% | 583 | 635 | +9% | 0 | 0 | — |
case-19 | pass→pass | 2,387 | 2,140 | -10% | 1 | 1 | 0% | 361 | 768 | +113% | 0 | 0 | — |
case-20 | pass→pass | 11,618 | 5,946 | -49% | 1 | 1 | 0% | 2,384 | 1,624 | -32% | 0 | 0 | — |
case-21 | pass→pass | 7,209 | 3,368 | -53% | 1 | 1 | 0% | 1,395 | 995 | -29% | 0 | 0 | — |
case-22 | pass→pass | 10,718 | 8,416 | -21% | 1 | 1 | 0% | 2,094 | 2,193 | +5% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.