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
↓ 4 callers
Function
chat_msg_collect_tool_call_ids
ds4_server.c:2440
↓ 4 callers
Function
cli_interrupt_clear
ds4_cli.c:85
↓ 4 callers
Function
cli_wait_distributed_route
ds4_cli.c:100
↓ 4 callers
Function
compressor_decode_one
Streaming compressor update for one token. It projects kv/score rows, * updates the rolling state, and emits a compressed KV row on ratio boundaries
ds4.c:8665
↓ 4 callers
Function
cpu_decode_scratch_init
Allocate all CPU decode temporaries once. This keeps generation deterministic * from the VM's point of view and makes accidental hot-loop malloc vis
ds4.c:8358
↓ 4 callers
Function
cursor_error
ds4.c:1475
↓ 4 callers
Function
dist_activation_wire_bytes
ds4_distributed.c:795
↓ 4 callers
Function
dist_activation_wire_bytes_from_f32_bytes
ds4_distributed.c:813
↓ 4 callers
Function
dist_connect_endpoint
ds4_distributed.c:1443
↓ 4 callers
Function
dist_coordinator_ensure_route
ds4_distributed.c:2323
↓ 4 callers
Function
dist_coordinator_prefill_prompt
ds4_distributed.c:3780
↓ 4 callers
Function
dist_prefill_reader_emit_progress
ds4_distributed.c:3279
↓ 4 callers
Function
dist_resolved_layer_end
ds4_distributed.c:529
↓ 4 callers
Function
dist_session_ensure_route
ds4_distributed.c:4332
↓ 4 callers
Function
dist_token_hash_update_span
ds4_distributed.c:1504
↓ 4 callers
Function
dot_q8_0_row_2
ds4.c:4747
↓ 4 callers
Function
ds4_backend_uses_graph
ds4.c:75
↓ 4 callers
Function
ds4_chat_append_assistant_prefix
ds4.c:22434
↓ 4 callers
Function
ds4_dist_options_free
ds4_distributed.c:8116
↓ 4 callers
Function
ds4_session_cancelled
ds4.c:26184
↓ 4 callers
Function
ds4_session_distributed_route_ready
ds4.c:26140
↓ 4 callers
Function
ds4_session_eval_speculative_argmax
Speculative decode state machine: * 1. commit the normal target token and use its logits to validate draft[0]; * 2. let MTP recursively draft a tiny
ds4.c:27167
↓ 4 callers
Function
ds4_session_top_logprobs
ds4.c:26994
↓ 4 callers
Function
ds4_strdup
ds4.c:708
↓ 4 callers
Function
ds4_streaming_routed_expert_bytes
ds4.c:3321
↓ 4 callers
Function
ds4_think_max_min_context
ds4.c:23195
↓ 4 callers
Function
ds4_think_mode_name
ds4.c:23182
↓ 4 callers
Function
ds4_tokens_starts_with
ds4.c:21786
↓ 4 callers
Function
ds4_vec_dot_q2_K_q8_K
ds4.c:2624
↓ 4 callers
Function
ds4q_can_quantize
gguf-tools/quants.c:1022
↓ 4 callers
Function
ds4q_pad
gguf-tools/quants.h:56
↓ 4 callers
Function
dsml_decode_tracker_init
ds4_server.c:5453
↓ 4 callers
Function
dsv4_e4m3fn_value_cpu
ds4.c:2444
↓ 4 callers
Function
editor_queue_bytes
Queue raw terminal bytes into linenoise while preserving paste envelopes and * filtering cursor-position replies. */
ds4_agent.c:8709
↓ 4 callers
Function
editor_save_output_cursor
ds4_agent.c:8911
↓ 4 callers
Function
editor_start
Start linenoise in nonblocking mode and install the status footer. */
ds4_agent.c:9106
↓ 4 callers
Function
editor_stop
Stop the live editor and restore stdin flags. */
ds4_agent.c:9155
↓ 4 callers
Function
editor_update_prompt
ds4_agent.c:9225
↓ 4 callers
Function
editor_update_status
ds4_agent.c:9231
↓ 4 callers
Function
eval_case_nchoices
ds4_eval.c:1374
↓ 4 callers
Function
f16_round_inplace_cpu
ds4.c:2440
↓ 4 callers
Function
f16_to_f32
tests/test_q4k_dot.c:28
↓ 4 callers
Function
format_short_count
ds4_eval.c:2230
↓ 4 callers
Function
forward_token_raw_swa_cpu_decode_scratch
CPU decode for one token through all 43 layers. The caller owns scratch and * cache lifetimes so no per-token allocations are needed. */
ds4.c:9855
↓ 4 callers
Function
hc_pre_from_state_one_scratch
HC pre step for one token. It normalizes the HC state, projects the control * vector, runs the Sinkhorn split, and emits the sublayer input plus pos
ds4.c:6430
↓ 4 callers
Function
head_rms_norm_inplace
Normalize each attention head independently after Q projection. */
ds4.c:4516
↓ 4 callers
Function
hmap_build
gguf-tools/deepseek4-quantize.c:345
↓ 4 callers
Function
hmap_free
gguf-tools/deepseek4-quantize.c:370
↓ 4 callers
Function
imatrix_enabled
gguf-tools/deepseek4-quantize.c:815
↓ 4 callers
Function
isRegionalIndicator
Check if codepoint is a Regional Indicator (for flag emoji). */
linenoise.c:216
↓ 4 callers
Function
joyai_letter_like_at
ds4.c:22103
↓ 4 callers
Function
json_args_free
ds4_server.c:2064
↓ 4 callers
Function
json_obj_get
gguf-tools/deepseek4-quantize.c:301
↓ 4 callers
Function
json_strdup_tok
gguf-tools/deepseek4-quantize.c:283
↓ 4 callers
Function
kv_cache_init
Allocate per-layer KV state: a raw sliding window for all layers, plus * compressed attention/indexer caches for layers whose ratio is nonzero. */
ds4.c:8484
↓ 4 callers
Function
kv_cache_maybe_store_continued
ds4_server.c:8797
↓ 4 callers
Function
kv_cache_restore_tool_memory_for_messages
ds4_server.c:8542
↓ 4 callers
Function
kv_cache_store_live_prefix
ds4_server.c:8721
↓ 4 callers
Function
kv_die
ds4_kvstore.c:64
↓ 4 callers
Function
kv_tool_map_write
ds4_server.c:8432
↓ 4 callers
Function
kv_xmalloc
ds4_kvstore.c:69
↓ 4 callers
Function
layer_ffn_one
Full FFN sublayer for one token: HC pre, RMSNorm, routed MoE, shared expert, * sum, and HC post. */
ds4.c:7805
↓ 4 callers
Function
linenoiseAdjustFoldsAfterDelete
Adjust fold ranges after a deletion. If deletion overlaps a fold, remove * that fold because it no longer maps to an unchanged range. */
linenoise.c:1270
↓ 4 callers
Function
linenoiseEditHistoryNext
linenoise.c:1839
↓ 4 callers
Function
linenoiseEditInsert
Insert the character(s) 'c' of length 'clen' at cursor current position. * This handles both single-byte ASCII and multi-byte UTF-8 sequences. * *
linenoise.c:1689
↓ 4 callers
Function
linenoiseEditMoveEnd
Move cursor to the end of the line. */
linenoise.c:1828
↓ 4 callers
Function
linenoiseShow
Show the current line, when using the multiplexing API. */
linenoise.c:1609
↓ 4 callers
Function
linenoiseStatusActive
linenoise.c:907
↓ 4 callers
Function
matvec_any_decode_scratch
ds4.c:5330
↓ 4 callers
Function
matvec_f16
Dense F16 matvec for small control projections such as HC and router heads. */
ds4.c:4567
↓ 4 callers
Function
matvec_q8_0_pair_prequant
Compute two Q8_0 projections from the same input, used by gate/up and * compressor kv/score pairs. */
ds4.c:5139
↓ 4 callers
Function
metal_graph_alloc_kv_cache_tensor
ds4.c:10807
↓ 4 callers
Function
metal_graph_apply_directional_steering_ffn
ds4.c:10755
↓ 4 callers
Function
metal_graph_commit_attn_comp_stage
ds4.c:13533
↓ 4 callers
Function
metal_graph_debug_dump_i32_tensor
ds4.c:10898
↓ 4 callers
Function
metal_graph_decode_cuda_selected_slots_expected
ds4.c:13774
↓ 4 callers
Function
metal_graph_directional_steering_attn_enabled
ds4.c:10724
↓ 4 callers
Function
metal_graph_matmul_q8_0_named_tensor
ds4.c:16248
↓ 4 callers
Function
metal_graph_prefill_cap_for_prompt
Choose the prefill ubatch size. Whole-batch is fastest for normal prompts. * Long Flash prompts default to 4096-token chunks; PRO defaults to 8192. *
ds4.c:21387
↓ 4 callers
Function
metal_graph_raw_start_for_span
ds4.c:13157
↓ 4 callers
Function
metal_graph_refresh_ratio4_compressor_state
Rebuild ratio-4 compressor state after chunked prefill so a following decode * token sees the same rolling compression window. */
ds4.c:17036
↓ 4 callers
Function
metal_graph_stream_map_layer_decode
ds4.c:13112
↓ 4 callers
Function
metal_graph_stream_map_output
ds4.c:13126
↓ 4 callers
Function
metal_graph_stream_map_token
ds4.c:13072
↓ 4 callers
Function
metal_graph_stream_prefill_selected_profile_add_bytes
ds4.c:11938
↓ 4 callers
Function
metal_graph_stream_readahead_layer_decode
ds4.c:12871
↓ 4 callers
Function
metal_graph_stream_readahead_output
ds4.c:12881
↓ 4 callers
Function
metal_graph_upload_prompt_embeddings_hc
Seed the batched HC state from token ids: every HC stream starts as the same * 4096-wide embedding. Long prefill chunks use the Metal get-rows/repea
ds4.c:17139
↓ 4 callers
Function
model_alias_disables_thinking
ds4_server.c:901
↓ 4 callers
Function
model_alias_enables_thinking
ds4_server.c:905
↓ 4 callers
Function
model_get_array
ds4.c:1812
↓ 4 callers
Function
model_get_f32_compat
ds4.c:1768
↓ 4 callers
Function
model_map_span_vec_include_output
ds4.c:4288
↓ 4 callers
Function
next_utf8_char
ds4.c:22045
↓ 4 callers
Function
openai_sse_finish_live
ds4_server.c:5941
↓ 4 callers
Function
openai_tool_stream_fail
ds4_server.c:5709
↓ 4 callers
Function
parse_nonneg_int_arg
ds4_server.c:11417
↓ 4 callers
Function
parse_responses_input
Codex /v1/responses input items have a `type` discriminator (message, * function_call, function_call_output, reasoning, custom_tool_call, * custom_t
ds4_server.c:3153
↓ 4 callers
Function
print_agent_sessions
ds4_help.c:287
↓ 4 callers
Function
q4_k_get_scale_min
ds4.c:2744
← previous
next →
501–600 of 2,709, ranked by callers