Espelho do repositório github do llama.cpp
Find a file
Aleksander Grygier fa9f928f25
ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125)
* ui: render demo videos in a window on a brand ground

A demo video is now rendered from the recorded frames: the app in a rounded window on a Llama brand ground, camera zooms with motion blur, captions under the window, and an optional logo card. DEMO_POLISH=0 gives the plain screencast as before.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: let demos mock llama-server and record Storybook stories

Assisted-by: Claude (Opus 5.5 Medium)

* ui: check chat search end to end against a mocked llama-server

Assisted-by: Claude (Opus 5.5 Medium)

* ui: add a skill to demo, test and document Llama Chat and Llama UI changes

Assisted-by: Claude (Opus 5.5 Medium)

* ui: describe the demo render in the README and the ui-demo skill

Assisted-by: Claude (Opus 5.5 Medium)

* ui: zoom the whole stage in demo videos, show taps on touch demos

The camera now moves over the stage, so the window comes closer with its corners and the ground round it. The render runs in a Chromium of its own at 1x. A touch device shows a fingertip tap in place of the cursor.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: make the demo camera moves shorter and snappier

Assisted-by: Claude (Opus 5.5 Medium)

* ui: fix tiled shadows when the demo camera zooms in

Each copy of the window is now laid out where the camera puts it instead of scaled with a transform: Chromium cut the scaled shadow into tiles, which left light rectangles round a zoomed window. The motion blur now spans half a frame, like a 180 degree shutter.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: draw the zoomed demo window on one canvas

The motion blur copies are drawn on one stage canvas, with the squircle corners and the shadow in 2D, instead of as one layer each: twelve large layers overran Chromium's tile memory while the camera moved, and the dropped tiles showed as light blocks round the window.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: leave phone demos unzoomed in the ui-demo skill and README

Assisted-by: Claude (Opus 5.5 Medium)

* ui: show each demo video beside its description in the PR

A test's description annotation is written to the video manifest; when the tests have one, the Demo section puts one video to a row with its title and description.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: move the demo harness to ui/lib/demo

The recorder, the render, the Demo driver, storage and the pr and docs commands are now @ggml-org/llama-demo in ui/lib/demo, for any app in the suite. It imports only Playwright's types: the app passes in its page, so it runs from source with nothing installed. Llama Chat keeps its fixtures, servers and traces command in its demo folder.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: harden the demo render and the pr command

The render cleans up after a failure and removes the part-written mp4. A page the render cannot frame records plainly instead of losing its captions, demos fail early outside Chromium, and the render's extra time is added after the demo, so a test.setTimeout() in it cannot take it away. demo:pr finds the app in the worktree from git's own prefix, a description's line breaks stay inside its table cell, zoomIn scrolls its target into view, and a quick second tap keeps its fingertip.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: teach the ui-demo skill to shape, check and publish a demo

Assisted-by: Claude (Opus 5.5 Medium)

* ui: import the demo harness as @ggml-org/llama-demo

Llama Chat adds ui/lib/demo as a local file: dependency, which npm links, and imports it by name instead of by relative path. Nothing is published; npm ci leaves a link that only the demo commands follow.

