Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antirez/ds4
/ functions
Functions
2,709 in github.com/antirez/ds4
⨍
Functions
2,709
◇
Types & classes
93
↓ 2 callers
Function
metal_graph_attn_comp_prefill_target
ds4.c:13556
↓ 2 callers
Function
metal_graph_attn_comp_prefill_target_free
ds4.c:13568
↓ 2 callers
Function
metal_graph_attn_comp_row_view
ds4.c:13542
↓ 2 callers
Function
metal_graph_attn_comp_update_row
ds4.c:13529
↓ 2 callers
Function
metal_graph_attn_comp_update_target
ds4.c:13521
↓ 2 callers
Function
metal_graph_capture_prefill_seed_router_selected
ds4.c:19657
↓ 2 callers
Function
metal_graph_capture_prefix1_attn_state
Capture the verifier prefix after the first speculative token. * * Exact MTP speculation is only profitable if partial accepts are cheap. The * ta
ds4.c:13180
↓ 2 callers
Function
metal_graph_capture_prefix1_index_state
ds4.c:13190
↓ 2 callers
Function
metal_graph_check_hc_norm_fusion
ds4.c:13361
↓ 2 callers
Function
metal_graph_cuda_stream_prefill_batch_selected_addr_enabled
ds4.c:11635
↓ 2 callers
Function
metal_graph_decode_hc_pre
ds4.c:13300
↓ 2 callers
Function
metal_graph_decode_q4_selected_slots_expected
ds4.c:13732
↓ 2 callers
Function
metal_graph_enable_batch_hc_norm_fusion
ds4.c:13284
↓ 2 callers
Function
metal_graph_encode_layer_attention_batch
ds4.c:17313
↓ 2 callers
Function
metal_graph_encode_token_raw_swa
Encode a full single-token decode step on Metal. This is the generation * hot path: update caches, run all layers, then produce logits. */
ds4.c:16946
↓ 2 callers
Function
metal_graph_eval_mtp_draft_from_hc
ds4.c:19924
↓ 2 callers
Function
metal_graph_layer_stage_profile_enabled
ds4.c:17259
↓ 2 callers
Function
metal_graph_load_directional_steering
ds4.c:10691
↓ 2 callers
Function
metal_graph_needs_ffn_out
ds4.c:10931
↓ 2 callers
Function
metal_graph_prefill_chunked
Long prompts are prefetched in fixed-size chunks. Chunks bound transient * attention buffers while preserving the same final KV/cache state. */
ds4.c:21073
↓ 2 callers
Function
metal_graph_prefill_decode_streaming_range
ds4.c:19570
↓ 2 callers
Function
metal_graph_profile_layer_env_match
ds4.c:17247
↓ 2 callers
Function
metal_graph_q4_non_streaming_opt_in_enabled
ds4.c:13625
↓ 2 callers
Function
metal_graph_q4_selected_paths_allowed
ds4.c:13634
↓ 2 callers
Function
metal_graph_stream_decode_static_map_enabled
ds4.c:11337
↓ 2 callers
Function
metal_graph_stream_decode_static_map_state_cache_enabled
ds4.c:11341
↓ 2 callers
Function
metal_graph_stream_madvise_willneed_range_impl
ds4.c:11395
↓ 2 callers
Function
metal_graph_stream_map_decode_static_all
ds4.c:13085
↓ 2 callers
Function
metal_graph_stream_map_layer
ds4.c:13098
↓ 2 callers
Function
metal_graph_stream_prefill_batch_selected_addr_enabled
ds4.c:11599
↓ 2 callers
Function
metal_graph_stream_prefill_layer_madvise_enabled
ds4.c:11555
↓ 2 callers
Function
metal_graph_stream_prefill_layer_pagein_enabled
ds4.c:11530
↓ 2 callers
Function
metal_graph_stream_prefill_layer_pagein_start
ds4.c:12560
↓ 2 callers
Function
metal_graph_stream_prefill_layer_pagein_threads
ds4.c:12259
↓ 2 callers
Function
metal_graph_stream_prefill_layer_pread_enabled
ds4.c:11547
↓ 2 callers
Function
metal_graph_stream_prefill_layer_readahead_enabled
ds4.c:11538
↓ 2 callers
Function
metal_graph_stream_prefill_selected_madvise_enabled
ds4.c:11522
↓ 2 callers
Function
metal_graph_stream_prefill_selected_pagein_enabled
ds4.c:11514
↓ 2 callers
Function
metal_graph_stream_prefill_selected_profile_enabled
ds4.c:11918
↓ 2 callers
Function
metal_graph_stream_prefill_selected_profile_layer
ds4.c:11944
↓ 2 callers
Function
metal_graph_stream_prefill_selected_readahead_enabled
ds4.c:12890
↓ 2 callers
Function
metal_graph_stream_prepare_range
ds4.c:12173
↓ 2 callers
Function
metal_graph_stream_prepare_slot_find
ds4.c:12749
↓ 2 callers
Function
metal_graph_stream_readahead_layer
ds4.c:12861
↓ 2 callers
Function
metal_graph_stream_readahead_selected_experts_from_gpu
ds4.c:12972
↓ 2 callers
Function
metal_graph_streaming_expert_hotlist_add
ds4.c:13841
↓ 2 callers
Function
metal_graph_streaming_prefill_cache_seed_k
ds4.c:13809
↓ 2 callers
Function
metal_graph_token_split_after_layers
ds4.c:16931
↓ 2 callers
Function
metal_graph_use_reference_compressor_pair_proj
ds4.c:13274
↓ 2 callers
Function
metal_graph_use_reference_hc_norm_decode
ds4.c:13279
↓ 2 callers
Function
metal_graph_use_reference_qkv_norm
ds4.c:13269
↓ 2 callers
Function
metal_graph_use_streaming_decode_prefill
ds4.c:19539
↓ 2 callers
Function
metal_graph_use_streaming_decode_prefill_range
ds4.c:19553
↓ 2 callers
Function
metal_graph_verify_suffix_tops
Layer-major speculative target verifier for tiny MTP suffixes. * * This is the first production-shaped verifier attempt: unlike repeated decode * i
ds4.c:21117
↓ 2 callers
Function
model_get_string
ds4.c:1731
↓ 2 callers
Function
model_map_span_vec_append
ds4.c:4133
↓ 2 callers
Function
monotonic_seconds
tests/cuda_long_context_smoke.c:8
↓ 2 callers
Function
nice_ceil
Round a positive axis maximum up to a human-friendly tick boundary.
speed-bench/plot_speed.py:25
↓ 2 callers
Function
openai_tool_emit_string_value
ds4_server.c:5644
↓ 2 callers
Function
openai_tool_stream_free
ds4_server.c:5086
↓ 2 callers
Function
parse_generated_message_for_response
ds4_server.c:4700
↓ 2 callers
Function
parse_gguf
(path: Path)
gguf-tools/mixed/splice_mixed_expert_layers_gguf.py:175
↓ 2 callers
Function
parse_line_spec
ds4_eval.c:2927
↓ 2 callers
Function
parse_messages
ds4_server.c:1611
↓ 2 callers
Function
parse_output_config_effort
ds4_server.c:867
↓ 2 callers
Function
parse_stream_options
ds4_server.c:1037
↓ 2 callers
Function
pasteBufferAppend
Append bytes to the temporary paste buffer, growing both it and l->buf as * needed. Return -1 if the paste is too large or allocation fails. */
linenoise.c:2036
↓ 2 callers
Function
path_join
gguf-tools/deepseek4-quantize.c:108
↓ 2 callers
Function
payload_read_tensor_span_f32_as_f16
ds4.c:23535
↓ 2 callers
Function
payload_write_tensor_span_f16_as_f32
ds4.c:23496
↓ 2 callers
Function
points_to_polyline
(points, x_min, x_max, y_max, plot)
speed-bench/plot_speed.py:89
↓ 2 callers
Function
prefill_layer_major_cpu
CPU prefill in layer-major order. All prompt tokens pass through layer 0, * then layer 1, etc., which exposes batch matmul opportunities. */
ds4.c:9915
↓ 2 callers
Function
print_agent_specific
ds4_help.c:277
↓ 2 callers
Function
print_cli_commands
ds4_help.c:265
↓ 2 callers
Function
print_cli_diagnostics
ds4_help.c:244
↓ 2 callers
Function
print_cli_specific
ds4_help.c:233
↓ 2 callers
Function
print_distributed
ds4_help.c:214
↓ 2 callers
Function
print_repl_help
ds4_cli.c:961
↓ 2 callers
Function
print_server_thinking
ds4_help.c:313
↓ 2 callers
Function
print_steering
ds4_help.c:206
↓ 2 callers
Function
print_top_logits
ds4.c:22768
↓ 2 callers
Function
qtype_name
(ggml_type: int)
gguf-tools/mixed/splice_mixed_expert_layers_gguf.py:252
↓ 2 callers
Function
quantize_q8_0_activation_batch
ds4.c:4956
↓ 2 callers
Function
random_bytes
ds4_server.c:89
↓ 2 callers
Function
raw_partial_lit_min
ds4_server.c:5272
↓ 2 callers
Function
raw_suffix_partial_lit
ds4_server.c:5332
↓ 2 callers
Function
raxAddChildNoAlloc
Like raxAddChild() but does not allocate the child node. Instead it * returns in 'parentlink' the address of the new child pointer, so that the * ca
rax.c:307
↓ 2 callers
Function
raxCompressNodeNoAlloc
Turn the node 'n', that must be a node without any children, into a * compressed node representing a set of nodes linked one after the other * and h
rax.c:488
↓ 2 callers
Function
raxDefragAddChars
Append characters at the current key string of the defragmentation * iterator. Like the normal iterator, the key is rebuilt incrementally as * the w
rax.c:2371
↓ 2 callers
Function
raxDefragNodeFlags
Build the flags associated with the current item returned by the * defragmentation iterator. */
rax.c:2400
↓ 2 callers
Function
raxDefragStackPush
Push a new node into the defragmentation iterator stack. The parent_child * argument is the child index of this node in its parent, or -1 for the *
rax.c:2319
↓ 2 callers
Function
raxFind
Find a key in the rax, returns raxNotFound special void pointer value * if the item was not found, otherwise the value associated with the * item is
rax.c:1101
↓ 2 callers
Function
raxFindParentLink
Return the memory address where the 'parent' node stores the specified * 'child' pointer, so that the caller can update the pointer with another * o
rax.c:1124
↓ 2 callers
Function
raxFree
Free a whole radix tree. */
rax.c:1505
↓ 2 callers
Function
raxGenericInsert
Insert the element 's' of size 'len', setting as auxiliary data * the pointer 'data'. If the element is already present, the associated * data is up
rax.c:629
↓ 2 callers
Function
raxInsert
Overwriting insert. Just a wrapper for raxGenericInsert() that will * update the element if there is already one for the same key. */
rax.c:1087
↓ 2 callers
Function
raxIteratorClearInlineLeaf
rax.c:1561
↓ 2 callers
Function
raxIteratorSetInlineLeaf
rax.c:1565
↓ 2 callers
Function
raxNew
Allocate a new rax and return its pointer. On out of memory the function * returns NULL. */
rax.c:248
↓ 2 callers
Function
raxNewValueNode
Create a standalone leaf node storing the specified value. */
rax.c:198
← previous
next →
1,201–1,300 of 2,709, ranked by callers