[Skip to content](https://github.com/thecodacus/llama.cpp#start-of-content)

You signed in with another tab or window. [Reload](https://github.com/thecodacus/llama.cpp) to refresh your session.You signed out in another tab or window. [Reload](https://github.com/thecodacus/llama.cpp) to refresh your session.You switched accounts on another tab or window. [Reload](https://github.com/thecodacus/llama.cpp) to refresh your session.Dismiss alert

{{ message }}

[thecodacus](https://github.com/thecodacus)/ **[llama.cpp](https://github.com/thecodacus/llama.cpp)** Public

forked from [ggml-org/llama.cpp](https://github.com/ggml-org/llama.cpp)

- [Notifications](https://github.com/login?return_to=%2Fthecodacus%2Fllama.cpp) You must be signed in to change notification settings
- [Fork\\
1](https://github.com/login?return_to=%2Fthecodacus%2Fllama.cpp)
- [Star\\
1](https://github.com/login?return_to=%2Fthecodacus%2Fllama.cpp)


master

[**578** Branches](https://github.com/thecodacus/llama.cpp/branches) [**6200** Tags](https://github.com/thecodacus/llama.cpp/tags)

[Go to Branches page](https://github.com/thecodacus/llama.cpp/branches)[Go to Tags page](https://github.com/thecodacus/llama.cpp/tags)

Go to file

Code

Open more actions menu

This branch is [829 commits behind](https://github.com/thecodacus/llama.cpp/compare/master...ggml-org%3Allama.cpp%3Amaster) ggml-org/llama.cpp:master.

## Folders and files

| Name | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| ## Latest commit<br>![tc-mb](https://avatars.githubusercontent.com/u/157115220?v=4&size=40)![CISC](https://avatars.githubusercontent.com/u/1629204?v=4&size=40)<br>[tc-mb](https://github.com/thecodacus/llama.cpp/commits?author=tc-mb)<br>and<br>[CISC](https://github.com/thecodacus/llama.cpp/commits?author=CISC)<br>[mtmd : support MiniCPM-V 4.6 (](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360) [ggml-org#22529](https://github.com/ggml-org/llama.cpp/pull/22529) [)](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360)<br>Open commit details<br>2 months agoMay 6, 2026<br>[2496f9c](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360) · 2 months agoMay 6, 2026<br>## History<br>[9,049 Commits](https://github.com/thecodacus/llama.cpp/commits/master/) <br>Open commit details<br>[View commit history for this file.](https://github.com/thecodacus/llama.cpp/commits/master/) 9,049 Commits |
| [.devops](https://github.com/thecodacus/llama.cpp/tree/master/.devops ".devops") | [.devops](https://github.com/thecodacus/llama.cpp/tree/master/.devops ".devops") | [\[SYCL\] Update oneapi 2025.3.3, Seperate SYCL build, release Ubuntu 24…](https://github.com/thecodacus/llama.cpp/commit/4ead6fd9571df75c21599f3bafabb457e16b22c4 "[SYCL] Update oneapi 2025.3.3, Seperate SYCL build, release Ubuntu 24 package. (#22078)  * upgrade oneAPI to 2025.3.3  * update  * seperate SYCL CI and support release binary package for ubuntu 24  * add dependence  * remove wrong copy lines  * add missed line  * remove other task to test the release for SYCL  * rm more for test release  * fix file name  * correct the error in running  * support build for fp32/fp16  * rm ubuntu-24-sycl-fp16 for duplicated  * refactor build setting  * update guide for ubuntu 24 release package, restore the release.yml for other backend  * user docker replace to install oneAPI  * use download installation package to replace docker  * use wget to download and install oneapi, replace the apt cmd  * enable ccache for oneAPI installation  * fix format error  * enable cache for oneAPI installation  * update guide  * Update .github/workflows/release.yml  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * Update .github/workflows/release.yml  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * Update .github/workflows/build-sycl.yml  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * Update .github/workflows/release.yml  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  ---------  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 3 months agoApr 23, 2026 |
| [.gemini](https://github.com/thecodacus/llama.cpp/tree/master/.gemini ".gemini") | [.gemini](https://github.com/thecodacus/llama.cpp/tree/master/.gemini ".gemini") | [contributing: tighten AI usage policy (](https://github.com/thecodacus/llama.cpp/commit/3595ae5963f1583f53beecf9725c919d309e15da "contributing: tighten AI usage policy (#18388)  * contributing: tighten AI usage policy  * refactor AGENTS.md  * proofreading  * update contributing  * add claude.md  * add trailing newline  * add note about dishonest practices  * rm point about dishonest  * rm requirement watermarking  * add .gemini/settings.json  * allow initially AI-generated content  * revise  * Update CONTRIBUTING.md  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * improve  * trailing space  * Apply suggestions from code review  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * update  ---------  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>") [ggml-org#18388](https://github.com/ggml-org/llama.cpp/pull/18388) [)](https://github.com/thecodacus/llama.cpp/commit/3595ae5963f1583f53beecf9725c919d309e15da "contributing: tighten AI usage policy (#18388)  * contributing: tighten AI usage policy  * refactor AGENTS.md  * proofreading  * update contributing  * add claude.md  * add trailing newline  * add note about dishonest practices  * rm point about dishonest  * rm requirement watermarking  * add .gemini/settings.json  * allow initially AI-generated content  * revise  * Update CONTRIBUTING.md  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * improve  * trailing space  * Apply suggestions from code review  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * update  ---------  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>") | 7 months agoDec 29, 2025 |
| [.github](https://github.com/thecodacus/llama.cpp/tree/master/.github ".github") | [.github](https://github.com/thecodacus/llama.cpp/tree/master/.github ".github") | [gguf-py : bump version to 0.19.0 (](https://github.com/thecodacus/llama.cpp/commit/a290ce626663dae1d54f70bce3ca6d8f67aab62f "gguf-py : bump version to 0.19.0 (#22664)  * gguf-py : bump version to 0.19.0  * bump poetry  ---------  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22664](https://github.com/ggml-org/llama.cpp/pull/22664) [)](https://github.com/thecodacus/llama.cpp/commit/a290ce626663dae1d54f70bce3ca6d8f67aab62f "gguf-py : bump version to 0.19.0 (#22664)  * gguf-py : bump version to 0.19.0  * bump poetry  ---------  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [.pi/gg](https://github.com/thecodacus/llama.cpp/tree/master/.pi/gg "This path skips through empty directories") | [.pi/gg](https://github.com/thecodacus/llama.cpp/tree/master/.pi/gg "This path skips through empty directories") | [docs : update speculative decoding parameters after refactor (](https://github.com/thecodacus/llama.cpp/commit/846262d7875dcabf502a150fa3d7b9c770dde7eb "docs : update speculative decoding parameters after refactor (#22397) (#22539)  * docs : update speculative decoding parameters after refactor (#22397)  Update docs/speculative.md to reflect the new parameter naming scheme introduced in PR #22397:  - Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min - Replace --spec-ngram-size-n/m with per-implementation variants - Add documentation for all new --spec-ngram-*- parameters - Update all example commands  Assisted-by: llama.cpp:local pi  * pi : add rule to use gh CLI for GitHub resources  Assisted-by: llama.cpp:local pi  * docs : run llama-gen-docs  * arg : fix typo") [ggml-or…](https://github.com/ggml-org/llama.cpp/pull/22397) | 2 months agoMay 4, 2026 |
| [benches](https://github.com/thecodacus/llama.cpp/tree/master/benches "benches") | [benches](https://github.com/thecodacus/llama.cpp/tree/master/benches "benches") | [benches : add Nemotron 3 Nano on DGX Spark (](https://github.com/thecodacus/llama.cpp/commit/9b342d0a9f2f4892daec065491583ec2be129685 "benches : add Nemotron 3 Nano on DGX Spark (#20652)  [no ci]") [ggml-org#20652](https://github.com/ggml-org/llama.cpp/pull/20652) [)](https://github.com/thecodacus/llama.cpp/commit/9b342d0a9f2f4892daec065491583ec2be129685 "benches : add Nemotron 3 Nano on DGX Spark (#20652)  [no ci]") | 4 months agoMar 16, 2026 |
| [ci](https://github.com/thecodacus/llama.cpp/tree/master/ci "ci") | [ci](https://github.com/thecodacus/llama.cpp/tree/master/ci "ci") | [ci: Add Windows Vulkan backend testing on Intel (](https://github.com/thecodacus/llama.cpp/commit/e43970099269b5b6da36b8977ad47697602e4e54 "ci: Add Windows Vulkan backend testing on Intel (#21292)  * experimenting CI  * Experimenting CI fix for MinGW  * experimenting CI on Windows  * modified script for integration with VisualStudio  * added proxy handling  * adding python version for Windows execution  * fix iterator::end() dereference  * fixed proxy handling  * Fix errors occurring on Windows  * fixed ci script  * Reverted to master  * Stripping test items to simplify Windows test  * adjusting script for windows testing  * Changed shell  * Fixed shell  * Fixed shell  * Fix CI setting  * Fix CI setting  * Fix CI setting  * Experimenting ci fix  * Experimenting ci fix  * Experimenting ci fix  * Experimenting ci fix  * experimenting fix for unit test error  * Changed to use BUILD_LOW_PERF to skip python tests  * Fix CI  * Added option to specify Ninja generator  * Reverted proxy related changes") [ggml-org#21292](https://github.com/ggml-org/llama.cpp/pull/21292) [)](https://github.com/thecodacus/llama.cpp/commit/e43970099269b5b6da36b8977ad47697602e4e54 "ci: Add Windows Vulkan backend testing on Intel (#21292)  * experimenting CI  * Experimenting CI fix for MinGW  * experimenting CI on Windows  * modified script for integration with VisualStudio  * added proxy handling  * adding python version for Windows execution  * fix iterator::end() dereference  * fixed proxy handling  * Fix errors occurring on Windows  * fixed ci script  * Reverted to master  * Stripping test items to simplify Windows test  * adjusting script for windows testing  * Changed shell  * Fixed shell  * Fixed shell  * Fix CI setting  * Fix CI setting  * Fix CI setting  * Experimenting ci fix  * Experimenting ci fix  * Experimenting ci fix  * Experimenting ci fix  * experimenting fix for unit test error  * Changed to use BUILD_LOW_PERF to skip python tests  * Fix CI  * Added option to specify Ninja generator  * Reverted proxy related changes") | 3 months agoApr 3, 2026 |
| [cmake](https://github.com/thecodacus/llama.cpp/tree/master/cmake "cmake") | [cmake](https://github.com/thecodacus/llama.cpp/tree/master/cmake "cmake") | [hexagon: add support for linux on snapdragon (](https://github.com/thecodacus/llama.cpp/commit/81069a808a29ae3048231e8b8c69758239f8e050 "hexagon: add support for linux on snapdragon (#21707)  * hexagon: add support for debian on ex2  * hexagon: add -fvectotize to c/c++ cmake flags  * hexagon: remove trailing white space  * update onboarding steps  * hexagon: update linux setup documentation  * hexagon: update intallation scripts  * Hexagon: update docs  * hexagon: update onboarding scripts  ---------  Co-authored-by: Zack Li <zackli@qti.qualcomm.com>") [ggml-org#21707](https://github.com/ggml-org/llama.cpp/pull/21707) [)](https://github.com/thecodacus/llama.cpp/commit/81069a808a29ae3048231e8b8c69758239f8e050 "hexagon: add support for linux on snapdragon (#21707)  * hexagon: add support for debian on ex2  * hexagon: add -fvectotize to c/c++ cmake flags  * hexagon: remove trailing white space  * update onboarding steps  * hexagon: update linux setup documentation  * hexagon: update intallation scripts  * Hexagon: update docs  * hexagon: update onboarding scripts  ---------  Co-authored-by: Zack Li <zackli@qti.qualcomm.com>") | 3 months agoApr 10, 2026 |
| [common](https://github.com/thecodacus/llama.cpp/tree/master/common "common") | [common](https://github.com/thecodacus/llama.cpp/tree/master/common "common") | [common: do not fit to unknown device memory (](https://github.com/thecodacus/llama.cpp/commit/a0101225bc60908572ed8b4dfd2ee1a61c69b689 "common: do not fit to unknown device memory (#22614)  * common: do not fit to unknown device memory  Signed-off-by: Florian Reinle <f.reinle@otec.de>  * common: preserve host fallback for non-GPU fit devices  Signed-off-by: Florian Reinle <f.reinle@otec.de>  * common: keep unknown GPU fit memory at zero  Signed-off-by: Florian Reinle <f.reinle@otec.de>  ---------  Signed-off-by: Florian Reinle <f.reinle@otec.de>") [ggml-org#22614](https://github.com/ggml-org/llama.cpp/pull/22614) [)](https://github.com/thecodacus/llama.cpp/commit/a0101225bc60908572ed8b4dfd2ee1a61c69b689 "common: do not fit to unknown device memory (#22614)  * common: do not fit to unknown device memory  Signed-off-by: Florian Reinle <f.reinle@otec.de>  * common: preserve host fallback for non-GPU fit devices  Signed-off-by: Florian Reinle <f.reinle@otec.de>  * common: keep unknown GPU fit memory at zero  Signed-off-by: Florian Reinle <f.reinle@otec.de>  ---------  Signed-off-by: Florian Reinle <f.reinle@otec.de>") | 2 months agoMay 6, 2026 |
| [docs](https://github.com/thecodacus/llama.cpp/tree/master/docs "docs") | [docs](https://github.com/thecodacus/llama.cpp/tree/master/docs "docs") | [mtmd : support MiniCPM-V 4.6 (](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22529](https://github.com/ggml-org/llama.cpp/pull/22529) [)](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [examples](https://github.com/thecodacus/llama.cpp/tree/master/examples "examples") | [examples](https://github.com/thecodacus/llama.cpp/tree/master/examples "examples") | [common : only load backends when required (](https://github.com/thecodacus/llama.cpp/commit/bf76ac77bed3f53a6d35968019ee34078bebf701 "common : only load backends when required (#22290)  * common : only load backends when required  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * llama : call ggml_backend_load_all() directly from llama_backend_init()  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * Add ggml_backend_load_all() where llama_backend_init() is not used  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  ---------  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") [ggml-org#22290](https://github.com/ggml-org/llama.cpp/pull/22290) [)](https://github.com/thecodacus/llama.cpp/commit/bf76ac77bed3f53a6d35968019ee34078bebf701 "common : only load backends when required (#22290)  * common : only load backends when required  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * llama : call ggml_backend_load_all() directly from llama_backend_init()  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * Add ggml_backend_load_all() where llama_backend_init() is not used  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  ---------  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") | 2 months agoMay 5, 2026 |
| [ggml](https://github.com/thecodacus/llama.cpp/tree/master/ggml "ggml") | [ggml](https://github.com/thecodacus/llama.cpp/tree/master/ggml "ggml") | [ggml-cpu: fuse RMS\_NORM + MUL on CPU backend (](https://github.com/thecodacus/llama.cpp/commit/f08f20a0e330da9530ded3e800dff9fbb05a3288 "ggml-cpu: fuse RMS_NORM + MUL on CPU backend  (#22423)") [ggml-org#22423](https://github.com/ggml-org/llama.cpp/pull/22423) [)](https://github.com/thecodacus/llama.cpp/commit/f08f20a0e330da9530ded3e800dff9fbb05a3288 "ggml-cpu: fuse RMS_NORM + MUL on CPU backend  (#22423)") | 2 months agoMay 6, 2026 |
| [gguf-py](https://github.com/thecodacus/llama.cpp/tree/master/gguf-py "gguf-py") | [gguf-py](https://github.com/thecodacus/llama.cpp/tree/master/gguf-py "gguf-py") | [mtmd : support MiniCPM-V 4.6 (](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22529](https://github.com/ggml-org/llama.cpp/pull/22529) [)](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [grammars](https://github.com/thecodacus/llama.cpp/tree/master/grammars "grammars") | [grammars](https://github.com/thecodacus/llama.cpp/tree/master/grammars "grammars") | [docs : document that JSON Schema is not available to model when using…](https://github.com/thecodacus/llama.cpp/commit/6e0c8cbc40c4abf49e5c52f0f51267c2afdfc053 "docs : document that JSON Schema is not available to model when using response_format  (#18492)  * Document unsupported JSON Schema annotations  Add note about unsupported JSON Schema annotations.  * Update README.md  * Update README.md  * Update README.md") | 7 months agoDec 30, 2025 |
| [include](https://github.com/thecodacus/llama.cpp/tree/master/include "include") | [include](https://github.com/thecodacus/llama.cpp/tree/master/include "include") | [llama : add option to save memory in device buffers (](https://github.com/thecodacus/llama.cpp/commit/d6e7b033a42b2880496d1e9db1df5527e48a8869 "llama : add option to save memory in device buffers (#22679)  * llama : add option to save memory in device buffers  * tests : extend llama-save-load-state") [ggml-org#22679](https://github.com/ggml-org/llama.cpp/pull/22679) [)](https://github.com/thecodacus/llama.cpp/commit/d6e7b033a42b2880496d1e9db1df5527e48a8869 "llama : add option to save memory in device buffers (#22679)  * llama : add option to save memory in device buffers  * tests : extend llama-save-load-state") | 2 months agoMay 4, 2026 |
| [licenses](https://github.com/thecodacus/llama.cpp/tree/master/licenses "licenses") | [licenses](https://github.com/thecodacus/llama.cpp/tree/master/licenses "licenses") | [refactor : remove libcurl, use OpenSSL when available (](https://github.com/thecodacus/llama.cpp/commit/516a4ca9b5f2fa72c2a71f412929a67cf76a6213 "refactor : remove libcurl, use OpenSSL when available (#18828)") [ggml-org#18828](https://github.com/ggml-org/llama.cpp/pull/18828) [)](https://github.com/thecodacus/llama.cpp/commit/516a4ca9b5f2fa72c2a71f412929a67cf76a6213 "refactor : remove libcurl, use OpenSSL when available (#18828)") | 6 months agoJan 14, 2026 |
| [media](https://github.com/thecodacus/llama.cpp/tree/master/media "media") | [media](https://github.com/thecodacus/llama.cpp/tree/master/media "media") | [media : add transparent icon svg and png \[no ci\] (](https://github.com/thecodacus/llama.cpp/commit/2cfef4d117d67ab1dec002915b48a15d11ee1973 "media : add transparent icon svg and png [no ci] (#15891)") [ggml-org#15891](https://github.com/ggml-org/llama.cpp/pull/15891) [)](https://github.com/thecodacus/llama.cpp/commit/2cfef4d117d67ab1dec002915b48a15d11ee1973 "media : add transparent icon svg and png [no ci] (#15891)") | 10 months agoSep 10, 2025 |
| [models](https://github.com/thecodacus/llama.cpp/tree/master/models "models") | [models](https://github.com/thecodacus/llama.cpp/tree/master/models "models") | [autoparser: support case of JSON\_NATIVE with per-call markers (test c…](https://github.com/thecodacus/llama.cpp/commit/e1a9a6dcbefccb4b864d9385ce8494f2a7f2ffcd "autoparser: support case of JSON_NATIVE with per-call markers (test case: Reka-Edge) (#21892)") | 3 months agoApr 15, 2026 |
| [pocs](https://github.com/thecodacus/llama.cpp/tree/master/pocs "pocs") | [pocs](https://github.com/thecodacus/llama.cpp/tree/master/pocs "pocs") | [libs : rename libcommon -> libllama-common (](https://github.com/thecodacus/llama.cpp/commit/6990e2f1f7581d332a6a1f34d6c567be70138184 "libs : rename libcommon -> libllama-common (#21936)  * cmake : allow libcommon to be shared  * cmake : rename libcommon to libllama-common  * cont : set -fPIC for httplib  * cont : export all symbols  * cont : fix build_info exports  * libs : add libllama-common-base  * log : add common_log_get_verbosity_thold()") [ggml-org#21936](https://github.com/ggml-org/llama.cpp/pull/21936) [)](https://github.com/thecodacus/llama.cpp/commit/6990e2f1f7581d332a6a1f34d6c567be70138184 "libs : rename libcommon -> libllama-common (#21936)  * cmake : allow libcommon to be shared  * cmake : rename libcommon to libllama-common  * cont : set -fPIC for httplib  * cont : export all symbols  * cont : fix build_info exports  * libs : add libllama-common-base  * log : add common_log_get_verbosity_thold()") | 3 months agoApr 17, 2026 |
| [requirements](https://github.com/thecodacus/llama.cpp/tree/master/requirements "requirements") | [requirements](https://github.com/thecodacus/llama.cpp/tree/master/requirements "requirements") | [py : Bump typer to latest to fix huggingface\_hub issue (](https://github.com/thecodacus/llama.cpp/commit/660386f6f88764afa615b9be0bfae4961fa115f1 "py : Bump typer to latest to fix huggingface_hub issue (#21701)") [ggml-org#21701](https://github.com/ggml-org/llama.cpp/pull/21701) [)](https://github.com/thecodacus/llama.cpp/commit/660386f6f88764afa615b9be0bfae4961fa115f1 "py : Bump typer to latest to fix huggingface_hub issue (#21701)") | 3 months agoApr 11, 2026 |
| [scripts](https://github.com/thecodacus/llama.cpp/tree/master/scripts "scripts") | [scripts](https://github.com/thecodacus/llama.cpp/tree/master/scripts "scripts") | [sync : ggml](https://github.com/thecodacus/llama.cpp/commit/70a8309114c4f6df8fb53517f6c61268160a76c8 "sync : ggml") | 2 months agoMay 5, 2026 |
| [src](https://github.com/thecodacus/llama.cpp/tree/master/src "src") | [src](https://github.com/thecodacus/llama.cpp/tree/master/src "src") | [model : don't crash on unsupported architecture (](https://github.com/thecodacus/llama.cpp/commit/5207d120eac2393fdad6328b44dbcbfc5dea20e4 "model : don't crash on unsupported architecture (#22742)  * model: don't crash on unsupported architecture  * Update src/llama-model.cpp  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  ---------  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22742](https://github.com/ggml-org/llama.cpp/pull/22742) [)](https://github.com/thecodacus/llama.cpp/commit/5207d120eac2393fdad6328b44dbcbfc5dea20e4 "model : don't crash on unsupported architecture (#22742)  * model: don't crash on unsupported architecture  * Update src/llama-model.cpp  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  ---------  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [tests](https://github.com/thecodacus/llama.cpp/tree/master/tests "tests") | [tests](https://github.com/thecodacus/llama.cpp/tree/master/tests "tests") | [common : only load backends when required (](https://github.com/thecodacus/llama.cpp/commit/bf76ac77bed3f53a6d35968019ee34078bebf701 "common : only load backends when required (#22290)  * common : only load backends when required  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * llama : call ggml_backend_load_all() directly from llama_backend_init()  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * Add ggml_backend_load_all() where llama_backend_init() is not used  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  ---------  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") [ggml-org#22290](https://github.com/ggml-org/llama.cpp/pull/22290) [)](https://github.com/thecodacus/llama.cpp/commit/bf76ac77bed3f53a6d35968019ee34078bebf701 "common : only load backends when required (#22290)  * common : only load backends when required  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * llama : call ggml_backend_load_all() directly from llama_backend_init()  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  * Add ggml_backend_load_all() where llama_backend_init() is not used  Signed-off-by: Adrien Gallouët <angt@huggingface.co>  ---------  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") | 2 months agoMay 5, 2026 |
| [tools](https://github.com/thecodacus/llama.cpp/tree/master/tools "tools") | [tools](https://github.com/thecodacus/llama.cpp/tree/master/tools "tools") | [mtmd : support MiniCPM-V 4.6 (](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22529](https://github.com/ggml-org/llama.cpp/pull/22529) [)](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [vendor](https://github.com/thecodacus/llama.cpp/tree/master/vendor "vendor") | [vendor](https://github.com/thecodacus/llama.cpp/tree/master/vendor "vendor") | [vendor : update cpp-httplib to 0.43.3 (](https://github.com/thecodacus/llama.cpp/commit/a09a00e50259578ec0127d5116cb744191efeaac "vendor : update cpp-httplib to 0.43.3 (#22686)") [ggml-org#22686](https://github.com/ggml-org/llama.cpp/pull/22686) [)](https://github.com/thecodacus/llama.cpp/commit/a09a00e50259578ec0127d5116cb744191efeaac "vendor : update cpp-httplib to 0.43.3 (#22686)") | 2 months agoMay 5, 2026 |
| [.clang-format](https://github.com/thecodacus/llama.cpp/blob/master/.clang-format ".clang-format") | [.clang-format](https://github.com/thecodacus/llama.cpp/blob/master/.clang-format ".clang-format") | [fix: apply clang-format to CUDA macros (](https://github.com/thecodacus/llama.cpp/commit/f1fbffb5c0b34b2a68febb7da3fd0f8333f1ed4c "fix: apply clang-format to CUDA macros (#16017)  clang-format previously broke long CUDA macros (e.g. __launch_bounds__) into unreadable line breaks inside template declarations, such as:    template<int D, int ncols, int nwarps, int VKQ_stride,            typename KQ_acc_t, bool use_logit_softcap>       __launch_bounds__(nwarps*ggml_cuda_get_physical_warp_size(), 1)  This change adjusts formatting rules so that CUDA macros remain consistent and aligned with the surrounding template syntax.") [ggml-org#16017](https://github.com/ggml-org/llama.cpp/pull/16017) [)](https://github.com/thecodacus/llama.cpp/commit/f1fbffb5c0b34b2a68febb7da3fd0f8333f1ed4c "fix: apply clang-format to CUDA macros (#16017)  clang-format previously broke long CUDA macros (e.g. __launch_bounds__) into unreadable line breaks inside template declarations, such as:    template<int D, int ncols, int nwarps, int VKQ_stride,            typename KQ_acc_t, bool use_logit_softcap>       __launch_bounds__(nwarps*ggml_cuda_get_physical_warp_size(), 1)  This change adjusts formatting rules so that CUDA macros remain consistent and aligned with the surrounding template syntax.") | 10 months agoSep 16, 2025 |
| [.clang-tidy](https://github.com/thecodacus/llama.cpp/blob/master/.clang-tidy ".clang-tidy") | [.clang-tidy](https://github.com/thecodacus/llama.cpp/blob/master/.clang-tidy ".clang-tidy") | [clang-tidy : disable warning about performance enum size (](https://github.com/thecodacus/llama.cpp/commit/351f3da39c85f59d581fc184f09283da7f099a3b "clang-tidy : disable warning about performance enum size (#16127)  Disable 'performance-enum-size' checking:  Enum 'llama_token_type' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size.") [ggml-org#16127](https://github.com/ggml-org/llama.cpp/pull/16127) | 10 months agoSep 22, 2025 |
| [.dockerignore](https://github.com/thecodacus/llama.cpp/blob/master/.dockerignore ".dockerignore") | [.dockerignore](https://github.com/thecodacus/llama.cpp/blob/master/.dockerignore ".dockerignore") | [ci : fix docker build number and tag name (](https://github.com/thecodacus/llama.cpp/commit/ea9c32be71b91b42ecc538bd902e93cbb5fb36cb "ci : fix docker build number and tag name (#9638)  * ci : fix docker build number and tag name  * fine-grant permissions") [ggml-org#9638](https://github.com/ggml-org/llama.cpp/pull/9638) [)](https://github.com/thecodacus/llama.cpp/commit/ea9c32be71b91b42ecc538bd902e93cbb5fb36cb "ci : fix docker build number and tag name (#9638)  * ci : fix docker build number and tag name  * fine-grant permissions") | 2 years agoSep 25, 2024 |
| [.ecrc](https://github.com/thecodacus/llama.cpp/blob/master/.ecrc ".ecrc") | [.ecrc](https://github.com/thecodacus/llama.cpp/blob/master/.ecrc ".ecrc") | [common : Update stb\_image.h to latest version (](https://github.com/thecodacus/llama.cpp/commit/ad76569f8e78ab6ca921bda25cef25a157361719 "common : Update stb_image.h to latest version (#9161)  * Update stb_image.h to latest version  Fixes https://github.com/ggerganov/llama.cpp/issues/7431  * Update .ecrc") [ggml-org#9161](https://github.com/ggml-org/llama.cpp/pull/9161) [)](https://github.com/thecodacus/llama.cpp/commit/ad76569f8e78ab6ca921bda25cef25a157361719 "common : Update stb_image.h to latest version (#9161)  * Update stb_image.h to latest version  Fixes https://github.com/ggerganov/llama.cpp/issues/7431  * Update .ecrc") | 2 years agoAug 27, 2024 |
| [.editorconfig](https://github.com/thecodacus/llama.cpp/blob/master/.editorconfig ".editorconfig") | [.editorconfig](https://github.com/thecodacus/llama.cpp/blob/master/.editorconfig ".editorconfig") | [server: (webui) no more gzip compression (](https://github.com/thecodacus/llama.cpp/commit/4a00bbfed62a9714bc94a3431e6cc37615b175a2 "server: (webui) no more gzip compression (#21073)  * webui: no more gzip  * try changing a small line  * Revert \"try changing a small line\"  This reverts commit 0d7a3531593d87b724d404c8727a96becab3ab07.  * fix lint  * fix test  * rebuild  * split into html/css/js  * lint  * chore: update webui build output  * chore: Update git hooks script  * server: update webui build output  * chore: Update pre-commit hook  * refactor: Cleanup  ---------  Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>") [ggml-org#21073](https://github.com/ggml-org/llama.cpp/pull/21073) [)](https://github.com/thecodacus/llama.cpp/commit/4a00bbfed62a9714bc94a3431e6cc37615b175a2 "server: (webui) no more gzip compression (#21073)  * webui: no more gzip  * try changing a small line  * Revert \"try changing a small line\"  This reverts commit 0d7a3531593d87b724d404c8727a96becab3ab07.  * fix lint  * fix test  * rebuild  * split into html/css/js  * lint  * chore: update webui build output  * chore: Update git hooks script  * server: update webui build output  * chore: Update pre-commit hook  * refactor: Cleanup  ---------  Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>") | 4 months agoMar 31, 2026 |
| [.flake8](https://github.com/thecodacus/llama.cpp/blob/master/.flake8 ".flake8") | [.flake8](https://github.com/thecodacus/llama.cpp/blob/master/.flake8 ".flake8") | [llama : move end-user examples to tools directory (](https://github.com/thecodacus/llama.cpp/commit/1d36b3670b285e69e58b9d687c770a2a0a192194 "llama : move end-user examples to tools directory (#13249)  * llama : move end-user examples to tools directory  ---------  Co-authored-by: Xuan Son Nguyen <son@huggingface.co>") [ggml-org#13249](https://github.com/ggml-org/llama.cpp/pull/13249) [)](https://github.com/thecodacus/llama.cpp/commit/1d36b3670b285e69e58b9d687c770a2a0a192194 "llama : move end-user examples to tools directory (#13249)  * llama : move end-user examples to tools directory  ---------  Co-authored-by: Xuan Son Nguyen <son@huggingface.co>") | last yearMay 2, 2025 |
| [.gitattributes](https://github.com/thecodacus/llama.cpp/blob/master/.gitattributes ".gitattributes") | [.gitattributes](https://github.com/thecodacus/llama.cpp/blob/master/.gitattributes ".gitattributes") | [server: (webui) no more gzip compression (](https://github.com/thecodacus/llama.cpp/commit/4a00bbfed62a9714bc94a3431e6cc37615b175a2 "server: (webui) no more gzip compression (#21073)  * webui: no more gzip  * try changing a small line  * Revert \"try changing a small line\"  This reverts commit 0d7a3531593d87b724d404c8727a96becab3ab07.  * fix lint  * fix test  * rebuild  * split into html/css/js  * lint  * chore: update webui build output  * chore: Update git hooks script  * server: update webui build output  * chore: Update pre-commit hook  * refactor: Cleanup  ---------  Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>") [ggml-org#21073](https://github.com/ggml-org/llama.cpp/pull/21073) [)](https://github.com/thecodacus/llama.cpp/commit/4a00bbfed62a9714bc94a3431e6cc37615b175a2 "server: (webui) no more gzip compression (#21073)  * webui: no more gzip  * try changing a small line  * Revert \"try changing a small line\"  This reverts commit 0d7a3531593d87b724d404c8727a96becab3ab07.  * fix lint  * fix test  * rebuild  * split into html/css/js  * lint  * chore: update webui build output  * chore: Update git hooks script  * server: update webui build output  * chore: Update pre-commit hook  * refactor: Cleanup  ---------  Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>") | 4 months agoMar 31, 2026 |
| [.gitignore](https://github.com/thecodacus/llama.cpp/blob/master/.gitignore ".gitignore") | [.gitignore](https://github.com/thecodacus/llama.cpp/blob/master/.gitignore ".gitignore") | [feat: migrate to PEP 621 and add uv support (](https://github.com/thecodacus/llama.cpp/commit/750141969ca98d91be460538655904591f337b82 "feat: migrate to PEP 621 and add uv support (#21907)  * feat: migrate to PEP 621 and add uv support  * fix: remove upper bound on protobuf  * remove poetry.lock and uv.lock  * fix/add torch dependency version and markers  * fix dev-dependency deprecation warning  * gguf-py : update python version requirement to 3.10  ---------  Co-authored-by: David Huggins-Daines <dhd@dhd.ecolingui.ca> Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>") [ggml-org#21907](https://github.com/ggml-org/llama.cpp/pull/21907) [)](https://github.com/thecodacus/llama.cpp/commit/750141969ca98d91be460538655904591f337b82 "feat: migrate to PEP 621 and add uv support (#21907)  * feat: migrate to PEP 621 and add uv support  * fix: remove upper bound on protobuf  * remove poetry.lock and uv.lock  * fix/add torch dependency version and markers  * fix dev-dependency deprecation warning  * gguf-py : update python version requirement to 3.10  ---------  Co-authored-by: David Huggins-Daines <dhd@dhd.ecolingui.ca> Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>") | 2 months agoMay 6, 2026 |
| [.gitmodules](https://github.com/thecodacus/llama.cpp/blob/master/.gitmodules ".gitmodules") | [.gitmodules](https://github.com/thecodacus/llama.cpp/blob/master/.gitmodules ".gitmodules") | [ggml : remove kompute backend (](https://github.com/thecodacus/llama.cpp/commit/d4cdd9c1c3cebdafca735958597de4ff7b7c0f54 "ggml : remove kompute backend (#14501)  ggml-ci") [ggml-org#14501](https://github.com/ggml-org/llama.cpp/pull/14501) [)](https://github.com/thecodacus/llama.cpp/commit/d4cdd9c1c3cebdafca735958597de4ff7b7c0f54 "ggml : remove kompute backend (#14501)  ggml-ci") | last yearJul 3, 2025 |
| [.pre-commit-config.yaml](https://github.com/thecodacus/llama.cpp/blob/master/.pre-commit-config.yaml ".pre-commit-config.yaml") | [.pre-commit-config.yaml](https://github.com/thecodacus/llama.cpp/blob/master/.pre-commit-config.yaml ".pre-commit-config.yaml") | [convert.py : add python logging instead of print() (](https://github.com/thecodacus/llama.cpp/commit/a2ac89d6efb41b535778bfeaecaae8fe295b6ed3 "convert.py : add python logging instead of print() (#6511)  * convert.py: add python logging instead of print()  * convert.py: verbose flag takes priority over dump flag log suppression  * convert.py: named instance logging  * convert.py: use explicit logger id string  * convert.py: convert extra print() to named logger  * convert.py: sys.stderr.write --> logger.error  * *.py: Convert all python scripts to use logging module  * requirements.txt: remove extra line  * flake8: update flake8 ignore and exclude to match ci settings  * gh-actions: add flake8-no-print to flake8 lint step  * pre-commit: add flake8-no-print to flake8 and also update pre-commit version  * convert-hf-to-gguf.py: print() to logger conversion  * *.py: logging basiconfig refactor to use conditional expression  * *.py: removed commented out logging  * fixup! *.py: logging basiconfig refactor to use conditional expression  * constant.py: logger.error then exit should be a raise exception instead  * *.py: Convert logger error and sys.exit() into a raise exception (for atypical error)  * gguf-convert-endian.py: refactor convert_byteorder() to use tqdm progressbar  * verify-checksum-model.py: This is the result of the program, it should be printed to stdout.  * compare-llama-bench.py: add blank line for readability during missing repo response  * reader.py: read_gguf_file() use print() over logging  * convert.py: warning goes to stderr and won't hurt the dump output  * gguf-dump.py: dump_metadata() should print to stdout  * convert-hf-to-gguf.py: print --> logger.debug or ValueError()  * verify-checksum-models.py: use print() for printing table  * *.py: refactor logging.basicConfig()  * gguf-py/gguf/*.py: use __name__ as logger name  Since they will be imported and not run directly.  * python-lint.yml: use .flake8 file instead  * constants.py: logger no longer required  * convert-hf-to-gguf.py: add additional logging  * convert-hf-to-gguf.py: print() --> logger  * *.py: fix flake8 warnings  * revert changes to convert-hf-to-gguf.py for get_name()  * convert-hf-to-gguf-update.py: use triple quoted f-string instead  * *.py: accidentally corrected the wrong line  * *.py: add compilade warning suggestions and style fixes") [ggml-org#6511](https://github.com/ggml-org/llama.cpp/pull/6511) [)](https://github.com/thecodacus/llama.cpp/commit/a2ac89d6efb41b535778bfeaecaae8fe295b6ed3 "convert.py : add python logging instead of print() (#6511)  * convert.py: add python logging instead of print()  * convert.py: verbose flag takes priority over dump flag log suppression  * convert.py: named instance logging  * convert.py: use explicit logger id string  * convert.py: convert extra print() to named logger  * convert.py: sys.stderr.write --> logger.error  * *.py: Convert all python scripts to use logging module  * requirements.txt: remove extra line  * flake8: update flake8 ignore and exclude to match ci settings  * gh-actions: add flake8-no-print to flake8 lint step  * pre-commit: add flake8-no-print to flake8 and also update pre-commit version  * convert-hf-to-gguf.py: print() to logger conversion  * *.py: logging basiconfig refactor to use conditional expression  * *.py: removed commented out logging  * fixup! *.py: logging basiconfig refactor to use conditional expression  * constant.py: logger.error then exit should be a raise exception instead  * *.py: Convert logger error and sys.exit() into a raise exception (for atypical error)  * gguf-convert-endian.py: refactor convert_byteorder() to use tqdm progressbar  * verify-checksum-model.py: This is the result of the program, it should be printed to stdout.  * compare-llama-bench.py: add blank line for readability during missing repo response  * reader.py: read_gguf_file() use print() over logging  * convert.py: warning goes to stderr and won't hurt the dump output  * gguf-dump.py: dump_metadata() should print to stdout  * convert-hf-to-gguf.py: print --> logger.debug or ValueError()  * verify-checksum-models.py: use print() for printing table  * *.py: refactor logging.basicConfig()  * gguf-py/gguf/*.py: use __name__ as logger name  Since they will be imported and not run directly.  * python-lint.yml: use .flake8 file instead  * constants.py: logger no longer required  * convert-hf-to-gguf.py: add additional logging  * convert-hf-to-gguf.py: print() --> logger  * *.py: fix flake8 warnings  * revert changes to convert-hf-to-gguf.py for get_name()  * convert-hf-to-gguf-update.py: use triple quoted f-string instead  * *.py: accidentally corrected the wrong line  * *.py: add compilade warning suggestions and style fixes") | 2 years agoMay 3, 2024 |
| [AGENTS.md](https://github.com/thecodacus/llama.cpp/blob/master/AGENTS.md "AGENTS.md") | [AGENTS.md](https://github.com/thecodacus/llama.cpp/blob/master/AGENTS.md "AGENTS.md") | [contrib : rewrite AGENTS.md, make it more clear about project values (](https://github.com/thecodacus/llama.cpp/commit/c30e012253dd9e322c8e3424f808a5c74ecc46bf "contrib : rewrite AGENTS.md, make it more clear about project values (#21270)  * contrib : rewrite AGENTS.md, make it more clear about types of permitted AI usage  * permit AI for writing code") [g…](https://github.com/ggml-org/llama.cpp/pull/21270) | 4 months agoApr 1, 2026 |
| [AUTHORS](https://github.com/thecodacus/llama.cpp/blob/master/AUTHORS "AUTHORS") | [AUTHORS](https://github.com/thecodacus/llama.cpp/blob/master/AUTHORS "AUTHORS") | [authors : update (](https://github.com/thecodacus/llama.cpp/commit/1239267cc4e5a1c9fc6546825eefe13c856e7458 "authors : update (#19263)  [no ci]") [ggml-org#19263](https://github.com/ggml-org/llama.cpp/pull/19263) [)](https://github.com/thecodacus/llama.cpp/commit/1239267cc4e5a1c9fc6546825eefe13c856e7458 "authors : update (#19263)  [no ci]") | 5 months agoFeb 2, 2026 |
| [CLAUDE.md](https://github.com/thecodacus/llama.cpp/blob/master/CLAUDE.md "CLAUDE.md") | [CLAUDE.md](https://github.com/thecodacus/llama.cpp/blob/master/CLAUDE.md "CLAUDE.md") | [contributing: tighten AI usage policy (](https://github.com/thecodacus/llama.cpp/commit/3595ae5963f1583f53beecf9725c919d309e15da "contributing: tighten AI usage policy (#18388)  * contributing: tighten AI usage policy  * refactor AGENTS.md  * proofreading  * update contributing  * add claude.md  * add trailing newline  * add note about dishonest practices  * rm point about dishonest  * rm requirement watermarking  * add .gemini/settings.json  * allow initially AI-generated content  * revise  * Update CONTRIBUTING.md  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * improve  * trailing space  * Apply suggestions from code review  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * update  ---------  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>") [ggml-org#18388](https://github.com/ggml-org/llama.cpp/pull/18388) [)](https://github.com/thecodacus/llama.cpp/commit/3595ae5963f1583f53beecf9725c919d309e15da "contributing: tighten AI usage policy (#18388)  * contributing: tighten AI usage policy  * refactor AGENTS.md  * proofreading  * update contributing  * add claude.md  * add trailing newline  * add note about dishonest practices  * rm point about dishonest  * rm requirement watermarking  * add .gemini/settings.json  * allow initially AI-generated content  * revise  * Update CONTRIBUTING.md  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * improve  * trailing space  * Apply suggestions from code review  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>  * update  ---------  Co-authored-by: Johannes Gäßler <johannesg@5d6.de>") | 7 months agoDec 29, 2025 |
| [CMakeLists.txt](https://github.com/thecodacus/llama.cpp/blob/master/CMakeLists.txt "CMakeLists.txt") | [CMakeLists.txt](https://github.com/thecodacus/llama.cpp/blob/master/CMakeLists.txt "CMakeLists.txt") | [libs : rename libcommon -> libllama-common (](https://github.com/thecodacus/llama.cpp/commit/6990e2f1f7581d332a6a1f34d6c567be70138184 "libs : rename libcommon -> libllama-common (#21936)  * cmake : allow libcommon to be shared  * cmake : rename libcommon to libllama-common  * cont : set -fPIC for httplib  * cont : export all symbols  * cont : fix build_info exports  * libs : add libllama-common-base  * log : add common_log_get_verbosity_thold()") [ggml-org#21936](https://github.com/ggml-org/llama.cpp/pull/21936) [)](https://github.com/thecodacus/llama.cpp/commit/6990e2f1f7581d332a6a1f34d6c567be70138184 "libs : rename libcommon -> libllama-common (#21936)  * cmake : allow libcommon to be shared  * cmake : rename libcommon to libllama-common  * cont : set -fPIC for httplib  * cont : export all symbols  * cont : fix build_info exports  * libs : add libllama-common-base  * log : add common_log_get_verbosity_thold()") | 3 months agoApr 17, 2026 |
| [CMakePresets.json](https://github.com/thecodacus/llama.cpp/blob/master/CMakePresets.json "CMakePresets.json") | [CMakePresets.json](https://github.com/thecodacus/llama.cpp/blob/master/CMakePresets.json "CMakePresets.json") | [cmake : Add CMake presets for Linux and GCC (](https://github.com/thecodacus/llama.cpp/commit/84b396e0510855a95d591afdf1f21c562cb3712a "cmake : Add CMake presets for Linux and GCC (#14656)") [ggml-org#14656](https://github.com/ggml-org/llama.cpp/pull/14656) [)](https://github.com/thecodacus/llama.cpp/commit/84b396e0510855a95d591afdf1f21c562cb3712a "cmake : Add CMake presets for Linux and GCC (#14656)") | last yearJul 13, 2025 |
| [CODEOWNERS](https://github.com/thecodacus/llama.cpp/blob/master/CODEOWNERS "CODEOWNERS") | [CODEOWNERS](https://github.com/thecodacus/llama.cpp/blob/master/CODEOWNERS "CODEOWNERS") | [Github: set meta backend code owner (](https://github.com/thecodacus/llama.cpp/commit/7ec36aa861d0acfed7a57add0b5e17b92aa40ffd "Github: set meta backend code owner (#22388)") [ggml-org#22388](https://github.com/ggml-org/llama.cpp/pull/22388) [)](https://github.com/thecodacus/llama.cpp/commit/7ec36aa861d0acfed7a57add0b5e17b92aa40ffd "Github: set meta backend code owner (#22388)") | 3 months agoApr 26, 2026 |
| [CONTRIBUTING.md](https://github.com/thecodacus/llama.cpp/blob/master/CONTRIBUTING.md "CONTRIBUTING.md") | [CONTRIBUTING.md](https://github.com/thecodacus/llama.cpp/blob/master/CONTRIBUTING.md "CONTRIBUTING.md") | [docs : explicit about banning accounts that violates policy (](https://github.com/thecodacus/llama.cpp/commit/568aec82d2fc48341c54cae565768ac75072a31d "docs : explicit about banning accounts that violates policy (#19593)") [ggml-org…](https://github.com/ggml-org/llama.cpp/pull/19593) | 4 months agoMar 21, 2026 |
| [LICENSE](https://github.com/thecodacus/llama.cpp/blob/master/LICENSE "LICENSE") | [LICENSE](https://github.com/thecodacus/llama.cpp/blob/master/LICENSE "LICENSE") | [docs : Minor cleanups (](https://github.com/thecodacus/llama.cpp/commit/7a4ca3cbd905907ac4d12bc14b878fdfbe4fd1d6 "docs : Minor cleanups (#19252)  * Update old URLs to github.com/ggml-org/  * Bump copyrights") [ggml-org#19252](https://github.com/ggml-org/llama.cpp/pull/19252) [)](https://github.com/thecodacus/llama.cpp/commit/7a4ca3cbd905907ac4d12bc14b878fdfbe4fd1d6 "docs : Minor cleanups (#19252)  * Update old URLs to github.com/ggml-org/  * Bump copyrights") | 5 months agoFeb 2, 2026 |
| [Makefile](https://github.com/thecodacus/llama.cpp/blob/master/Makefile "Makefile") | [Makefile](https://github.com/thecodacus/llama.cpp/blob/master/Makefile "Makefile") | [make : remove make in favor of CMake (](https://github.com/thecodacus/llama.cpp/commit/37f10f955f70e0158d50343d0b9a3f92d194daae "make : remove make in favor of CMake (#15449)  This commit removes the content from the Makefile and updates the current deprecation message to information that `make` has been replaced by CMake instead.  The message when `make` is invoked will now be the following: ```console $ make Makefile:6: *** Build system changed:  The Makefile build has been replaced by CMake.   For build instructions see:  https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md  .  Stop. ```  The motivation for this is that many, if not all targets fail to build now, after changes to the system, and `make` has also been deprected for some time now.") [ggml-org#15449](https://github.com/ggml-org/llama.cpp/pull/15449) [)](https://github.com/thecodacus/llama.cpp/commit/37f10f955f70e0158d50343d0b9a3f92d194daae "make : remove make in favor of CMake (#15449)  This commit removes the content from the Makefile and updates the current deprecation message to information that `make` has been replaced by CMake instead.  The message when `make` is invoked will now be the following: ```console $ make Makefile:6: *** Build system changed:  The Makefile build has been replaced by CMake.   For build instructions see:  https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md  .  Stop. ```  The motivation for this is that many, if not all targets fail to build now, after changes to the system, and `make` has also been deprected for some time now.") | 11 months agoAug 20, 2025 |
| [README.md](https://github.com/thecodacus/llama.cpp/blob/master/README.md "README.md") | [README.md](https://github.com/thecodacus/llama.cpp/blob/master/README.md "README.md") | [readme : clarify MODEL\_ENDPOINT usage (](https://github.com/thecodacus/llama.cpp/commit/c9dc43333f7b56fb7b1f306771f4a477602f6d81 "readme : clarify MODEL_ENDPOINT usage (#20941)  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") [ggml-org#20941](https://github.com/ggml-org/llama.cpp/pull/20941) [)](https://github.com/thecodacus/llama.cpp/commit/c9dc43333f7b56fb7b1f306771f4a477602f6d81 "readme : clarify MODEL_ENDPOINT usage (#20941)  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") | 4 months agoMar 24, 2026 |
| [SECURITY.md](https://github.com/thecodacus/llama.cpp/blob/master/SECURITY.md "SECURITY.md") | [SECURITY.md](https://github.com/thecodacus/llama.cpp/blob/master/SECURITY.md "SECURITY.md") | [docs : fix broken link and typo (](https://github.com/thecodacus/llama.cpp/commit/423cf0b26fc0b72ff4bb4656a68a607d38b95fe5 "docs : fix broken link and typo (#19560)") [ggml-org#19560](https://github.com/ggml-org/llama.cpp/pull/19560) [)](https://github.com/thecodacus/llama.cpp/commit/423cf0b26fc0b72ff4bb4656a68a607d38b95fe5 "docs : fix broken link and typo (#19560)") | 5 months agoFeb 13, 2026 |
| [build-xcframework.sh](https://github.com/thecodacus/llama.cpp/blob/master/build-xcframework.sh "build-xcframework.sh") | [build-xcframework.sh](https://github.com/thecodacus/llama.cpp/blob/master/build-xcframework.sh "build-xcframework.sh") | [build : remove LLAMA\_HTTPLIB option (](https://github.com/thecodacus/llama.cpp/commit/9e118b97c456d378dea49a8c46b850c71fc18363 "build : remove LLAMA_HTTPLIB option (#19623)  This option was introduced as a workaround because cpp-httplib could not build on visionOS. Since it has been fixed and now compiles on all platforms, we can remove it and simplify many things.  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") [ggml-org#19623](https://github.com/ggml-org/llama.cpp/pull/19623) [)](https://github.com/thecodacus/llama.cpp/commit/9e118b97c456d378dea49a8c46b850c71fc18363 "build : remove LLAMA_HTTPLIB option (#19623)  This option was introduced as a workaround because cpp-httplib could not build on visionOS. Since it has been fixed and now compiles on all platforms, we can remove it and simplify many things.  Signed-off-by: Adrien Gallouët <angt@huggingface.co>") | 5 months agoFeb 15, 2026 |
| [convert\_hf\_to\_gguf.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_hf_to_gguf.py "convert_hf_to_gguf.py") | [convert\_hf\_to\_gguf.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_hf_to_gguf.py "convert_hf_to_gguf.py") | [mtmd : support MiniCPM-V 4.6 (](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22529](https://github.com/ggml-org/llama.cpp/pull/22529) [)](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [convert\_hf\_to\_gguf\_update.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_hf_to_gguf_update.py "convert_hf_to_gguf_update.py") | [convert\_hf\_to\_gguf\_update.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_hf_to_gguf_update.py "convert_hf_to_gguf_update.py") | [mtmd : support MiniCPM-V 4.6 (](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") [ggml-org#22529](https://github.com/ggml-org/llama.cpp/pull/22529) [)](https://github.com/thecodacus/llama.cpp/commit/2496f9c14965c39589f53eea31bdb6d762b1d360 "mtmd : support MiniCPM-V 4.6 (#22529)  * Support MiniCPM-V 4.6 in new branch  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code bug  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix pre-commit  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix convert  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * rename clip_graph_minicpmv4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use new TYPE_MINICPMV4_6  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use build_attn to allow flash attention support  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * no use legacy code, restored here.  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use the existing tensors name  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * unused ctx->model.hparams.minicpmv_version  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * use n_merge for slice alignment  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * borrow wa_layer_indexes for vit_merger insertion point  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix code style  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * Update convert_hf_to_gguf.py  Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>  * use filter_tensors and add model.vision_tower  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix chkhsh  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  * fix type check  Signed-off-by: tc-mb <tianchi_cai@icloud.com>  ---------  Signed-off-by: tc-mb <tianchi_cai@icloud.com> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>") | 2 months agoMay 6, 2026 |
| [convert\_llama\_ggml\_to\_gguf.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_llama_ggml_to_gguf.py "convert_llama_ggml_to_gguf.py") | [convert\_llama\_ggml\_to\_gguf.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_llama_ggml_to_gguf.py "convert_llama_ggml_to_gguf.py") | [ci : switch from pyright to ty (](https://github.com/thecodacus/llama.cpp/commit/29b28a98242692e352df38254c9a2bb9fa79c884 "ci : switch from pyright to ty (#20826)  * type fixes  * switch to ty  * tweak rules  * tweak more rules  * more tweaks  * final tweak  * use common import-not-found rule") [ggml-org#20826](https://github.com/ggml-org/llama.cpp/pull/20826) [)](https://github.com/thecodacus/llama.cpp/commit/29b28a98242692e352df38254c9a2bb9fa79c884 "ci : switch from pyright to ty (#20826)  * type fixes  * switch to ty  * tweak rules  * tweak more rules  * more tweaks  * final tweak  * use common import-not-found rule") | 4 months agoMar 21, 2026 |
| [convert\_lora\_to\_gguf.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_lora_to_gguf.py "convert_lora_to_gguf.py") | [convert\_lora\_to\_gguf.py](https://github.com/thecodacus/llama.cpp/blob/master/convert_lora_to_gguf.py "convert_lora_to_gguf.py") | [requirements : update transformers to 5.5.1 (](https://github.com/thecodacus/llama.cpp/commit/c8ac02fa1b9f8a154e110b655f7f7e4907796b0c "requirements : update transformers to 5.5.1 (#21617)  * requirements : update transformers to 5.5.0  This commit updates the transformers dependency to version 5.5.0.  The motivation for this is that transformers 5.5.0 includes support for Gemma4 and is required to be able to convert Gemma4 models. This is also causing issues for user of gguf-my-repo.  Refs: https://huggingface.co/spaces/ggml-org/gguf-my-repo/discussions/202  * fix huggingface_hub version  * set version of transformers to 5.5.0  * convert : add ty ignore directives to convert_hf_to_gguf.py  This commit adds `ty: ignore` directives to transformers tokenizers field/methods to avoid type check errors. There might be better ways to handle this and perhaps this can be done in a follow up commit.  The motivation for this is that it looks like in transformers 5.5.0 AutoTokenizer.from_pretrained can return generic tokenizer types or None and the type checker now produces an error when the conversion script accesses field like tokenizer.vocab.  * convert : add ty ignore to suppress type check errors  * convert : remove incorrect type ignores  * convert : fix remaining python checks  I was running a newer version of ty locally but I've switched to version 0.0.26 which is what CI uses and I was then able to reproduce the errors. Sorry about the noise.  * update transformers version to 5.5.1") [ggml-org#21617](https://github.com/ggml-org/llama.cpp/pull/21617) [)](https://github.com/thecodacus/llama.cpp/commit/c8ac02fa1b9f8a154e110b655f7f7e4907796b0c "requirements : update transformers to 5.5.1 (#21617)  * requirements : update transformers to 5.5.0  This commit updates the transformers dependency to version 5.5.0.  The motivation for this is that transformers 5.5.0 includes support for Gemma4 and is required to be able to convert Gemma4 models. This is also causing issues for user of gguf-my-repo.  Refs: https://huggingface.co/spaces/ggml-org/gguf-my-repo/discussions/202  * fix huggingface_hub version  * set version of transformers to 5.5.0  * convert : add ty ignore directives to convert_hf_to_gguf.py  This commit adds `ty: ignore` directives to transformers tokenizers field/methods to avoid type check errors. There might be better ways to handle this and perhaps this can be done in a follow up commit.  The motivation for this is that it looks like in transformers 5.5.0 AutoTokenizer.from_pretrained can return generic tokenizer types or None and the type checker now produces an error when the conversion script accesses field like tokenizer.vocab.  * convert : add ty ignore to suppress type check errors  * convert : remove incorrect type ignores  * convert : fix remaining python checks  I was running a newer version of ty locally but I've switched to version 0.0.26 which is what CI uses and I was then able to reproduce the errors. Sorry about the noise.  * update transformers version to 5.5.1") | 3 months agoApr 9, 2026 |
| [flake.lock](https://github.com/thecodacus/llama.cpp/blob/master/flake.lock "flake.lock") | [flake.lock](https://github.com/thecodacus/llama.cpp/blob/master/flake.lock "flake.lock") | [flake.lock: Update (](https://github.com/thecodacus/llama.cpp/commit/cce5a9007572c6e9fa522296b77571d2e5071357 "flake.lock: Update (#10470)  Flake lock file updates:  • Updated input 'nixpkgs':     'github:NixOS/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add?narHash=sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg%3D' (2024-11-15)   → 'github:NixOS/nixpkgs/23e89b7da85c3640bbc2173fe04f4bd114342367?narHash=sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w%3D' (2024-11-19)  Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>") [ggml-org#10470](https://github.com/ggml-org/llama.cpp/pull/10470) [)](https://github.com/thecodacus/llama.cpp/commit/cce5a9007572c6e9fa522296b77571d2e5071357 "flake.lock: Update (#10470)  Flake lock file updates:  • Updated input 'nixpkgs':     'github:NixOS/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add?narHash=sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg%3D' (2024-11-15)   → 'github:NixOS/nixpkgs/23e89b7da85c3640bbc2173fe04f4bd114342367?narHash=sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w%3D' (2024-11-19)  Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>") | 2 years agoNov 24, 2024 |
| [flake.nix](https://github.com/thecodacus/llama.cpp/blob/master/flake.nix "flake.nix") | [flake.nix](https://github.com/thecodacus/llama.cpp/blob/master/flake.nix "flake.nix") | [fix(nix): remove non-functional llama-cpp cachix cache from flake.nix (](https://github.com/thecodacus/llama.cpp/commit/1adc9812bd33dc85489bf093528d61c22917d54f "fix(nix): remove non-functional llama-cpp cachix cache from flake.nix (#15295)  The flake.nix included references to llama-cpp.cachix.org cache with a comment claiming it's 'Populated by the CI in ggml-org/llama.cpp', but:  1. No visible CI workflow populates this cache 2. The cache is empty for recent builds (tested b6150, etc.) 3. This misleads users into expecting pre-built binaries that don't exist  This change removes the non-functional cache references entirely, leaving only the working cuda-maintainers cache that actually provides CUDA dependencies.  Users can still manually add the llama-cpp cache if it becomes functional in the future.") […](https://github.com/ggml-org/llama.cpp/pull/15295) | 11 months agoAug 13, 2025 |
| [mypy.ini](https://github.com/thecodacus/llama.cpp/blob/master/mypy.ini "mypy.ini") | [mypy.ini](https://github.com/thecodacus/llama.cpp/blob/master/mypy.ini "mypy.ini") | [convert : partially revert PR](https://github.com/thecodacus/llama.cpp/commit/b43ebde3b0ccbc42d9dd782b32e2fd8eb35b43b5 "convert : partially revert PR #4818 (#5041)") [ggml-org#4818](https://github.com/ggml-org/llama.cpp/pull/4818) [(](https://github.com/thecodacus/llama.cpp/commit/b43ebde3b0ccbc42d9dd782b32e2fd8eb35b43b5 "convert : partially revert PR #4818 (#5041)") [ggml-org#5041](https://github.com/ggml-org/llama.cpp/pull/5041) [)](https://github.com/thecodacus/llama.cpp/commit/b43ebde3b0ccbc42d9dd782b32e2fd8eb35b43b5 "convert : partially revert PR #4818 (#5041)") | 2 years agoJan 20, 2024 |
| [pyproject.toml](https://github.com/thecodacus/llama.cpp/blob/master/pyproject.toml "pyproject.toml") | [pyproject.toml](https://github.com/thecodacus/llama.cpp/blob/master/pyproject.toml "pyproject.toml") | [feat: migrate to PEP 621 and add uv support (](https://github.com/thecodacus/llama.cpp/commit/750141969ca98d91be460538655904591f337b82 "feat: migrate to PEP 621 and add uv support (#21907)  * feat: migrate to PEP 621 and add uv support  * fix: remove upper bound on protobuf  * remove poetry.lock and uv.lock  * fix/add torch dependency version and markers  * fix dev-dependency deprecation warning  * gguf-py : update python version requirement to 3.10  ---------  Co-authored-by: David Huggins-Daines <dhd@dhd.ecolingui.ca> Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>") [ggml-org#21907](https://github.com/ggml-org/llama.cpp/pull/21907) [)](https://github.com/thecodacus/llama.cpp/commit/750141969ca98d91be460538655904591f337b82 "feat: migrate to PEP 621 and add uv support (#21907)  * feat: migrate to PEP 621 and add uv support  * fix: remove upper bound on protobuf  * remove poetry.lock and uv.lock  * fix/add torch dependency version and markers  * fix dev-dependency deprecation warning  * gguf-py : update python version requirement to 3.10  ---------  Co-authored-by: David Huggins-Daines <dhd@dhd.ecolingui.ca> Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>") | 2 months agoMay 6, 2026 |
| [pyrightconfig.json](https://github.com/thecodacus/llama.cpp/blob/master/pyrightconfig.json "pyrightconfig.json") | [pyrightconfig.json](https://github.com/thecodacus/llama.cpp/blob/master/pyrightconfig.json "pyrightconfig.json") | [ci : switch from pyright to ty (](https://github.com/thecodacus/llama.cpp/commit/29b28a98242692e352df38254c9a2bb9fa79c884 "ci : switch from pyright to ty (#20826)  * type fixes  * switch to ty  * tweak rules  * tweak more rules  * more tweaks  * final tweak  * use common import-not-found rule") [ggml-org#20826](https://github.com/ggml-org/llama.cpp/pull/20826) [)](https://github.com/thecodacus/llama.cpp/commit/29b28a98242692e352df38254c9a2bb9fa79c884 "ci : switch from pyright to ty (#20826)  * type fixes  * switch to ty  * tweak rules  * tweak more rules  * more tweaks  * final tweak  * use common import-not-found rule") | 4 months agoMar 21, 2026 |
| [requirements.txt](https://github.com/thecodacus/llama.cpp/blob/master/requirements.txt "requirements.txt") | [requirements.txt](https://github.com/thecodacus/llama.cpp/blob/master/requirements.txt "requirements.txt") | [`tool-call`: fix Qwen 2.5 Coder support, add micro benchmarks, suppor…](https://github.com/thecodacus/llama.cpp/commit/669912d9a5bf927312c553332ff997f0a99da8fb "`tool-call`: fix Qwen 2.5 Coder support, add micro benchmarks, support trigger patterns for lazy grammars (#12034)  * sampler: turn lazy grammar trigger words to regexes  * add scripts/tool_bench.sh & .py  * constrain llama json output regardless of function name if matches at beginning  * update relaxed newline space rule in grammar tests  * support add_generation_prompt query parameter (useful for /apply_template)  * Update src/llama-grammar.cpp  Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>  ---------  Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>") | last yearMar 5, 2025 |
| [ty.toml](https://github.com/thecodacus/llama.cpp/blob/master/ty.toml "ty.toml") | [ty.toml](https://github.com/thecodacus/llama.cpp/blob/master/ty.toml "ty.toml") | [Enable testing on Snapdragon devices (](https://github.com/thecodacus/llama.cpp/commit/187a45637054881ecacf17f8e2f6f8f2ba7df1c7 "Enable testing on Snapdragon devices (#21051)  * Add the tests that we want to run on external CI  * remove extra files  * Fixes python issues, reove the deadlock on CI  * remove unecessary changes  * use override to ty.toml  * fix pre-commit and try tests with secret in external repo not upstream  * skip if key is unavailable  * Fix feedback  * switch hexagon to snapdragon  * cleanup  * fix secrets  * remove the copyrights at the top of the files") [ggml-org#21051](https://github.com/ggml-org/llama.cpp/pull/21051) [)](https://github.com/thecodacus/llama.cpp/commit/187a45637054881ecacf17f8e2f6f8f2ba7df1c7 "Enable testing on Snapdragon devices (#21051)  * Add the tests that we want to run on external CI  * remove extra files  * Fixes python issues, reove the deadlock on CI  * remove unecessary changes  * use override to ty.toml  * fix pre-commit and try tests with secret in external repo not upstream  * skip if key is unavailable  * Fix feedback  * switch hexagon to snapdragon  * cleanup  * fix secrets  * remove the copyrights at the top of the files") | 3 months agoApr 23, 2026 |
| View all files |

## Repository files navigation

# llama.cpp

[Permalink: llama.cpp](https://github.com/thecodacus/llama.cpp#llamacpp)

![llama](https://user-images.githubusercontent.com/1991296/230134379-7181e485-c521-4d23-a0d6-f7b3b61ba524.png)

[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![Release](https://camo.githubusercontent.com/e6b8287fcfee35b19cb6445b354371e6c41a7a0cb476b792453247b373bc92d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f67676d6c2d6f72672f6c6c616d612e637070)](https://github.com/ggml-org/llama.cpp/releases)[![Server](https://github.com/ggml-org/llama.cpp/actions/workflows/server.yml/badge.svg)](https://github.com/ggml-org/llama.cpp/actions/workflows/server.yml)

[Manifesto](https://github.com/ggml-org/llama.cpp/discussions/205) / [ggml](https://github.com/ggml-org/ggml) / [ops](https://github.com/ggml-org/llama.cpp/blob/master/docs/ops.md)

LLM inference in C/C++

## Recent API changes

[Permalink: Recent API changes](https://github.com/thecodacus/llama.cpp#recent-api-changes)

- [Changelog for `libllama` API](https://github.com/ggml-org/llama.cpp/issues/9289)
- [Changelog for `llama-server` REST API](https://github.com/ggml-org/llama.cpp/issues/9291)

## Hot topics

[Permalink: Hot topics](https://github.com/thecodacus/llama.cpp#hot-topics)

- **Hugging Face cache migration: models downloaded with `-hf` are now stored in the standard Hugging Face cache directory, enabling sharing with other HF tools.**
- **[guide : using the new WebUI of llama.cpp](https://github.com/ggml-org/llama.cpp/discussions/16938)**
- [guide : running gpt-oss with llama.cpp](https://github.com/ggml-org/llama.cpp/discussions/15396)
- [\[FEEDBACK\] Better packaging for llama.cpp to support downstream consumers 🤗](https://github.com/ggml-org/llama.cpp/discussions/15313)
- Support for the `gpt-oss` model with native MXFP4 format has been added \| [PR](https://github.com/ggml-org/llama.cpp/pull/15091) \| [Collaboration with NVIDIA](https://blogs.nvidia.com/blog/rtx-ai-garage-openai-oss) \| [Comment](https://github.com/ggml-org/llama.cpp/discussions/15095)
- Multimodal support arrived in `llama-server`: [#12898](https://github.com/ggml-org/llama.cpp/pull/12898) \| [documentation](https://github.com/thecodacus/llama.cpp/blob/master/docs/multimodal.md)
- VS Code extension for FIM completions: [https://github.com/ggml-org/llama.vscode](https://github.com/ggml-org/llama.vscode)
- Vim/Neovim plugin for FIM completions: [https://github.com/ggml-org/llama.vim](https://github.com/ggml-org/llama.vim)
- Hugging Face Inference Endpoints now support GGUF out of the box! [ggml-org#9669](https://github.com/ggml-org/llama.cpp/discussions/9669)
- Hugging Face GGUF editor: [discussion](https://github.com/ggml-org/llama.cpp/discussions/9268) \| [tool](https://huggingface.co/spaces/CISCai/gguf-editor)

* * *

## Quick start

[Permalink: Quick start](https://github.com/thecodacus/llama.cpp#quick-start)

Getting started with llama.cpp is straightforward. Here are several ways to install it on your machine:

- Install `llama.cpp` using [brew, nix or winget](https://github.com/thecodacus/llama.cpp/blob/master/docs/install.md)
- Run with Docker - see our [Docker documentation](https://github.com/thecodacus/llama.cpp/blob/master/docs/docker.md)
- Download pre-built binaries from the [releases page](https://github.com/ggml-org/llama.cpp/releases)
- Build from source by cloning this repository - check out [our build guide](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md)

Once installed, you'll need a model to work with. Head to the [Obtaining and quantizing models](https://github.com/thecodacus/llama.cpp#obtaining-and-quantizing-models) section to learn more.

Example command:

```
# Use a local model file
llama-cli -m my_model.gguf

# Or download and run a model directly from Hugging Face
llama-cli -hf ggml-org/gemma-3-1b-it-GGUF

# Launch OpenAI-compatible API server
llama-server -hf ggml-org/gemma-3-1b-it-GGUF
```

## Description

[Permalink: Description](https://github.com/thecodacus/llama.cpp#description)

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

- Plain C/C++ implementation without any dependencies
- Apple silicon is a first-class citizen - optimized via ARM NEON, Accelerate and Metal frameworks
- AVX, AVX2, AVX512 and AMX support for x86 architectures
- RVV, ZVFH, ZFH, ZICBOP and ZIHINTPAUSE support for RISC-V architectures
- 1.5-bit, 2-bit, 3-bit, 4-bit, 5-bit, 6-bit, and 8-bit integer quantization for faster inference and reduced memory use
- Custom CUDA kernels for running LLMs on NVIDIA GPUs (support for AMD GPUs via HIP and Moore Threads GPUs via MUSA)
- Vulkan and SYCL backend support
- CPU+GPU hybrid inference to partially accelerate models larger than the total VRAM capacity

The `llama.cpp` project is the main playground for developing new features for the [ggml](https://github.com/ggml-org/ggml) library.

Models

Typically finetunes of the base models below are supported as well.

Instructions for adding support for new models: [HOWTO-add-model.md](https://github.com/thecodacus/llama.cpp/blob/master/docs/development/HOWTO-add-model.md)

#### Text-only

[Permalink: Text-only](https://github.com/thecodacus/llama.cpp#text-only)

- [x]  LLaMA 🦙
- [x]  LLaMA 2 🦙🦙
- [x]  LLaMA 3 🦙🦙🦙
- [x] [Mistral 7B](https://huggingface.co/mistralai/Mistral-7B-v0.1)
- [x] [Mixtral MoE](https://huggingface.co/models?search=mistral-ai/Mixtral)
- [x] [DBRX](https://huggingface.co/databricks/dbrx-instruct)
- [x] [Jamba](https://huggingface.co/ai21labs)
- [x] [Falcon](https://huggingface.co/models?search=tiiuae/falcon)
- [x] [Chinese LLaMA / Alpaca](https://github.com/ymcui/Chinese-LLaMA-Alpaca) and [Chinese LLaMA-2 / Alpaca-2](https://github.com/ymcui/Chinese-LLaMA-Alpaca-2)
- [x] [Vigogne (French)](https://github.com/bofenghuang/vigogne)
- [x] [BERT](https://github.com/ggml-org/llama.cpp/pull/5423)
- [x] [Koala](https://bair.berkeley.edu/blog/2023/04/03/koala/)
- [x] [Baichuan 1 & 2](https://huggingface.co/models?search=baichuan-inc/Baichuan) \+ [derivations](https://huggingface.co/hiyouga/baichuan-7b-sft)
- [x] [Aquila 1 & 2](https://huggingface.co/models?search=BAAI/Aquila)
- [x] [Starcoder models](https://github.com/ggml-org/llama.cpp/pull/3187)
- [x] [Refact](https://huggingface.co/smallcloudai/Refact-1_6B-fim)
- [x] [MPT](https://github.com/ggml-org/llama.cpp/pull/3417)
- [x] [Bloom](https://github.com/ggml-org/llama.cpp/pull/3553)
- [x] [Yi models](https://huggingface.co/models?search=01-ai/Yi)
- [x] [StableLM models](https://huggingface.co/stabilityai)
- [x] [Deepseek models](https://huggingface.co/models?search=deepseek-ai/deepseek)
- [x] [Qwen models](https://huggingface.co/models?search=Qwen/Qwen)
- [x] [PLaMo-13B](https://github.com/ggml-org/llama.cpp/pull/3557)
- [x] [Phi models](https://huggingface.co/models?search=microsoft/phi)
- [x] [PhiMoE](https://github.com/ggml-org/llama.cpp/pull/11003)
- [x] [GPT-2](https://huggingface.co/gpt2)
- [x] [Orion 14B](https://github.com/ggml-org/llama.cpp/pull/5118)
- [x] [InternLM2](https://huggingface.co/models?search=internlm2)
- [x] [CodeShell](https://github.com/WisdomShell/codeshell)
- [x] [Gemma](https://ai.google.dev/gemma)
- [x] [Mamba](https://github.com/state-spaces/mamba)
- [x] [Grok-1](https://huggingface.co/keyfan/grok-1-hf)
- [x] [Xverse](https://huggingface.co/models?search=xverse)
- [x] [Command-R models](https://huggingface.co/models?search=CohereForAI/c4ai-command-r)
- [x] [SEA-LION](https://huggingface.co/models?search=sea-lion)
- [x] [GritLM-7B](https://huggingface.co/GritLM/GritLM-7B) \+ [GritLM-8x7B](https://huggingface.co/GritLM/GritLM-8x7B)
- [x] [OLMo](https://allenai.org/olmo)
- [x] [OLMo 2](https://allenai.org/olmo)
- [x] [OLMoE](https://huggingface.co/allenai/OLMoE-1B-7B-0924)
- [x] [Granite models](https://huggingface.co/collections/ibm-granite/granite-code-models-6624c5cec322e4c148c8b330)
- [x] [GPT-NeoX](https://github.com/EleutherAI/gpt-neox) \+ [Pythia](https://github.com/EleutherAI/pythia)
- [x] [Snowflake-Arctic MoE](https://huggingface.co/collections/Snowflake/arctic-66290090abe542894a5ac520)
- [x] [Smaug](https://huggingface.co/models?search=Smaug)
- [x] [Poro 34B](https://huggingface.co/LumiOpen/Poro-34B)
- [x] [Bitnet b1.58 models](https://huggingface.co/1bitLLM)
- [x] [Flan T5](https://huggingface.co/models?search=flan-t5)
- [x] [Open Elm models](https://huggingface.co/collections/apple/openelm-instruct-models-6619ad295d7ae9f868b759ca)
- [x] [ChatGLM3-6b](https://huggingface.co/THUDM/chatglm3-6b) \+ [ChatGLM4-9b](https://huggingface.co/THUDM/glm-4-9b) \+ [GLMEdge-1.5b](https://huggingface.co/THUDM/glm-edge-1.5b-chat) \+ [GLMEdge-4b](https://huggingface.co/THUDM/glm-edge-4b-chat)
- [x] [GLM-4-0414](https://huggingface.co/collections/THUDM/glm-4-0414-67f3cbcb34dd9d252707cb2e)
- [x] [SmolLM](https://huggingface.co/collections/HuggingFaceTB/smollm-6695016cad7167254ce15966)
- [x] [EXAONE-3.0-7.8B-Instruct](https://huggingface.co/LGAI-EXAONE/EXAONE-3.0-7.8B-Instruct)
- [x] [FalconMamba Models](https://huggingface.co/collections/tiiuae/falconmamba-7b-66b9a580324dd1598b0f6d4a)
- [x] [Jais](https://huggingface.co/inceptionai/jais-13b-chat)
- [x] [Bielik-11B-v2.3](https://huggingface.co/collections/speakleash/bielik-11b-v23-66ee813238d9b526a072408a)
- [x] [RWKV-7](https://huggingface.co/collections/shoumenchougou/rwkv7-gxx-gguf)
- [x] [RWKV-6](https://github.com/BlinkDL/RWKV-LM)
- [x] [QRWKV-6](https://huggingface.co/recursal/QRWKV6-32B-Instruct-Preview-v0.1)
- [x] [GigaChat-20B-A3B](https://huggingface.co/ai-sage/GigaChat-20B-A3B-instruct)
- [x] [Trillion-7B-preview](https://huggingface.co/trillionlabs/Trillion-7B-preview)
- [x] [Ling models](https://huggingface.co/collections/inclusionAI/ling-67c51c85b34a7ea0aba94c32)
- [x] [LFM2 models](https://huggingface.co/collections/LiquidAI/lfm2-686d721927015b2ad73eaa38)
- [x] [Hunyuan models](https://huggingface.co/collections/tencent/hunyuan-dense-model-6890632cda26b19119c9c5e7)
- [x] [BailingMoeV2 (Ring/Ling 2.0) models](https://huggingface.co/collections/inclusionAI/ling-v2-68bf1dd2fc34c306c1fa6f86)

#### Multimodal

[Permalink: Multimodal](https://github.com/thecodacus/llama.cpp#multimodal)

- [x] [LLaVA 1.5 models](https://huggingface.co/collections/liuhaotian/llava-15-653aac15d994e992e2677a7e), [LLaVA 1.6 models](https://huggingface.co/collections/liuhaotian/llava-16-65b9e40155f60fd046a5ccf2)
- [x] [BakLLaVA](https://huggingface.co/models?search=SkunkworksAI/Bakllava)
- [x] [Obsidian](https://huggingface.co/NousResearch/Obsidian-3B-V0.5)
- [x] [ShareGPT4V](https://huggingface.co/models?search=Lin-Chen/ShareGPT4V)
- [x] [MobileVLM 1.7B/3B models](https://huggingface.co/models?search=mobileVLM)
- [x] [Yi-VL](https://huggingface.co/models?search=Yi-VL)
- [x] [Mini CPM](https://huggingface.co/models?search=MiniCPM)
- [x] [Moondream](https://huggingface.co/vikhyatk/moondream2)
- [x] [Bunny](https://github.com/BAAI-DCAI/Bunny)
- [x] [GLM-EDGE](https://huggingface.co/models?search=glm-edge)
- [x] [Qwen2-VL](https://huggingface.co/collections/Qwen/qwen2-vl-66cee7455501d7126940800d)
- [x] [LFM2-VL](https://huggingface.co/collections/LiquidAI/lfm2-vl-68963bbc84a610f7638d5ffa)

Bindings

- Python: [ddh0/easy-llama](https://github.com/ddh0/easy-llama)
- Python: [abetlen/llama-cpp-python](https://github.com/abetlen/llama-cpp-python)
- Go: [go-skynet/go-llama.cpp](https://github.com/go-skynet/go-llama.cpp)
- Node.js: [withcatai/node-llama-cpp](https://github.com/withcatai/node-llama-cpp)
- JS/TS (llama.cpp server client): [lgrammel/modelfusion](https://modelfusion.dev/integration/model-provider/llamacpp)
- JS/TS (Programmable Prompt Engine CLI): [offline-ai/cli](https://github.com/offline-ai/cli)
- JavaScript/Wasm (works in browser): [tangledgroup/llama-cpp-wasm](https://github.com/tangledgroup/llama-cpp-wasm)
- Typescript/Wasm (nicer API, available on npm): [ngxson/wllama](https://github.com/ngxson/wllama)
- Ruby: [yoshoku/llama\_cpp.rb](https://github.com/yoshoku/llama_cpp.rb)
- Rust (more features): [edgenai/llama\_cpp-rs](https://github.com/edgenai/llama_cpp-rs)
- Rust (nicer API): [mdrokz/rust-llama.cpp](https://github.com/mdrokz/rust-llama.cpp)
- Rust (more direct bindings): [utilityai/llama-cpp-rs](https://github.com/utilityai/llama-cpp-rs)
- Rust (automated build from crates.io): [ShelbyJenkins/llm\_client](https://github.com/ShelbyJenkins/llm_client)
- C#/.NET: [SciSharp/LLamaSharp](https://github.com/SciSharp/LLamaSharp)
- C#/VB.NET (more features - community license): [LM-Kit.NET](https://docs.lm-kit.com/lm-kit-net/index.html)
- Scala 3: [donderom/llm4s](https://github.com/donderom/llm4s)
- Clojure: [phronmophobic/llama.clj](https://github.com/phronmophobic/llama.clj)
- React Native: [mybigday/llama.rn](https://github.com/mybigday/llama.rn)
- Java: [kherud/java-llama.cpp](https://github.com/kherud/java-llama.cpp)
- Java: [QuasarByte/llama-cpp-jna](https://github.com/QuasarByte/llama-cpp-jna)
- Zig: [deins/llama.cpp.zig](https://github.com/Deins/llama.cpp.zig)
- Flutter/Dart: [netdur/llama\_cpp\_dart](https://github.com/netdur/llama_cpp_dart)
- Flutter: [xuegao-tzx/Fllama](https://github.com/xuegao-tzx/Fllama)
- PHP (API bindings and features built on top of llama.cpp): [distantmagic/resonance](https://github.com/distantmagic/resonance) [(more info)](https://github.com/ggml-org/llama.cpp/pull/6326)
- Guile Scheme: [guile\_llama\_cpp](https://savannah.nongnu.org/projects/guile-llama-cpp)
- Swift [srgtuszy/llama-cpp-swift](https://github.com/srgtuszy/llama-cpp-swift)
- Swift [ShenghaiWang/SwiftLlama](https://github.com/ShenghaiWang/SwiftLlama)
- Delphi [Embarcadero/llama-cpp-delphi](https://github.com/Embarcadero/llama-cpp-delphi)
- Go (no CGo needed): [hybridgroup/yzma](https://github.com/hybridgroup/yzma)
- Android: [llama.android](https://github.com/thecodacus/llama.cpp/blob/master/examples/llama.android)

UIs

_(to have a project listed here, it should clearly state that it depends on `llama.cpp`)_

- [AI Sublime Text plugin](https://github.com/yaroslavyaroslav/OpenAI-sublime-text) (MIT)
- [BonzAI App](https://apps.apple.com/us/app/bonzai-your-local-ai-agent/id6752847988) (proprietary)
- [cztomsik/ava](https://github.com/cztomsik/ava) (MIT)
- [Dot](https://github.com/alexpinel/Dot) (GPL)
- [eva](https://github.com/ylsdamxssjxxdd/eva) (MIT)
- [iohub/collama](https://github.com/iohub/coLLaMA) (Apache-2.0)
- [janhq/jan](https://github.com/janhq/jan) (AGPL)
- [johnbean393/Sidekick](https://github.com/johnbean393/Sidekick) (MIT)
- [KanTV](https://github.com/zhouwg/kantv?tab=readme-ov-file) (Apache-2.0)
- [KodiBot](https://github.com/firatkiral/kodibot) (GPL)
- [llama.vim](https://github.com/ggml-org/llama.vim) (MIT)
- [LARS](https://github.com/abgulati/LARS) (AGPL)
- [Llama Assistant](https://github.com/vietanhdev/llama-assistant) (GPL)
- [LlamaLib](https://github.com/undreamai/LlamaLib) (Apache-2.0)
- [LLMFarm](https://github.com/guinmoon/LLMFarm?tab=readme-ov-file) (MIT)
- [LLMUnity](https://github.com/undreamai/LLMUnity) (MIT)
- [LMStudio](https://lmstudio.ai/) (proprietary)
- [LocalAI](https://github.com/mudler/LocalAI) (MIT)
- [LostRuins/koboldcpp](https://github.com/LostRuins/koboldcpp) (AGPL)
- [MindMac](https://mindmac.app/) (proprietary)
- [MindWorkAI/AI-Studio](https://github.com/MindWorkAI/AI-Studio) (FSL-1.1-MIT)
- [Mobile-Artificial-Intelligence/maid](https://github.com/Mobile-Artificial-Intelligence/maid) (MIT)
- [Mozilla-Ocho/llamafile](https://github.com/Mozilla-Ocho/llamafile) (Apache-2.0)
- [nat/openplayground](https://github.com/nat/openplayground) (MIT)
- [nomic-ai/gpt4all](https://github.com/nomic-ai/gpt4all) (MIT)
- [ollama/ollama](https://github.com/ollama/ollama) (MIT)
- [oobabooga/text-generation-webui](https://github.com/oobabooga/text-generation-webui) (AGPL)
- [PocketPal AI](https://github.com/a-ghorbani/pocketpal-ai) (MIT)
- [psugihara/FreeChat](https://github.com/psugihara/FreeChat) (MIT)
- [ptsochantaris/emeltal](https://github.com/ptsochantaris/emeltal) (MIT)
- [pythops/tenere](https://github.com/pythops/tenere) (AGPL)
- [ramalama](https://github.com/containers/ramalama) (MIT)
- [semperai/amica](https://github.com/semperai/amica) (MIT)
- [withcatai/catai](https://github.com/withcatai/catai) (MIT)
- [Autopen](https://github.com/blackhole89/autopen) (GPL)

Tools

- [akx/ggify](https://github.com/akx/ggify) – download PyTorch models from Hugging Face Hub and convert them to GGML
- [akx/ollama-dl](https://github.com/akx/ollama-dl) – download models from the Ollama library to be used directly with llama.cpp
- [crashr/gppm](https://github.com/crashr/gppm) – launch llama.cpp instances utilizing NVIDIA Tesla P40 or P100 GPUs with reduced idle power consumption
- [gpustack/gguf-parser](https://github.com/gpustack/gguf-parser-go/tree/main/cmd/gguf-parser) \- review/check the GGUF file and estimate the memory usage
- [Styled Lines](https://marketplace.unity.com/packages/tools/generative-ai/styled-lines-llama-cpp-model-292902) (proprietary licensed, async wrapper of inference part for game development in Unity3d with pre-built Mobile and Web platform wrappers and a model example)
- [unslothai/unsloth](https://github.com/unslothai/unsloth) – 🦥 exports/saves fine-tuned and trained models to GGUF (Apache-2.0)

Infrastructure

- [Paddler](https://github.com/intentee/paddler) \- Open-source LLMOps platform for hosting and scaling AI in your own infrastructure
- [GPUStack](https://github.com/gpustack/gpustack) \- Manage GPU clusters for running LLMs
- [llama\_cpp\_canister](https://github.com/onicai/llama_cpp_canister) \- llama.cpp as a smart contract on the Internet Computer, using WebAssembly
- [llama-swap](https://github.com/mostlygeek/llama-swap) \- transparent proxy that adds automatic model switching with llama-server
- [Kalavai](https://github.com/kalavai-net/kalavai-client) \- Crowdsource end to end LLM deployment at any scale
- [llmaz](https://github.com/InftyAI/llmaz) \- ☸️ Easy, advanced inference platform for large language models on Kubernetes.
- [LLMKube](https://github.com/defilantech/llmkube) \- Kubernetes operator for llama.cpp with multi-GPU and Apple Silicon Metal
support"

Games

- [Lucy's Labyrinth](https://github.com/MorganRO8/Lucys_Labyrinth) \- A simple maze game where agents controlled by an AI model will try to trick you.

## Supported backends

[Permalink: Supported backends](https://github.com/thecodacus/llama.cpp#supported-backends)

| Backend | Target devices |
| --- | --- |
| [Metal](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#metal-build) | Apple Silicon |
| [BLAS](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#blas-build) | All |
| [BLIS](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/BLIS.md) | All |
| [SYCL](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/SYCL.md) | Intel and Nvidia GPU |
| [OpenVINO \[In Progress\]](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/OPENVINO.md) | Intel CPUs, GPUs, and NPUs |
| [MUSA](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#musa) | Moore Threads GPU |
| [CUDA](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#cuda) | Nvidia GPU |
| [HIP](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#hip) | AMD GPU |
| [ZenDNN](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#zendnn) | AMD CPU |
| [Vulkan](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#vulkan) | GPU |
| [CANN](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#cann) | Ascend NPU |
| [OpenCL](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/OPENCL.md) | Adreno GPU |
| [IBM zDNN](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/zDNN.md) | IBM Z & LinuxONE |
| [WebGPU \[In Progress\]](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md#webgpu) | All |
| [RPC](https://github.com/ggml-org/llama.cpp/tree/master/tools/rpc) | All |
| [Hexagon \[In Progress\]](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/snapdragon/README.md) | Snapdragon |
| [VirtGPU](https://github.com/thecodacus/llama.cpp/blob/master/docs/backend/VirtGPU.md) | VirtGPU APIR |

## Obtaining and quantizing models

[Permalink: Obtaining and quantizing models](https://github.com/thecodacus/llama.cpp#obtaining-and-quantizing-models)

The [Hugging Face](https://huggingface.co/) platform hosts a [number of LLMs](https://huggingface.co/models?library=gguf&sort=trending) compatible with `llama.cpp`:

- [Trending](https://huggingface.co/models?library=gguf&sort=trending)
- [LLaMA](https://huggingface.co/models?sort=trending&search=llama+gguf)

You can either manually download the GGUF file or directly use any `llama.cpp`-compatible models from [Hugging Face](https://huggingface.co/) or other model hosting sites, by using this CLI argument: `-hf <user>/<model>[:quant]`. For example:

```
llama-cli -hf ggml-org/gemma-3-1b-it-GGUF
```

By default, the CLI would download from Hugging Face, you can switch to other options with the environment variable `MODEL_ENDPOINT`. The `MODEL_ENDPOINT` must point to a Hugging Face compatible API endpoint.

After downloading a model, use the CLI tools to run it locally - see below.

`llama.cpp` requires the model to be stored in the [GGUF](https://github.com/ggml-org/ggml/blob/master/docs/gguf.md) file format. Models in other data formats can be converted to GGUF using the `convert_*.py` Python scripts in this repo.

The Hugging Face platform provides a variety of online tools for converting, quantizing and hosting models with `llama.cpp`:

- Use the [GGUF-my-repo space](https://huggingface.co/spaces/ggml-org/gguf-my-repo) to convert to GGUF format and quantize model weights to smaller sizes
- Use the [GGUF-my-LoRA space](https://huggingface.co/spaces/ggml-org/gguf-my-lora) to convert LoRA adapters to GGUF format (more info: [ggml-org#10123](https://github.com/ggml-org/llama.cpp/discussions/10123))
- Use the [GGUF-editor space](https://huggingface.co/spaces/CISCai/gguf-editor) to edit GGUF meta data in the browser (more info: [ggml-org#9268](https://github.com/ggml-org/llama.cpp/discussions/9268))
- Use the [Inference Endpoints](https://ui.endpoints.huggingface.co/) to directly host `llama.cpp` in the cloud (more info: [ggml-org#9669](https://github.com/ggml-org/llama.cpp/discussions/9669))

To learn more about model quantization, [read this documentation](https://github.com/thecodacus/llama.cpp/blob/master/tools/quantize/README.md)

## [`llama-cli`](https://github.com/thecodacus/llama.cpp/blob/master/tools/cli)

[Permalink: llama-cli](https://github.com/thecodacus/llama.cpp#llama-cli)

#### A CLI tool for accessing and experimenting with most of `llama.cpp`'s functionality.

[Permalink: A CLI tool for accessing and experimenting with most of llama.cpp's functionality.](https://github.com/thecodacus/llama.cpp#a-cli-tool-for-accessing-and-experimenting-with-most-of-llamacpps-functionality)

- Run in conversation mode

Models with a built-in chat template will automatically activate conversation mode. If this doesn't occur, you can manually enable it by adding `-cnv` and specifying a suitable chat template with `--chat-template NAME`





```
llama-cli -m model.gguf

# > hi, who are you?
# Hi there! I'm your helpful assistant! I'm an AI-powered chatbot designed to assist and provide information to users like you. I'm here to help answer your questions, provide guidance, and offer support on a wide range of topics. I'm a friendly and knowledgeable AI, and I'm always happy to help with anything you need. What's on your mind, and how can I assist you today?
#
# > what is 1+1?
# Easy peasy! The answer to 1+1 is... 2!
```

- Run in conversation mode with custom chat template



```
# use the "chatml" template (use -h to see the list of supported templates)
llama-cli -m model.gguf -cnv --chat-template chatml

# use a custom template
llama-cli -m model.gguf -cnv --in-prefix 'User: ' --reverse-prompt 'User:'
```

- Constrain the output with a custom grammar



```
llama-cli -m model.gguf -n 256 --grammar-file grammars/json.gbnf -p 'Request: schedule a call at 8pm; Command:'

# {"appointmentTime": "8pm", "appointmentDetails": "schedule a a call"}
```









The [grammars/](https://github.com/thecodacus/llama.cpp/blob/master/grammars) folder contains a handful of sample grammars. To write your own, check out the [GBNF Guide](https://github.com/thecodacus/llama.cpp/blob/master/grammars/README.md).



For authoring more complex JSON grammars, check out [https://grammar.intrinsiclabs.ai/](https://grammar.intrinsiclabs.ai/)


## [`llama-server`](https://github.com/thecodacus/llama.cpp/blob/master/tools/server)

[Permalink: llama-server](https://github.com/thecodacus/llama.cpp#llama-server)

#### A lightweight, [OpenAI API](https://github.com/openai/openai-openapi) compatible, HTTP server for serving LLMs.

[Permalink: A lightweight, OpenAI API compatible, HTTP server for serving LLMs.](https://github.com/thecodacus/llama.cpp#a-lightweight-openai-api-compatible-http-server-for-serving-llms)

- Start a local HTTP server with default configuration on port 8080



```
llama-server -m model.gguf --port 8080

# Basic web UI can be accessed via browser: http://localhost:8080
# Chat completion endpoint: http://localhost:8080/v1/chat/completions
```

- Support multiple-users and parallel decoding



```
# up to 4 concurrent requests, each with 4096 max context
llama-server -m model.gguf -c 16384 -np 4
```

- Enable speculative decoding



```
# the draft.gguf model should be a small variant of the target model.gguf
llama-server -m model.gguf -md draft.gguf
```

- Serve an embedding model



```
# use the /embedding endpoint
llama-server -m model.gguf --embedding --pooling cls -ub 8192
```

- Serve a reranking model



```
# use the /reranking endpoint
llama-server -m model.gguf --reranking
```

- Constrain all outputs with a grammar



```
# custom grammar
llama-server -m model.gguf --grammar-file grammar.gbnf

# JSON
llama-server -m model.gguf --grammar-file grammars/json.gbnf
```


## [`llama-perplexity`](https://github.com/thecodacus/llama.cpp/blob/master/tools/perplexity)

[Permalink: llama-perplexity](https://github.com/thecodacus/llama.cpp#llama-perplexity)

#### A tool for measuring the [perplexity](https://github.com/thecodacus/llama.cpp/blob/master/tools/perplexity/README.md) [1](https://github.com/thecodacus/llama.cpp\#user-content-fn-1-472a747fb27ee5509f86721265ef5541) (and other quality metrics) of a model over a given text.

[Permalink: A tool for measuring the perplexity (and other quality metrics) of a model over a given text.](https://github.com/thecodacus/llama.cpp#a-tool-for-measuring-the-perplexity-1-and-other-quality-metrics-of-a-model-over-a-given-text)

- Measure the perplexity over a text file



```
llama-perplexity -m model.gguf -f file.txt

# [1]15.2701,[2]5.4007,[3]5.3073,[4]6.2965,[5]5.8940,[6]5.6096,[7]5.7942,[8]4.9297, ...
# Final estimate: PPL = 5.4007 +/- 0.67339
```

- Measure KL divergence



```
# TODO
```


## [`llama-bench`](https://github.com/thecodacus/llama.cpp/blob/master/tools/llama-bench)

[Permalink: llama-bench](https://github.com/thecodacus/llama.cpp#llama-bench)

#### Benchmark the performance of the inference for various parameters.

[Permalink: Benchmark the performance of the inference for various parameters.](https://github.com/thecodacus/llama.cpp#benchmark-the-performance-of-the-inference-for-various-parameters)

- Run default benchmark



```
llama-bench -m model.gguf

# Output:
# | model               |       size |     params | backend    | threads |          test |                  t/s |
# | ------------------- | ---------: | ---------: | ---------- | ------: | ------------: | -------------------: |
# | qwen2 1.5B Q4_0     | 885.97 MiB |     1.54 B | Metal,BLAS |      16 |         pp512 |      5765.41 ± 20.55 |
# | qwen2 1.5B Q4_0     | 885.97 MiB |     1.54 B | Metal,BLAS |      16 |         tg128 |        197.71 ± 0.81 |
#
# build: 3e0ba0e60 (4229)
```


## [`llama-simple`](https://github.com/thecodacus/llama.cpp/blob/master/examples/simple)

[Permalink: llama-simple](https://github.com/thecodacus/llama.cpp#llama-simple)

#### A minimal example for implementing apps with `llama.cpp`. Useful for developers.

[Permalink: A minimal example for implementing apps with llama.cpp. Useful for developers.](https://github.com/thecodacus/llama.cpp#a-minimal-example-for-implementing-apps-with-llamacpp-useful-for-developers)

- Basic text completion



```
llama-simple -m model.gguf

# Hello my name is Kaitlyn and I am a 16 year old girl. I am a junior in high school and I am currently taking a class called "The Art of
```


## Contributing

[Permalink: Contributing](https://github.com/thecodacus/llama.cpp#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!
- See [good first issues](https://github.com/ggml-org/llama.cpp/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) for tasks suitable for first contributions
- Read the [CONTRIBUTING.md](https://github.com/thecodacus/llama.cpp/blob/master/CONTRIBUTING.md) for more information
- Make sure to read this: [Inference at the edge](https://github.com/ggml-org/llama.cpp/discussions/205)
- A bit of backstory for those who are interested: [Changelog podcast](https://changelog.com/podcast/532)

## Other documentation

[Permalink: Other documentation](https://github.com/thecodacus/llama.cpp#other-documentation)

- [cli](https://github.com/thecodacus/llama.cpp/blob/master/tools/cli/README.md)
- [completion](https://github.com/thecodacus/llama.cpp/blob/master/tools/completion/README.md)
- [server](https://github.com/thecodacus/llama.cpp/blob/master/tools/server/README.md)
- [GBNF grammars](https://github.com/thecodacus/llama.cpp/blob/master/grammars/README.md)

#### Development documentation

[Permalink: Development documentation](https://github.com/thecodacus/llama.cpp#development-documentation)

- [How to build](https://github.com/thecodacus/llama.cpp/blob/master/docs/build.md)
- [Running on Docker](https://github.com/thecodacus/llama.cpp/blob/master/docs/docker.md)
- [Build on Android](https://github.com/thecodacus/llama.cpp/blob/master/docs/android.md)
- [Performance troubleshooting](https://github.com/thecodacus/llama.cpp/blob/master/docs/development/token_generation_performance_tips.md)
- [GGML tips & tricks](https://github.com/ggml-org/llama.cpp/wiki/GGML-Tips-&-Tricks)

#### Seminal papers and background on the models

[Permalink: Seminal papers and background on the models](https://github.com/thecodacus/llama.cpp#seminal-papers-and-background-on-the-models)

If your issue is with model generation quality, then please at least scan the following links and papers to understand the limitations of LLaMA models. This is especially important when choosing an appropriate model size and appreciating both the significant and subtle differences between LLaMA models and ChatGPT:

- LLaMA:
  - [Introducing LLaMA: A foundational, 65-billion-parameter large language model](https://ai.facebook.com/blog/large-language-model-llama-meta-ai/)
  - [LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.13971)
- GPT-3
  - [Language Models are Few-Shot Learners](https://arxiv.org/abs/2005.14165)
- GPT-3.5 / InstructGPT / ChatGPT:
  - [Aligning language models to follow instructions](https://openai.com/research/instruction-following)
  - [Training language models to follow instructions with human feedback](https://arxiv.org/abs/2203.02155)

## XCFramework

[Permalink: XCFramework](https://github.com/thecodacus/llama.cpp#xcframework)

The XCFramework is a precompiled version of the library for iOS, visionOS, tvOS,
and macOS. It can be used in Swift projects without the need to compile the
library from source. For example:

```
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "MyLlamaPackage",
    targets: [\
        .executableTarget(\
            name: "MyLlamaPackage",\
            dependencies: [\
                "LlamaFramework"\
            ]),\
        .binaryTarget(\
            name: "LlamaFramework",\
            url: "https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip",\
            checksum: "c19be78b5f00d8d29a25da41042cb7afa094cbf6280a225abe614b03b20029ab"\
        )\
    ]
)
```

The above example is using an intermediate build `b5046` of the library. This can be modified
to use a different version by changing the URL and checksum.

## Completions

[Permalink: Completions](https://github.com/thecodacus/llama.cpp#completions)

Command-line completion is available for some environments.

#### Bash Completion

[Permalink: Bash Completion](https://github.com/thecodacus/llama.cpp#bash-completion)

```
$ build/bin/llama-cli --completion-bash > ~/.llama-completion.bash
$ source ~/.llama-completion.bash
```

Optionally this can be added to your `.bashrc` or `.bash_profile` to load it
automatically. For example:

```
$ echo "source ~/.llama-completion.bash" >> ~/.bashrc
```

## Dependencies

[Permalink: Dependencies](https://github.com/thecodacus/llama.cpp#dependencies)

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

## Footnotes

1. [https://huggingface.co/docs/transformers/perplexity](https://huggingface.co/docs/transformers/perplexity) [↩](https://github.com/thecodacus/llama.cpp#user-content-fnref-1-472a747fb27ee5509f86721265ef5541)


## About

LLM inference in C/C++


### Resources

[Readme](https://github.com/thecodacus/llama.cpp#readme-ov-file)

### License

[MIT license](https://github.com/thecodacus/llama.cpp#MIT-1-ov-file)

### Contributing

[Contributing](https://github.com/thecodacus/llama.cpp#contributing-ov-file)

### Security policy

[Security policy](https://github.com/thecodacus/llama.cpp#security-ov-file)

### Uh oh!

There was an error while loading. [Please reload this page](https://github.com/thecodacus/llama.cpp).

[Activity](https://github.com/thecodacus/llama.cpp/activity)

### Stars

[**1**\\
star](https://github.com/thecodacus/llama.cpp/stargazers)

### Watchers

[**0**\\
watching](https://github.com/thecodacus/llama.cpp/watchers)

### Forks

[**1**\\
fork](https://github.com/thecodacus/llama.cpp/forks)

[Report repository](https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fthecodacus%2Fllama.cpp&report=thecodacus+%28user%29)

## [Releases](https://github.com/thecodacus/llama.cpp/releases)

[6,200tags](https://github.com/thecodacus/llama.cpp/tags)

## [Packages\  0](https://github.com/users/thecodacus/packages?repo_name=llama.cpp)

No packages published

## [Contributors\  0](https://github.com/thecodacus/llama.cpp/graphs/contributors)

No contributors


## Languages

- C++57.0%
- C13.1%
- Python7.7%
- Cuda5.8%
- TypeScript3.2%
- HTML3.0%
- Other10.2%

You can’t perform that action at this time.