ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
Loading...
Searching...
No Matches
graph_ir_recurrence.cpp File Reference
#include "graph_ir_recurrence.h"
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <map>
#include <set>
#include <stdexcept>
Include dependency graph for graph_ir_recurrence.cpp:

Go to the source code of this file.

Classes

struct  ember_ir::rec::Program
 

Namespaces

namespace  ember_ir
 
namespace  ember_ir::rec
 

Variable Documentation

◆ a

◆ body

◆ body_tok

size_t body_tok = 0

Definition at line 147 of file graph_ir_recurrence.cpp.

◆ column

size_t column = 0

Definition at line 43 of file graph_ir_recurrence.cpp.

◆ i_

size_t i_
private

Definition at line 417 of file graph_ir_recurrence.cpp.

◆ id

◆ in_scope_

std::vector<bool> in_scope_
private

Definition at line 420 of file graph_ir_recurrence.cpp.

◆ index

◆ inputs

bool inputs = false

Definition at line 182 of file graph_ir_recurrence.cpp.

Referenced by ember_ir::rec::Recurrence::compile().

◆ integer

bool integer = false

Definition at line 44 of file graph_ir_recurrence.cpp.

◆ ix

std::vector<Ix> ix

Definition at line 127 of file graph_ir_recurrence.cpp.

◆ k

K k = K::Num

Definition at line 124 of file graph_ir_recurrence.cpp.

Referenced by ember_ir::rec::Program::assign(), ember_ir::Interpreter::bind(), ember::build_general_prompt(), ember_ir::build_ir_from_gguf(), KVCache::clear_data(), ember_ir::rec::Recurrence::compile(), ember_ir::cpu::conv1d_causal_row(), dot_f32_as_f64(), ember_draft::DraftTable::draft(), ember::QwenNfcTokenizer::encode(), microtorch::bpe::Tokenizer::encode_chunk(), ember_ir::es_number_string(), microtorch::chat::Template::from_json(), ember_ir::Interpreter::init(), ember_ir::rec::Recurrence::init(), ember::insert_state_blocks(), ember_ir::ir_expr_cuda(), ember_ir::ir_kv_write_cuda(), ember_ir::ir_linear_attention_cuda(), ember_ir::ir_rope_at_cuda(), ember_ir::ir_rope_cuda(), kv_write_devpos_kernel(), ember_ir::linear_attention_row_cpu(), load_gguf_meta(), main(), microtorch::chat::messages_from_json(), ember_ir::cpu::mla_attention(), moe_ffn_cuda(), moe_ffn_f32_cpu(), moe_ffn_routed_f32_cpu(), moe_ffn_scratch_floats(), microtorch::chat::parse_reply(), microtorch::bpe::Tokenizer::pretokenize(), tinyllama::prompt_lookup_draft(), quantize_q4_k_m(), ember::QwenNfcTokenizer::QwenNfcTokenizer(), microtorch::bpe::read_gguf_tokenizer(), ember_ir::Interpreter::rec_begin(), ember_ir::Interpreter::rec_end(), ember_ir::Interpreter::rec_row_done(), ember_ir::Interpreter::run_nodes(), ember_ir::Interpreter::save_state(), ember::score_banned(), ember::score_fill(), microtorch::chat::detail::sha256_hex(), ember_ir::sha256_hex_bytes(), ember_ir::cpu::split_groups(), microtorch::chat::strip_py_ws(), ember_tiled::tiled_split_block(), tinyllama::TinyLlamaSession::TinyLlamaSession(), vec_dot_q4_k_q8_k_cpu(), vec_dot_q6_k_q8_k_cpu(), and ember_kvq::write_cuda().

◆ kind

TKind kind = Tok::End

Definition at line 41 of file graph_ir_recurrence.cpp.

◆ lets

int lets = 0

Definition at line 183 of file graph_ir_recurrence.cpp.

◆ lhs

Definition at line 144 of file graph_ir_recurrence.cpp.

◆ name

Definition at line 134 of file graph_ir_recurrence.cpp.

◆ numel

size_t numel = 1

◆ off

◆ p_

◆ pos

◆ rules_

ReadRules rules_
private

Definition at line 419 of file graph_ir_recurrence.cpp.

◆ sizes

◆ state

◆ strides

std::vector<size_t> strides

Definition at line 137 of file graph_ir_recurrence.cpp.

◆ t_

const std::vector<Token>& t_
private

Definition at line 416 of file graph_ir_recurrence.cpp.

◆ tensor

◆ text

Definition at line 42 of file graph_ir_recurrence.cpp.

◆ toks

std::vector<Token> toks

Definition at line 148 of file graph_ir_recurrence.cpp.

Referenced by ember_ir::rec::Recurrence::compile().

◆ v

float v = 0.0f

Definition at line 125 of file graph_ir_recurrence.cpp.

◆ weights

◆ where

std::string where

Definition at line 146 of file graph_ir_recurrence.cpp.

Referenced by ember_ir::rec::Recurrence::compile().

◆ where_

std::string where_
private

Definition at line 418 of file graph_ir_recurrence.cpp.