|
ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
|
#include <chat_template.h>

Public Member Functions | |
| std::string | id () const |
| json | to_json () const |
Static Public Member Functions | |
| template<class J > | |
| static Template | from_json (const J &r) |
Public Attributes | |
| std::string | name |
| json | version |
| std::string | bos |
| std::string | content = "raw" |
| std::string | system_mode = "none" |
| std::string | system_join |
| std::string | system_open |
| std::string | system_close |
| std::string | user_open |
| std::string | user_close |
| std::string | assistant_open |
| std::string | assistant_close |
| std::string | generation_prompt |
| bool | has_nothink = false |
| std::string | generation_prompt_nothink |
| std::vector< std::string > | stop_eos |
| std::vector< std::string > | stop_turn |
| std::string | past_assistant = "keep" |
| bool | has_default_system = false |
| std::string | default_system |
| std::vector< std::string > | reserved |
| std::vector< std::string > | markers |
| std::vector< std::string > | match |
| std::vector< std::string > | architectures |
| bool | has_tool = false |
| bool | has_tools = false |
| std::string | tool_open |
| std::string | tool_close |
| std::string | tool_call_open |
| std::string | tool_call_join |
| std::string | tools_join |
| std::string | tools_sep |
Definition at line 89 of file chat_template.h.
Definition at line 141 of file chat_template.h.
|
inline |
Definition at line 108 of file chat_template.h.
Referenced by microtorch::chat::get(), and tinyllama::TinyLlamaSession::TinyLlamaSession().
|
inline |
Definition at line 111 of file chat_template.h.
References architectures, assistant_close, assistant_open, bos, content, default_system, generation_prompt, generation_prompt_nothink, has_default_system, has_nothink, has_tool, has_tools, j, markers, match, name, past_assistant, reserved, stop_eos, stop_turn, system_close, system_join, system_mode, system_open, tool_call_join, tool_call_open, tool_close, tool_open, tools_join, tools_sep, user_close, user_open, and version.
| std::vector<std::string> microtorch::chat::Template::architectures |
Definition at line 102 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::assistant_close |
Definition at line 94 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::assistant_open |
Definition at line 94 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::bos |
Definition at line 92 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::content = "raw" |
Definition at line 92 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::default_system |
Definition at line 101 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::generation_prompt |
Definition at line 95 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::generation_prompt_nothink |
Definition at line 97 of file chat_template.h.
Referenced by to_json().
Definition at line 100 of file chat_template.h.
Referenced by to_json().
Definition at line 96 of file chat_template.h.
Referenced by to_json().
Definition at line 105 of file chat_template.h.
Definition at line 105 of file chat_template.h.
Referenced by to_json().
| std::vector<std::string> microtorch::chat::Template::markers |
Definition at line 102 of file chat_template.h.
Referenced by to_json().
| std::vector<std::string> microtorch::chat::Template::match |
Definition at line 102 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::name |
Definition at line 90 of file chat_template.h.
Referenced by microtorch::chat::chatml(), from_json(), microtorch::chat::gemma3(), id(), microtorch::chat::legacy_word(), ember::ChatFormat::of(), to_json(), microtorch::chat::v1(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::past_assistant = "keep" |
Definition at line 99 of file chat_template.h.
Referenced by to_json().
| std::vector<std::string> microtorch::chat::Template::reserved |
Definition at line 102 of file chat_template.h.
Referenced by to_json().
| std::vector<std::string> microtorch::chat::Template::stop_eos |
Definition at line 98 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::vector<std::string> microtorch::chat::Template::stop_turn |
Definition at line 98 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::system_close |
Definition at line 93 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::system_join |
Definition at line 93 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::system_mode = "none" |
Definition at line 93 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::system_open |
Definition at line 93 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::tool_call_join |
Definition at line 106 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::tool_call_open |
Definition at line 106 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::tool_close |
Definition at line 106 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::tool_open |
Definition at line 106 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::tools_join |
Definition at line 106 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::tools_sep |
Definition at line 106 of file chat_template.h.
Referenced by to_json().
| std::string microtorch::chat::Template::user_close |
Definition at line 94 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| std::string microtorch::chat::Template::user_open |
Definition at line 94 of file chat_template.h.
Referenced by to_json(), and ember::ChatFormat::v1_markers().
| json microtorch::chat::Template::version |
Definition at line 91 of file chat_template.h.
Referenced by id(), to_json(), and ember::ChatFormat::v1_markers().