MCPcopy Create free account

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

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

↓ 2 callersMethodbuild_rope_cossin_into
Build per-patch 2D rotary cos/sin in row-major patch order matching HF Qwen3-VL's `rot_pos_emb(grid_thw)`. For each patch i at spatial (row, col) the
crates/spark-model/src/layers/vision_encoder/enc_impl/pos_embed.rs:122
↓ 2 callersFunctionbuild_setup
(seed: u64, dir: &PathBuf)
crates/spark-storage/tests/common/mod.rs:88
↓ 2 callersFunctionbuild_tokenizer_info
Build a `TokenizerInfo` the way spark-server's `GrammarEngine::from_tokenizer` does: metadata auto-detection from the serialized tokenizer JSON + expl
crates/xgrammar/tests/qwen_toolcall_mask.rs:68
↓ 2 callersMethodbyte_string
Decode a `ByteString` expression to its `String`.
crates/xgrammar/src/grammar/data.rs:199
↓ 2 callersFunctionbyte_string_grammar
Build a tiny grammar by hand: one rule whose body is the byte string "ab". CSR slot for a ByteString: `[type=0, len=2, 'a','b']`.
crates/xgrammar/src/grammar/data.rs:255
↓ 2 callersMethodbytes_per_layer
Bytes occupied by one full layer in its file (K + V across all blocks).
crates/spark-storage/src/group.rs:81
↓ 2 callersMethodcan_implement
(cls, config: FP8ScaledMMLinearLayerConfig)
bench/fp8_dgx2_drift/vllm_src/scaled_mm_BlockScaledMMLinearKernel.py:62
↓ 2 callersFunctioncan_use_derived_lookahead
A rule can use a derived lookahead assertion iff it is not triggered by a dispatch, never appears as a tail reference, and is referenced in exactly on
crates/xgrammar/src/grammar/functor/lookahead.rs:75
↓ 2 callersMethodcapabilities
Derive model-agnostic capabilities from this config.
crates/atlas-core/src/config/methods.rs:163
↓ 2 callersMethodcapacity
(&self)
crates/spark-storage/src/eviction.rs:38
↓ 2 callersMethodchar_class_codepoint
Codepoint of the char-class token at `cur + delta` (a `CharInCharClass` or a `Dash`, which decodes to `-`).
crates/xgrammar/src/grammar/parser_element.rs:68
↓ 2 callersMethodchar_class_step
Shared per-byte step for both character-class element types. Returns `Some((next_state, completed))` when `ch` is accepted — `completed` distinguishes
crates/xgrammar/src/earley/scan_charclass.rs:104
↓ 2 callersFunctionchar_to_byte_map
The inverse of the GPT-2 bytes-to-unicode map. `char_to_byte_map()[codepoint]` is the original byte, or `-1` when no byte maps to that codepoint. The
crates/xgrammar/src/tokenizer/decoder.rs:79
↓ 2 callersFunctionchat
(messages, max_tokens)
bench/warm_cold_concurrent_diff.py:41
↓ 2 callersMethodcheck
Check whether `(name, args_json)` triggers the dedup trip. Always pushes the new hash onto the ring (after the check). Returns `true` if the consec or
crates/spark-server/src/tool_arg_dedup.rs:71
↓ 2 callersMethodcheckpoint_ssm_states
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/mod.rs:193
↓ 2 callersMethodchoices_of_byte_strings
Decode a `Choices` expression whose branches are all `ByteString`s into a `Vec<String>`.
crates/xgrammar/src/grammar/data.rs:242
↓ 2 callersFunctionclassify_penalties
Classify the BUILT penalty params (post `penalty_params_for` gating) for fast-path eligibility. `SamplingParams.logit_bias` must be empty for anything
crates/spark-server/src/scheduler/fast_greedy.rs:59
↓ 2 callersMethodclear
Remove every element from the set.
crates/xgrammar/src/support/union_find.rs:41
↓ 2 callersMethodclear_cache
Clear the internal compiled-grammar cache *and* the cross-grammar rule-level mask cache. Port of `GrammarCompiler::ClearCache`.
crates/xgrammar/src/compiler/compiler.rs:240
↓ 2 callersMethodclose_dfs
Depth-first, closure-preferring search. Appends accepted bytes to `out`; returns `true` with the parser left advanced through `out` once the grammar c
crates/xgrammar/src/matcher/completion.rs:83
↓ 2 callersFunctioncmp
(a, b)
bench/fp8_dgx2_drift/cosine_vllm_atlas.py:28
↓ 2 callersFunctioncmp_bf16
(cos, nrdev) for a bf16 output (S_c, uc) decoded from raw bytes.
crates/spark-model/examples/gdn_chunk_shapetest.rs:394
↓ 2 callersFunctioncmp_edge_range
Compare two edges by `(min, max)` only — used to deduplicate ranges. Mirrors the C++ `FSMEdgeRangeComparator`.
crates/xgrammar/src/fsm/edge.rs:136
↓ 2 callersFunctioncodepoint_in_ranges
True if `codepoint` lies in one of the `[lo, hi]` ranges packed in `data[1..]` (pairs). `data[0]` is the negative flag, skipped here.
crates/xgrammar/src/earley/scan_charclass.rs:18
↓ 2 callersFunctioncodepoint_to_packed_utf8
Pack a unicode codepoint into the big-endian UTF-8 representation used by [`add_character_range`].
crates/xgrammar/src/grammar/functor/char_range.rs:30
↓ 2 callersFunctioncollect_refs
Push every rule referenced anywhere under `expr_id` onto `queue`.
crates/xgrammar/src/grammar/functor/analyzer.rs:43
↓ 2 callersMethodcommit_accepted_prefix
Item #2 (STree-style in-place verify commit): commit the surviving prefix of a verify pass directly onto the canonical `h_state` / `conv_state`. Full
crates/spark-model/src/traits/model.rs:646
↓ 2 callersMethodcommit_in_flight
Commit the in-flight buffer on `stream_handle` (no wait). Used internally by `synchronize` and `record_event`. Returns the committed buffer so callers
crates/spark-runtime/src/metal_backend.rs:236
↓ 2 callersFunctioncompact
(f: FsmWithStartEnd)
crates/xgrammar/src/earley/fsm_view.rs:38
↓ 2 callersMethodcompact_sequence
(&self, seq: &mut SequenceState, new_slot: usize)
crates/spark-model/src/engine/tests.rs:243
↓ 2 callersFunctioncompact_type
DRO: compact a JSON-schema property spec to a short type token.
crates/spark-server/src/tscg/render.rs:121
↓ 2 callersFunctioncompare
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_recompute_wu_gateb.rs:55
↓ 2 callersFunctioncompare
(a: &[u16], b: &[u16])
crates/spark-model/examples/w4a16_bf16_v2_microtest.rs:173
↓ 2 callersFunctioncompile_grammar_state
Compile a grammar state from a grammar specification + engine. Returns `Some(GrammarState)` if compilation succeeds, `None` otherwise (logging a warn
crates/spark-server/src/scheduler/emit_step.rs:483
↓ 2 callersMethodcomplete
Complete `state`: a rule has finished, so advance its parents. If `state` is a root rule, the root has completed and the stop token becomes acceptable
crates/xgrammar/src/earley/complete.rs:18
↓ 2 callersMethodcompletion_token_ids
The shortest grammar-legal close as content token ids (#144), or `None` if no close is found within `max_bytes`. `Some(empty)` means the grammar can a
crates/spark-server/src/grammar/state.rs:298
↓ 2 callersFunctioncompute_followed_directions
Return the followed_directions verdict + per-step evidence. Never raises on malformed input — returns best-effort flags. The overall `followe
bench/fp8_dgx2_drift/harness/followed_directions.py:112
↓ 2 callersMethodconcat
Sequential concatenation of several FSMs.
crates/xgrammar/src/fsm/fsm_ops.rs:70
↓ 2 callersMethodconsume_generation_budget
Consume one token of generation budget (SSOT for the two decode paths: MTP `emit_step::emit_token` and non-MTP `decode_logits_content::handle_content_
crates/spark-server/src/scheduler/types.rs:328
↓ 2 callersMethodconsume_optional_non_greedy
Skip a `?` non-greedy modifier if present — our grammar treats all repetition non-deterministically, so it is simply dropped.
crates/xgrammar/src/regex/converter.rs:156
↓ 2 callersFunctioncontain_unterminated_call_tail
#192: bound the salvageable region of an UNTERMINATED trailing `<tool_call>` body (no `</tool_call>` close anywhere after it). XML-parameter bodies (
crates/spark-server/src/tool_parser/parse_dispatch.rs:21
↓ 2 callersFunctionconvert
Run steps 2/3 of the tags-with-separator conversion. `all_tags_rule` is the already-built rule matching any single tag.
crates/xgrammar/src/structural_tag/converter_sep.rs:21
↓ 2 callersFunctionconvert_to_channelwise
( weight_scale: torch.Tensor, logical_widths: list[int] )
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:58
↓ 2 callersFunctionconvert_tools
Convert Anthropic tools to OpenAI-compatible tool definitions.
crates/spark-server/src/anthropic/helpers.rs:24
↓ 2 callersMethodcopy_d2d_2d_async
( &self, src: DevicePtr, src_pitch: usize, dst: DevicePtr, dst_pitch:
crates/spark-runtime/src/gpu.rs:207
↓ 2 callersMethodcopy_d2d_async
( &self, src: DevicePtr, dst: DevicePtr, bytes: usize, stream: u64,
crates/spark-runtime/src/cuda_backend/gpu_impl.rs:236
↓ 2 callersMethodcopy_d2h_async
Async D2H copy from a device pointer. Same lifetime caveats as the H2D variant. # Safety Caller must keep `dst` alive until `stream` is synchronised.
crates/atlas-core/src/registry.rs:331
↓ 2 callersFunctioncopy_expr
Recursively copy expr `expr_id` from `src` into `builder`, remapping rule ids through `id_map`.
crates/xgrammar/src/grammar/functor/constructor.rs:44
↓ 2 callersFunctioncos
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_strided_norm_microtest.rs:72
↓ 2 callersFunctioncosf2
(a: &[f32], b: &[f32])
crates/spark-model/examples/rope_microtest.rs:47
↓ 2 callersFunctioncosine
cosine = dot / (‖a‖‖b‖) — direction only (scale-invariant).
crates/spark-model/examples/gdn_chunk_shapetest.rs:131
↓ 2 callersFunctioncpu_quant_group
( vals: &[f32; 16], codebook: &[f32], bounds: &[f32], cmax: f32, )
crates/spark-runtime/src/metal_backend/tests/parity_asym.rs:27
↓ 2 callersFunctioncpu_quant_group_turbo4
CPU mirror of one group through `kv_cache_append_turbo4.metal`: returns (8 packed nibble bytes, E4M3 scale byte).
crates/spark-runtime/src/metal_backend/tests/parity_turbo4.rs:32
↓ 2 callersFunctioncreate_event
()
crates/spark-comm/src/nccl.rs:269
↓ 2 callersMethodcreate_event
Create a CUDA event (for inter-stream synchronization).
crates/spark-model/src/traits/model.rs:717
↓ 2 callersFunctioncreate_fp8_scale_parameter
Create scale parameter based on quantization strategy.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1193
↓ 2 callersMethodcreate_stream
(&self)
crates/spark-model/src/model/trait_impl/mod.rs:402
↓ 2 callersFunctionctx
()
crates/spark-storage/src/scratch_pool.rs:189
↓ 2 callersFunctioncuGraphExecDestroy
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:86
↓ 2 callersFunctioncuGraphInstantiateWithFlags
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:89
↓ 2 callersFunctioncuGraphLaunch
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:85
↓ 2 callersFunctioncuMemAllocHost_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:30
↓ 2 callersFunctioncuMemFreeHost
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:31
↓ 2 callersFunctioncuMemcpyDtoDAsync_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:40
↓ 2 callersFunctioncuStreamDestroy_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:111
↓ 2 callersFunctioncuStreamEndCapture
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:70
↓ 2 callersFunctioncuStreamWaitEvent
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:68
↓ 2 callersFunctioncutlass_block_fp8_supported
()
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:21
↓ 2 callersFunctioncutlass_fp8_supported
()
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:11
↓ 2 callersFunctioncutlass_nvfp4_attn_o_enabled
Native CUTLASS NVFP4 attention O path enabled.
crates/spark-model/src/layers/ops/dispatch_helpers.rs:82
↓ 2 callersFunctioncutlass_nvfp4_qkvz_enabled
Native CUTLASS NVFP4 SSM QKVZ path enabled.
crates/spark-model/src/layers/ops/dispatch_helpers.rs:67
↓ 2 callersFunctioncutlass_nvfp4_ssm_out_enabled
Native CUTLASS NVFP4 SSM out-projection path enabled.
crates/spark-model/src/layers/ops/dispatch_helpers.rs:87
↓ 2 callersFunctioncutlass_scaled_mm
( A: torch.Tensor, B: torch.Tensor, As: torch.Tensor, Bs: torch.Tensor, block_size: list[i
bench/fp8_dgx2_drift/vllm_src/scaled_mm_cutlass.py:291
↓ 2 callersFunctiondb
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/rope_microtest.rs:40
↓ 2 callersMethoddecision
The operative decision for the current depth regime, available once `is_measuring()` is false. `None` while (re-)measuring.
crates/spark-server/src/scheduler/mtp_gate.rs:302
↓ 2 callersFunctiondecl
(name, kind, pos)
bench/longcode/analyze.mjs:128
↓ 2 callersMethoddecode_draft
Eager decode skipping SSM layers. Used by self-speculative drafting. KV cache entries are appended (will be overwritten by verify). SSM state is NOT u
crates/spark-model/src/model/impl_b1.rs:387
↓ 2 callersFunctiondecode_e2m1
(nib: u8)
crates/spark-runtime/src/cutlass/tests/mod.rs:158
↓ 2 callersMethoddecode_flat_index
Flat index into the decode-rollback region, with bounds checks.
crates/spark-model/src/model/ssm_snapshot.rs:262
↓ 2 callersMethoddecode_inner
( &self, hidden: DevicePtr, residual: DevicePtr, state: &mut dyn LayerState,
crates/spark-model/src/layers/qwen3_ssm/trait_decode.rs:8
↓ 2 callersMethoddecode_logits_fp32
True when single-token decode `lm_head` writes FP32 logits to `logits_fp32_buf`. Callers that consume those logits (sampler) MUST read with the matchi
crates/spark-model/src/model/impl_a3.rs:331
↓ 2 callersMethoddecode_logits_ptr
Buffer pointer the single-token decode `lm_head` last wrote to. FP32 scratch when `use_fp32_logits`, otherwise the shared BF16 logits buffer. Callers
crates/spark-model/src/model/impl_a3.rs:342
↓ 2 callersMethoddecode_verify
( &self, tokens: &[u32], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/model/trait_impl/mod.rs:185
↓ 2 callersMethoddecode_verify_graphed
( &self, tokens: &[u32; 2], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/engine/tests.rs:256
↓ 2 callersFunctiondeepseek_xml_tool_calling_to_ebnf
Convert a function-call parameter schema into a DeepSeek-XML-style EBNF grammar. Port of `DeepSeekXMLToolCallingToEBNF`.
crates/xgrammar/src/schema/api.rs:85
↓ 2 callersFunctiondeinterleave_qg_split
Deinterleave Q/Gate with split output — Q to separate contiguous buffer. Same as [`deinterleave_qg`] but writes Q to `q_out` (contiguous [N, q_dim])
crates/spark-model/src/layers/ops/ssm_preproc.rs:85
↓ 2 callersFunctiondeinterleave_qg_split_qnorm
Fused deinterleave Q/Gate + per-head Q RMS norm. Combines [`deinterleave_qg_split`] + Q RMS norm into a single kernel, eliminating one global memory
crates/spark-model/src/layers/ops/ssm_preproc.rs:114
↓ 2 callersFunctiondeinterleave_qkvz
Deinterleave QKVZ projection output from GQA-grouped to sequential layout. Input: interleaved [num_groups × (kd + kd + vpg*vd + vpg*vd)] Output: sequ
crates/spark-model/src/layers/ops/ssm_preproc.rs:24
↓ 2 callersFunctiondense_fp8_enabled
Opt-in gate for native dense-FP8 attention + FFN dispatch (Qwythos / dense Ornith-FP8). Default OFF. VERIFIED 2026-06-29 on Qwythos-9B-FP8 (gb10/orni
crates/spark-model/src/weight_loader/qwen35_dense.rs:99
↓ 2 callersFunctiondensify
Compress a description string. Returns a single-line, filler-free, whitespace-collapsed form. Empty input → empty output.
crates/spark-server/src/tscg/sdm.rs:73
↓ 2 callersFunctiondequant_fp8_bf16_cached
Dequantize a block-scaled FP8 weight `[N,K]` → BF16 on-GPU once, cached by the FP8 weight pointer (weights are immutable after load). 128×128 blocks +
crates/spark-model/src/layers/ops/dispatch_proj.rs:176
↓ 2 callersFunctiondequant_fp8_block_slice_bf16
( gpu: &dyn GpuBackend, weight_ptr: DevicePtr, scale_ptr: DevicePtr, n: usize, k: usize,
crates/spark-model/src/weight_map/ssm_qwen35/dequant_fp8.rs:15
↓ 2 callersFunctiondequant_fp8_bytes_to_bf16
Shared CPU-side FP8 E4M3 → BF16 conversion.
crates/spark-model/src/weight_map/quant_helpers.rs:14
↓ 2 callersFunctiondestroy_event
(event: u64)
crates/spark-comm/src/nccl.rs:294
↓ 2 callersFunctiondetect_quant_format
Pick the right [`QuantFormat`] for a checkpoint. Decision order: 1. If `config.quantization_config` is present, use its declared `quant_method` / `qu
crates/spark-model/src/quant_format/mod.rs:95
↓ 2 callersFunctiondetect_thinking_token_loop_with
Per-sequence override variant of [`detect_thinking_token_loop`]. When `override_` is `Some(p)`, uses `p.min_pattern_size`, `p.max_pattern_size`, `p.mi
crates/spark-server/src/scheduler/helpers.rs:490
↓ 2 callersFunctiondetect_token_loop
2026-05-24 v3: ALGORITHM REPLACE. Switched from Atlas's scan-anywhere substring detector to vLLM's anchored-at-end algorithm (vLLM main `v1/core/sched
crates/spark-server/src/scheduler/helpers.rs:656
↓ 2 callersFunctiondiff_stats
(a: &[bf16], b: &[bf16])
crates/spark-storage/tests/tiled_attention_parity.rs:144
↓ 2 callersFunctiondiff_stats
(a: &[bf16], b: &[bf16])
crates/spark-storage/tests/common/mod.rs:188
← previousnext →1,501–1,600 of 7,049, ranked by callers