MCPcopy Create free account

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

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

↓ 1 callersFunctionbuild_with_eos_stop
EOS-stop variant: every non-tag-prefix state accepts.
crates/xgrammar/src/grammar/functor/tag_dispatch_fsm.rs:26
↓ 1 callersFunctionbuild_with_stop_string
Stop-string variant: only the stop-string terminals accept.
crates/xgrammar/src/grammar/functor/tag_dispatch_fsm.rs:58
↓ 1 callersFunctionbuiltin_json_grammar
Build the parsed [`GrammarData`] for the builtin-JSON grammar.
crates/xgrammar/src/schema/api.rs:101
↓ 1 callersFunctionbyte_fallback_decoder
ByteFallback decoder: transform a token like `<0x1B>` into the single raw byte `0x1B`. Any other token is returned unchanged. Faithful to C++ `ByteFa
crates/xgrammar/src/tokenizer/decoder.rs:34
↓ 1 callersFunctionbyte_level_decoder
ByteLevel decoder: invert the GPT-2 bytes-to-unicode transform. Faithful to C++ `ByteLevelDecoder`. If the token is not valid UTF-8, or contains a co
crates/xgrammar/src/tokenizer/decoder.rs:135
↓ 1 callersFunctionbyte_to_latin1
Convert a raw byte sequence into a Latin-1 string encoded as UTF-8. Bytes `0x00..=0x7F` pass through; `0x80..=0xFF` are emitted as the 2-byte UTF-8 e
crates/xgrammar/src/support/encoding.rs:206
↓ 1 callersFunctionbytelevel_decode
(s)
bench/fp8_dgx2_drift/scan_ws_tokens.py:44
↓ 1 callersFunctionbytes_to_bf16_vec
(bytes: &[u8])
crates/spark-runtime/examples/metal_layer3_attention.rs:39
↓ 1 callersFunctionbytes_to_bf16_vec
(bytes: &[u8])
crates/spark-runtime/examples/metal_vision_block_forward.rs:35
↓ 1 callersFunctionbytes_to_unicode
()
bench/fp8_dgx2_drift/scan_ws_tokens.py:23
↓ 1 callersFunctioncache_hit_count
()
crates/spark-runtime/src/prefix_cache.rs:30
↓ 1 callersFunctioncache_hit_tokens_total
()
crates/spark-runtime/src/prefix_cache.rs:36
↓ 1 callersFunctioncache_miss_count
()
crates/spark-runtime/src/prefix_cache.rs:33
↓ 1 callersMethodcache_sequence
(&self, _seq: &SequenceState)
crates/spark-model/src/engine/tests.rs:237
↓ 1 callersMethodcache_sequence_dispatch
(&self, seq: &SequenceState)
crates/spark-model/src/model/trait_impl/sequence.rs:31
↓ 1 callersMethodcache_size_bytes
Approximate bytes held by the cache — the grammar-level compiled grammars plus the cross-grammar rule-level mask cache. Port of `GrammarCompiler::GetC
crates/xgrammar/src/compiler/compiler.rs:250
↓ 1 callersMethodcache_stride_elements
Cache stride in elements (for FP8/BF16 kernels). Elements per block = block_size * num_kv_heads * head_dim.
crates/spark-runtime/src/kv_cache.rs:357
↓ 1 callersFunctioncalc_decode_tps
Decode-only tokens per second. Subtracts TTFT (prefill) from wall-clock so we measure the steady-state decode throughput that matches single-G
tests/single_gpu_suite.py:119
↓ 1 callersFunctioncall
(prompt, max_tok=64, timeout=120)
tests/test_kv_dtype_smoke.py:80
↓ 1 callersMethodcanonical_mask_state
Canonicalize a *live* parser state into the cache key the compiler's mask cache is keyed by. The parser's live scanable states carry real positions (
crates/xgrammar/src/matcher/matcher.rs:162
↓ 1 callersFunctioncanonical_value_to_string
(v: &serde_json::Value)
crates/spark-server/src/tool_arg_dedup.rs:134
↓ 1 callersFunctioncanonicalize_json
Re-serialise a JSON value with sorted object keys and no whitespace. Returns `None` if `s` is not valid JSON.
crates/spark-server/src/tool_arg_dedup.rs:129
↓ 1 callersFunctioncanonicalize_model_quant
QV1 (2026-05-26): canonicalize the model's declared quantization to one of `"fp8"`, `"nvfp4"`, `"bf16"`, or `"unknown"`. Reads `quantization_config.qu
crates/spark-server/src/main_modules/serve.rs:722
↓ 1 callersFunctioncap
(name)
tests/vit_reference_check.py:130
↓ 1 callersFunctioncap_conv1d
(li, raw)
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:67
↓ 1 callersFunctioncap_in_proj_qkv
(li, out)
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:59
↓ 1 callersFunctioncap_norm
(li, out)
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:92
↓ 1 callersFunctioncap_out_proj
(li, out)
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:99
↓ 1 callersFunctioncap_recur_in
(li, x)
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:85
↓ 1 callersFunctioncap_vocab_size_to_tokenizer
(model_dir: &Path, config: &mut ModelConfig)
crates/spark-server/src/main_modules/serve_phases/config.rs:72
↓ 1 callersFunctioncargo_check
Syntactic validation of Cargo.toml: parses as TOML, has a `[package]` section with required `name` + `version`. We do NOT run `cargo metadata`
bench/fp8_dgx2_drift/harness/score_run.py:68
↓ 1 callersFunctioncargo_test
(target)
bench/fp8_dgx2_drift/harness/overnight/edit_probe2.py:47
↓ 1 callersFunctioncargo_test
(target)
bench/fp8_dgx2_drift/harness/overnight/edit_probe3.py:44
↓ 1 callersFunctionchat
(messages, tools=None, max_tokens=384)
bench/mtp_marconi_groundtruth.py:68
↓ 1 callersFunctionchat
(messages, temp=0.3)
bench/fp8_dgx2_drift/harness/mtp_warm_stress.py:86
↓ 1 callersFunctionchat
(base, messages, max_tokens, timeout=180)
bench/fp8_dgx2_drift/harness/warm_cold_chain_repro.py:54
↓ 1 callersFunctionchat_completions_stream
( state: Arc<AppState>, prompt_tokens: Vec<u32>, session_hash: u64, image_pixels: Vec<(Vec<f32
crates/spark-server/src/api/chat_stream/mod.rs:48
↓ 1 callersFunctioncheck
(target)
bench/fp8_dgx2_drift/harness/overnight/edit_probe.py:136
↓ 1 callersMethodcheck_can_inline
(&self, rule_id: i32)
crates/xgrammar/src/grammar/functor/optimizer.rs:77
↓ 1 callersFunctioncheck_coherence
Check if the output is coherent and answers the math question.
scripts/dev/ssm_context_profile.py:112
↓ 1 callersFunctioncheck_correction_bias_shape
Generic MoE correction_bias shape check (DeepSeek V3 / MiniMax M2 / any future family that uses the loss-free-balancing bias). The bias tensor name is
crates/spark-model/src/preflight.rs:292
↓ 1 callersFunctioncheck_embedding_and_head
(store: &WeightStore)
crates/spark-model/src/preflight.rs:85
↓ 1 callersFunctioncheck_expert_count
Detect the highest expert index across every layer and compare with `config.num_experts`. Catches the "community re-quant shipped a different base mod
crates/spark-model/src/preflight.rs:190
↓ 1 callersFunctioncheck_kernel_batched_eligible
( streams: I, n: usize, arena_cap: usize, model_type: &str, head_dim: usize, scratch_c
crates/spark-model/src/model/trait_impl/prefill_b/batch_kernel/eligible.rs:138
↓ 1 callersFunctioncheck_layer_count
Detect the highest per-layer index present in the store by scanning any tensor matching `*.layers.{N}.*`. Returns the observed max index so the caller
crates/spark-model/src/preflight.rs:138
↓ 1 callersFunctioncheck_loops
(req: &ChatCompletionRequest, tools_active: bool)
crates/spark-server/src/api/chat/loop_detect.rs:36
↓ 1 callersFunctioncheck_mtp_consumability
Check whether the loader for the declared `model_type` can actually consume the extra layers the checkpoint ships. Today only MiniMax ships per-module
crates/spark-model/src/preflight.rs:263
↓ 1 callersFunctioncheck_quality
Heuristic quality check: detect garbage output. Garbage indicators: - High ratio of non-ASCII characters - Excessive repetition (sam
scripts/dev/test_long_context.py:91
↓ 1 callersFunctioncheck_quant_method
Fail fast when the checkpoint declares a `quant_method` Atlas doesn't understand. Discovery-based fallback at load time would then either silently mis
crates/spark-model/src/preflight.rs:61
↓ 1 callersFunctioncheck_repeat
Parse `{n}` / `{n,}` / `{n,m}` starting at `start` (which must point at `{`). On success returns `(lower, upper, index-of-'}')`.
crates/xgrammar/src/fsm/builder/regex.rs:31
↓ 1 callersMethodcheckpoint_ssm_states_dispatch
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/verify_a.rs:234
↓ 1 callersMethodclaim_slot
(&self)
crates/spark-model/src/model/ssm_pool.rs:151
↓ 1 callersMethodclaim_specific
Remove a SPECIFIC slot from the free list if present, returning whether it was. Used by `compact_sequence` to claim a known-free migration target EXCL
crates/spark-model/src/model/ssm_pool.rs:190
↓ 1 callersMethodclassify_ref_edge
Decode a non-epsilon edge into a [`RefEdge`]. For repeat edges it also enqueues the past-lower-bound exit transition and reports `None` once the upper
crates/xgrammar/src/earley/predict_fsm.rs:56
↓ 1 callersFunctionclassify_tool
(name: &str)
crates/spark-server/src/api/sanitizer.rs:317
↓ 1 callersFunctionclaude
(target, prompt)
bench/fp8_dgx2_drift/harness/overnight/edit_probe2.py:39
↓ 1 callersFunctionclaude
(target, prompt)
bench/fp8_dgx2_drift/harness/overnight/edit_probe3.py:36
↓ 1 callersFunctionclose_open_items
Close any open message- or function-call output item left behind when the inner chat stream ended. Pushes `OutputItemDone` events into `completed_item
crates/spark-server/src/api/responses_stream_finalize.rs:105
↓ 1 callersFunctioncmp
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_split4_microtest.rs:49
↓ 1 callersMethodcmp
(&self, other: &Self)
crates/xgrammar/src/fsm/builder/trie.rs:182
↓ 1 callersFunctioncmp_f32
(cos, nrdev) for an f32 output (S_final) decoded from raw bytes.
crates/spark-model/examples/gdn_chunk_shapetest.rs:400
↓ 1 callersFunctionco_accessible_nodes
Backward reachability on one per-rule FSM: the set of nodes that can reach an end node. Seed with the end nodes, then repeatedly add any node with an
crates/xgrammar/src/earley/prune.rs:127
↓ 1 callersFunctioncodepoint_to_bytes
Convert a unicode codepoint to its UTF-8 byte values as `i32`s. Helper shared with `functor` (single-element char-class -> byte string).
crates/xgrammar/src/grammar/printer.rs:176
↓ 1 callersFunctioncodepoint_to_escape
C-style escape table: codepoint -> escaped text. Matches the C++ `kCodepointToEscape` static map.
crates/xgrammar/src/support/escape.rs:19
↓ 1 callersMethodcodispatch_btcheck
DIAG: detect cross-stream physical-block sharing (co-dispatch KV double-issue hypothesis for the n>=5 decode-bleed bug). Gated behind `ATLAS_CODISPATC
crates/spark-model/src/model/trait_impl/prefill_b/batch_kernel/eligible.rs:84
↓ 1 callersFunctioncodispatch_window
Co-dispatch admission window: `Some(duration)` when `ATLAS_PREFILL_CODISPATCH=1`, else `None`. The window length is `ATLAS_PREFILL_CODISPATCH_WINDOW_M
crates/spark-server/src/scheduler/mod_helpers.rs:65
↓ 1 callersFunctioncoerce_call_args
(call: &mut ToolCall, tool_def: Option<&ToolDefinition>)
crates/spark-server/src/tool_parser/type_coerce.rs:18
↓ 1 callersMethodcoerce_kv
Coerce a single XML `<parameter=KEY>VALUE</parameter>` pair to its canonical schema-normalised key and a JSON-encoded value string. Reuses the SSOT `n
crates/spark-server/src/tool_parser/streaming_emit.rs:20
↓ 1 callersFunctioncollect_cu_files
Collect kernel-source files with shadowing: common dir provides the base set, model-specific dir can override individual files by matching filename. `
crates/atlas-kernels/build.rs:840
↓ 1 callersFunctioncollect_footnote_defs
Walk each line; return `{label: (url, optional_title)}` for lines matching `[^label]: url [title]`.
crates/spark-server/src/citation.rs:121
↓ 1 callersFunctioncollect_numeric_defs
( content: &str, )
crates/spark-server/src/citation.rs:198
↓ 1 callersMethodcommit_accepted_prefix_dispatch
STree-style in-place verify commit (item #2): the verify kernel writes directly onto the canonical `h_state`/`conv_state`, so the surviving prefix is
crates/spark-model/src/model/trait_impl/async_chkpt.rs:229
↓ 1 callersMethodcommit_verify_state_async_dispatch
( &self, seq: &mut SequenceState, num_accepted: usize, k: usize, )
crates/spark-model/src/model/trait_impl/async_chkpt.rs:280
↓ 1 callersFunctioncompact
Compact a mutable FSM-with-start-end into the immutable form.
crates/xgrammar/src/earley/prune_tests.rs:10
↓ 1 callersFunctioncompact_messages
OpenAI-compatible JSON error response. Coding agents (OpenCode, Cline, nanobot) expect this exact structure. Progressive context compaction (5 stages,
crates/spark-server/src/api/compact.rs:20
↓ 1 callersMethodcompact_sequence_dispatch
( &self, seq: &mut SequenceState, new_slot: usize, )
crates/spark-model/src/model/trait_impl/sequence.rs:244
↓ 1 callersFunctioncompare
(a: &[u16], b: &[u16])
crates/spark-model/examples/w4a16_bf16_microtest.rs:172
↓ 1 callersFunctioncompare_attention_ops
Compare full-attention layer ops. Atlas uses full-attn-RELATIVE index 0..9 (Qwen3AttentionLayer.attn_layer_idx). HF uses ABSOLUTE layer index
bench/fp8_dgx2_drift/op_cosine.py:160
↓ 1 callersFunctioncompare_layer_hidden
End-of-layer hidden state (= residual stream) for all 40 layers.
bench/fp8_dgx2_drift/op_cosine.py:236
↓ 1 callersFunctioncompare_results
(vllm_path: str)
bench/bench-atlas-concurrency.py:330
↓ 1 callersFunctioncompare_ssm_stages
Compare SSM stages. Atlas filename: gdnsub_step0_L{ssm_rel}_{stage}.bin (BF16 raw bytes) HF filename: hf_op_L{abs}_{ssm_*}.bin (f32)
bench/fp8_dgx2_drift/op_cosine.py:62
↓ 1 callersMethodcompile
( &self, source: &std::path::Path, output: &std::path::Path, arch: &str,
crates/atlas-kernels/build_target.rs:53
↓ 1 callersMethodcompile_bare_json_tool_grammar
Compile a grammar for bare-JSON tool calls (no `<tool_call>` wrapper). Format: `{"name":"<one_of_tools>","arguments":<schema>}` — top-level JSON obje
crates/spark-server/src/grammar/compile_tools.rs:262
↓ 1 callersMethodcompile_ebnf
Compile a grammar from an EBNF string.
crates/spark-server/src/grammar/compile_misc.rs:74
↓ 1 callersMethodcompile_grammar
Compile an already-parsed [`GrammarData`]. Port of `GrammarCompiler::CompileGrammar(const Grammar&)` — keyed by the grammar's printed EBNF, as the C++
crates/xgrammar/src/compiler/compiler.rs:173
↓ 1 callersMethodcompile_grammar
Compile a [`Grammar`] handle. Port of the vendored `GrammarCompiler::compile_grammar`. The pure-Rust core consumes a `GrammarData` by value; the hand
crates/xgrammar/src/api/compiler.rs:107
↓ 1 callersFunctioncompile_kernels
()
crates/spark-storage/build.rs:91
↓ 1 callersMethodcompile_tool_grammar
( &self, engine: &mut GrammarEngine, tools: &[ToolDefinition], use_triggers: b
crates/spark-server/src/tool_parser/gemma4.rs:17
↓ 1 callersMethodcomplete_fsm_parent
Advance an FSM-backed parent. If the parent sits on a repeat-ref edge for `ref_id`, apply the repeat-count bookkeeping; otherwise re-enqueue the paren
crates/xgrammar/src/earley/complete.rs:89
↓ 1 callersMethodcomplete_non_fsm_parent
Advance a non-FSM parent (`rule_id == -1`) past its `RuleRef` or `Repeat` element.
crates/xgrammar/src/earley/complete.rs:47
↓ 1 callersFunctioncompletion_check
(check: str, target: pathlib.Path)
bench/fp8_dgx2_drift/harness/overnight/run_level.py:111
↓ 1 callersFunctioncompletions_stream
SSE streaming path for legacy completions.
crates/spark-server/src/api/completions.rs:292
↓ 1 callersFunctioncompress_with_anchors
Conservative compression: keep the first `n_preserve_head` tokens and the last `n_preserve_tail` tokens verbatim, only compress the middle. Mirrors Lo
crates/spark-server/src/llmlingua.rs:133
↓ 1 callersFunctioncompute_cache_key
Compute a canonical, order-independent cache key for `schema`. Object keys are sorted; annotation-only keys are dropped. Mirrors `SchemaParser::Comput
crates/xgrammar/src/schema/cache_key.rs:31
↓ 1 callersFunctioncompute_gdn_gates
Compute GDN gates from interleaved BA projection + learned A_log/dt_bias. Outputs FP32 gate (decay) and beta (write gate) for each value head. Kerne
crates/spark-model/src/layers/ops/ssm_preproc.rs:222
↓ 1 callersFunctioncompute_hf_reference
Load HF model on CPU, run Mona Lisa through vision tower, dump per-block outputs so we can diff against Atlas.
tests/vit_reference_check.py:101
↓ 1 callersMethodcompute_partitions
Populate `scratch.accepted` (accepted-bitset) and `scratch.rejected` (rejected-interset) over every latest scanable state, resolving uncertain tokens
crates/xgrammar/src/matcher/fill.rs:87
↓ 1 callersFunctioncompute_yarn_inv_freq
( config: &ModelConfig, rope: usize, gpu: &dyn GpuBackend, )
crates/spark-model/src/mistral_loader/loader_impl/yarn.rs:12
↓ 1 callersMethodconcat
Concatenate `items` with single-space separators, wrapped in parentheses. Port of static `Concat`.
crates/xgrammar/src/schema/script.rs:84
↓ 1 callersFunctionconcat_fp8_block_scaled
Concatenate two block-scaled FP8 weights along rows (dim 0): `[n_a, k] ++ [n_b, k] -> [n_a+n_b, k]`. FP8 bytes (1 B/elem) and the `[n/128, k/128]` FP3
crates/spark-model/src/weight_loader/qwen35_dense.rs:59
← previousnext →2,301–2,400 of 7,049, ranked by callers