MCPcopy Create free account

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

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

↓ 1 callersFunctionatlas_gdn_prefill
3rdparty_patches/gdn_aot/gdn_shim.cpp:18
↓ 1 callersFunctionatlas_log_metrics
Extract atlas-side counters from the captured docker log window. `runaway_length_capped_turns` + `max_turn_output_tokens` make the dominant w
bench/fp8_dgx2_drift/harness/score_run.py:433
↓ 1 callersMethodattempt_reconnect
Attempt to recover a degraded communicator. For NCCL, this aborts the dead communicator and re-initializes via TCP bootstrap. Both ranks must call th
crates/spark-comm/src/lib.rs:144
↓ 1 callersMethodattend_layer_on_stream
( &mut self, stream: u64, layer: u32, seq_block_ids: &[u32], q_dev: u6
crates/spark-storage/src/stubs.rs:68
↓ 1 callersMethodattend_layer_on_stream
Stream-only variant for production callers (spark-model decode path). `stream` must already be bound to the current thread's CUDA context. Backwards-
crates/spark-storage/src/high_speed_swap/impl_more.rs:166
↓ 1 callersMethodattend_layer_on_stream_with_q_pos
Causal-masking variant: `last_block_valid_slots` controls how many slots of the LAST block in `seq_block_ids` are consumed by the attention kernel. Fo
crates/spark-storage/src/high_speed_swap/impl_more.rs:183
↓ 1 callersMethodattention_forward_kv
( &self, normed: DevicePtr, k_out: DevicePtr, v_out: DevicePtr, nkv: u
crates/spark-model/src/layers/qwen3_attention/decode/attention_forward_kv.rs:17
↓ 1 callersMethodattention_forward_mla
Run the absorbed MLA decode chain, returning the O-projection output (`ctx.buffers.qkv_output()`).
crates/spark-model/src/layers/qwen3_attention/decode/attention_forward_mla.rs:36
↓ 1 callersMethodattention_forward_oproj
( &self, attn_out: DevicePtr, nq: u32, hd: u32, h: u32, ctx: &
crates/spark-model/src/layers/qwen3_attention/decode/attention_forward_oproj.rs:19
↓ 1 callersFunctionaudit_translation_drift
Audit the Anthropic→OpenAI translation for structural drift. We don't do a full inverse round-trip (that would be a separate translator); instead we
crates/spark-server/src/anthropic/translate.rs:23
↓ 1 callersFunctionauto_detect_weight_prefix
( store: &spark_runtime::weights::WeightStore, config: &mut ModelConfig, )
crates/spark-server/src/main_modules/serve_phases/weights.rs:84
↓ 1 callersFunctionauto_high_precision_layers
Per-layer KV cache dtype vector construction. Build per-attention-layer KV cache dtype vector. When `high_precision_layers` is 0, returns an empty ve
crates/spark-server/src/main_modules/kv_dtypes.rs:25
↓ 1 callersFunctionbackfill_one
(run_json: pathlib.Path, force: bool)
bench/fp8_dgx2_drift/harness/backfill_followed_directions.py:32
↓ 1 callersMethodbacking_num_states
Number of states in the backing FSM storage — for a per-rule view this is the whole shared `complete_fsm`. Use this (not `num_states`) when indexing i
crates/xgrammar/src/fsm/compact_with_start_end.rs:105
↓ 1 callersFunctionbalanced_paren_close
Return a copy of `content` where the insides of fenced code blocks (```) and inline code spans (`) are replaced with ASCII spaces while preserving byt
crates/spark-server/src/openai/annotations.rs:197
↓ 1 callersFunctionbare_function_end
Find the end of a bare function block for streaming detection. Returns byte offset past the last closing tag, or `None` if incomplete.
crates/spark-server/src/tool_parser/parse_single_b.rs:253
↓ 1 callersMethodbarrier
(&self)
crates/spark-comm/src/lib.rs:177
↓ 1 callersMethodbase_variant
(&self)
crates/spark-model/src/quant_format/modelopt.rs:57
↓ 1 callersFunctionbaseline_free_bytes
The free-memory baseline captured at context init, or `None` if never set.
crates/spark-runtime/src/gpu.rs:28
↓ 1 callersFunctionbash_wander_enabled
One-time read of the watchdog flag.
crates/spark-server/src/hint_injector.rs:284
↓ 1 callersFunctionbash_wander_hint
BW1 steering hint. Returns `Some(hint)` to append to the most recent tool response when the agent appears to be wandering: ≥ `MIN_CALLS` tool calls wi
crates/spark-server/src/hint_injector.rs:334
↓ 1 callersMethodbasic_any_rule
The "any" rule name for the current layer. Port of `GetBasicAnyRuleName`.
crates/xgrammar/src/schema/converter.rs:171
↓ 1 callersFunctionbench_dtype
(dtype, image, model_path, env_kvs, runs_decode, runs_prefill, contexts)
tests/atlas_bench_comprehensive.py:139
↓ 1 callersFunctionbenchmark_config
(session, isl: int, osl: int, regime: str, label: str)
bench/bench-atlas-concurrency.py:172
↓ 1 callersFunctionbest_match_cos
(A2, B2)
bench/longcode/hang-forensics/gdn_chain_diff_a3b.py:39
↓ 1 callersFunctionbf16_bits_to_f32
───────────────────────── compare helpers ─────────────────────────
crates/spark-model/examples/gdn_chunk_shapetest.rs:111
↓ 1 callersFunctionbf16_bytes_to_f32
(data: bytes)
tests/vit_reference_check.py:49
↓ 1 callersFunctionbf16_concat
BF16 concatenation: out[0..N] = a[0..N], out[N..2N] = b[0..N]. Kernel: `bf16_concat(a, b, out, N)` Grid: (ceil(N/256), 1, 1) Block: (256, 1, 1)
crates/spark-model/src/layers/ops/fp8_moe.rs:56
↓ 1 callersFunctionbf16_slice_to_bytes
(values: &[half::bf16])
crates/spark-runtime/examples/metal_layer3_attention.rs:31
↓ 1 callersFunctionbf16_slice_to_bytes
(values: &[half::bf16])
crates/spark-runtime/examples/metal_layer3_bench.rs:30
↓ 1 callersFunctionbf16_slice_to_bytes
(values: &[half::bf16])
crates/spark-runtime/examples/metal_vision_block_forward.rs:27
↓ 1 callersFunctionbf16_to_f32
(b: u16)
crates/spark-model/examples/moe_topk_microtest.rs:26
↓ 1 callersFunctionbigram_set
Build a deduplicated set of word-bigram hashes from the normalized byte sequence. Each bigram is the joined pair of adjacent words separated by a sing
crates/spark-server/src/loop_simhash.rs:142
↓ 1 callersMethodbind_gpu_to_thread_dispatch
(&self)
crates/spark-model/src/model/trait_impl/meta.rs:86
↓ 1 callersMethodbind_to_thread
(&self)
crates/spark-runtime/src/metal_backend.rs:593
↓ 1 callersMethodbitmask_data
Raw bitmask data: `ceil(vocab_size / 32)` i32 words. Bit `token_id` is at `data[token_id / 32] & (1 << (token_id % 32))`. A set bit means the token i
crates/spark-server/src/grammar/state.rs:164
↓ 1 callersMethodblock_bytes_for_dtype
Legacy name: bytes per block using global dims and a given dtype. Used when the caller has a uniform KV geometry; prefer `block_bytes_for_layer` for l
crates/spark-runtime/src/kv_cache.rs:313
↓ 1 callersFunctionblocking_example
One-shot blocking completion.
examples/python/chat_completions.py:35
↓ 1 callersFunctionbody
Convenience: the rule-body-only form.
crates/xgrammar/src/regex/tests_patterns.rs:15
↓ 1 callersFunctionbody
Convenience: the rule-body-only form.
crates/xgrammar/src/regex/tests.rs:15
↓ 1 callersFunctionbootstrap_ci
Percentile bootstrap 95% CI on the mean. Returns (lo, hi).
bench/fp8_dgx2_drift/harness/aggregate.py:67
↓ 1 callersMethodbreak_one_cycle
Find one simple cycle, hash its members, detach it. Returns `false` when no cycle remains.
crates/xgrammar/src/grammar/functor/fsm_hasher.rs:120
↓ 1 callersFunctionbuildHistory
(isoLines, count)
site/scripts/gen-stars.mjs:69
↓ 1 callersFunctionbuild_active_seq_from_prefill
( p: PrefillInProgress, first: u32, spontaneous_think: bool, use_legacy_tool_call: bool, c
crates/spark-server/src/scheduler/phase_promote_prefills.rs:85
↓ 1 callersFunctionbuild_and_serve
( state: Arc<AppState>, model_ready: Arc<std::sync::atomic::AtomicBool>, bind: &str, port: u16
crates/spark-server/src/main_modules/serve_router.rs:20
↓ 1 callersFunctionbuild_auth_config
Resolve `--require-auth` / `--auth-tokens-file` / `--auth-token` into an optional `AuthConfig`. Validates at startup so misconfigurations fail loudly
crates/spark-server/src/main_modules/serve.rs:663
↓ 1 callersFunctionbuild_bf16_mlp
Optional BF16 dequant of MLP gate/up/down (Gemma-4 dense, NVFP4 on disk).
crates/spark-model/src/weight_loader/gemma4/loader_b.rs:89
↓ 1 callersFunctionbuild_block_diagonals
Block-diagonal W_UK and W_UV for prefill batched GEMM.
crates/spark-model/src/weight_loader/deepseek_v4/compute.rs:180
↓ 1 callersFunctionbuild_block_diagonals
(ctx: &mut MistralLayerCtx<'_>)
crates/spark-model/src/mistral_loader/loader_impl/phase_block_diag.rs:12
↓ 1 callersFunctionbuild_byte_string
FSM for a `ByteString` element: a linear chain of byte edges.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:109
↓ 1 callersFunctionbuild_byte_to_char_map
()
crates/xgrammar/src/tokenizer/decoder.rs:117
↓ 1 callersFunctionbuild_character_class
FSM for a `CharacterClass` / `CharacterClassStar` element.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:123
↓ 1 callersFunctionbuild_choice_message
( state: &AppState, req: &ChatCompletionRequest, response: &super::inference_types::InferenceRespo
crates/spark-server/src/api/chat_blocking.rs:281
↓ 1 callersFunctionbuild_choices
FSM for a normalized rule body — a `Choices` of `Sequence`s (with an optional leading `EmptyStr`). Returns `None` if not FSM-expressible.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:212
↓ 1 callersFunctionbuild_class_leaf
Character class `[...]`: a two-state FSM whose edges are the (possibly negated, gap-coalesced) byte ranges of the class.
crates/xgrammar/src/fsm/builder/regex_leaf.rs:95
↓ 1 callersMethodbuild_cutlass_grouped_sfb
Build per-expert swizzled SFB weight-scale tables for the CUTLASS grouped NVFP4 path (`ATLAS_HOLO_MOE_GROUPED_CUTLASS`). For each expert, swizzle the
crates/spark-model/src/layers/moe/helpers_a.rs:279
↓ 1 callersFunctionbuild_cutlass_object
(cutlass_home: std::path::PathBuf)
crates/spark-runtime/build.rs:156
↓ 1 callersFunctionbuild_end_sequence
Build the end-string expr: `EmptyStr` if no ends, a single sequence if one, otherwise a `Choices` of single-element sequences.
crates/xgrammar/src/structural_tag/converter_sep.rs:121
↓ 1 callersFunctionbuild_flashinfer_object
Compile the FlashInfer ragged-prefill wrapper to a static lib (host-callable, like the CUTLASS object). FlashInfer's FA2 (SM80-class) ragged-prefill k
crates/spark-runtime/build.rs:98
↓ 1 callersFunctionbuild_full_attention_nvfp4
( layer_idx: usize, store: &WeightStore, lp: &str, gpu: &dyn GpuBackend, variant: Nvfp4Var
crates/spark-model/src/weight_loader/qwen35/load_layers/attention_arms.rs:23
↓ 1 callersFunctionbuild_gdn_prefill_buffers
Allocate the GDN prefill scratch buffers, hoisted from `TransformerModel::new` 1:1. Returns `(qkv, gate_beta, out, z, gdn_buf_len)`. Buffers are only
crates/spark-model/src/model/impl_a1_init.rs:24
↓ 1 callersFunctionbuild_high_speed_swap_config
( args: &cli::ServeArgs, )
crates/spark-server/src/main_modules/serve_phases/build.rs:80
↓ 1 callersFunctionbuild_hip_shim
Compile the libcuda→HIP shim to `out_dir/libcuda.so` and emit the link search-path directive. The runtime keeps importing the CUDA driver API; this `.
crates/atlas-kernels/build.rs:617
↓ 1 callersMethodbuild_infinite_repetition
Build the unbounded-repetition node for `{lower,}` — a `CharacterClassStar` for character classes, else a recursive rule `r ::= "" | a r`.
crates/xgrammar/src/grammar/parser_repeat.rs:58
↓ 1 callersMethodbuild_large_repeat
Build the `{lower, upper}` part where `threshold <= lower <= upper`, using a `Repeat` expr plus a `threshold`-wide lookahead.
crates/xgrammar/src/grammar/parser_repeat.rs:87
↓ 1 callersFunctionbuild_legacy_json
Assemble the structural-tag JSON document for the legacy `(tags, triggers)` form. Each tag's `schema` string is embedded verbatim as the `json_schema`
crates/xgrammar/src/structural_tag/mod.rs:108
↓ 1 callersFunctionbuild_linear_attention_dense_bf16
( layer_idx: usize, store: &WeightStore, lp: &str, gpu: &dyn GpuBackend, variant: Nvfp4Var
crates/spark-model/src/weight_loader/qwen35/load_layers/linear_attn_arms.rs:194
↓ 1 callersFunctionbuild_linear_attention_nvfp4
( store: &WeightStore, lp: &str, gpu: &dyn GpuBackend, variant: Nvfp4Variant, config: &Mod
crates/spark-model/src/weight_loader/qwen35/load_layers/linear_attn_arms.rs:286
↓ 1 callersFunctionbuild_literal_leaf
Literal fragment: one state per byte, optional `\escape` / `.`.
crates/xgrammar/src/fsm/builder/regex_leaf.rs:60
↓ 1 callersFunctionbuild_logprobs
Convert internal logprobs to OpenAI `ChoiceLogprobs` format.
crates/spark-server/src/api/chat_blocking.rs:408
↓ 1 callersFunctionbuild_model
( mut config: ModelConfig, store: &WeightStore, gpu: Box<dyn GpuBackend>, max_batch_tokens: us
crates/spark-model/src/factory/build.rs:24
↓ 1 callersFunctionbuild_moe_ffn
Build the Gemma-4 26B MoE FFN component for one layer (None for dense).
crates/spark-model/src/weight_loader/gemma4/loader_b.rs:15
↓ 1 callersFunctionbuild_moe_ffn
( store: &spark_runtime::weights::WeightStore, i: usize, gpu: &dyn GpuBackend, config: &atlas_
crates/spark-model/src/mistral_loader/loader_impl/phase_assemble.rs:143
↓ 1 callersFunctionbuild_msg_entries
( state: &Arc<AppState>, req: &ChatCompletionRequest, tools_active: bool, )
crates/spark-server/src/api/chat/msg_entry.rs:55
↓ 1 callersFunctionbuild_mtp_proposer
Build the MTP draft proposer when speculative decoding is requested. `mtp_weights` is a `Vec<MtpWeights>`: - empty → no MTP weights in checkpoint; p
crates/spark-model/src/model/impl_a1_init.rs:80
↓ 1 callersFunctionbuild_needle_haystack
Build a synthetic Q + K. One needle per q_head, scattered across distinct random blocks; K elsewhere is iid Gaussian noise. Returns (Q, K, needle_bloc
crates/spark-storage/tests/recall_at_k.rs:59
↓ 1 callersFunctionbuild_negative_character_class
FSM for a negated character class — the complement of the ASCII set the class names, plus all multi-byte unicode.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:146
↓ 1 callersFunctionbuild_niah_prompt
Build a long context prompt with a needle at the specified position.
scripts/dev/run_tests.py:173
↓ 1 callersFunctionbuild_niah_prompt
(target_tokens, position)
scripts/dev/overnight_marathon.py:128
↓ 1 callersFunctionbuild_per_head_views
Split wkv_b into W_UK and W_UV, transpose W_UK, extract wq_b_rope rows. `wkv_b_shape` and `wq_b_shape` are the actual [n, k] dims from the checkpoint.
crates/spark-model/src/weight_loader/deepseek_v4/compute.rs:39
↓ 1 callersFunctionbuild_per_head_views
(ctx: &mut MistralLayerCtx<'_>)
crates/spark-model/src/mistral_loader/loader_impl/phase_per_head.rs:11
↓ 1 callersFunctionbuild_prefix_cache
( args: &cli::ServeArgs, )
crates/spark-server/src/main_modules/serve_phases/build.rs:12
↓ 1 callersFunctionbuild_prompt
Build a prompt with approximately target_tokens of filler text.
scripts/dev/ssm_context_profile.py:52
↓ 1 callersFunctionbuild_prompt
(target_tokens: int)
bench/qwen36_ttft.py:53
↓ 1 callersFunctionbuild_prompt
(target_tokens, salt)
bench/cold_warm_ttft.py:36
↓ 1 callersFunctionbuild_repeat
FSM for a `Repeat` element: a single repeat-ref edge.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:97
↓ 1 callersMethodbuild_rope_cossin
Zero-offset shim: build rope into `buf_rope_cos`/`buf_rope_sin`.
crates/spark-model/src/layers/vision_encoder/enc_impl/pos_embed.rs:99
↓ 1 callersFunctionbuild_rule_ref
FSM for a `RuleRef` element: a single rule-ref edge.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:86
↓ 1 callersFunctionbuild_sampling
( state: &Arc<AppState>, req: &ChatCompletionRequest, enable_thinking: bool, tools_active: boo
crates/spark-server/src/api/chat/sampling_setup.rs:62
↓ 1 callersFunctionbuild_sequence
FSM for a normalized `Sequence` (a list of element exprs). Returns `None` if any element is not FSM-expressible.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:189
↓ 1 callersFunctionbuild_serve_cmd
Build the `serve ...` command-line tail for a container.
tests/run_all_models.py:281
↓ 1 callersFunctionbuild_setup_iouring
( seed: u64, dir: &PathBuf, qd: usize, )
crates/spark-storage/tests/common/mod.rs:111
↓ 1 callersFunctionbuild_stop_body
Build the rule body for the stop-after-first / collision case.
crates/xgrammar/src/structural_tag/converter_sep.rs:84
↓ 1 callersFunctionbuild_t2
(u1, u2)
bench/warm_cold_concurrent_diff.py:75
↓ 1 callersMethodbuild_tag_contents
Convert every tag's content rule and validate trigger matching. Returns `(content_rule_ids, trigger_to_tag_ids)`.
crates/xgrammar/src/structural_tag/converter_tags.rs:73
↓ 1 callersFunctionbuild_trie_ranges
Build the pseudo-trie subtree ranges over the sorted vocabulary. Faithful to the C++ prefix-stack algorithm: `trie[i]` is the exclusive end of the su
crates/xgrammar/src/tokenizer/info.rs:235
↓ 1 callersFunctionbuild_utf8_bytes
()
crates/xgrammar/src/support/encoding.rs:58
↓ 1 callersFunctionbuild_vocab
Build the fixed synthetic vocabulary. Token 0..256 are the raw byte values (byte-level encoding uses the `<0xNN>` form upstream, but the pure-Rust tok
crates/xgrammar/benches/grammar_bench.rs:36
↓ 1 callersFunctionbuild_w_qk_absorbed
W_QK_absorbed = wq_b_nope @ W_UK_T
crates/spark-model/src/weight_loader/deepseek_v4/compute.rs:127
↓ 1 callersFunctionbuild_w_qk_absorbed
(ctx: &mut MistralLayerCtx<'_>)
crates/spark-model/src/mistral_loader/loader_impl/phase_qk_absorbed.rs:12
← previousnext →2,201–2,300 of 7,049, ranked by callers