MCPcopy Create free account

hub / github.com/Avarok-Cybersecurity/atlas / functions

Functions7,049 in github.com/Avarok-Cybersecurity/atlas

↓ 1 callersFunctionstep_tile_ref
( state: &mut AttnState, q: &[bf16], k_pool: &[bf16], v_pool: &[bf16], tile_blocks: &[i32]
crates/spark-storage/src/attention_ref.rs:36
↓ 1 callersFunctionstep_verify_dflash
DFlash γ-token verify with accept-prefix. Phase 3 minimal-viable implementation: routes `[last_token, drafts...]` through the eager `decode_verify_df
crates/spark-server/src/scheduler/verify_dflash_step.rs:29
↓ 1 callersFunctionstep_verify_k2
K=2 verify: [last_token, draft] → [v0, v1]. Two outcomes: ACCEPT or REJECT. `verify_ctx` carries tokenizer special-token IDs the pre-sample pipeline
crates/spark-server/src/scheduler/verify_k2_step.rs:59
↓ 1 callersFunctionstep_verify_k3
K=3 verify: [last_token, draft1, draft2] → [v0, v1, v2]. Three outcomes. `verify_ctx` carries the tokenizer special-token IDs the pre-sample logits-p
crates/spark-server/src/scheduler/verify_k3_step.rs:43
↓ 1 callersFunctionstep_verify_k4
K=4 verify: [last_token, draft1, draft2, draft3] → [v0, v1, v2, v3]. Four outcomes: accept 0, 1, 2, or 3 drafts. `verify_ctx` plumbs special-token ID
crates/spark-server/src/scheduler/verify_k4_step.rs:45
↓ 1 callersFunctionstill_has_todo
(target)
bench/fp8_dgx2_drift/harness/overnight/edit_probe.py:142
↓ 1 callersFunctionstop_container
(name: str)
tests/vision_sweep.py:156
↓ 1 callersFunctionstore_has_dflash_weights
Probe a [`WeightStore`] for the presence of DFlash drafter weights. Returns true if the store contains the unique `fc.weight` tensor that DFlash draft
crates/spark-model/src/weight_loader/dflash_loader.rs:128
↓ 1 callersFunctionstream_one
One streamed completion. Returns (reasoning, content, finish, stats). `overrides` (e.g. presence_penalty / frequency_penalty / enable_thinkin
bench/longcode/harness.py:32
↓ 1 callersMethodstream_wait_event_dispatch
(&self, stream: u64, event: u64)
crates/spark-model/src/model/trait_impl/ep_misc.rs:88
↓ 1 callersFunctionstreaming_example
Streaming completion (SSE).
examples/python/chat_completions.py:54
↓ 1 callersFunctionstripComment
(v)
site/scripts/gen-models.mjs:56
↓ 1 callersFunctionstrip_tag_pairs
Remove every balanced `start..end` pair from `s` (an unmatched trailing `start` is left intact).
crates/spark-server/src/reasoning_parser/parsers.rs:161
↓ 1 callersFunctionstrip_thinking_tags
(text: &str)
crates/spark-server/src/api/strip.rs:40
↓ 1 callersMethodsubmit_read
Submit one read request into `buf_idx` and return its user_data tag.
crates/spark-storage/src/backend/io_uring.rs:89
↓ 1 callersFunctionsummarize
(values: list[float], kind: str)
bench/fp8_dgx2_drift/harness/aggregate.py:85
↓ 1 callersFunctionsummarize
SSOT aggregation + gate. Used by both live and --reanalyze paths.
bench/longcode/harness.py:135
↓ 1 callersMethodsupports_thinking
(&self)
crates/spark-server/src/tokenizer/chat_impl.rs:278
↓ 1 callersMethodsupports_tp
(&self)
crates/spark-model/src/weight_loader/qwen3.rs:23
↓ 1 callersFunctionswap_out_sequence
Swap out an active sequence to disk, freeing its GPU blocks. Removes the sequence at `victim_idx` from `active`, saves its state to a swap file, free
crates/spark-server/src/scheduler/lifecycle.rs:134
↓ 1 callersMethodsync
(&self)
crates/spark-storage/src/cuda_module.rs:90
↓ 1 callersFunctionsync_stream
(stream: u64)
crates/spark-comm/src/nccl.rs:306
↓ 1 callersMethodsynchronize
(&self, stream: u64)
crates/spark-runtime/src/metal_backend.rs:489
↓ 1 callersMethodsynchronize_dispatch
(&self, stream: u64)
crates/spark-model/src/model/trait_impl/ep_misc.rs:92
↓ 1 callersFunctionsysctl_memsize
Probe `hw.memsize` via libc::sysctl on macOS. Returns the total system RAM in bytes — on Apple Silicon UMA this is also the upper bound on Metal-addre
crates/spark-runtime/src/metal_backend.rs:713
↓ 1 callersFunctiontag_dispatch_optimization
Precompute, for each TagDispatch rule, the bitset of tokens that are definitely accepted *from their second character on* (i.e. contain no tag / stop
crates/xgrammar/src/compiler/compile.rs:120
↓ 1 callersMethodtag_pair
Decode one `("tag", rule_name)` positional tag-dispatch argument.
crates/xgrammar/src/grammar/parser_tagdispatch.rs:75
↓ 1 callersFunctiontempdir
()
crates/spark-storage/src/layout.rs:131
↓ 1 callersFunctiontempdir
(name: &str)
crates/spark-storage/src/backend/io_uring.rs:217
↓ 1 callersFunctiontempdir
(name: &str)
crates/spark-storage/src/backend/posix.rs:102
↓ 1 callersFunctiontempdir
(name: &str)
crates/spark-storage/tests/high_speed_swap_e2e.rs:43
↓ 1 callersFunctiontest_anthropic_agent_compat
Test Claude Code agent scenarios against the Anthropic Messages API.
scripts/test_coherence.py:1142
↓ 1 callersFunctiontest_anthropic_api
()
scripts/test_coherence.py:690
↓ 1 callersFunctiontest_basic_api
()
scripts/test_coherence.py:67
↓ 1 callersMethodtest_bug35_concurrent_coherence
BUG #35: Concurrent requests must not contaminate each other.
scripts/dev/test_bugfixes.py:88
↓ 1 callersMethodtest_bug36_finish_reason_streaming
BUG #36b: finish_reason must be present (null or string) in every chunk.
scripts/dev/test_bugfixes.py:278
↓ 1 callersMethodtest_bug36_missing_content_field
BUG #36a: Assistant message with tool_calls but no content field.
scripts/dev/test_bugfixes.py:258
↓ 1 callersMethodtest_bug36_no_leading_newlines
BUG #36c: Response must not start with \\n\\n.
scripts/dev/test_bugfixes.py:297
↓ 1 callersFunctiontest_coherence
()
scripts/test_coherence.py:235
↓ 1 callersMethodtest_completions_think_tag
Completions endpoint must not leak <think> tags.
scripts/dev/test_bugfixes.py:365
↓ 1 callersMethodtest_cross_request_bleed_c4
Extended bleed-through test: c=4 with diverse, easily-distinguishable prompts.
scripts/dev/test_bugfixes.py:136
↓ 1 callersMethodtest_cross_request_bleed_streaming
Cross-request bleed test using streaming (different code path).
scripts/dev/test_bugfixes.py:193
↓ 1 callersFunctiontest_determinism
()
scripts/test_coherence.py:278
↓ 1 callersFunctiontest_e2e_rust_project
Simulate a multi-turn conversation that creates a Rust project. Verifies that tool calls are properly formatted and produce correct results.
scripts/test_coherence.py:1301
↓ 1 callersFunctiontest_edge_cases
()
scripts/test_coherence.py:298
↓ 1 callersFunctiontest_error_handling
()
scripts/test_coherence.py:768
↓ 1 callersFunctiontest_isl
Test a single ISL value.
scripts/dev/test_long_context.py:128
↓ 1 callersMethodtest_kv_cache_warning
KV cache warning: server started without crash (implicit test).
scripts/dev/test_bugfixes.py:457
↓ 1 callersMethodtest_logprobs_null
logprobs: null must be present in response choices.
scripts/dev/test_bugfixes.py:416
↓ 1 callersMethodtest_logprobs_null_streaming
logprobs: null must be present in streaming chunk choices.
scripts/dev/test_bugfixes.py:431
↓ 1 callersMethodtest_models_endpoint
GET /v1/models must include 'created' timestamp.
scripts/dev/test_bugfixes.py:445
↓ 1 callersMethodtest_multi_turn_coherence
BUG #38/#40: Multi-turn must not produce gibberish.
scripts/dev/test_bugfixes.py:467
↓ 1 callersFunctiontest_multi_turn_tools
()
scripts/test_coherence.py:572
↓ 1 callersFunctiontest_opencode_compat
()
scripts/test_coherence.py:831
↓ 1 callersFunctiontest_response_format
()
scripts/test_coherence.py:636
↓ 1 callersFunctiontest_sampling
()
scripts/test_coherence.py:407
↓ 1 callersMethodtest_stop_sequences
Stop sequences: generation stops at specified string.
scripts/dev/test_bugfixes.py:314
↓ 1 callersFunctiontest_streaming
()
scripts/test_coherence.py:105
↓ 1 callersFunctiontest_streaming_tool_format
()
scripts/test_coherence.py:501
↓ 1 callersMethodtest_system_fingerprint
system_fingerprint must be present in responses.
scripts/dev/test_bugfixes.py:388
↓ 1 callersMethodtest_system_fingerprint_streaming
system_fingerprint must be present in streaming chunks.
scripts/dev/test_bugfixes.py:402
↓ 1 callersFunctiontest_tool_calling
()
scripts/test_coherence.py:138
↓ 1 callersFunctiontest_tool_choice
()
scripts/test_coherence.py:446
↓ 1 callersFunctiontest_tool_reliability
()
scripts/test_coherence.py:359
↓ 1 callersMethodto_string_ebnf
The grammar in EBNF form. Port of the vendored `Grammar::to_string_ebnf`.
crates/xgrammar/src/api/grammar.rs:86
↓ 1 callersFunctiontoggle_code_fence
Flip `in_fence` when the just-sampled token `tok` is the model's atomic ``` code-fence token. `fence_tok == None` (tokenizer has no single fence token
crates/spark-server/src/scheduler/confidence.rs:19
↓ 1 callersMethodtoken_mask_with_first_char_check
Scan the vocabulary, classifying each token. Returns whether the rejected partition was filled (selects which mask constructor to use). Port of `GetTo
crates/xgrammar/src/compiler/mask_gen/intervals.rs:58
↓ 1 callersFunctiontoken_str_in_detection_set
True if the decoded token, interpreted as UTF-8, equals one of the auto-detection stop markers. Tokens that are not valid UTF-8 can never match (the C
crates/xgrammar/src/tokenizer/info.rs:222
↓ 1 callersFunctiontool
(name: &str, desc: &str, params: serde_json::Value)
crates/spark-server/src/tscg/mod.rs:89
↓ 1 callersFunctiontool_call_example
Tool-calling — Atlas auto-detects the model's tool format.
examples/python/chat_completions.py:72
↓ 1 callersFunctiontool_call_is_productive
Classify a tool call as PRODUCTIVE (produces/verifies a deliverable) vs exploratory. `write`/`edit`/`create` tools are productive; a `bash` call is pr
crates/spark-server/src/hint_injector.rs:294
↓ 1 callersFunctiontool_choice_required_for_parser
( tools_active: bool, tool_choice: Option<&tool_parser::ToolChoice>, parser_name: Option<&str>, )
crates/spark-server/src/api/chat/sampling_setup.rs:42
↓ 1 callersFunctiontop_k
Returns the top-`k` (index, logit) pairs by logit, descending.
crates/spark-server/src/scheduler/logit_dump.rs:57
↓ 1 callersFunctiontop_k
Top-K grammar-legal tokens by logit value. Tiny K (≤ 8) so a linear scan is faster than a heap.
crates/spark-server/src/scheduler/logit_processors/adadec_diag.rs:104
↓ 1 callersFunctiontopk
(scores: &[f32], k: usize)
crates/spark-storage/tests/recall_at_k.rs:87
↓ 1 callersMethodtotal_elems
Total number of stored elements across all rows.
crates/xgrammar/src/fsm/compact_array.rs:46
↓ 1 callersFunctiontotal_sampled_token_count
Total tokens sampled (for computing low-entropy ratio).
crates/spark-runtime/src/sampler.rs:32
↓ 1 callersFunctiontranslate_chat_response_to_responses
Translate a `ChatCompletionResponse` (already serialized in the Response) into a `ResponsesResponse`. Only handles the JSON success path — error respo
crates/spark-server/src/api/responses_translate.rs:86
↓ 1 callersFunctiontranspose_b
Host transpose B[N,K] → B_t[K,N] (mirrors `transpose_fp8` kernel).
crates/spark-model/examples/w8a16t_microtest.rs:152
↓ 1 callersFunctiontranspose_block_scale
Transpose block scales: [N/128, K/128] → [K/128, N/128].
crates/spark-model/src/layers/ops/gemm_quant.rs:743
↓ 1 callersMethodtranspose_down_into_scratch
Run the batched transpose kernel to populate `down_t_scratch_*` from the untransposed `down_ptrs` source. Must be called once at the start of every la
crates/spark-model/src/layers/moe/helpers_b.rs:37
↓ 1 callersFunctiontranspose_fp8
Transpose FP8 weight matrix on GPU: `B[N,K]` → `B_t[K,N]`. Grid: (ceil(N*K/256), 1, 1) Block: (256, 1, 1)
crates/spark-model/src/layers/ops/gemm_quant.rs:697
↓ 1 callersMethodtranspose_moe_for_prefill
( &mut self, gpu: &dyn GpuBackend, config: &atlas_core::config::ModelConfig, )
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:218
↓ 1 callersMethodtranspose_moe_for_prefill_hybrid
( &mut self, gpu: &dyn GpuBackend, config: &atlas_core::config::ModelConfig, )
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:285
↓ 1 callersMethodtranspose_moe_for_prefill_unified
( &mut self, gpu: &dyn GpuBackend, config: &atlas_core::config::ModelConfig, )
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:271
↓ 1 callersMethodtranspose_moe_gate_up_for_prefill
( &mut self, gpu: &dyn GpuBackend, config: &atlas_core::config::ModelConfig, )
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:232
↓ 1 callersFunctiontranspose_scale
Host transpose scale[N/128,K/128] → scale_t[K/128,N/128] (mirrors `transpose_block_scale` kernel).
crates/spark-model/examples/w8a16t_microtest.rs:164
↓ 1 callersFunctiontrigger_atlas
Send one Mona Lisa request to an already-running Atlas server that was launched with ATLAS_DUMP_VIT set. The dump happens as a side effect of
tests/vit_reference_check.py:82
↓ 1 callersMethodtrim_proposer_state_dispatch
( &self, seq: &mut SequenceState, num_accepted: usize, _stream: u64, )
crates/spark-model/src/model/trait_impl/speculative.rs:147
↓ 1 callersFunctiontrim_to_tokens
Approximate trim: ~1.3 words per token for English text.
scripts/dev/test_long_context.py:59
↓ 1 callersFunctiontruncate_drafts_at_grammar_boundary
Truncate a draft list at the first token the grammar would reject *if it were the next emitted token at that draft position*. Required for K=3+ MTP p
crates/spark-server/src/scheduler/spec_step.rs:426
↓ 1 callersMethodtry_decode_multi_seq_ssm_batched
( &self, hidden: DevicePtr, residual: DevicePtr, n: usize, states: &'a
crates/spark-model/src/layers/qwen3_ssm/trait_decode_multi_seq/ssm_batched.rs:21
↓ 1 callersMethodtry_speculative_accept
Try to fast-accept `token` (sorted-vocab index `index`) without the parser. Returns whether it was accepted and pushed. Port of the speculative branc
crates/xgrammar/src/compiler/mask_gen/speculative.rs:82
↓ 1 callersFunctionturbo4_quantize
(x: f32)
crates/spark-runtime/src/metal_backend/tests/parity_turbo4.rs:22
↓ 1 callersFunctiontvd
(p, q)
bench/fp8_dgx2_drift/temp03_sampling_amp.py:56
↓ 1 callersFunctiontypes
(src: &str)
crates/xgrammar/src/grammar/lexer_tests.rs:8
↓ 1 callersMethodu
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/moe_topk_microtest.rs:18
↓ 1 callersFunctionu16le
(v: &[u16])
crates/spark-model/examples/moe_shared_microtest.rs:78
↓ 1 callersFunctionu16s_le
(v: &[u16])
crates/spark-model/examples/moe_microtest.rs:106
↓ 1 callersFunctionu16s_to_le
(v: &[u16])
crates/spark-model/examples/w8a16t_microtest.rs:108
← previousnext →3,601–3,700 of 7,049, ranked by callers