This is an example using llama.cpp with C++ to run a local llm in a simple way.
use the huggingface-cli to download a gguf file like this:
hf download ggml-org/gemma-3-1b-it-GGUF --local-dir ./modelsTo use this template, the submodule cmake-conan has to be pulled with
git submodule update --init --recursive
Once this is done the project can be configured and built with
cmake --preset=ci-ninja-debug
cmake --build ./buildTests can be run using
cd build
ctest -C Debug- Conan version 2.0 or higher
- CMake version 3.25 or higher
- Catch2 version 3.7 or higher (this will be fetched automatically by conan)
- Ninja (optional, but recommended)
- CMake Tools
- Test Explorer UI
- Alternative CMake Test Explorer
- Optional but recommended: CMake language support
- Clangd or C/C++ for code completion and diagnostics