Skip to content

Commit 638a84c

Browse files
committed
[doc] update description.
1 parent ce09e86 commit 638a84c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
![Build Status](https://github.com/wangzhaode/jinja.cpp/actions/workflows/build.yml/badge.svg)
55
[![中文版本](https://img.shields.io/badge/Language-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-green)](README_CN.md)
66

7-
A lightweight, single-header C++11 Jinja2 template engine designed for LLM chat templates.
7+
A lightweight, single-header C++11 Jinja2 template engine designed for LLM chat templates. ** (HuggingFace style).
88

99
It focuses on supporting the subset of Jinja2 used by modern Large Language Models (LLMs) like Llama 3, Qwen 2.5/3, DeepSeek, and others, enabling seamless inference integration in C++ environments.
1010

1111
## Features
1212

1313
- **C++11 Compatible**: Ensures maximum compatibility across older compiler versions and embedded systems.
14+
- **Lightweight**: Minimal dependencies (only `nlohmann/json`).
15+
- **LLM Focused**: Native support for `messages`, `tools`, `add_generation_prompt`, and special tokens.
16+
- **Strictly Typed**: Uses `nlohmann::json` for context management.
17+
- **Custom Function Interop**: Easily inject C++ functions (e.g., `strftime_now`) into templates.
18+
- **Robust**: Validated against official Python `transformers` outputs using fuzzy matching tests.
19+
1420
## Integration
1521

1622
The library is a single header file. Just copy `jinja.hpp` to your project's include directory (or root).
@@ -26,11 +32,6 @@ You can check the library version using standard macros:
2632
// Use jinja.cpp features
2733
#endif
2834
```
29-
- **Lightweight**: Minimal dependencies (only `nlohmann/json`).
30-
- **LLM Focused**: Native support for `messages`, `tools`, `add_generation_prompt`, and special tokens.
31-
- **Strictly Typed**: Uses `nlohmann::json` for context management.
32-
- **Custom Function Interop**: Easily inject C++ functions (e.g., `strftime_now`) into templates.
33-
- **Robust**: Validated against official Python `transformers` outputs using fuzzy matching tests.
3435

3536
## Supported Models
3637

0 commit comments

Comments
 (0)