MCPcopy Create free account

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

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

↓ 3 callersFunctionf32_to_bf16
(f: f32)
crates/spark-model/examples/moe_silu_down_microtest.rs:34
↓ 3 callersFunctionf32_to_bf16
(x: f32)
crates/spark-runtime/src/flashinfer.rs:266
↓ 3 callersFunctionf32_to_bf16_bits
f32 → BF16 bits, round-to-nearest-even — matches CUDA `__float2bfloat16`.
crates/spark-model/examples/dense_gemm_microtest.rs:80
↓ 3 callersFunctionf32_to_bf16_bits
(f: f32)
crates/spark-model/examples/gdn_regresident_microtest.rs:42
↓ 3 callersFunctionf32s
(b: &[u8])
crates/spark-model/examples/gdn_fla_vs_fi.rs:21
↓ 3 callersFunctionfill_slots_from_block_table
Fill paged-KV slot mappings on-device from a persistent block table. Kernel: `fill_slots_from_block_table(slots, block_table, start_pos, count, block
crates/spark-model/src/layers/ops/kv_cache.rs:20
↓ 3 callersFunctionfind_cu_files
Find all kernel-source files (extension `source_ext`) in a directory. Returns empty vec if dir doesn't exist.
crates/atlas-kernels/build.rs:868
↓ 3 callersFunctionflush_shard
()
scripts/preprocess_step3p7_experts.py:153
↓ 3 callersMethodflush_static
Emit the pending static run as a `Static` segment, if non-empty.
crates/xgrammar/src/compiler/decompose.rs:335
↓ 3 callersFunctionforce_temp_zero_enabled
ATLAS_FORCE_TEMP_ZERO=1 — diagnostic mode that bypasses all drift mitigation (AM1/A4/B1/C4) and just returns argmax of raw logits. Used together with
crates/spark-server/src/scheduler/decode_logits_seq.rs:18
↓ 3 callersMethodforced_token
The single grammar-forced next token, if the current state admits exactly one legal token (xgrammar Tier 3b, Coalescence). Returns `Some(token_id)` w
crates/spark-server/src/grammar/state.rs:242
↓ 3 callersMethodforget
(&self, _id: &str)
crates/spark-server/src/response_store.rs:97
↓ 3 callersMethodforward_k2
Fused K=2 forward: process 2 tokens through MoE in 5 kernel launches. Gate GEMV batch2 → batched topK → fused expert gate+up → fused silu+down → fuse
crates/spark-model/src/layers/moe/forward_k2.rs:15
↓ 3 callersMethodforward_k3
Fused K=3 forward: process 3 tokens through MoE in 5 kernel launches. Gate GEMV batch3 → batched topK → fused expert gate+up → fused silu+down → fuse
crates/spark-model/src/layers/moe/forward_k3.rs:12
↓ 3 callersMethodfp32_routing_active
True when the ATLAS_FP32_ROUTING path is active: the SSM-side MoE-input norm should emit an FP32 `router_in` (residual_add_rms_norm_gatef32) which the
crates/spark-model/src/layers/moe/forward.rs:13
↓ 3 callersFunctionfp8_e4m3_to_f32
(bits: u8)
crates/atlas-quant/src/fp8.rs:77
↓ 3 callersMethodfree_sequence
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/mod.rs:238
↓ 3 callersFunctionfsm_with_dead_branch
Build a per-rule FSM with a deliberate dead branch: 0 --'a'--> 1 (end) productive 0 --'b'--> 2 --'c'--> 3 2 and 3 are NOT end, no path to an
crates/xgrammar/src/earley/prune_tests.rs:18
↓ 3 callersFunctionfused_tok
RAW vocab with fused tokens that straddle grammar-element boundaries: whitespace+quote, letters+quote, brace+quote, escapes.
crates/xgrammar/src/matcher/tests/mask_regression_tests.rs:29
↓ 3 callersFunctiongdn_decode
Gated delta rule decode (recurrent SSM update, supports batched sequences). Kernel: `gated_delta_rule_decode(h_state, query, key, value, gate, beta,
crates/spark-model/src/layers/ops/ssm_gdn_a.rs:24
↓ 3 callersFunctiongdn_prefill_persistent
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a2.rs:185
↓ 3 callersFunctiongdn_prefill_persistent_smem
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a2.rs:233
↓ 3 callersFunctiongen
(prompt, max_tokens)
bench/warm_cold_multiturn_diff.py:60
↓ 3 callersFunctiongen_tokens
Return the list of generated token ids (greedy) via logprobs echo.
bench/warm_cold_specdecode_diff.py:70
↓ 3 callersFunctiongen_val
Deterministic, full-rank-ish pseudo-random value in roughly [-0.5, 0.5].
crates/spark-runtime/src/cutlass/tests/mod.rs:204
↓ 3 callersMethodgenerate_any
Generate the body for the "any" spec. Port of `GenerateAny` plus the XML override (upstream commit 41dbbb1, #634).
crates/xgrammar/src/schema/gen_scalar.rs:117
↓ 3 callersMethodgenerate_object
Generate the EBNF body for an object spec. Port of `GenerateObject` plus the XML `nested_object_level` wrapper.
crates/xgrammar/src/schema/gen_object.rs:53
↓ 3 callersFunctionggml_hash
hash function for ggml_tensor
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:254
↓ 3 callersMethodgpu_backend
Borrow the GPU backend for post-construction wiring (e.g. installing a DFlash proposer that needs to allocate paged KV caches against the same GPU the
crates/spark-model/src/model/impl_b3.rs:113
↓ 3 callersFunctiongpu_concat_rows
GPU-concatenate two weight matrices row-wise: [A; B] → [A_rows + B_rows, K]. Both inputs must be contiguous BF16 matrices with the same K dimension.
crates/spark-model/src/weight_map/fp8_lut.rs:413
↓ 3 callersMethodgpu_copy_bf16
Copy a BF16 device buffer to another device buffer via the existing `vision_bf16_copy` element kernel. The kernel takes a u32 element count (not bytes
crates/spark-model/src/layers/vision_encoder/enc_impl/utils.rs:15
↓ 3 callersFunctionhandle_complete_tool_call
`DetectorOutput::ToolCall(tc, idx)`: complete tool call.
crates/spark-server/src/api/chat_stream/tool_handlers.rs:61
↓ 3 callersFunctionhandle_tool_call_args_fragment
`DetectorOutput::ToolCallArgsFragment` — live-streaming: a ready-to-forward slice of `function.arguments` the detector already coerced (XML) or sliced
crates/spark-server/src/api/chat_stream/tool_handlers.rs:400
↓ 3 callersFunctionhandle_tool_call_delta
`DetectorOutput::ToolCallDelta` — incremental: append args. For qwen3_coder XML the streaming detector emits a single Delta with the full parsed-and-
crates/spark-server/src/api/chat_stream/tool_handlers.rs:270
↓ 3 callersFunctionhandle_tool_call_end
(state: &mut StreamState, _ctx: &StreamCtx, idx: usize)
crates/spark-server/src/api/chat_stream/tool_handlers.rs:465
↓ 3 callersFunctionhandle_tool_call_start
`DetectorOutput::ToolCallStart` — incremental: emit header now.
crates/spark-server/src/api/chat_stream/tool_handlers.rs:211
↓ 3 callersMethodhas_image_pixels
Whether this request carries preprocessed image embeddings.
crates/spark-server/src/api/inference_impl.rs:51
↓ 3 callersFunctionhash_combine
Fold a slice of values into a single combined hash, starting from seed `0`. Faithful to the variadic C++ `HashCombine`.
crates/xgrammar/src/support/hash.rs:36
↓ 3 callersMethodhc_comb
HC `comb` Sinkhorn matrix [M, hc_mult, hc_mult] F32.
crates/spark-runtime/src/buffers.rs:346
↓ 3 callersMethodhc_post
HC `post` mixing weights [M, hc_mult] F32.
crates/spark-runtime/src/buffers.rs:342
↓ 3 callersFunctionhermes_call
(name: &str, args: &str)
crates/spark-server/src/tool_parser/tests/group_g_parallel.rs:87
↓ 3 callersFunctionhex_char_to_int
Convert a hex digit (`0-9`, `a-f`, `A-F`) to its value, or `-1` if not a hex digit. Faithful to C++ `HexCharToInt`.
crates/xgrammar/src/support/encoding.rs:158
↓ 3 callersMethodhigh_speed_swap_offload_new_blocks
Catch up: alloc a disk_block_id and offload K/V to disk for every block_table entry that doesn't yet have a disk_id. Idempotent — re-running on a sequ
crates/spark-model/src/layers/qwen3_attention/decode/high_speed_swap.rs:50
↓ 3 callersFunctioni32s_le
(v: &[i32])
crates/spark-model/examples/moe_microtest.rs:112
↓ 3 callersMethodinit
( ordinal: usize, kernel_blobs: &[(&'static str, &'static [u8])], )
crates/atlas-core/src/registry.rs:140
↓ 3 callersMethodinner
Shared-pointer access to the inner state — used by the matcher.
crates/xgrammar/src/compiler/compiled_grammar.rs:370
↓ 3 callersMethodinsert
( &self, tokens: &[u32], block_table: &[u32], disk_block_ids: &[u32],
crates/spark-runtime/src/radix_tree.rs:107
↓ 3 callersMethodinto_message
(self)
crates/spark-server/src/tool_parser/validation.rs:482
↓ 3 callersMethodis_completed
Whether the current parser position completes the rule.
crates/xgrammar/src/compiler/mask_gen/mod.rs:145
↓ 3 callersMethodis_empty
True iff the ring is empty.
crates/spark-server/src/loop_simhash.rs:113
↓ 3 callersMethodis_ignored
(&self, module_path: &str)
crates/spark-model/src/quant_format/modelopt.rs:62
↓ 3 callersMethodis_leaf
True if no reachable state has a rule-ref or repeat-ref edge.
crates/xgrammar/src/fsm/with_start_end.rs:137
↓ 3 callersMethodis_mla_dispatch
(&self)
crates/spark-model/src/model/trait_impl/ep_misc.rs:42
↓ 3 callersMethodis_terminated
(&self)
crates/xgrammar/src/matcher/matcher.rs:196
↓ 3 callersMethodis_xml
Whether this converter emits the XML tool-calling format.
crates/xgrammar/src/schema/converter.rs:116
↓ 3 callersMethoditer_rows
Iterate over every row as a slice.
crates/xgrammar/src/fsm/compact_array.rs:65
↓ 3 callersFunctionk3_record_outcome
(num_accepted: usize, seq_len: usize)
crates/spark-server/src/scheduler/verify_k3_step.rs:16
↓ 3 callersMethodk_block_bytes_for_layer
K-side bytes per block for a specific attention layer. Replaces the legacy single-stride view for asym dtypes by routing through the K component of th
crates/spark-runtime/src/kv_cache.rs:296
↓ 3 callersMethodkind
(self)
crates/spark-storage/src/group.rs:40
↓ 3 callersFunctionl2_norm
L2 normalization (in-place): `data[i] = data[i] / sqrt(sum(data^2) + eps)`. Applied per head: data is [num_heads, head_dim], each head normalized ind
crates/spark-model/src/layers/ops/activations.rs:46
↓ 3 callersFunctionlaunch_scan
( g: &dyn GpuBackend, k: KernelHandle, c: &Case, hp: DevicePtr, wp: DevicePtr, up: Dev
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:183
↓ 3 callersFunctionlaunch_scan
( g: &dyn GpuBackend, k: KernelHandle, c: &Case, hp: DevicePtr, wp: DevicePtr, up: Dev
crates/spark-model/examples/gdn_chunk_shapetest.rs:251
↓ 3 callersFunctionload
(p: pathlib.Path)
bench/fp8_dgx2_drift/cosine_analyze.py:31
↓ 3 callersFunctionload
(p)
bench/fp8_dgx2_drift/cosine_run.py:25
↓ 3 callersFunctionload
(p: pathlib.Path)
bench/qwen36_fp8_dequant_audit/cosine_three_way.py:31
↓ 3 callersFunctionload_claude_code_system_prompt
Loads the captured Claude Code system prompt (26 KB) from `scripts/fixtures/claude_code_system_prompt.txt`. The file was produced by running spark-ser
crates/spark-server/src/anthropic/tests/translator_b.rs:255
↓ 3 callersMethodload_fused_expert_weights
( self, name: str, params_dict: dict, loaded_weight: torch.Tensor, sha
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:248
↓ 3 callersFunctionload_fused_nvfp4
Load a fused NVFP4 tensor from the store (Standard ModelOpt format).
crates/spark-model/src/weight_loader/step3p7.rs:114
↓ 3 callersFunctionload_single
( path: &Path, gpu: &dyn GpuBackend, oom_reserve_bytes: usize, skip_fn: &dyn Fn(&str) -> bool,
crates/spark-runtime/src/weights/loader/load_fns.rs:168
↓ 3 callersFunctionlog_gemm_shape
Roofline instrumentation: log each unique (kernel, M, N, K) GEMM shape once, gated by `ATLAS_GEMM_SHAPE_LOG=1`. Used to cross-reference nsys per-call
crates/spark-model/src/layers/ops/dispatch_helpers.rs:108
↓ 3 callersMethodlogit
Raw logit = w · h + b. Hidden vector length must match weights length.
crates/spark-server/src/halluc_probe.rs:49
↓ 3 callersMethodmatches_literal
(&mut self, lit: &str)
crates/xgrammar/src/schema/json_value.rs:280
↓ 3 callersMethodmaterialize
Materialize the accepted / rejected partitions as explicit sorted-vocab index vectors, regardless of [`StoreType`]. Port of the partition-reconstruct
crates/xgrammar/src/compiler/mask.rs:140
↓ 3 callersFunctionmedian
(xs)
tests/atlas_bench_comprehensive.py:135
↓ 3 callersFunctionmetrics
(g,T,n_mc=4000,rng=None)
bench/fp8_dgx2_drift/temp03_excess_div.py:30
↓ 3 callersMethodmigrate
(&mut self, new_idx: usize)
crates/spark-model/src/model/ssm_pool.rs:447
↓ 3 callersMethodminimize_dfa
Hopcroft DFA minimization. Returns `Err` over the state cap.
crates/xgrammar/src/fsm/dfa_ops.rs:17
↓ 3 callersFunctionmodule_matches_pattern
HuggingFace-style glob match for module ignore-list entries. Used by every [`QuantFormat::is_ignored`] impl so all three schemes share the same seman
crates/spark-model/src/quant_format/mod.rs:185
↓ 3 callersFunctionmoe_bf16_grouped_gemm
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, // [total_tokens, K] BF
crates/spark-model/src/layers/ops/gemm_quant.rs:572
↓ 3 callersFunctionmoe_fp8_grouped_gemm
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, // [total_tokens, K] BF
crates/spark-model/src/layers/ops/gemm_quant.rs:474
↓ 3 callersMethodmoe_input_size
MoE expert input dimension: latent size if LatentMoE, else hidden_size.
crates/atlas-core/src/config/methods.rs:298
↓ 3 callersMethodmoe_router_in_f32
(&self)
crates/spark-runtime/src/buffers.rs:241
↓ 3 callersFunctionmoe_silu_mul
Element-wise SiLU activation + multiply: `output[i] = silu(gate[i]) * up[i]`. Grid: (ceil(total_elements/256), 1, 1) Block: (256, 1, 1)
crates/spark-model/src/layers/ops/moe_grouped_a.rs:461
↓ 3 callersFunctionmoe_topk_sigmoid
( gpu: &dyn GpuBackend, kernel: KernelHandle, gate_logits: DevicePtr, bias: DevicePtr, exp
crates/spark-model/src/layers/ops/moe_gate.rs:55
↓ 3 callersFunctionmoe_topk_softmax
GPU-side MoE top-K softmax. Finds top-K experts from BF16 gate logits, computes softmax weights. Kernel: `moe_topk_softmax(gate_logits, expert_indic
crates/spark-model/src/layers/ops/moe_gate.rs:23
↓ 3 callersFunctionmoe_w8a8_grouped_gemm
( gpu: &dyn GpuBackend, kernel: KernelHandle, a_fp8: DevicePtr, // [total_tokens, K] FP
crates/spark-model/src/layers/ops/gemm_quant.rs:531
↓ 3 callersFunctionmoe_weighted_sum_blend_batch2
( gpu: &dyn GpuBackend, kernel: KernelHandle, output: DevicePtr, // [2, hidden] BF16 e
crates/spark-model/src/layers/ops/moe_expert_more.rs:181
↓ 3 callersMethodname
(&self)
crates/spark-server/src/tool_parser/gemma4.rs:13
↓ 3 callersMethodnamed
This config with a different family name.
crates/spark-server/src/reasoning_parser/parsers.rs:65
↓ 3 callersFunctionnext_char
(c: char)
crates/xgrammar/src/schema/range_regex.rs:255
↓ 3 callersMethodnext_seq
Reserve a sequence number. Caller later references the same `seq` when emitting the matching response entry.
crates/spark-server/src/request_dumper.rs:69
↓ 3 callersMethodnorm_unit_w
All-ones BF16 vector (max_dim) — weight for unweighted RMSNorm (q_b_norm).
crates/spark-runtime/src/buffers.rs:334
↓ 3 callersMethodnum_layers
Number of attention layers.
crates/spark-runtime/src/kv_cache/paged_impl.rs:441
↓ 3 callersFunctionnumeric_mask
()
crates/spark-server/src/scheduler/helpers_tests.rs:204
↓ 3 callersMethodo_latent
Grouped O-projection latent [M, o_groups*o_lora_rank] BF16 (V4-Flash).
crates/spark-runtime/src/buffers.rs:330
↓ 3 callersFunctionp_greedy_flip
(g)
bench/fp8_dgx2_drift/temp03_margin_model.py:45
↓ 3 callersFunctionpaged_decode_attn_bf16
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_a.rs:289
↓ 3 callersFunctionpaged_decode_attn_nvfp4
Paged decode attention (NVFP4 KV cache, single/multi sequence). Kernel: `paged_decode_attn_nvfp4(Q, K_cache, V_cache, O, block_tables, seq_lens, max_
crates/spark-model/src/layers/ops/prefill_attn_b.rs:93
↓ 3 callersFunctionparse_bare_function_calls
Back-compat wrapper around the pipeline for existing callers. Models sometimes output tool calls without the `<tool_call>` wrapper, especially at lowe
crates/spark-server/src/tool_parser/pipeline_helpers.rs:9
↓ 3 callersMethodparse_choices
Parse `|`-separated sequences into a `Choices` expr.
crates/xgrammar/src/grammar/parser.rs:125
← previousnext →1,201–1,300 of 7,049, ranked by callers