MCPcopy Create free account

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

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

↓ 1 callersFunctionprefill_attention_paged_fp8k_turbo4v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_fp8k.rs:77
↓ 1 callersMethodprefill_attention_paged_mla
Run the MLA prefill kernel chain (Q latent → expand → RoPE → cache write → flash attn → O proj). Returns the O-projection output pointer (`ctx.buffers
crates/spark-model/src/layers/qwen3_attention/prefill/paged_mla.rs:36
↓ 1 callersFunctionprefill_attention_paged_nvfp4
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:18
↓ 1 callersFunctionprefill_attention_paged_nvfp4_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:323
↓ 1 callersFunctionprefill_attention_paged_nvfp4_batched
Batched NVFP4-KV paged prefill attention (BR=32).
crates/spark-model/src/layers/ops/prefill_attn_batched.rs:217
↓ 1 callersMethodprefill_attention_paged_qkv
( &self, normed: DevicePtr, n: u32, h: u32, nkv: u32, hd: u32,
crates/spark-model/src/layers/qwen3_attention/prefill/paged_qkv.rs:27
↓ 1 callersFunctionprefill_attention_paged_turbo3k_turbo8v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_turbok.rs:119
↓ 1 callersFunctionprefill_attention_paged_turbo4k_turbo3v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_turbok.rs:17
↓ 1 callersFunctionprefill_attention_paged_turbo4k_turbo8v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_turbok.rs:68
↓ 1 callersMethodprefill_attention_paged_v4
( &self, kv_cache: &mut PagedKvCache, ctx: &ForwardContext, args: &MlaPrefillA
crates/spark-model/src/layers/qwen3_attention/prefill/paged_v4.rs:19
↓ 1 callersMethodprefill_attn_batched_layer
Run one attention layer over N stacked-input streams. `hidden_stacked` and `residual_stacked` are at the arena's `hidden_states()` / `residual()` poi
crates/spark-model/src/model/trait_impl/prefill_b/batched_layer.rs:75
↓ 1 callersMethodprefill_b_finalize_last
( &self, tokens: &[u32], seq: &mut SequenceState, kv_cache: &mut PagedKvCache,
crates/spark-model/src/model/trait_impl/prefill_b/finalize_last.rs:21
↓ 1 callersMethodprefill_batch_chunk_dispatch
Batched-prefill dispatch for N concurrent streams. See module docs. Returns `Vec<DevicePtr>` parallel to `streams`: each entry is the last-token logi
crates/spark-model/src/model/trait_impl/prefill_b/batch.rs:74
↓ 1 callersMethodprefill_batch_chunk_kernel_batched
Q12 Path B: full kernel-batched prefill orchestration. Caller (prefill_batch_chunk_dispatch) MUST have verified `kernel_batched_eligible` before call
crates/spark-model/src/model/trait_impl/prefill_b/batch_kernel.rs:59
↓ 1 callersFunctionprefill_default
( layer: &(impl TransformerLayer + ?Sized), hidden: DevicePtr, residual: DevicePtr, num_tokens
crates/spark-model/src/layer/transformer_layer/default_loops.rs:16
↓ 1 callersMethodprefill_dispatch
( &self, tokens: &[u32], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/model/trait_impl/prefill_a.rs:40
↓ 1 callersMethodprefill_fallback_path
( &self, p: &SortedPrefillCtx, ctx: &ForwardContext, stream: u64, )
crates/spark-model/src/layers/nemotron_moe/prefill_fallback.rs:18
↓ 1 callersMethodprefill_fp8k_turbo_nv
( &self, ctx: &ForwardContext, kv_cache: &mut PagedKvCache, q_contiguous: Devi
crates/spark-model/src/layers/qwen3_attention/prefill/paged_attn_fp8k.rs:21
↓ 1 callersMethodprefill_full_cache_hit
Full-prompt cache-hit fast path: re-embed just the last token, run final norm + LM head, insert into the prefix cache, and return the decode logits po
crates/spark-model/src/model/trait_impl/prefill_d.rs:26
↓ 1 callersMethodprefill_gdn_full_batched
( &self, h_state_ptrs: DevicePtr, gdn_bufs: &GdnPrefillBuffers, batch_size: u3
crates/spark-model/src/layers/qwen3_ssm/mod.rs:407
↓ 1 callersMethodprefill_gdn_full_batched_fla_varlen
( &self, h_state_ptrs: DevicePtr, gdn_bufs: &GdnPrefillBuffers, batch_size: u3
crates/spark-model/src/layers/qwen3_ssm/mod.rs:426
↓ 1 callersMethodprefill_gdn_full_batched_fla_varlen_inner
( &self, h_state_ptrs: spark_runtime::gpu::DevicePtr, gdn_bufs: &GdnPrefillBuffers,
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_gdn/batched.rs:227
↓ 1 callersMethodprefill_gdn_full_batched_inner
Q12 Path B: batched GDN recurrence — mirrors prefill_gdn_full_inner dispatch ladder but routes to the `*_batched` kernel variants and passes `h_state_
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_gdn/batched.rs:20
↓ 1 callersMethodprefill_gdn_full_inner
( &self, state: &mut dyn LayerState, gdn_bufs: &GdnPrefillBuffers, ctx: &Forwa
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_gdn.rs:19
↓ 1 callersMethodprefill_gdn_recurrence
( &self, h_state: DevicePtr, q_ptr: DevicePtr, k_ptr: DevicePtr, v_ptr
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_recur.rs:19
↓ 1 callersMethodprefill_inner
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, st
crates/spark-model/src/layers/qwen3_ssm/trait_prefill.rs:9
↓ 1 callersMethodprefill_inner_batched_q12
Q12 Path B: batched-mode attention prefill via `prefill_inner` with `batched_meta = Some`. The model-level `prefill_attn_batched_layer` calls this met
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:156
↓ 1 callersMethodprefill_inner_hc
( &self, hidden: DevicePtr, _residual: DevicePtr, num_tokens: usize, _
crates/spark-model/src/layers/qwen3_attention/trait_impl/prefill_inner.rs:467
↓ 1 callersMethodprefill_phase1
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, st
crates/spark-model/src/layers/qwen3_ssm/mod.rs:321
↓ 1 callersMethodprefill_phase1_conv1d_one
( &self, state: &mut dyn LayerState, token_offset: usize, len: usize,
crates/spark-model/src/layers/qwen3_ssm/mod.rs:375
↓ 1 callersMethodprefill_phase1_conv1d_one_inner
( &self, state: &mut dyn LayerState, token_offset: usize, len: usize,
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_phase1.rs:330
↓ 1 callersMethodprefill_phase1_inner
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, st
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_phase1.rs:13
↓ 1 callersMethodprefill_phase1_l2_batched
( &self, total_tokens: usize, gdn_bufs: &GdnPrefillBuffers, ctx: &ForwardConte
crates/spark-model/src/layers/qwen3_ssm/mod.rs:387
↓ 1 callersMethodprefill_phase1_l2_batched_inner
Batched L2 norm on Q,K over the full stacked QKV buffer (gdn_bufs.qkv), after all per-request conv1d tails have written their slices.
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_phase1.rs:375
↓ 1 callersMethodprefill_phase1_proj_batched
( &self, hidden_stacked: DevicePtr, residual_stacked: DevicePtr, total_tokens:
crates/spark-model/src/layers/qwen3_ssm/mod.rs:356
↓ 1 callersMethodprefill_phase1_proj_batched_inner
( &self, hidden_stacked: DevicePtr, residual_stacked: DevicePtr, total_tokens:
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_phase1.rs:225
↓ 1 callersMethodprefill_phase3_inner
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, gd
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_phase3.rs:9
↓ 1 callersFunctionprefill_request
Prefill a new request and return an ActiveSeq ready for batched decode. Returns None if the sequence completed during prefill (EOS on first token).
crates/spark-server/src/scheduler/prefill_b_step.rs:9
↓ 1 callersMethodprefill_save_snapshot_and_insert
Save a Marconi SSM snapshot for the prefilled sequence (reclaiming from the prefix cache on pool exhaustion) and insert into the prefix cache. Falls b
crates/spark-model/src/model/trait_impl/prefill_d.rs:181
↓ 1 callersMethodprefill_save_snapshot_with_vision_gate
Same as [`Self::prefill_save_snapshot_and_insert`] but with the vision-pad gate that the standard `prefill_dispatch` path uses: when the prompt has vi
crates/spark-model/src/model/trait_impl/prefill_d.rs:90
↓ 1 callersMethodprefill_sorted_path
( &self, p: &SortedPrefillCtx, ctx: &ForwardContext, stream: u64, )
crates/spark-model/src/layers/nemotron_moe/prefill_sorted.rs:38
↓ 1 callersMethodprefill_ssm_batched_layer
Run one SSM layer over N stacked-input streams. Same args as `prefill_attn_batched_layer` plus access to the model's SSM layer state pool via `seqs[b
crates/spark-model/src/model/trait_impl/prefill_b/batched_layer.rs:124
↓ 1 callersMethodprefill_turbok_turbo_v
( &self, ctx: &ForwardContext, kv_cache: &mut PagedKvCache, q_contiguous: Devi
crates/spark-model/src/layers/qwen3_attention/prefill/paged_attn_turbok.rs:20
↓ 1 callersMethodprefill_twophase
Per-layer chunked prefill: SSM layers use three phases (proj → single-launch GDN → post) so the recurrence sees the full sequence in one launch; atten
crates/spark-model/src/traits/model.rs:193
↓ 1 callersMethodprefill_twophase_dispatch
( &self, tokens: &[u32], seq: &mut SequenceState, chunk_size: usize, s
crates/spark-model/src/model/trait_impl/prefill_c.rs:36
↓ 1 callersFunctionpreflight
Run all model-agnostic + model-type-specific pre-flight checks. Called by `spark-server/src/main.rs` immediately after the `WeightStore` is populated
crates/spark-model/src/preflight.rs:35
↓ 1 callersFunctionpreflight_reserve
( args: &cli::ServeArgs, config: &ModelConfig, free_mem: usize, )
crates/spark-server/src/main_modules/serve_phases/preflight.rs:19
↓ 1 callersFunctionprepare_fp8_moe_layer_for_deepgemm
( w13: torch.Tensor, w2: torch.Tensor, w13_scale: torch.Tensor, w2_scale: torch.Tensor, bl
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1082
↓ 1 callersMethodprepare_gdn_attention_core_inputs
Derives mixed_qkv, z, b, a from projected qkvz/ba for the GDN custom op. For gqa_interleaved_layout (Qwen3-Next): unpack the interle
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:510
↓ 1 callersMethodprepare_vision_embed_batched
Batched vision encode across N requests' images in ONE `forward_batched` call (block GEMM weights read once over Σpatches). `per_request[i]` is reques
crates/spark-model/src/traits/model.rs:486
↓ 1 callersMethodprepare_vision_embed_batched_dispatch
Cross-request batched encode: flatten every request's images into ONE `forward_batched` call so block GEMM weights are read once over Σpatches across
crates/spark-model/src/model/trait_impl/prefill_a/vision.rs:66
↓ 1 callersMethodprepare_vision_embed_dispatch
( &self, images: &[(Vec<f32>, usize, usize)], )
crates/spark-model/src/model/trait_impl/prefill_a/vision.rs:17
↓ 1 callersMethodprev
The previous codepoint (`current_[-1]`), or `None` at the start.
crates/xgrammar/src/regex/cursor.rs:70
↓ 1 callersMethodprint_choices
(&self, e: &GrammarExpr<'_>)
crates/xgrammar/src/grammar/printer.rs:116
↓ 1 callersMethodprint_expr
Print a `GrammarExpr`, dispatching on its type.
crates/xgrammar/src/grammar/printer.rs:64
↓ 1 callersMethodprint_repeat
(&self, e: &GrammarExpr<'_>)
crates/xgrammar/src/grammar/printer.rs:121
↓ 1 callersMethodprint_rule_ref
(&self, e: &GrammarExpr<'_>)
crates/xgrammar/src/grammar/printer.rs:107
↓ 1 callersMethodprint_sequence
(&self, e: &GrammarExpr<'_>)
crates/xgrammar/src/grammar/printer.rs:111
↓ 1 callersFunctionprint_summary
(all_results: dict)
bench/bench-atlas-concurrency.py:242
↓ 1 callersMethodprint_tag_dispatch
(&self, e: &GrammarExpr<'_>)
crates/xgrammar/src/grammar/printer.rs:129
↓ 1 callersFunctionprocess_checkpoint
(model_dir: Path, output_dir: Path, max_shard_bytes: int = 10 * 1024**3)
scripts/preprocess_step3p7_experts.py:138
↓ 1 callersFunctionprocess_fp8_input_tensor_strategy_moe
Process moe input scales for tensor-wise quantization strategy.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1348
↓ 1 callersFunctionprocess_fp8_weight_block_strategy
Process weights for block-wise quantization strategy.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1297
↓ 1 callersFunctionprocess_fp8_weight_tensor_strategy
Process weights for tensor-wise quantization strategy.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1251
↓ 1 callersFunctionprocess_fp8_weight_tensor_strategy_moe
Process moe weights for tensor-wise quantization strategy.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1315
↓ 1 callersFunctionprocess_seq_logits
( _model: &dyn Model, a: &mut ActiveSeq, buf: &[u8], i: usize, vocab_size: usize, elem
crates/spark-server/src/scheduler/decode_logits_seq.rs:27
↓ 1 callersFunctionproject_kv_block_ref
Per-token projection. Output layout `[num_kv_heads, block_size, r]`.
crates/spark-storage/src/predictor_ref.rs:47
↓ 1 callersFunctionproject_q_ref
( q: &[bf16], p: &[bf16], num_q_heads: usize, head_dim: usize, r: usize, )
crates/spark-storage/src/predictor_ref.rs:26
↓ 1 callersMethodpropose_drafts
( &self, last_token: u32, _target_hidden: DevicePtr, position: usize,
crates/spark-model/src/layers/dflash_head/propose.rs:16
↓ 1 callersFunctionptx_for_model
Find the PTX module set for a target whose model name contains `needle`. Returns `None` if no compiled target matches.
crates/atlas-kernels/src/lib.rs:366
↓ 1 callersFunctionptx_hash
FNV-1a 64-bit content fingerprint → 12 hex chars (matches build.rs).
crates/spark-runtime/src/kernel_audit.rs:32
↓ 1 callersFunctionpush_end_open
Open-ended-below patterns ending at `eb` of length `len`.
crates/xgrammar/src/schema/range_regex.rs:237
↓ 1 callersMethodpush_expr
Walk one expression, classifying it (and, for a `Sequence`, each of its children) into the running segment list.
crates/xgrammar/src/compiler/decompose.rs:343
↓ 1 callersFunctionpush_full_distinct_first
The hardest sub-case: first digits differ and both bounds are strictly inside the length band.
crates/xgrammar/src/schema/range_regex.rs:163
↓ 1 callersFunctionpush_full_len_patterns
( patterns: &mut Vec<String>, start: i64, end: i64, digit_min: i64, digit_max: i64, sb
crates/xgrammar/src/schema/range_regex.rs:104
↓ 1 callersMethodpush_static
Append a literal byte run, extending the pending static segment.
crates/xgrammar/src/compiler/decompose.rs:322
↓ 1 callersFunctionq4k_weight_bytes
Bytes for the Q4_K-quantized form of an [nrows, n_per_row] weight (n_per_row % 256 == 0).
crates/spark-model/src/layers/ops/q4k_mmq.rs:21
↓ 1 callersMethodq_total
(&self)
crates/spark-model/src/forward/qwen3_5/mod.rs:98
↓ 1 callersFunctionquant_char
Map a quantifier codepoint back to its ASCII char.
crates/xgrammar/src/regex/sub_handlers.rs:118
↓ 1 callersFunctionquant_multiplier
(config: &ModelConfig)
crates/spark-server/src/main_modules/serve_phases/weights.rs:13
↓ 1 callersFunctionquant_pair_compatible
QV1: returns `true` iff the kernel target's declared quant string is known to handle the model's canonicalized quant. The current Atlas build emits o
crates/spark-server/src/main_modules/serve.rs:797
↓ 1 callersFunctionquantize
(x: f32, bounds: &[f32])
crates/spark-runtime/src/metal_backend/tests/parity_turbo23.rs:23
↓ 1 callersFunctionquantize_weight_q4k
Quantize bf16 weights [nrows, n_per_row] -> GGML block_q4_K (at model load).
crates/spark-model/src/layers/ops/q4k_mmq.rs:56
↓ 1 callersMethodraw_data
Raw element backing store (CSR `data` array).
crates/xgrammar/src/fsm/compact_array.rs:75
↓ 1 callersMethodraw_indptr
Raw row-offset array (CSR `indptr` array).
crates/xgrammar/src/fsm/compact_array.rs:80
↓ 1 callersMethodreachable_states
All states reachable from the start state.
crates/xgrammar/src/fsm/with_start_end.rs:132
↓ 1 callersMethodread
(&mut self, requests: &[ReadRequest], stream: u64)
crates/spark-storage/src/backend/io_uring.rs:113
↓ 1 callersMethodread_deferred_draft_token
(&self)
crates/spark-model/src/model/trait_impl/mod.rs:303
↓ 1 callersMethodread_deferred_draft_token_dispatch
(&self)
crates/spark-model/src/model/trait_impl/speculative.rs:139
↓ 1 callersFunctionread_k_lr_slot
Helper for tests / debug: copy the predictor's K_lr slot for a given (layer, block) to host as BF16. Layout `[num_kv_heads, block_size, r]`.
crates/spark-storage/src/predictor.rs:317
↓ 1 callersFunctionread_tensor_aligned
Read a tensor's bytes into an aligned buffer. Returns the buffer and the offset within it where the tensor's `len` bytes start. With `using_direct=tr
crates/spark-runtime/src/fast_weights/direct_io.rs:90
↓ 1 callersFunctionrecipeDisplay
(stem)
site/scripts/gen-models.mjs:188
↓ 1 callersMethodreconnect_inner
Abort the current communicator and re-initialize via TCP bootstrap. Both ranks must call this concurrently (the reconnect protocol mirrors the initia
crates/spark-comm/src/nccl_backend.rs:241
↓ 1 callersMethodrecord
(&self, stream: u64)
crates/spark-storage/src/cuda_module.rs:83
↓ 1 callersFunctionrecord_cache_hit
(matched_tokens: usize)
crates/spark-runtime/src/prefix_cache.rs:21
↓ 1 callersFunctionrecord_cache_miss
()
crates/spark-runtime/src/prefix_cache.rs:26
↓ 1 callersFunctionrecord_entropy
(entropy: f32)
crates/spark-runtime/src/sampler.rs:36
↓ 1 callersMethodrecord_event_dispatch
(&self, event: u64, stream: u64)
crates/spark-model/src/model/trait_impl/ep_misc.rs:84
↓ 1 callersFunctionrecord_low_margin
(margin: f32, top1: u32, top2: u32)
crates/spark-server/src/scheduler/logit_processors/b1_margin.rs:28
↓ 1 callersMethodrecv_from
(&self, _ptr: u64, _bytes: usize, _src_rank: usize, _stream: u64)
crates/spark-comm/src/lib.rs:185
← previousnext →3,301–3,400 of 7,049, ranked by callers