MCPcopy Create free account

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

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

↓ 2 callersMethoddims
(&self)
crates/spark-storage/src/predictor.rs:307
↓ 2 callersMethoddisable_mtp
F60 (2026-04-27): whether MTP speculative decoding should be disabled for this request (set when tools are active and the env gate is on).
crates/spark-server/src/api/inference_impl.rs:279
↓ 2 callersFunctiondn_bf16
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_verify_fused_microtest.rs:79
↓ 2 callersFunctiondn_bf16
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_chunk_delta_h_gateb.rs:53
↓ 2 callersFunctiondn_bf16
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_strided_norm_microtest.rs:64
↓ 2 callersFunctiondn_bf16
Decode a raw little-endian bf16 byte buffer to f32.
crates/spark-model/examples/gdn_chunk_shapetest.rs:116
↓ 2 callersFunctiondn_bf16
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/w8a16_gemv_batch4_microtest.rs:53
↓ 2 callersFunctiondn_f32
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_strided_norm_microtest.rs:56
↓ 2 callersFunctiondn_f32
Decode a raw little-endian f32 byte buffer to f64.
crates/spark-model/examples/gdn_chunk_shapetest.rs:123
↓ 2 callersFunctiondn_f32
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_wy_verify_microtest.rs:70
↓ 2 callersFunctiondown_bf16
(gpu: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_recompute_wu_gateb.rs:47
↓ 2 callersMethoddry_allowed_length
DRY minimum match length before penalty applies.
crates/spark-server/src/api/inference_impl.rs:177
↓ 2 callersMethoddry_base
DRY penalty exponential base.
crates/spark-server/src/api/inference_impl.rs:169
↓ 2 callersMethoddry_multiplier
DRY (Don't-Repeat-Yourself) penalty multiplier. 0.0 = disabled.
crates/spark-server/src/api/inference_impl.rs:153
↓ 2 callersMethoddummy_slot
(&self)
crates/spark-model/src/model/ssm_pool.rs:205
↓ 2 callersFunctiondump_expert_load
Log per-expert token counts (sorted-expert histogram). Fires ONCE per process so the log doesn't flood. Warns if any expert exceeds `max_m_tiles * 6
crates/spark-model/src/layers/moe/dump.rs:145
↓ 2 callersFunctiondump_routed_only
Dump the routed-only MoE output buffer (= post-unpermute_reduce, PRE-shared-blend) at the last token.
crates/spark-model/src/layers/moe/dump.rs:190
↓ 2 callersFunctiondump_shared_gate
Dump the shared-expert gate scalar (dot + sigmoid) at the last token.
crates/spark-model/src/layers/moe/dump.rs:232
↓ 2 callersFunctiondump_shared_out
Dump the shared-expert output (pre-sigmoid-gate) at the last token.
crates/spark-model/src/layers/moe/dump.rs:211
↓ 2 callersMethode4m3_byte
A random E4M3 byte with exponent kept in [4,9] (values ~0.13..7.5, never NaN: exp != 0b1111). Gives a well-conditioned, O(1) K/V tile.
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:47
↓ 2 callersFunctione4m3_to_f32
(byte: u8)
crates/spark-model/examples/moe_silu_down_microtest.rs:38
↓ 2 callersFunctione4m3_to_f32
Standard OCP E4M3 (1-4-3, bias 7) decode — matches scl_fp8/atlas_e4m3_to_f32 in the kernel.
crates/spark-model/examples/fp8gemm_microtest.rs:60
↓ 2 callersFunctione4m3_to_f32
Decode an E4M3 byte to f32, matching `__nv_cvt_fp8_to_halfraw(.,__NV_E4M3)` followed by `__half2float`. Inputs here never hit the NaN/subnormal paths,
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:58
↓ 2 callersFunctione4m3_to_f32
(byte: u8)
crates/spark-model/examples/moe_shared_microtest.rs:46
↓ 2 callersMethodedges
Outgoing edges of `state` as a contiguous slice.
crates/xgrammar/src/fsm/compact.rs:47
↓ 2 callersFunctioneff_support
(p)
bench/fp8_dgx2_drift/temp03_sampling_amp.py:63
↓ 2 callersMethodelement_size_bits
Size in bytes per element. E2M1 is sub-byte (4 bits) but we report the packed size (2 elements per byte).
crates/atlas-core/src/dtype.rs:36
↓ 2 callersFunctionembed_from_argmax
GPU-side argmax + embedding lookup — eliminates D2H sync in MTP propose. Reads the argmax result from `argmax_out`, looks up the embedding row from `
crates/spark-model/src/layers/ops/sampling.rs:44
↓ 2 callersMethodembed_input_ids
(self, input_ids: torch.Tensor)
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:500
↓ 2 callersFunctionemit_frac_above
Emit the patterns covering fractional values strictly greater than the lower bound's fraction (mirrors the C++ start-side loop).
crates/xgrammar/src/schema/float_regex.rs:157
↓ 2 callersFunctionemit_frac_below
Emit the patterns covering fractional values strictly less than the upper bound's fraction (mirrors the C++ end-side loop).
crates/xgrammar/src/schema/float_regex.rs:204
↓ 2 callersFunctionemit_grammar_close
#144 budget-aware graceful close. At budget exhaustion, if a grammar is active, not terminated, and the stop token is NOT legal at the current positio
crates/spark-server/src/scheduler/emit_step.rs:441
↓ 2 callersFunctionemit_or_buffer_tool_chunk
Tier 5c (2026-05-26): emit `chunk_json` to either the client SSE stream OR a per-tool-call-index buffer in `StreamState`. When tool retry is enabled w
crates/spark-server/src/api/chat_stream/tool_handlers.rs:26
↓ 2 callersFunctionemit_stub
()
crates/spark-storage/build.rs:67
↓ 2 callersFunctionempty_cp_map
()
crates/xgrammar/src/support/escape.rs:221
↓ 2 callersMethodenable_thinking
Whether thinking mode is enabled for this request.
crates/spark-server/src/api/inference_impl.rs:205
↓ 2 callersMethodend_indent
Leave the current indentation level. Port of `EndIndent`.
crates/xgrammar/src/schema/indent.rs:59
↓ 2 callersFunctionensure_yarn_inv_freq
YaRN inv_freq — compute once, share across layers.
crates/spark-model/src/weight_loader/deepseek_v4/compute.rs:241
↓ 2 callersMethodep_broadcast_seq_and_cmd
Broadcast a `(seq_id, cmd)` pair from rank 0 to all ranks. When `v2` is true, this fires a `seq_id` broadcast immediately before the existing `cmd` b
crates/spark-model/src/model/impl_a2.rs:190
↓ 2 callersMethodep_protocol_v2
Returns true if this model's EP comm path is using the v2 protocol (slot-aware seq_id preamble). Default false — pre-PR behaviour.
crates/spark-model/src/traits/model.rs:582
↓ 2 callersFunctionescape_json_string
Escape a string as a JSON string literal (including the quotes).
crates/xgrammar/src/schema/cache_key.rs:119
↓ 2 callersFunctionestimate_tokens
Rough token estimate: ~3.5 chars per token for English text.
scripts/dev/ssm_context_profile.py:47
↓ 2 callersMethodevict_expired
Evict all sessions that haven't been accessed within the TTL window. Returns all freed snapshot slot IDs.
crates/spark-server/src/session_manager.rs:98
↓ 2 callersMethodevict_session
Evict a specific session and return its freed snapshot slot IDs.
crates/spark-server/src/session_manager.rs:85
↓ 2 callersFunctionexecute_tool
Execute a tool call and return the result string.
scripts/dev/agentic_test.py:57
↓ 2 callersMethodexpand_next_rule_ref
Expand a `RuleRef`/`Repeat` element of a non-FSM sequence body. Port of `ExpandNextRuleRefElement`. Records the parent state in the completable table
crates/xgrammar/src/earley/predict.rs:131
↓ 2 callersFunctionexpect_bool
Extract a boolean from a macro value, or `None`.
crates/xgrammar/src/grammar/parser_tagdispatch.rs:130
↓ 2 callersFunctionexpected_div_lowmargin
(T)
bench/fp8_dgx2_drift/temp03_margin_model.py:71
↓ 2 callersFunctionextract_identity
Resolve a stable identity from the request headers + peer addr. Used by the axum middleware; exposed here so tests can reuse it.
crates/spark-server/src/rate_limiter.rs:370
↓ 2 callersFunctionextract_last
Pull the LAST sequence position out of a tensor, regardless of layout.
bench/fp8_dgx2_drift/hf_op_dump.py:61
↓ 2 callersFunctionextract_layer_refs
Extract mutable references to a single layer's state across N sequences. The explicit lifetime `'a` ties the returned refs to the borrow of `all`, so
crates/spark-model/src/model/block_mgmt.rs:398
↓ 2 callersFunctionextract_thinking
Strip `<think>...</think>` reasoning content from model output. Qwen3.5 models generate internal reasoning between `<think>` and `</think>` tags. Thi
crates/spark-server/src/api/inference_impl.rs:385
↓ 2 callersFunctionf2b
(x: f32)
crates/spark-storage/src/predictor_ref.rs:22
↓ 2 callersFunctionf32_to_bf16
(f: f32)
crates/spark-model/examples/moe_shared_microtest.rs:42
↓ 2 callersFunctionf32_to_bf16_bits
f32 → BF16 bits, round-to-nearest-even — matches CUDA `__float2bfloat16`.
crates/spark-model/examples/w8a16t_microtest.rs:79
↓ 2 callersFunctionf32_to_bf16_bits
(f: f32)
crates/spark-model/examples/fp8gemm_microtest.rs:52
↓ 2 callersFunctionf32_to_bf16_bits
(f: f32)
crates/spark-model/examples/moe_microtest.rs:79
↓ 2 callersFunctionf32_to_bf16_bits
(f: f32)
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:75
↓ 2 callersFunctionf32_to_bf16_bits
(f: f32)
crates/spark-model/examples/fp4_mma_microproof.rs:42
↓ 2 callersFunctionf32_to_bf16_bits
f32 → BF16 bits, round-to-nearest-even — matches CUDA `__float2bfloat16`.
crates/spark-model/examples/w8a16_microtest.rs:81
↓ 2 callersFunctionf32_to_e4m3
(v: f32)
crates/spark-model/examples/moe_shared_microtest.rs:58
↓ 2 callersFunctionf32le
(v: &[f32])
crates/spark-model/examples/moe_shared_microtest.rs:81
↓ 2 callersFunctionfast_greedy_grammar_enabled
Kill-switch for the on-GPU greedy-under-grammar verify fast path (#3). Default ON; set `ATLAS_DISABLE_FAST_GREEDY=1` to force the full host pipeline o
crates/spark-server/src/scheduler/verify_pipeline_helper.rs:62
↓ 2 callersMethodffn_act_a
Shared dense-FFN int8/NVFP4 activation scratch (a_i8 / packed). NULL for MoE.
crates/spark-runtime/src/buffers.rs:306
↓ 2 callersMethodffn_act_q8
Shared dense-FFN q8_1 activation scratch (Q4_K MMQ gate/up). NULL for MoE.
crates/spark-runtime/src/buffers.rs:302
↓ 2 callersMethodffn_act_scale
Shared dense-FFN int8/NVFP4 activation-scale scratch. NULL for MoE.
crates/spark-runtime/src/buffers.rs:310
↓ 2 callersFunctionfill_fresh_block
( kv_cache: &PagedKvCache, blk: u32, gpu: &dyn GpuBackend, stream: u64, )
crates/spark-model/src/model/block_mgmt.rs:35
↓ 2 callersFunctionfill_range_gaps
Insert edges covering every `[0,255]` char not already covered, targeting `start`. Mirrors C++ `f_add_range_edges`.
crates/xgrammar/src/fsm/builder/trie.rs:144
↓ 2 callersFunctionfilter_tools_by_name
Filter the tool list down to only those whose names appear in `keep`. Preserves original order in the input list (so prefix- cache stability is mainta
crates/spark-server/src/tool_rag.rs:104
↓ 2 callersMethodfinalize
Stream ended without an explicit `finish_reason`. Best-effort flush so the client sees a coherent end of message.
crates/spark-server/src/anthropic/translator.rs:410
↓ 2 callersMethodfinalize_on_stream
(&self, stream: u64, output: u64, num_seqs: usize)
crates/spark-storage/src/tiled_attention.rs:278
↓ 2 callersMethodfinalize_q4k_load
Load-time finalize for the Q4_K MMQ prefill path (`ATLAS_FFN_MMQ`). MUST run at load, BEFORE the KV cache is sized, so the net FFN footprint is correc
crates/spark-model/src/layers/dense_ffn.rs:321
↓ 2 callersFunctionfind_alloc_mut
Mutable version of find_alloc.
crates/spark-runtime/src/gpu/mock.rs:67
↓ 2 callersMethodfind_jump_forward_string
(&mut self)
crates/xgrammar/src/matcher/fill.rs:287
↓ 2 callersMethodfind_jump_forward_string
Find the jump-forward string for jump-forward decoding. Port of the vendored `GrammarMatcher::find_jump_forward_string`.
crates/xgrammar/src/api/matcher.rs:108
↓ 2 callersFunctionfind_last_boundary
Find the index (into `output_tokens`) of the last well-formed boundary token, searching backwards but stopping `min_keep` tokens before the end so the
crates/spark-server/src/scheduler/rollback.rs:110
↓ 2 callersFunctionfirst_chunk_batched_enabled
Whether chunk-0 streams may use the batched (paged) prefill path. Enabled by `ATLAS_Q12_BATCHED_FIRST_CHUNK=1` or `ATLAS_PREFILL_CODISPATCH=1` (the la
crates/spark-model/src/model/trait_impl/prefill_b/batch_kernel/eligible.rs:21
↓ 2 callersFunctionfirst_div
(a, b)
bench/warm_cold_concurrent_diff.py:65
↓ 2 callersMethodfix_query_key_value_ordering
Derives `query`, `key` and `value` tensors from `mixed_qkvzba`.
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:458
↓ 2 callersFunctionflashinfer_gdn_prefill
( gpu: &dyn GpuBackend, qkv: DevicePtr, gate_beta: DevicePtr, output: DevicePtr, h_state:
crates/spark-model/src/layers/ops/gdn_flashinfer.rs:91
↓ 2 callersFunctionflush
Inner helper: drain `pending` into the channel. Returns `false` when the receiver has hung up — caller should abort.
crates/spark-server/src/anthropic/handlers_stream.rs:42
↓ 2 callersFunctionfmt_lat
p50 / p90 / p99' string or 'n/a'.
bench/bench_concurrency.py:256
↓ 2 callersFunctionformat_to_regex
Resolve a JSON Schema `format` keyword to its regex pattern. Unknown formats return `None` (the converter then falls back to a plain string). Patterns
crates/xgrammar/src/schema/formats.rs:13
↓ 2 callersMethodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/gemma4.rs:35
↓ 2 callersFunctionforward
(snap: str, prefix: str, prompt_tokens: list[int])
bench/fp8_dgx2_drift/hf_dual_forward.py:39
↓ 2 callersMethodforward_cuda
( self, x: torch.Tensor, scale: torch.Tensor | None = None, scale_ub: torch.Te
bench/fp8_dgx2_drift/vllm_src/input_quant_fp8.py:83
↓ 2 callersMethodforward_one
MTP forward pass for a single token. When `draft_embed_target` is `Some(ptr)`, the draft token's embedding is written directly to `ptr` on GPU via `e
crates/spark-model/src/layers/mtp_head/forward.rs:41
↓ 2 callersFunctionfp8_e4m3_to_f32
(bits: u8)
crates/spark-model/src/weight_map/fp8_lut.rs:185
↓ 2 callersFunctionfp8_e8m0_to_f32
(bits: u8)
crates/spark-model/src/weight_map/fp8_lut.rs:212
↓ 2 callersMethodfrequency_penalty
Frequency penalty (OpenAI-style additive).
crates/spark-server/src/api/inference_impl.rs:141
↓ 2 callersMethodfrom_config
(cls, config: dict[str, Any])
bench/fp8_dgx2_drift/vllm_src/fp8.py:156
↓ 2 callersMethodfrom_file
Load tokens from a file. One token per line; blank lines and lines starting with `#` are ignored. Trailing whitespace is trimmed from each token. Retu
crates/spark-server/src/auth.rs:45
↓ 2 callersMethodfused_verify_k2_enabled
STAGE 1: whether the fused K=2 MTP-verify epilogue (single-launch conv1d+L2norm and gated-RMS-norm for both draft positions) should run. Opt-in via `
crates/spark-model/src/layers/qwen3_ssm/trait_decode_batched_conv_gdn.rs:50
↓ 2 callersFunctiongate_forced
Diagnostic: `ATLAS_MTP_GATE_FORCE=1` keeps MTP verify running regardless of the throughput gate (measurement companion; see module docs).
crates/spark-server/src/scheduler/mtp_timing.rs:86
↓ 2 callersFunctiongated_rms_norm_prefill
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, gate: DevicePtr, weight: &
crates/spark-model/src/layers/ops/norm.rs:185
↓ 2 callersFunctiongdn_batched_fla_enabled
`ATLAS_GDN_BATCHED_FLA=1` → route the co-dispatch batched GDN scan through the chunk-parallel FLA kernels at batch=N (fills chunk_delta_h's 32→32N CTA
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_gdn.rs:12
↓ 2 callersFunctiongdn_decode_f32_norm
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a.rs:65
↓ 2 callersFunctiongdn_holo_0_Kernel_Module_Load
3rdparty_patches/gdn_aot/gdn_holo_0.h:29
↓ 2 callersFunctiongdn_prefill_persistent_smem_batched
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state_ptrs: DevicePtr, query: DevicePtr, k
crates/spark-model/src/layers/ops/ssm_gdn_batched.rs:34
↓ 2 callersFunctiongemma4_to_json
Convert Gemma-4 native `{key:<|"|>val<|"|>,...}` to JSON `{"key":"val",...}`.
crates/spark-server/src/tool_parser/helpers_b.rs:107
← previousnext →1,601–1,700 of 7,049, ranked by callers