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
eval_system_prompt
ds4_eval.c:2358
↓ 2 callers
Function
f32_to_type
gguf-tools/deepseek4-quantize.c:1090
↓ 2 callers
Function
find_any_tool_end
ds4_server.c:4242
↓ 2 callers
Function
find_integer_answer
ds4_eval.c:2829
↓ 2 callers
Function
find_next_dsml_tool_block
ds4_server.c:8357
↓ 2 callers
Function
fnv1a64_bytes
gguf-tools/deepseek4-quantize.c:1568
↓ 2 callers
Function
fnv1a_str
gguf-tools/deepseek4-quantize.c:336
↓ 2 callers
Function
foldCountLines
Return the number of logical lines in the range. */
linenoise.c:999
↓ 2 callers
Function
foldSetRenderedText
Fill f->display with the text shown instead of the folded range. */
linenoise.c:1024
↓ 2 callers
Function
format_run_elapsed
ds4_eval.c:1308
↓ 2 callers
Function
forward_first_token_cpu
ds4.c:10132
↓ 2 callers
Function
frange
(start, stop, step)
speed-bench/plot_speed.py:200
↓ 2 callers
Function
freeCompletions
Free a list of completion option populated by linenoiseAddCompletion(). */
linenoise.c:734
↓ 2 callers
Function
generate_tensor
gguf-tools/deepseek4-quantize.c:1298
↓ 2 callers
Function
generation_done
ds4_cli.c:384
↓ 2 callers
Function
getCursorPosition
Use the ESC [6n escape sequence to query the horizontal cursor position * and return it. On error -1 is returned, on success the position of the * c
linenoise.c:656
↓ 2 callers
Function
gguf_scalar_size
gguf-tools/deepseek4-quantize.c:1344
↓ 2 callers
Function
graph_power_sleep
ds4.c:10507
↓ 2 callers
Function
graph_power_update_avg
ds4.c:10501
↓ 2 callers
Function
has_provider_reference
Keep the imatrix corpus independent from one branded client.
gguf-tools/imatrix/dataset/build_ds4_imatrix_dataset.py:257
↓ 2 callers
Function
hash_bytes
ds4.c:660
↓ 2 callers
Function
hc_post_sum_batch
ds4.c:6615
↓ 2 callers
Function
hc_pre_norm_batch
Batched HC pre plus RMSNorm. Prefill uses this to keep the layer-major * token batch in contiguous arrays. */
ds4.c:6690
↓ 2 callers
Function
hex_bytes
(values: list[int])
tests/test-vectors/fetch_official_vectors.py:185
↓ 2 callers
Function
imatrix_collect_layer_batch
ds4.c:20131
↓ 2 callers
Function
imatrix_find
gguf-tools/deepseek4-quantize.c:819
↓ 2 callers
Function
imatrix_free
gguf-tools/deepseek4-quantize.c:857
↓ 2 callers
Function
indexer_allowed_decode_one
Ratio-4 layers use an auxiliary indexer to select which compressed rows are * visible to attention. This is the CPU allocation-owning helper. */
ds4.c:9094
↓ 2 callers
Function
isCombiningMark
Check if codepoint is a combining mark or other zero-width character. */
linenoise.c:221
↓ 2 callers
Function
isGraphemeExtend
Check if codepoint extends the previous character (doesn't start a new grapheme). */
linenoise.c:230
↓ 2 callers
Function
isSkinToneModifier
Check if codepoint is a skin tone modifier. */
linenoise.c:206
↓ 2 callers
Function
isVariationSelector
Check if codepoint is a variation selector (emoji style modifiers). */
linenoise.c:201
↓ 2 callers
Function
joyai_cjk_at
ds4.c:22126
↓ 2 callers
Function
joyai_consume_letters
ds4.c:22119
↓ 2 callers
Function
json_args_parse
ds4_server.c:2089
↓ 2 callers
Function
json_escape_fragment_n
ds4_server.c:4194
↓ 2 callers
Function
json_free
gguf-tools/deepseek4-quantize.c:272
↓ 2 callers
Function
json_i64
gguf-tools/deepseek4-quantize.c:313
↓ 2 callers
Function
json_minify_raw_value
ds4_server.c:392
↓ 2 callers
Function
json_parse_text
gguf-tools/deepseek4-quantize.c:227
↓ 2 callers
Function
json_tok_eq
gguf-tools/deepseek4-quantize.c:277
↓ 2 callers
Function
json_u16
ds4_server.c:208
↓ 2 callers
Function
json_write_string
ds4_cli.c:570
↓ 2 callers
Function
kv_buf_puts
ds4_kvstore.c:109
↓ 2 callers
Function
kv_buf_reserve
ds4_kvstore.c:88
↓ 2 callers
Function
kv_cache_discard_failed_disk_entry
ds4_server.c:8782
↓ 2 callers
Function
kv_cache_find_text_prefix
ds4_server.c:8809
↓ 2 callers
Function
kv_cache_refresh
ds4_kvstore.c:468
↓ 2 callers
Function
kv_cache_store_current
ds4_server.c:8727
↓ 2 callers
Function
kv_cache_store_live_prefix_text
ds4_server.c:8706
↓ 2 callers
Function
kv_cache_suppress_continued_store
ds4_server.c:8772
↓ 2 callers
Function
kv_cache_tool_map_hooks
ds4_server.c:8694
↓ 2 callers
Function
kv_cache_try_load_text
ds4_server.c:8815
↓ 2 callers
Function
kv_entry_eviction_score
ds4_server.c:8584
↓ 2 callers
Function
kv_tool_map_measure_locked
ds4_server.c:8385
↓ 2 callers
Function
kv_tool_map_serialized_size
ds4_server.c:8421
↓ 2 callers
Function
kv_trailer_serialized_size
ds4_kvstore.c:867
↓ 2 callers
Function
kv_trailer_write
ds4_kvstore.c:875
↓ 2 callers
Function
kv_xrealloc
ds4_kvstore.c:75
↓ 2 callers
Function
layer_attention_mixed_one
Attention over raw SWA rows plus optional compressed rows. Ratio-4 layers * pass an indexer mask to hide compressed rows not selected for this token
ds4.c:8851
↓ 2 callers
Function
layer_ffn_batch
ds4.c:7984
↓ 2 callers
Function
layer_forward_raw_swa_one
Full transformer layer for one decode token: attention sublayer followed by * FFN sublayer, both operating on the HC state. */
ds4.c:9679
↓ 2 callers
Function
layer_forward_self_one
Diagnostic first-token layer without cache history: the token attends only * to itself, useful for checking a minimal end-to-end slice. */
ds4.c:10077
↓ 2 callers
Function
layer_hash_router_weights_from_probs
ds4.c:7341
↓ 2 callers
Function
layer_q_projection_normed_one
Q projection is low-rank: Q8_0 into the model-specific LoRA-Q rank, * RMSNorm, then Q8_0 back to all attention heads. */
ds4.c:6742
↓ 2 callers
Function
layer_router_probs_one
Router scores use sqrt(softplus(logit)); normalization happens only after * the six selected experts are known. */
ds4.c:7328
↓ 2 callers
Function
layer_shared_ffn_batch
ds4.c:7262
↓ 2 callers
Function
layer_shared_ffn_one
The shared expert is a normal Q8_0 SwiGLU MLP that runs for every token. */
ds4.c:7184
↓ 2 callers
Function
layer_topk_selected_experts_from_probs
ds4.c:7405
↓ 2 callers
Function
linenoiseEditClear
Clear the live nonblocking edit buffer and redraw the prompt/status. This is * used by clients that want Ctrl+C to cancel the current edit without t
linenoise.c:1620
↓ 2 callers
Function
linenoiseEditDelete
Delete the character at the right of the cursor without altering the cursor * position. Basically this is what happens with the "Delete" keyboard key
linenoise.c:1882
↓ 2 callers
Function
linenoiseEditMoveLeft
Move cursor on the left. Moves by one UTF-8 character, not byte. */
linenoise.c:1804
↓ 2 callers
Function
linenoiseEditMoveRight
Move cursor on the right. Moves by one UTF-8 character, not byte. */
linenoise.c:1812
↓ 2 callers
Function
linenoiseEditQueuedInput
linenoise.c:1719
↓ 2 callers
Function
linenoiseEditSetStatus
Set the optional status footer rendered by the multiplexed editor. The * footer is owned by linenoise and redrawn as one or more terminal rows below
linenoise.c:1753
↓ 2 callers
Function
linenoiseEditStart
This function is part of the multiplexed API of Linenoise, that is used * in order to implement the blocking variant of the API but can also be * ca
linenoise.c:1949
↓ 2 callers
Function
linenoiseEditStop
This is part of the multiplexed linenoise API. See linenoiseEditStart() * for more information. This function is called when linenoiseEditFeed() * r
linenoise.c:2369
↓ 2 callers
Function
linenoiseFoldAdd
Add a fold range, keeping the array sorted by start offset. */
linenoise.c:1209
↓ 2 callers
Function
linenoiseFoldRemove
Remove one remembered fold range. */
linenoise.c:1230
↓ 2 callers
Function
linenoiseHide
Hide the current line, when using the multiplexing API. */
linenoise.c:1604
↓ 2 callers
Function
linenoiseHistoryLoad
Load the history from the specified file. If the file does not exist * zero is returned and no operation is performed. * * If the file exists and t
linenoise.c:2667
↓ 2 callers
Function
linenoiseHistorySetMaxLen
Set the maximum length for the history. This function can be called even * if there is already some history, the function will make sure to retain *
linenoise.c:2609
↓ 2 callers
Function
linenoiseMakeRawMode
linenoise.c:568
↓ 2 callers
Function
linenoiseReadLine
Read a newline-terminated record from fp with no fixed-size stack buffer. * Used for non-tty input, unsupported terminals, and history loading. */
linenoise.c:2460
↓ 2 callers
Function
linenoiseRenderBuffer
Return the freshly allocated string content that is actually displayed in * the user prompt. It can be the actual edited line, or a special version
linenoise.c:1112
↓ 2 callers
Function
linenoiseSetCompletionCallback
Register a callback function to be called for tab-completion. */
linenoise.c:842
↓ 2 callers
Function
linenoiseSetMultiLine
Set if to use or not the multi line mode. */
linenoise.c:552
↓ 2 callers
Function
load
(path: Path)
gguf-tools/quality-testing/compare_scores.py:11
↓ 2 callers
Function
load_gguf_metadata
gguf-tools/deepseek4-quantize.c:1458
↓ 2 callers
Function
load_u16_le
gguf-tools/deepseek4-quantize.c:174
↓ 2 callers
Function
log_context_memory
ds4_cli.c:192
↓ 2 callers
Function
log_decode_progress
ds4_server.c:9360
↓ 2 callers
Function
logits_top2
ds4.c:22570
↓ 2 callers
Function
matvec_experts_down_accum_prequant
Dispatch: call the right down-projection accumulator based on tensor type. */
ds4.c:6227
↓ 2 callers
Function
matvec_experts_mid_prequant
Dispatch: call the right gate/up mid builder based on tensor type. */
ds4.c:6205
↓ 2 callers
Function
matvec_q8_0_pair_decode_scratch
ds4.c:5318
↓ 2 callers
Function
matvec_q8_0_rows_prequant
Multiply selected Q8_0 rows by an activation that has already been quantized * once. This avoids repeated activation quantization for paired project
ds4.c:5101
↓ 2 callers
Function
metal_graph_alloc
ds4.c:11291
↓ 2 callers
Function
metal_graph_apply_directional_steering
ds4.c:10732
↓ 2 callers
Function
metal_graph_apply_directional_steering_attn
ds4.c:10747
← previous
next →
1,101–1,200 of 2,709, ranked by callers