Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrewkchan/yalm
/ functions
Functions
105 in github.com/andrewkchan/yalm
⨍
Functions
105
◇
Types & classes
21
↓ 21 callers
Function
fill_random
src/test.cpp:128
↓ 18 callers
Function
get_timestamp_ms
src/time.cpp:5
↓ 17 callers
Function
error_usage
src/main.cpp:17
↓ 16 callers
Function
check_tensor
src/model.cpp:98
↓ 15 callers
Function
matmul
src/infer.cpp:48
↓ 13 callers
Function
conv
(t)
convert.py:164
↓ 13 callers
Function
get_tensor
src/model.cpp:117
↓ 10 callers
Method
x
current activations
src/model.h:88
↓ 10 callers
Method
xb
src/model.h:89
↓ 8 callers
Method
forward
src/model.cpp:417
↓ 8 callers
Method
hb
src/model.h:94
↓ 8 callers
Method
k
src/model.h:98
↓ 7 callers
Function
assertArrayEquals
src/test.cpp:29
↓ 7 callers
Method
q
src/model.h:96
↓ 6 callers
Method
active_bytes
src/model.cpp:71
↓ 6 callers
Method
cuda
src/model.cpp:215
↓ 5 callers
Method
logits
LM head
src/model.h:107
↓ 4 callers
Method
att
src/model.h:100
↓ 4 callers
Function
dtype_size
src/codec.cpp:24
↓ 4 callers
Function
dtype_to_string
src/codec.cpp:9
↓ 4 callers
Method
encode
src/tokenizer.cpp:57
↓ 4 callers
Function
half_to_float
src/infer.cpp:11
↓ 4 callers
Method
v
src/model.h:99
↓ 4 callers
Method
xb2
TODO: do we need xb2?
src/model.h:92
↓ 3 callers
Method
active_experts
src/model.h:105
↓ 3 callers
Method
active_experts_weights
src/model.h:104
↓ 3 callers
Function
attn
Compute next value in a sequence for a single causal self-attention head.
src/infer.cpp:218
↓ 3 callers
Function
clip
src/infer.cpp:197
↓ 3 callers
Function
float_to_half
src/infer.cpp:14
↓ 3 callers
Method
from_file
src/codec.cpp:97
↓ 3 callers
Method
hb2
src/model.h:95
↓ 3 callers
Function
rmsnorm
src/infer.cpp:136
↓ 3 callers
Function
rope
TODO annotate me
src/infer.cpp:202
↓ 2 callers
Method
decode_one
src/tokenizer.cpp:44
↓ 2 callers
Method
encoding_to_debug_string
src/tokenizer.cpp:96
↓ 2 callers
Function
float_array_to_half
src/test.cpp:54
↓ 2 callers
Function
gelu
src/infer.cpp:189
↓ 2 callers
Method
load
src/debug.cpp:21
↓ 2 callers
Method
moe_weights
mixture of experts
src/model.h:103
↓ 2 callers
Function
permute_reverse
(w, heads, rotary_dim)
convert.py:145
↓ 2 callers
Function
silu
src/infer.cpp:193
↓ 1 callers
Function
allocateAlignedArray
Helper function to allocate aligned memory
src/test.cpp:237
↓ 1 callers
Function
arrayEquals
src/test.cpp:17
↓ 1 callers
Method
block
src/model.cpp:241
↓ 1 callers
Method
device
src/model.h:110
↓ 1 callers
Function
ffn_cpu
src/infer.cpp:418
↓ 1 callers
Function
floatEquals
src/test.cpp:13
↓ 1 callers
Method
from_json
src/codec.cpp:39
↓ 1 callers
Method
from_yalm
src/model.cpp:16
↓ 1 callers
Function
gpt2_bytes_to_unicode
()
convert.py:86
↓ 1 callers
Function
kernel_bench
src/test.cpp:340
↓ 1 callers
Function
load_tokens
(tokenizer_path, vocab_size)
convert.py:98
↓ 1 callers
Function
load_weights
Load all weights from the model files in huggingface format into a dictionary of tensors, normalizing the attention weights, and casting all tens
convert.py:127
↓ 1 callers
Function
matmul_cpu
src/infer.cpp:411
↓ 1 callers
Method
max_err
src/model.cpp:440
↓ 1 callers
Function
mem_bench
src/test.cpp:246
↓ 1 callers
Function
mem_bench2
src/test.cpp:292
↓ 1 callers
Function
mha_cpu
src/infer.cpp:388
↓ 1 callers
Function
moe_gate
src/infer.cpp:102
↓ 1 callers
Function
run_completion
src/main.cpp:54
↓ 1 callers
Function
run_passkey
src/main.cpp:237
↓ 1 callers
Function
run_perplexity
src/main.cpp:150
↓ 1 callers
Method
sample
src/sampler.cpp:40
↓ 1 callers
Method
sample_argmax
src/sampler.cpp:27
↓ 1 callers
Method
sample_prob
src/sampler.cpp:11
↓ 1 callers
Function
softmax
Compute the softmax of an input vector `x` of length `size` and store it in `o`.
src/infer.cpp:172
↓ 1 callers
Function
test_attn
src/test.cpp:67
↓ 1 callers
Function
test_cuda_kernels
src/test.cpp:148
↓ 1 callers
Method
to_dict
(self)
convert.py:58
Method
Block
src/model.cpp:128
Method
DebugTensor
src/model.h:279
Method
DebugTensor
src/model.cpp:431
Method
InferenceState
src/model.cpp:284
Method
Model
src/model.cpp:356
Method
Sampler
src/sampler.cpp:6
Method
Tokenizer
src/tokenizer.cpp:3
Method
__init__
(self, config, dtype)
convert.py:23
Method
_block_cpu
src/infer.cpp:257
Method
_copy_embedding
src/infer.cpp:454
Method
_forward_cpu
src/infer.cpp:477
Function
copy_debug_tensor
src/infer.cpp:35
Function
debug_tensors
src/main.cpp:43
Method
key_cache
src/model.h:184
Function
layernorm
src/infer.cpp:148
Function
main
src/test.cpp:407
Function
main
src/main.cpp:334
Function
mem_bench2_thread
src/test.cpp:285
Method
mode
src/model.h:112
Method
moegate
src/model.h:183
Method
rms_att_weight
src/model.h:166
Method
rms_ffn_weight
src/model.h:167
Method
save
src/debug.cpp:5
Function
save_debug_tensor
src/infer.cpp:43
Method
set_mode
src/model.h:113
Method
stream
src/model.h:111
Method
value_cache
src/model.h:185
Method
w1
src/model.h:177
Method
w2
src/model.h:179
Method
w3
src/model.h:181
Method
wk
src/model.h:171
next →
1–100 of 105, ranked by callers