Assisted-by: Claude (Opus 5.5 Medium)
2026-11-26 17:15:39 +01:00
.devops nix : fix build on darwin (#32955) 2026-11-25 20:27:14 +01:00
.gemini contributing: tighten AI usage policy (#18388) 2025-12-29 16:01:32 +01:00
.github ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125) 2026-11-26 17:15:39 +01:00
.pi/gg pi : turn .pi/gg into a system prompt addendum (#30762) 2026-10-19 09:11:13 +03:00
app cmake : use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR (#28771) 2026-09-15 05:26:09 +02:00
benches benches : add Nemotron 3 Nano on DGX Spark (#20652) 2026-03-16 21:50:43 +02:00
ci vulkan: Explicitly include SPIRV-Headers (#31416) 2026-11-14 23:37:14 +01:00
cmake ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
common common : implement named tool choice (#31564) 2026-11-25 10:39:09 +02:00
conversion DFlash2: support Inkling-2-Mini DFlash2 (#33073) 2026-11-26 14:47:55 +02:00
docs sycl: update linux refer doc (#32583) 2026-11-26 00:41:32 -05:00
examples llama : migrate to llama_batch_ext (#32356) 2026-11-16 15:16:12 +01:00
ggml CUDA: fuse the Inkling 2 short conv, depth mix, loop controller, L2 clip and situ chains (#33060) 2026-11-26 23:15:36 +08:00
gguf-py DFlash2: support Inkling-2-Mini DFlash2 (#33073) 2026-11-26 14:47:55 +02:00
grammars chat : implement token aware parsing (#29307) 2026-11-22 11:36:03 -06:00
include quantize: add option to automatically choose optimal quant types to reach a file/bpw target size at lowest error (#15550) 2026-11-23 18:06:26 +01:00
licenses refactor : remove libcurl, use OpenSSL when available (#18828) 2026-01-14 18:02:47 +01:00
media ui: update the README banner to the new llama.cpp cover and remove the legacy brand assets (#31789) 2026-11-10 22:43:27 +01:00
models model : add RAON-1-mini-preview support (#32176) 2026-11-25 19:38:12 +01:00
pocs cmake : fix build when GGML_CPU=OFF and GGML_CUDA=ON (#29026) 2026-09-18 11:44:03 +03:00
requirements requirements, Fix CI: support Python 3.15 (#32199) 2026-11-13 17:50:03 +01:00
scripts CI: add Hip occupancy check and small static analysis report (#32365) 2026-11-26 14:50:32 +02:00
skills ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125) 2026-11-26 17:15:39 +01:00
src CUDA: fuse the Inkling 2 short conv, depth mix, loop controller, L2 clip and situ chains (#33060) 2026-11-26 23:15:36 +08:00
tests CUDA: fuse the Inkling 2 short conv, depth mix, loop controller, L2 clip and situ chains (#33060) 2026-11-26 23:15:36 +08:00
tools DPI setting for PDF as Images - Inkling-2-Mini-BF16's work (#33061) 2026-11-26 14:57:50 +01:00
ui ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125) 2026-11-26 17:15:39 +01:00
vendor vendor : update cpp-httplib-0.67.0 [no ci] (#32563) 2026-11-18 21:00:31 +01:00
.clang-format fix: apply clang-format to CUDA macros (#16017) 2025-09-16 08:59:19 +02:00
.clang-tidy clang-tidy : disable warning about performance enum size (#16127) 2025-09-22 19:57:46 +02:00
.dockerignore ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
.ecrc cmake : use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR (#28771) 2026-09-15 05:26:09 +02:00
.editorconfig ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
.flake8 ci : re-enable type/lint-check for skills (#30713) 2026-10-20 01:03:03 +02:00
.gitignore ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
.gitmodules ggml : remove kompute backend (#14501) 2025-07-03 07:48:32 +03:00
.pre-commit-config.yaml convert.py : add python logging instead of print() (#6511) 2024-05-03 22:36:41 +03:00
AGENTS.md skills: add slice-model (#30677) 2026-10-17 02:11:56 +02:00
AUTHORS llama.cpp : bump version to 1.1.0 (#33043) 2026-11-25 17:11:22 +02:00
build-xcframework.sh metal : add metallib build support for xcframework (#28163) 2026-09-02 07:45:56 +08:00
CLAUDE.md contributing: tighten AI usage policy (#18388) 2025-12-29 16:01:32 +01:00
CMakeLists.txt llama.cpp : bump version to 1.1.0 (#33043) 2026-11-25 17:11:22 +02:00
CMakePresets.json cmake : Add CMake presets for Linux and GCC (#14656) 2025-07-13 08:12:36 +03:00
CODEOWNERS ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
CONTRIBUTING.md contributing: mark agents.md and code-review as required (#32416) 2026-11-16 19:26:10 +01:00
convert_hf_to_gguf.py feat: Inkling 2 DSpark support (#32218) 2026-11-24 21:11:46 +01:00
convert_hf_to_gguf_update.py model : add RAON-1-mini-preview support (#32176) 2026-11-25 19:38:12 +01:00
convert_llama_ggml_to_gguf.py ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
convert_lora_to_gguf.py ci : bump ty to 0.0.100 (#32030) 2026-11-10 21:54:14 +01:00
flake.nix nix : remove x86_64-darwin support (#33114) 2026-11-26 15:58:09 +01:00
LICENSE docs : Minor cleanups (#19252) 2026-02-02 08:38:55 +02:00
Makefile make : remove make in favor of CMake (#15449) 2025-08-20 13:31:16 +03:00
mypy.ini convert : partially revert PR #4818 (#5041) 2024-01-20 18:14:18 -05:00
pyproject.toml requirements, Fix CI: support Python 3.15 (#32199) 2026-11-13 17:50:03 +01:00
pyrightconfig.json ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
README.md readme : fix release badge (#32597) 2026-11-19 13:20:47 +02:00
requirements.txt tool-call: fix Qwen 2.5 Coder support, add micro benchmarks, support trigger patterns for lazy grammars (#12034) 2025-03-05 13:05:13 +00:00
SECURITY.md ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
ty.toml examples : clean-up old/obsolete stuff (#32184) 2026-11-13 10:33:17 +02:00

llama.cpp

llama.cpp

Description

The main goal of llama.cpp is to enable LLM (and MLLM) inference with minimal setup and state-of-the-art performance on a wide range of hardware - locally and in the cloud.

The llama.cpp project is built on top of the ggml library.

Quick start

A few options to get llama.cpp installed on your machine:

# curl
curl -LsSf https://llama.app/install.sh | sh

# powershell
irm https://llama.app/install.ps1 | iex

Once installed:

# Download and run a model directly from Hugging Face
llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF

# Launch OpenAI-compatible API server
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF
VLM session with `llama cli` VLM session with llama cli Llama Chat, the built-in chat app, against `llama serve` running Qwen 3.6 Llama Chat, the built-in chat app, against llama serve

Documentation

Tools

Development

Contributing

  • Contributors can open PRs
  • Collaborators will be invited based on contributions
  • Maintainers can push to branches in the llama.cpp repo and merge PRs into the master branch
  • Any help with managing issues, PRs and projects is very appreciated!
  • Read the CONTRIBUTING.md for more information

Acknowledgements

  • yhirose/cpp-httplib - Single-header HTTP server, used by llama-server - MIT license
  • nothings/stb - Single-header image format decoder, used by multimodal subsystem - Public domain
  • nlohmann/json - Single-header JSON library, used by various tools/examples - MIT License
  • mackron/miniaudio - Single-header audio format decoder, used by multimodal subsystem - Public domain
  • sheredom/subprocess.h - Single-header process launching solution for C and C++ - Public domain