MCPcopy Create free account

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

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

↓ 1 callersMethoddecode_verify_graphed_k3_dispatch
( &self, tokens: &[u32; 3], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/verify_c.rs:47
↓ 1 callersMethoddecode_verify_graphed_k4
( &self, tokens: &[u32; 4], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/mod.rs:257
↓ 1 callersMethoddecode_verify_graphed_k4
( &self, tokens: &[u32; 4], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/engine/tests.rs:276
↓ 1 callersMethoddecode_verify_graphed_k4_dispatch
( &self, tokens: &[u32; 4], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/verify_c2.rs:36
↓ 1 callersMethoddecode_verify_graphed_kgamma
DFlash K=γ graphed verify (γ+1 tokens). Specialization of the K=2/3/4 pattern for arbitrary K. Default impl falls back to eager `decode_verify`. Model
crates/spark-model/src/traits/model.rs:404
↓ 1 callersMethoddecode_verify_graphed_kgamma_dispatch
( &self, tokens: &[u32], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/verify_d.rs:40
↓ 1 callersFunctiondecompose_rule_body
Decompose one rule body into segments. The body is one of: a `ByteString` / `EmptyStr` (one static segment), a `Sequence` (decomposed element-by-elem
crates/xgrammar/src/compiler/decompose.rs:296
↓ 1 callersFunctiondefault_chatml_template
Default ChatML template for models without tokenizer_config.json. Always includes an empty system block if no system message (required by Nemotron-H).
crates/spark-server/src/tokenizer/jinja_helpers.rs:360
↓ 1 callersFunctiondefault_conv_kernel
()
crates/atlas-core/src/config.rs:475
↓ 1 callersFunctiondefault_rms_eps
()
crates/atlas-core/src/config.rs:469
↓ 1 callersMethoddefault_stream_dispatch
(&self)
crates/spark-model/src/model/trait_impl/ep_misc.rs:72
↓ 1 callersFunctiondegeneration_fingerprint
Classify a response against the Phase 1 decision-gate definition. Degeneration = >=100 consecutive whitespace tokens OR EOS with no tool_call
scripts/replay_dump.py:256
↓ 1 callersFunctiondeinterleave_qg_split_qnorm_mrope
( gpu: &dyn GpuBackend, kernel: KernelHandle, data: DevicePtr, q_out: DevicePtr, q_norm_we
crates/spark-model/src/layers/ops/ssm_preproc.rs:148
↓ 1 callersFunctiondense_auto_fp8_or_bf16
Load a weight, auto-dequanting FP8 block-scaled to BF16 when needed. Used for models with mixed-precision layers — Qwen3.6's ViT, for example, keeps
crates/spark-model/src/weight_map/model_a.rs:167
↓ 1 callersFunctiondense_f32_as_bf16
Load an F32 tensor and convert to BF16 on-device via CPU roundtrip. Used for Nemotron-H gate weights (F32 in safetensors, consumed as BF16).
crates/spark-model/src/weight_map/model_a.rs:297
↓ 1 callersMethoddense_ffn_forward_generic
Dense FFN forward for Qwen3.6-27B-FP8 (and other dense MTP heads): `out = down_proj( silu(gate_proj(x)) * up_proj(x) )`. One MLP, no router, no exper
crates/spark-model/src/layers/mtp_head/moe_forward.rs:32
↓ 1 callersFunctiondense_gemv_ba_gates
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, ba_weight: &DenseWeight, a
crates/spark-model/src/layers/ops/ssm_preproc.rs:261
↓ 1 callersFunctiondense_gemv_batch2
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight: &DenseWeight, outp
crates/spark-model/src/layers/ops/gemm_quant.rs:145
↓ 1 callersFunctiondense_gemv_fp8w_batch2
FP8-weight dual-GEMV. `input` is `[2, K]` BF16, `output` is `[2, N]` BF16. Grid: (ceil(N/4), 1, 1) Block: (256, 1, 1)
crates/spark-model/src/layers/ops/fp8_gemv_batch.rs:21
↓ 1 callersFunctiondequant_fp8_bf16_uncached
( gpu: &dyn spark_runtime::gpu::GpuBackend, fp8w: &crate::weight_map::Fp8Weight, stream: u64, )
crates/spark-model/src/layers/ops/dispatch_proj.rs:214
↓ 1 callersFunctiondequant_fp8_to_bf16
Dequant FP8 (E4M3) bytes to BF16, applying a per-tensor scale.
crates/spark-runtime/src/kv_dequant.rs:76
↓ 1 callersFunctiondequant_nvfp4
packed uint8 [O, K/2] -> bf16 [O, K]. wscale fp8e4m3 [O, K/16]. value = E2M1[nibble] * fp8(wscale) * f32(wscale2).
bench/nemotron_hf_ref_cpu.py:46
↓ 1 callersFunctiondequant_nvfp4
packed uint8 [O, K/2] -> bf16 [O, K]. wscale fp8e4m3 [O, K/16]. value = E2M1[nibble] * fp8(wscale) * f32(wscale2).
bench/nemotron_hf_ref.py:43
↓ 1 callersFunctiondequant_nvfp4_e8m0_to_bf16
Dequantize an NVFP4 weight with **E8M0** (power-of-2) per-block scales and no global scale** to BF16 on CPU, then upload. This is DeepSeek-V4's ORIGIN
crates/spark-model/src/weight_map/fp8_lut.rs:86
↓ 1 callersFunctiondequant_nvfp4_to_bf16
Dequantize NVFP4 weight [n, k] (packed E2M1 + E4M3 group scales + per-tensor scale2) -> bf16 [n, k].
crates/spark-model/src/layers/ops/q4k_mmq.rs:32
↓ 1 callersFunctiondequant_one_tensor
Block-scaled FP8 -> BF16 dequant with round-to-nearest-even. PyTorch's float8_e4m3fn -> float32 path is a lookup (256 entries) and is exact.
bench/qwen36_fp8_dequant_audit/dequant_to_bf16.py:39
↓ 1 callersMethoddequantize_to
Materialize the full dequantized weight as BF16 into `out`, which must be a `DevicePtr` to a buffer of at least `out_features * in_features * 2` bytes
crates/spark-runtime/src/weights/mlx_int8.rs:173
↓ 1 callersFunctionderiveQuant
(stem)
site/scripts/gen-benchmarks.mjs:53
↓ 1 callersFunctiondescribe_content_token_loop
Slow-path diagnostic: when `detect_content_token_loop` returns `true`, re-scan to report which `(period, repeats)` matched. Used only on the watchdog-
crates/spark-server/src/scheduler/decode_logits_content.rs:26
↓ 1 callersFunctiondestroy_stream
(stream: u64)
crates/spark-comm/src/nccl.rs:300
↓ 1 callersMethoddetach_slot_for_reuse
(&self, seq: &mut SequenceState)
crates/spark-model/src/engine/tests.rs:248
↓ 1 callersMethoddetach_slot_for_reuse_dispatch
Disown a retired sequence's SSM slot because `compact_sequence` migrated it to a surviving sequence. Takes the slot out of this sequence's RAII guard
crates/spark-model/src/model/trait_impl/sequence.rs:236
↓ 1 callersFunctiondetect_add_prefix_space
Detect whether the tokenizer adds a prefix space: true if either a `Prepend` normalizer with `▁`, or a `Metaspace` pre-tokenizer with `prepend_scheme`
crates/xgrammar/src/tokenizer/hf_metadata.rs:112
↓ 1 callersFunctiondetect_metaspace_pretokenizer
Find `pre_tokenizer: {"type": "Metaspace", "prepend_scheme": "always" | "first"}`.
crates/xgrammar/src/tokenizer/hf_metadata.rs:155
↓ 1 callersFunctiondetect_model
(url: str)
bench/bench_isl_osl.py:191
↓ 1 callersFunctiondetect_model
()
bench/bench-atlas-concurrency.py:81
↓ 1 callersFunctiondetect_prepend_normalizer
Find `{"type": "Prepend", "prepend": "▁"}` in the `normalizer` field (descending into a `Sequence` normalizer's `normalizers` array).
crates/xgrammar/src/tokenizer/hf_metadata.rs:118
↓ 1 callersFunctiondetect_token_loop_with_period
2026-05-24 v3: vLLM-style anchored variant of the digit-normalized detector. Same end-anchored check as [`detect_token_loop`] PLUS the digit-normalize
crates/spark-server/src/scheduler/helpers.rs:711
↓ 1 callersFunctiondetect_vocab_type
Detect the vocabulary type from the `decoder` field. Finds `{"type": "ByteFallback"}` or `{"type": "ByteLevel"}` in the `decoder` field (descending i
crates/xgrammar/src/tokenizer/hf_metadata.rs:70
↓ 1 callersMethoddetected_end_expr
Build the detected-end-strings expr for a non-empty list.
crates/xgrammar/src/structural_tag/converter_tags.rs:199
↓ 1 callersFunctiondetector_content_arm
Detector-active branch's `Content(text)` arm: sanitize first, then run the shared semantic/token watchdog + emit pipeline.
crates/spark-server/src/api/chat_stream/handle_token.rs:588
↓ 1 callersFunctiondiff_dumps
Compare Atlas's BF16 dumps against HF's layer-by-layer. Emit a cosine-similarity / max-abs-diff table.
tests/vit_reference_check.py:177
↓ 1 callersFunctiondims
(tile_capacity: usize)
crates/spark-storage/tests/tiled_attention_parity.rs:31
↓ 1 callersMethoddispatch
Decide which keyword group drives parsing and build the spec.
crates/xgrammar/src/schema/parser.rs:79
↓ 1 callersFunctiondispatch_streaming
( state: Arc<AppState>, req: &ChatCompletionRequest, req_ctx: Option<axum::extract::Extension<crat
crates/spark-server/src/api/chat_stream_dispatch.rs:22
↓ 1 callersFunctiondn_bf16
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_split4_microtest.rs:42
↓ 1 callersFunctiondn_bf16
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_wy_verify_microtest.rs:63
↓ 1 callersFunctiondn_f32
(g: &dyn GpuBackend, p: DevicePtr, n: usize)
crates/spark-model/examples/gdn_chunk_delta_h_gateb.rs:46
↓ 1 callersFunctiondrain_pending_requests
Drain pending request queue and policy-select prefills to start.
crates/spark-server/src/scheduler/mod_helpers.rs:80
↓ 1 callersFunctiondrop_buffered_tool_chunks
Drop all buffered SSE chunks for tool-call `idx` without emitting. Called when validation fails and we're going to fire a Tier 5c retry.
crates/spark-server/src/api/chat_stream/tool_handlers.rs:56
↓ 1 callersFunctiondrop_page_cache
(dir: &Path)
crates/spark-runtime/benches/bench_fast_weights.rs:25
↓ 1 callersFunctiondrop_pagecache
(fd: RawFd)
crates/spark-storage/src/bench.rs:42
↓ 1 callersMethoddrop_pagecache
Test helper: drop the page cache for the layer files so subsequent reads actually hit NVMe.
crates/spark-storage/src/backend/io_uring.rs:72
↓ 1 callersMethoddrop_pinned_staging
Free pinned host memory on model destruction.
crates/spark-model/src/model/impl_a2.rs:51
↓ 1 callersFunctiondry_run
(model_dir: Path)
scripts/preprocess_step3p7_experts.py:263
↓ 1 callersMethoddtype_for_layer
Effective KV cache dtype for a specific attention layer.
crates/spark-runtime/src/kv_cache/paged_impl.rs:424
↓ 1 callersFunctiondump_layers_from_env
()
crates/spark-model/src/layers/qwen3_ssm/debug.rs:47
↓ 1 callersFunctiondupDeclCount
(src)
bench/longcode/analyze.mjs:119
↓ 1 callersMethoddynamic_segment_count
(&self)
crates/xgrammar/src/compiler/decompose.rs:237
↓ 1 callersFunctione4m3_scale_byte
OCP E4M3 (e4m3fn) encode for a benign group-scale magnitude. We only need a handful of representable positive scales (powers-of-two-ish) to exercise t
crates/spark-model/examples/w4a16_bf16_microtest.rs:86
↓ 1 callersFunctione4m3_scale_byte
OCP E4M3 (e4m3fn) encode for a benign group-scale magnitude. We only need a handful of representable positive scales (powers-of-two-ish) to exercise t
crates/spark-model/examples/w4a16_bf16_v2_microtest.rs:86
↓ 1 callersFunctione4m3_scale_byte
E4M3 group-scale byte from a small representable set (exact round-trip).
crates/spark-model/examples/w4a16_gemv_sw_microtest.rs:56
↓ 1 callersFunctione4m3_to_f32
OCP E4M3 (e4m3fn) decode — independent re-derivation of the kernel's LUT.
crates/spark-model/examples/w8a16t_microtest.rs:89
↓ 1 callersFunctione4m3_to_f32
(byte: u8)
crates/spark-model/examples/moe_microtest.rs:87
↓ 1 callersFunctione4m3_to_f32
OCP E4M3 (e4m3fn) decode: 1 sign, 4 exp (bias 7), 3 mantissa; no Inf; S.1111.111 is the only NaN. Independent re-derivation of the kernel's `E4M3_LUT`
crates/spark-model/examples/w8a16_microtest.rs:93
↓ 1 callersFunctione4m3_to_f32
Decode an OCP E4M3 byte (the format `__nv_fp8_e4m3` stores the weight per-group scale in) to f32. Scales are always positive here.
crates/spark-runtime/src/cutlass/tests/mod.rs:189
↓ 1 callersFunctionebnf_class_escape
Escape a single char for use inside an EBNF char class `[^ … ]`.
crates/spark-server/src/grammar/compile_tools.rs:15
↓ 1 callersFunctionebnf_until_close_ladder
Generic "match any run of bytes up to (but not including) the literal `close` delimiter", emitted as a negative-prefix ladder. This is the REUSABLE pr
crates/spark-server/src/grammar/compile_tools.rs:48
↓ 1 callersMethodedge_aux_data
The repeat-edge auxiliary data buffer.
crates/xgrammar/src/fsm/fsm.rs:70
↓ 1 callersFunctionemitFallback
()
site/scripts/gen-stars.mjs:51
↓ 1 callersFunctionemit_responses_prologue
Emit the opening `response.created` and `response.in_progress` SSE frames. Returns the next free sequence number.
crates/spark-server/src/api/responses_stream_finalize.rs:23
↓ 1 callersFunctionempty_chat_request
()
crates/spark-server/src/openai/tests.rs:302
↓ 1 callersMethodempty_separator
Separator for an empty container.
crates/xgrammar/src/schema/indent.rs:106
↓ 1 callersMethodencode_bytes_greedy
Greedy longest-match encode of `bytes` into content token ids. The concatenated token bytes equal `bytes` by construction, so detokenizing the result
crates/xgrammar/src/matcher/completion.rs:161
↓ 1 callersFunctionencode_image
Downscale the fixture to keep base64 payload well under the 32 MB request limit and avoid the p>~600 ViT kernel crash (task #48). Returns a da
tests/vision_sweep.py:101
↓ 1 callersFunctionencode_image_for_atlas
(max_dim: int = 320)
tests/vit_reference_check.py:66
↓ 1 callersMethodend_expr
Build an expr that matches any one of `ends` (`begin`-relative view excluded). Empty strings become `EmptyStr`. A single end is returned directly; mul
crates/xgrammar/src/structural_tag/converter_tags.rs:21
↓ 1 callersMethodend_separator
Separator after the last element of a container.
crates/xgrammar/src/schema/indent.rs:92
↓ 1 callersMethodend_tag
(&self)
crates/spark-server/src/reasoning_parser/parsers.rs:77
↓ 1 callersMethodend_token_id
Resolve the end-of-thinking token ID from the tokenizer. Returns `None` if the end tag doesn't encode to a single token.
crates/spark-server/src/reasoning_parser/mod.rs:49
↓ 1 callersFunctionends_at_sentence_boundary
Detect a sentence boundary at the END of `buffer`. Returns the byte offset (exclusive) of the boundary if the buffer ends with any of: `[.!?]` (with o
crates/spark-server/src/loop_simhash.rs:185
↓ 1 callersMethodensure_int8_weight
Ensure the int8 W4A8 copy of one NVFP4 projection weight exists, building it once via `requant_w_nvfp4_int8` and caching it in `cell`. Reads the NON-t
crates/spark-model/src/layers/dense_ffn.rs:548
↓ 1 callersFunctionensure_yarn_inv_freq
Compute or reuse the shared YaRN inv_freq table (computed once at layer 0, returned by pointer for every subsequent layer).
crates/spark-model/src/mistral_loader/loader_impl/ctx.rs:125
↓ 1 callersMethodentropy_diversity_boost
Temperature boost when entropy has been low for too long.
crates/spark-server/src/adaptive_sampler.rs:182
↓ 1 callersFunctionenvelope_cuts
()
bench/fp8_dgx2_drift/harness/overnight/edit_probe3.py:60
↓ 1 callersMethodep_broadcast_cmd_dispatch
(&self, cmd: u32)
crates/spark-model/src/model/trait_impl/ep_misc.rs:59
↓ 1 callersMethodep_broadcast_cmd_for_seq
(&self, seq_id: u32, cmd: u32)
crates/spark-model/src/model/trait_impl/mod.rs:388
↓ 1 callersMethodep_broadcast_decode_batch_dispatch
Wire-protocol shape for v2 batched decode (`0xFFFFFFE0`): ```text preamble seq_id = 0 (ignored — cmd routes the whole batch) cmd = 0xFFFFFFE0 N (u32
crates/spark-model/src/model/impl_a2.rs:230
↓ 1 callersMethodep_broadcast_tokens_dispatch
(&self, tokens: &[u32])
crates/spark-model/src/model/trait_impl/ep_misc.rs:66
↓ 1 callersMethodep_min_u32
F83 (2026-04-30): all-reduce-min on a single u32 across all EP ranks. Used by the prefix-cache cache-hit handshake so head and worker agree on the sam
crates/spark-model/src/model/impl_a2.rs:151
↓ 1 callersMethodep_recv_seq_and_cmd
Receive a `(seq_id, cmd)` pair from rank 0. Worker-side counterpart of [`Self::ep_broadcast_seq_and_cmd`]. With `v2` enabled the returned `seq_id` is
crates/spark-model/src/model/impl_a2.rs:260
↓ 1 callersMethodep_worker_decode_batch
Worker-side handler for the batched-decode protocol (`0xFFFFFFE0`). Reads `N` (u32), `seq_ids[N]` (bulk broadcast), and `tokens[N]` (bulk broadcast)
crates/spark-model/src/model/impl_a2.rs:495
↓ 1 callersMethodep_worker_dispatch_cmd
Per-command dispatch for [`Self::ep_worker_step_impl`]. The (seq_id, cmd) preamble + slot lookup + shutdown + alloc are already handled by the caller;
crates/spark-model/src/model/impl_a2.rs:372
↓ 1 callersMethodep_worker_step
EP worker step: receive a (seq_id, cmd) preamble from rank 0 and execute the command in the addressed slot. Returns false when the worker should shut
crates/spark-model/src/traits/model.rs:507
↓ 1 callersMethodep_worker_step_dispatch
( &self, slots: &mut [Option<SequenceState>], )
crates/spark-model/src/model/trait_impl/ep_misc.rs:31
↓ 1 callersMethodep_worker_step_impl
EP worker step: receive a (seq_id, cmd) preamble from rank 0 and execute the command in the addressed slot. Returns false when the worker should shut
crates/spark-model/src/model/impl_a2.rs:306
↓ 1 callersMethodeq
(&self, other: &Self)
crates/xgrammar/src/fsm/builder/trie.rs:171
↓ 1 callersFunctionescape_map_char_class
The custom escape map used inside character classes — the C++ `CUSTOM_ESCAPE_MAP` in `HandleCharEscape` (it additionally maps `-`).
crates/xgrammar/src/regex/escape_handlers.rs:27
↓ 1 callersFunctionescape_map_string
The custom escape map used inside EBNF string literals — the C++ `CUSTOM_ESCAPE_MAP` in `HandleEscape`. Maps the escape letter to the literal codepoin
crates/xgrammar/src/regex/escape_handlers.rs:16
↓ 1 callersFunctionescape_to_codepoint
Reverse of [`codepoint_to_escape`]: the escape letter following a backslash -> codepoint. Matches the C++ `kEscapeToCodepoint` map.
crates/xgrammar/src/support/escape.rs:40
← previousnext →2,501–2,600 of 7,049, ranked by callers