Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cactus-compute/cactus
/ functions
Functions
2,677 in github.com/cactus-compute/cactus
⨍
Functions
2,677
◇
Types & classes
447
↓ 1,332 callers
Method
size
cactus/engine/engine.h:1057
↓ 779 callers
Method
data
cactus/graph/graph_io.cpp:888
↓ 510 callers
Method
mmap_weights
cactus/graph/graph_io.cpp:492
↓ 260 callers
Method
reshape
cactus/graph/graph_builder.cpp:197
↓ 241 callers
Function
cfg_get
Get a config value from a dict or object, with fallback default.
python/src/config_utils.py:64
↓ 196 callers
Method
matmul
cactus/graph/graph_builder.cpp:127
↓ 164 callers
Method
get
tests/test_utils.cpp:469
↓ 154 callers
Method
clear
cactus/graph/graph_core.cpp:55
↓ 150 callers
Method
run_test
tests/test_utils.cpp:101
↓ 147 callers
Method
get_output_buffer
cactus/npu/npu_ane.h:119
↓ 128 callers
Method
add
cactus/graph/graph_builder.cpp:11
↓ 127 callers
Function
stbi__err
libs/stb/stb_image.h:485
↓ 112 callers
Function
print_color
Print a message with ANSI color codes.
python/src/cli.py:64
↓ 103 callers
Function
as_graph
cactus/ffi/cactus_graph.cpp:13
↓ 99 callers
Method
set_input
(self, tensor, data, dtype=None)
python/src/graph.py:47
↓ 94 callers
Method
input
(self, shape, dtype=FP16)
python/src/graph.py:38
↓ 86 callers
Method
rms_norm
cactus/graph/graph_builder.cpp:330
↓ 85 callers
Method
input
cactus/graph/graph_builder.cpp:7
↓ 75 callers
Method
execute
tests/test_utils.h:92
↓ 71 callers
Function
fail_invalid
cactus/ffi/cactus_graph.cpp:17
↓ 71 callers
Method
slice
cactus/graph/graph_builder.cpp:1415
↓ 70 callers
Function
stbi__get8
libs/stb/stb_image.h:994
↓ 64 callers
Function
handle_error_response
cactus/ffi/cactus_utils.h:702
↓ 63 callers
Method
set_input
cactus/graph/graph_execute.cpp:206
↓ 62 callers
Function
colored
tests/asr.cpp:65
↓ 61 callers
Method
create_input
tests/test_utils.h:84
↓ 60 callers
Method
encode
cactus/engine/engine_sp.cpp:436
↓ 59 callers
Method
set_input_data
tests/test_utils.h:88
↓ 58 callers
Function
save_tensor_with_header
Save a tensor to binary format with header metadata and group-wise quantization. For 2D tensors with INT8/INT4 precision: - INT4 is packed (2
python/src/tensor_io.py:129
↓ 56 callers
Function
cactus_destroy
Frees all model resources.
python/src/cactus.py:509
↓ 54 callers
Function
parallel_for
cactus/kernel/kernel_utils.h:540
↓ 49 callers
Method
execute
cactus/graph/graph_execute.cpp:251
↓ 47 callers
Function
colored
tests/chat.cpp:156
↓ 45 callers
Method
scalar_multiply
cactus/graph/graph_builder.cpp:1302
↓ 44 callers
Method
add
(self, a, b)
python/src/graph.py:73
↓ 43 callers
Method
verify_output
tests/test_utils.h:98
↓ 42 callers
Function
cactus_init
Initializes a model from the given path. Returns handle.
python/src/cactus.py:501
↓ 41 callers
Method
soft_reset
cactus/graph/graph_execute.cpp:728
↓ 39 callers
Method
layernorm
cactus/graph/graph_builder.cpp:460
↓ 37 callers
Method
multiply
cactus/graph/graph_builder.cpp:40
↓ 36 callers
Method
concat
cactus/graph/graph_builder.cpp:1172
↓ 35 callers
Method
decode
cactus/engine/engine_sp.cpp:465
↓ 33 callers
Method
numpy
(self)
python/src/graph.py:350
↓ 31 callers
Function
_enc
(s)
python/src/cactus.py:465
↓ 31 callers
Function
jstring_to_cstr
android/cactus_jni.cpp:9
↓ 31 callers
Method
log_performance
tests/test_utils.cpp:111
↓ 31 callers
Function
release_jstring
android/cactus_jni.cpp:14
↓ 28 callers
Function
cactus_complete
Runs chat completion. Returns response string.
python/src/cactus.py:524
↓ 28 callers
Function
cactus_get_last_error
Returns the last error message or None.
python/src/cactus.py:471
↓ 28 callers
Method
embedding
cactus/graph/graph_io.cpp:557
↓ 28 callers
Method
parse
tests/test_utils.cpp:310
↓ 28 callers
Function
save
(filename, key)
python/src/converter.py:1133
↓ 28 callers
Method
set_external_input
cactus/graph/graph_execute.cpp:224
↓ 27 callers
Method
get_data
cactus/graph/graph_core.cpp:146
↓ 27 callers
Method
precision_cast
cactus/graph/graph_builder.cpp:1474
↓ 26 callers
Function
cactus_fp32_to_fp16
cactus/kernel/kernel_quants.cpp:108
↓ 26 callers
Method
scalar_add
cactus/graph/graph_builder.cpp:1288
↓ 25 callers
Function
fast_exp_f32x4
cactus/kernel/kernel_utils.h:76
↓ 25 callers
Method
mean
cactus/graph/graph_builder.cpp:258
↓ 24 callers
Method
add
tests/test_index.cpp:50
↓ 24 callers
Method
attention
cactus/graph/graph_builder.cpp:504
↓ 24 callers
Method
hard_reset
(self)
python/src/graph.py:63
↓ 24 callers
Method
rope
cactus/graph/graph_builder.cpp:335
↓ 23 callers
Function
_err
(default)
python/src/cactus.py:477
↓ 23 callers
Method
get_output
cactus/graph/graph_execute.cpp:238
↓ 23 callers
Function
reset_cache
cactus/ffi/cactus_complete.cpp:334
↓ 23 callers
Function
suppress_unwanted_text
cactus/ffi/cactus_stream.cpp:109
↓ 22 callers
Function
escape_json_string
cactus/ffi/cactus_utils.h:434
↓ 22 callers
Method
get_output
tests/test_utils.h:94
↓ 22 callers
Method
get_tokenizer
cactus/engine/engine.h:725
↓ 21 callers
Function
json_number
tests/test_utils.cpp:195
↓ 21 callers
Method
relu
cactus/graph/graph_builder.cpp:1336
↓ 21 callers
Function
unpack_int4_as_int8x16x2
cactus/kernel/kernel_utils.h:175
↓ 20 callers
Method
clear
tests/test_utils.cpp:463
↓ 20 callers
Function
json_string
tests/test_utils.cpp:207
↓ 20 callers
Method
reset
cactus/engine/engine_cache.cpp:54
↓ 20 callers
Function
setup_random_data
tests/test_performance.cpp:40
↓ 20 callers
Function
stream_store_f16x8
cactus/kernel/kernel_utils.h:34
↓ 20 callers
Function
throwCactusException
android/cactus_jni.cpp:26
↓ 20 callers
Function
throwOnError
android/cactus_jni.cpp:31
↓ 20 callers
Function
tolower
tests/test_exhaustive.cpp:52
↓ 19 callers
Method
execute
(self)
python/src/graph.py:68
↓ 19 callers
Function
stbi__malloc
libs/stb/stb_image.h:492
↓ 18 callers
Function
cactus_quantize_kv_fp16_to_int8
cactus/kernel/kernel_quants.cpp:267
↓ 18 callers
Method
get
tests/test_index.cpp:77
↓ 18 callers
Method
print_json
tests/test_utils.cpp:329
↓ 18 callers
Method
print_summary
tests/test_utils.cpp:119
↓ 18 callers
Function
recordStreamTranscription
cactus/telemetry/telemetry.cpp:1479
↓ 18 callers
Function
stbi__get16be
libs/stb/stb_image.h:1057
↓ 17 callers
Method
_ensure_tensor
(self, x)
python/src/graph.py:249
↓ 17 callers
Method
gelu
cactus/graph/graph_builder.cpp:1344
↓ 17 callers
Function
json_number
cactus/ffi/cactus_stream.cpp:24
↓ 17 callers
Method
update
cactus/engine/engine_cache.cpp:634
↓ 16 callers
Method
all_passed
tests/test_utils.cpp:128
↓ 16 callers
Function
apply_vocabulary_spelling_correction
cactus/ffi/cactus_utils.h:1121
↓ 16 callers
Method
get_total_seq_len
cactus/engine/engine.h:536
↓ 16 callers
Method
is_empty
cactus/engine/engine.h:549
↓ 16 callers
Method
mmap_embeddings
cactus/graph/graph_io.cpp:462
↓ 16 callers
Method
silu
cactus/graph/graph_builder.cpp:1340
↓ 15 callers
Method
_tensor_from_node
(self, node_id)
python/src/graph.py:270
next →
1–100 of 2,677, ranked by callers