Practical overview
When it fits
Use it when you want to work directly with model files and a locally built inference framework, or when you want project material for learning how C++ inference pipelines are assembled.
Who it is for
- Developers who want to build and run supported Llama or Qwen models locally.
- C++ learners studying model export, inference operators, CUDA, testing, and benchmarking.
Documented uses
- Export supported model checkpoints into files used by the inference programs.
- Compile the framework for a documented model family and invoke command-line text generation.
- Study a C++ inference project with CPU and CUDA implementation paths.
Requirements & limits
- The workflow requires local model and tokenizer files and a compiled project.
- Build configuration varies by model family; the README gives separate Llama 3.2 and Qwen2.5 options.
- The listed dependency stack includes CUDA Toolkit, while the framework also documents a CPU backend.
- The repository presents both an implementation and course material; participation instructions for the course are separate from building the code.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Build and run the documented Llama 3.2 example
Download the example checkpoint, export it, compile with Llama 3 support, and invoke the inference program.
Before you start
- Python 3 and huggingface-cli for the documented download process
- The meta-llama/Llama-3.2-1B model files
- Project dependencies; the README lists glog, gtest, SentencePiece, Armadillo with OpenBLAS, and CUDA Toolkit
- CMake and make
Steps
Download meta-llama/Llama-3.2-1B to a local directory using the documented huggingface-cli command.
Run tools/export.py with the model identifier to create Llama-3.2-1B.bin.
Configure with CMake using USE_CPM=ON and LLAMA3_SUPPORT=ON, then build with make -j16.
Invoke build/demo/llama_infer with the exported binary and the model's tokenizer.json path.
Expected outcome
The documented command-line workflow for generating text with the Llama 3.2 example model.
Guide limitations
- The model files and tokenizer must be available locally to the inference command.
- The README says the CPM dependency-download option requires network connectivity.
- The guide records repository instructions and does not establish compatibility with other model revisions or hardware.
Build and run the documented Qwen2.5 example
Download Qwen2.5-0.5B, export it, compile with Qwen2 support, and invoke its inference program.
Before you start
- Python 3 and huggingface-cli for the documented download process
- The Qwen/Qwen2.5-0.5B model files
- Project dependencies; the README lists glog, gtest, SentencePiece, Armadillo with OpenBLAS, and CUDA Toolkit
- CMake and make
Steps
Download Qwen/Qwen2.5-0.5B to a local directory using the documented huggingface-cli command.
Run tools/export_qwen2.py with the model identifier to create Qwen2.5-0.5B.bin.
Configure with CMake using USE_CPM=ON and QWEN2_SUPPORT=ON, then build with make -j16.
Invoke build/demo/qwen_infer with the exported binary and the model's tokenizer.json path.
Expected outcome
The documented command-line workflow for generating text with the Qwen2.5-0.5B example model.
Guide limitations
- The model files and tokenizer must be available locally to the inference command.
- The README says the CPM dependency-download option requires network connectivity.
- The guide records repository instructions and does not establish compatibility with other model revisions or hardware.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 November 2026
- Original website title
- zjhellofss/KuiperLLama · Official homepage title · retained in its source language

