MCPcopy Create free account

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

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

↓ 3 callersMethodattend_layer
Run streaming attention for one (layer, sequence). `q_dev` is the full [num_q_heads × head_dim] BF16 query for this step; `seq_block_ids` is the seque
crates/spark-storage/src/high_speed_swap/impl_more.rs:146
↓ 3 callersFunctionavailable
True when `ATLAS_GDN_FLASHINFER=1` AND the library + symbols loaded successfully.
crates/spark-model/src/layers/ops/gdn_flashinfer.rs:80
↓ 3 callersFunctionb2f
(x: bf16)
crates/spark-storage/src/attention_ref.rs:11
↓ 3 callersMethodback
Borrow the last row. # Panics Panics if the array has no rows.
crates/xgrammar/src/support/compact_2d_array.rs:69
↓ 3 callersFunctionbash_wander_hint_inner
Pure threshold/escalation logic for [`bash_wander_hint`], split out so it is testable without the env gate.
crates/spark-server/src/hint_injector.rs:343
↓ 3 callersFunctionbf16
()
crates/spark-model/src/weight_loader/deepseek_v4/compute.rs:23
↓ 3 callersFunctionbf16_bits_to_f32
───────────────────────── number-format helpers ─────────────────────────
crates/spark-model/examples/w8a16t_microtest.rs:74
↓ 3 callersFunctionbf16_bits_to_f32
(b: u16)
crates/spark-model/examples/fp8gemm_microtest.rs:49
↓ 3 callersFunctionbf16_bits_to_f32
───────────────────────── number-format helpers ─────────────────────────
crates/spark-model/examples/moe_microtest.rs:76
↓ 3 callersFunctionbf16_bits_to_f32
(b: u16)
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:72
↓ 3 callersFunctionbf16_bits_to_f32
───────────────────────── number-format helpers ─────────────────────────
crates/spark-model/examples/w8a16_microtest.rs:76
↓ 3 callersFunctionbf16_bytes_to_f32
Convert BF16 bytes (little-endian) to f32.
crates/spark-model/src/weight_map/quant_helpers.rs:274
↓ 3 callersFunctionbf16_to_f32
(b: u16)
crates/spark-model/examples/moe_shared_microtest.rs:39
↓ 3 callersFunctionboundary_token_mask
Read the boundary-token mask. `None` until `set_boundary_token_mask` runs — callers must treat `None` as "no boundary info available".
crates/spark-server/src/scheduler/helpers.rs:408
↓ 3 callersFunctionbudget_experts
MoE-Spec expert budgeting: from a list of (expert_id, weight) pairs, return the smallest prefix (sorted by descending weight) whose cumulative weight
crates/spark-server/src/moe_quality.rs:75
↓ 3 callersFunctionbuild_bf16_ptr_table
Build a device-side FP8 pointer table for one projection across all experts. FP8 experts store 2 arrays (weight + block_scale) per projection, vs NVF
crates/spark-model/src/layers/moe/mod.rs:450
↓ 3 callersFunctionbuild_fp8_ptr_table
( experts: &[Fp8ExpertWeight], proj: impl Fn(&Fp8ExpertWeight) -> &Fp8Weight, gpu: &dyn GpuBackend
crates/spark-model/src/layers/moe/mod.rs:464
↓ 3 callersFunctionbuild_ptr_table
Build a device-side pointer table for one projection across all experts.
crates/spark-model/src/layers/moe/mod.rs:405
↓ 3 callersFunctionbuild_rule_lookahead_info
Single O(N) pass over all rule bodies computing the lookahead facts for every rule. Port of upstream `BuildRuleLookaheadInfo`.
crates/xgrammar/src/grammar/functor/lookahead.rs:84
↓ 3 callersMethodcache_skip_one_proj
( &self, proj: SkipProj, normed: DevicePtr, normed_fp8: DevicePtr, out
crates/spark-model/src/layers/qwen3_attention/prefill/cache_skip_qkv.rs:128
↓ 3 callersFunctioncfg
(dir: &str)
crates/spark-storage/src/high_speed_swap/disk_id_tests.rs:19
↓ 3 callersFunctionchat
(messages, max_tokens)
bench/warm_cold_chat_diff.py:71
↓ 3 callersFunctionchat
Fire one /v1/chat/completions at temp 0. Returns (text, usage).
bench/fp8_dgx2_drift/harness/prefix_partial_hit_repro.py:51
↓ 3 callersFunctioncheck_safe_to_evict
Issue #31: validate that the block being evicted at logical position `evict_pos` has been offloaded by every attention layer. The slide is safe iff `d
crates/spark-model/src/model/block_mgmt.rs:145
↓ 3 callersFunctionchecks
(src)
bench/longcode/analyze.mjs:90
↓ 3 callersMethodclear_visited
Clear the visited set (called at the start of each advance). The queue itself is asserted empty by the caller.
crates/xgrammar/src/earley/queue.rs:36
↓ 3 callersFunctioncmp
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_chunk_delta_h_gateb.rs:60
↓ 3 callersFunctioncmp
(a: np.ndarray, b: np.ndarray)
bench/fp8_dgx2_drift/cosine_analyze.py:35
↓ 3 callersFunctioncmp
(a, b)
bench/fp8_dgx2_drift/cosine_run.py:29
↓ 3 callersFunctioncmp_pair
(a: np.ndarray, b: np.ndarray)
bench/qwen36_fp8_dequant_audit/cosine_three_way.py:35
↓ 3 callersFunctioncompile
(ebnf: &str)
crates/xgrammar/src/matcher/tests/mask_regression_tests.rs:40
↓ 3 callersMethodcompile_builtin_json_grammar
Compile the built-in standard-JSON grammar. Port of the vendored `GrammarCompiler::compile_builtin_json_grammar`.
crates/xgrammar/src/api/compiler.rs:84
↓ 3 callersMethodcompile_json_schema
( &mut self, schema: &str, any_whitespace: bool, indent: Option<i32>,
crates/xgrammar/src/api/compiler.rs:60
↓ 3 callersFunctioncompile_matcher
(info: &TokenizerInfo)
crates/xgrammar/tests/qwen_toolcall_mask.rs:85
↓ 3 callersFunctioncompile_one
Compile one tool to its TSCG stanza (no trailing newline).
crates/spark-server/src/tscg/render.rs:29
↓ 3 callersFunctioncompile_tool_schema
Compile the tool-call schema into a `CompiledGrammar`.
crates/xgrammar/benches/grammar_bench.rs:75
↓ 3 callersFunctioncompile_tools
Compile a tool list into the compact TSCG block. The result replaces the JSON `<tools>` body inside a parser's `system_prompt()`. Output shape (one s
crates/spark-server/src/tscg/mod.rs:73
↓ 3 callersMethodconsume
Advance `cnt` tokens.
crates/xgrammar/src/grammar/parser.rs:78
↓ 3 callersFunctioncontext_hash_combine
Combine a parent context hash with a token chunk to produce a child context hash. Uses FNV-1a for speed (~ns per block). The chain guarantees that two
crates/spark-runtime/src/radix_tree/inner.rs:44
↓ 3 callersFunctionconversation_body
Build the public JSON shape for a conversation snapshot.
crates/spark-server/src/api/conversations.rs:67
↓ 3 callersFunctioncos
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_verify_fused_microtest.rs:93
↓ 3 callersFunctioncos
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_wy_verify_microtest.rs:77
↓ 3 callersFunctioncos_rel
(a, b)
bench/longcode/hang-forensics/gdn_chain_diff_a3b.py:23
↓ 3 callersFunctioncosine
Cosine similarity between two L2-normalised vectors. When the `Embedder` impl returns un-normalised vectors, callers should pre-normalise.
crates/spark-server/src/tool_rag.rs:77
↓ 3 callersFunctioncosine
(a: &[f32], b: &[f32])
crates/spark-runtime/src/cutlass/tests/mod.rs:216
↓ 3 callersFunctioncpu_quant_group
CPU mirror of one group of 16 through the turbo2/turbo3 append kernels: (indices, E4M3 scale byte).
crates/spark-runtime/src/metal_backend/tests/parity_turbo23.rs:33
↓ 3 callersMethodcreate_event
(&self)
crates/spark-model/src/model/trait_impl/mod.rs:405
↓ 3 callersFunctioncuMemsetD32Async
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:44
↓ 3 callersFunctioncuMemsetD8Async
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:42
↓ 3 callersFunctioncuModuleGetFunction
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:49
↓ 3 callersFunctioncuStreamCreate
── streams ───────────────────────────────────────────────────────────
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:66
↓ 3 callersFunctioncublas_bf16_proj
( gpu: &dyn spark_runtime::gpu::GpuBackend, act: spark_runtime::gpu::DevicePtr, fp8w: &crate::weig
crates/spark-model/src/layers/ops/dispatch_proj.rs:248
↓ 3 callersFunctioncublas_gemm_enabled
cuBLASLt GEMM path enabled? (`ATLAS_CUBLAS_GEMM=1`), cached. The hand-written mma.sync projection GEMMs hit only ~30% of the cuBLAS bf16 ceiling on GB
crates/spark-model/src/layers/ops/dispatch_helpers.rs:32
↓ 3 callersFunctioncute_dsl_gdn_holo_0_wrapper
3rdparty_patches/gdn_aot/gdn_holo_0.h:129
↓ 3 callersMethoddebug_kv_per_block
DEBUG (env-gated): per-LOGICAL-BLOCK K/V fingerprint for ONE layer, walking `blocks` in block_table order. Emits (logical_idx, physical_block, k_ssq,
crates/spark-runtime/src/kv_cache/paged_impl.rs:310
↓ 3 callersMethoddec_ref
Decrement reference count. Returns true if block was freed (count hit 0).
crates/spark-runtime/src/kv_cache/paged_impl.rs:161
↓ 3 callersMethoddecode_batch
( &self, _tokens: &[u32], _seqs: &mut [&mut SequenceState], _stream: u64,
crates/spark-model/src/engine/tests.rs:126
↓ 3 callersMethoddecode_batch_compute_main
Shared batched-compute path used by both the head's EP branch and the worker's `0xFFFFFFE0` handler. Contains the per-step embed + KV-block alloc + me
crates/spark-model/src/model/trait_impl/decode_a2.rs:137
↓ 3 callersMethoddecode_marconi_checkpoint
#155 iter3: during decode, save a block-aligned Marconi SSM snapshot at checkpoint-interval boundaries so the NEXT turn's warm prefix-cache hit restor
crates/spark-model/src/traits/model.rs:346
↓ 3 callersMethoddecode_with_special
Decode without stripping special tokens. Use when tool calling is active — some tokenizers register `<tool_call>` as a special token, and skip_special
crates/spark-server/src/tokenizer/chat_impl.rs:91
↓ 3 callersFunctiondeepgemm_post_process_fp8_weight_block
( wq: torch.Tensor, ws: torch.Tensor, quant_block_shape: tuple[int, ...], use_e8m0: bool,
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1004
↓ 3 callersFunctiondefault_rope_theta
()
crates/atlas-core/src/config.rs:466
↓ 3 callersFunctiondense_gemm_bf16_pipelined
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight: &DenseWeight, outp
crates/spark-model/src/layers/ops/gemm_dense.rs:118
↓ 3 callersFunctiondequant_fp8_block_to_bf16
Dequantize FP8 E4M3 block-scaled tensor to BF16 bytes. Layout: - `fp8_data`: FP8 E4M3 weight bytes, row-major [N, K] (N*K bytes total). - `scales`: P
crates/atlas-quant/src/fp8.rs:164
↓ 3 callersFunctiondequant_turbo3_block_to_bf16
Dequant a Turbo3 (3-bit packed) KV block to BF16. Layout per block: data: `bs * nkv * (hd * 3 / 8)` bytes — 8 values packed in 3 bytes. scales: `bs
crates/spark-runtime/src/kv_dequant.rs:144
↓ 3 callersFunctiondequant_turbo8_block_to_bf16
Dequant a Turbo8 (FP8 E4M3 data + per-group **BF16** scales) KV block to BF16. Layout per block (post 2026-04-28 BF16-scale upgrade): data: `bs * n
crates/spark-runtime/src/kv_dequant.rs:200
↓ 3 callersMethoddestroy_graph
Destroy an instantiated graph, freeing resources.
crates/spark-runtime/src/gpu.rs:248
↓ 3 callersFunctiondetect_content_token_loop_normalized_with
Per-sequence override variant of [`detect_content_token_loop_normalized`]. `Some(p)` substitutes the caller's `(min_pattern_size, max_pattern_size, mi
crates/spark-server/src/scheduler/helpers.rs:580
↓ 3 callersFunctiondetect_content_token_loop_with
Per-sequence override variant of [`detect_content_token_loop`]. `Some(p)` uses `p.min_pattern_size`, `p.max_pattern_size`, `p.min_count`; `None` falls
crates/spark-server/src/scheduler/helpers.rs:534
↓ 3 callersFunctiondetect_fuzzy_repetition
Fuzzy repetition detector + tests. Detect intra-response fuzzy repetition loop in the tail of `tokens`. Returns `Some((pattern_len, mis_a, mis_b))` i
crates/spark-server/src/scheduler/repetition.rs:17
↓ 3 callersFunctiondims
()
crates/spark-storage/src/high_speed_swap/disk_id_tests.rs:8
↓ 3 callersFunctiondims
()
crates/spark-storage/tests/predictor_parity.rs:35
↓ 3 callersMethoddims_for_layer
(num_kv_heads, head_dim) for a specific attention layer. Falls back to the global values when no per-layer override is set.
crates/spark-runtime/src/kv_cache.rs:324
↓ 3 callersFunctiondistinct_peers
Compute, for each of the first `n` rows of `csr`, the number of distinct `peer` values and (when exactly one) that peer's id. `distinct[i]` and `sing
crates/xgrammar/src/fsm/simplify.rs:393
↓ 3 callersFunctiondn
(g: &dyn GpuBackend, p: DevicePtr, n_bytes: usize)
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:66
↓ 3 callersFunctiondn
(g: &dyn GpuBackend, p: DevicePtr, n_bytes: usize)
crates/spark-model/examples/gdn_chunk_shapetest.rs:104
↓ 3 callersFunctiondocker_start
(name, model, port, extra, host=None, hf_cache=HF_CACHE_DGX1, max_seq=16384, ep_args="")
scripts/dev/overnight_marathon.py:94
↓ 3 callersFunctiondump_gate_input
Log the gate INPUT (router_in / post-norm hidden) magnitude + first5 at the last token.
crates/spark-model/src/layers/moe/dump.rs:58
↓ 3 callersFunctiondump_moe_out
Dump the final MoE output buffer (= routed + shared blend) at the last token. Called after `moe_batched_blend`.
crates/spark-model/src/layers/moe/dump.rs:259
↓ 3 callersMethoddump_request
Write a `{"kind":"request",...}` entry for an incoming request body. `body` is any serde-serialisable value — typically the `ChatCompletionRequest` /
crates/spark-server/src/request_dumper.rs:77
↓ 3 callersFunctionedge_matches
True if `edge` accepts `value` under `edge_type`.
crates/xgrammar/src/fsm/traversal.rs:52
↓ 3 callersMethodedges_mut
Mutable outgoing edges of `state`.
crates/xgrammar/src/fsm/fsm.rs:65
↓ 3 callersMethodeffective_temperature
Compute effective temperature for this token.
crates/spark-server/src/adaptive_sampler.rs:78
↓ 3 callersFunctionempty_fsm
A one-state FSM accepting only the empty string.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:241
↓ 3 callersFunctionenable_loop_watchdog
Read the per-model loop-watchdog flag set at boot. Defaults to `false` until `set_enable_loop_watchdog` runs (boot order: weights → behavior plumbing
crates/spark-server/src/scheduler/helpers.rs:215
↓ 3 callersFunctionenabled
Whether `ATLAS_MTP_TIMING=1` armed the accumulators (cached once).
crates/spark-server/src/scheduler/mtp_timing.rs:79
↓ 3 callersMethodensure_chunked_prefill_meta
( &self, seq: &'a mut SequenceState, total_tokens: usize, block_size: usize,
crates/spark-model/src/model/impl_a2.rs:61
↓ 3 callersMethodensure_message_start
(&mut self, out: &mut Vec<Event>)
crates/spark-server/src/anthropic/translator.rs:127
↓ 3 callersMethodensure_nvfp4_mmq_weight
Ensure the block_nvfp4 copy of one NVFP4 projection exists (raw repack of the checkpoint's packed E2M1 `[N, K/2]` + E4M3 `[N, K/16]` scales — zero num
crates/spark-model/src/layers/dense_ffn.rs:484
↓ 3 callersMethodensure_q4k_weight
Lazily materialize a Q4_K FFN weight from the NVFP4 source: dequant NVFP4→bf16 (transient buffer, freed) then quantize bf16→GGML block_q4_K (cached fo
crates/spark-model/src/layers/dense_ffn.rs:587
↓ 3 callersFunctionenv_flag_default_on
Resolve a "default-ON, explicit-disable" env flag. `None` (unset) → ON. A falsy value (`"0"` / `"false"`, case-insensitive, trimmed) → OFF. Everything
crates/spark-server/src/scheduler/helpers.rs:261
↓ 3 callersFunctionestimate_has_fp8
Check if the model is predominantly FP8 (>50% of weight bytes are FP8). Sehyo NVFP4 models have a few FP8 scale tensors but the bulk is uint8 (NVFP4 p
crates/spark-runtime/src/weights/loader.rs:277
↓ 3 callersFunctionestimate_load_bytes
Scan safetensor file headers (metadata only, no data loaded) to estimate total GPU bytes this rank will load. Reads only the JSON header from each fil
crates/spark-runtime/src/weights/loader.rs:245
↓ 3 callersMethodevict_lru
(&mut self)
crates/spark-runtime/src/radix_tree/snapshot.rs:107
↓ 3 callersFunctionevict_page_cache
(file: &std::fs::File)
crates/spark-runtime/src/weights.rs:17
↓ 3 callersMethodevict_snapshot_lru
(&self)
crates/spark-runtime/src/radix_tree.rs:182
↓ 3 callersFunctionextract_bash_final_action
F21 (2026-04-26): extract the FINAL meaningful command from a Bash chain. Splits on `&&`, `||`, `;`, newlines. Drops `cd …` boilerplate. Truncates the
crates/spark-server/src/api/sanitizer.rs:279
↓ 3 callersFunctionextract_json_code_blocks
Extract markdown code blocks from text (returns the full ```...``` strings).
crates/spark-server/src/tool_parser/pipeline_helpers.rs:16
↓ 3 callersFunctionextract_verify_logprobs
Extract logprobs for K positions from the BF16 logits buffer on GPU. Copies `[K, vocab_size]` BF16 logits D2H, converts to FP32, and extracts top-K l
crates/spark-server/src/scheduler/logprobs.rs:52
↓ 3 callersFunctionf16s
(b: &[u8])
crates/spark-model/examples/gdn_fla_vs_fi.rs:16
← previousnext →1,101–1,200 of 7,049, ranked by callers