MCPcopy Create free account

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

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

↓ 2 callersFunctionsoftmax_f64
(logits: np.ndarray)
bench/fp8_dgx2_drift/c1_final_logit_overlap.py:106
↓ 2 callersFunctionsorted_edges
Sorted edges of complete-FSM state `s` (rule/repeat/char all together).
crates/xgrammar/src/grammar/functor/hash_walk.rs:39
↓ 2 callersFunctionsplit_ref_seqs
Reference sequence count for the split-K split-count computation: the configured max decode batch when set (the serve path always sets it), else the r
crates/spark-model/src/layers/qwen3_attention/mod.rs:92
↓ 2 callersMethodsplitk_workspace
(&self)
crates/spark-runtime/src/buffers.rs:326
↓ 2 callersMethodssm_conv_state_bytes
Per-layer SSM conv state size in bytes (FP32).
crates/atlas-core/src/config/methods.rs:266
↓ 2 callersMethodssm_forward
( &self, normed: DevicePtr, state: &mut SsmLayerState, ctx: &ForwardContext,
crates/spark-model/src/layers/qwen3_ssm/ssm_forward.rs:8
↓ 2 callersMethodssm_h_state_bytes
Per-layer SSM hidden state size in bytes (FP32). Dispatches on SSM architecture: Mamba-2 vs GDN, using config fields.
crates/atlas-core/src/config/methods.rs:255
↓ 2 callersFunctionst
(id: i32)
crates/xgrammar/src/earley/queue.rs:79
↓ 2 callersMethodstage_h_state_ptrs
Stage `h_state_ptrs[batch_size]` device array at the given scratch offset and return the DevicePtr to the staged array. Each entry is the per-stream
crates/spark-model/src/model/trait_impl/prefill_b/h_state_ptrs.rs:38
↓ 2 callersFunctionstamp_id
Stamp an `id` onto an item if it doesn't already have one. Preserves any client-supplied `id`; otherwise mints a deterministic `item_<conv>_<idx>`.
crates/spark-server/src/conversation_store.rs:268
↓ 2 callersMethodstart_indent
Enter a deeper indentation level. Port of `StartIndent`.
crates/xgrammar/src/schema/indent.rs:53
↓ 2 callersMethodstatic_segment_count
(&self)
crates/xgrammar/src/compiler/decompose.rs:230
↓ 2 callersFunctionstep_done
Mark one verify step complete (records `StepTotal` from `step_start`) and emit the periodic summary. Call once per `step_verify_k2` invocation.
crates/spark-server/src/scheduler/mtp_timing.rs:103
↓ 2 callersFunctionstep_mtp
MTP-aware step: bootstrap sequences without drafts, then verify via CUDA graph. Supports K=2 (num_drafts=1) and K=3 (num_drafts=2). `verify_ctx` carr
crates/spark-server/src/scheduler/mtp_step.rs:16
↓ 2 callersMethodstep_tile_on_stream
( &self, stream: u64, q: u64, k_pool: u64, v_pool: u64, tile_b
crates/spark-storage/src/tiled_attention.rs:211
↓ 2 callersFunctionstop_container
()
tests/atlas_bench_comprehensive.py:58
↓ 2 callersFunctionstop_container
()
tests/test_kv_dtype_smoke.py:51
↓ 2 callersMethodstop_legal
Whether a model stop/EOS token is grammar-legal at the current position — i.e. the response may end *here* with parseable output. Used by budget-awar
crates/spark-server/src/grammar/state.rs:282
↓ 2 callersFunctionstream_chat
(url, body, timeout)
scripts/realistic_soak.py:95
↓ 2 callersFunctionstream_one
(url: str, model: str, prompt: str, osl: int)
bench/quick_bench.py:83
↓ 2 callersFunctionstream_request
Send a streaming chat request and populate *result* with timing data. SSE event classification: role chunk — delta has 'role' key, n
bench/bench_concurrency.py:100
↓ 2 callersFunctionstring_value
Extract the string payload of a token value, or `""`.
crates/xgrammar/src/grammar/parser_macro.rs:114
↓ 2 callersFunctionstrip_all_preserving_boundary
Boundary-preserving variant of `s.replace(tag, "")` — strips every occurrence of `tag` and inserts a space at the splice when needed to keep word boun
crates/spark-server/src/api/chat_stream/strip.rs:40
↓ 2 callersFunctionstrip_preserving_boundary
Strip the `[start..end_exclusive)` byte range from `s`, inserting a single space at the splice point when removal would otherwise glue two non-whitesp
crates/spark-server/src/api/chat_stream/strip.rs:22
↓ 2 callersFunctionstrip_stop_sequences
Strip any matching stop sequence from the end of the output text. Per OpenAI spec, returned text must not contain the stop sequence.
crates/spark-server/src/api/inference_impl.rs:355
↓ 2 callersMethodsuppress_tool_call
Whether `<tool_call>` should be suppressed (loop detected).
crates/spark-server/src/api/inference_impl.rs:265
↓ 2 callersFunctionsystem_available_memory_bytes
Read MemAvailable from /proc/meminfo (Linux only). Returns None on non-Linux or if parsing fails.
crates/spark-runtime/src/cuda_backend.rs:145
↓ 2 callersMethodtag_sequence
Build a `Sequence(begin content [end])` expr for one tag, given the already-built content rule id and a `begin` byte string.
crates/xgrammar/src/structural_tag/converter_tags.rs:46
↓ 2 callersMethodtake_grammar_spec
Take the grammar specification for constrained decoding.
crates/spark-server/src/api/inference_impl.rs:295
↓ 2 callersMethodtake_stop_tokens
Per-request stop tokens, consumed by the scheduler.
crates/spark-server/src/api/inference_impl.rs:77
↓ 2 callersFunctiontd_eos
(pairs: &[(&str, i32)])
crates/xgrammar/src/grammar/functor/tag_dispatch_fsm.rs:114
↓ 2 callersFunctiontempdir_like
Creates a unique temp directory without pulling in the tempfile crate.
crates/spark-runtime/tests/fast_weights_parity.rs:105
↓ 2 callersMethodthinking_budget
Thinking token budget (None = unlimited).
crates/spark-server/src/api/inference_impl.rs:217
↓ 2 callersFunctiontime_kernel
( gpu: &dyn GpuBackend, stream: u64, h: KernelHandle, a: DevicePtr, packed: DevicePtr,
crates/spark-model/examples/w4a16_bf16_v2_bench.rs:36
↓ 2 callersFunctiontime_kernel
Time `iters` back-to-back launches of `f` on `stream` via CUDA events (GPU- only, no host sync between launches). Returns mean ms/iter.
crates/spark-model/examples/gemv_fp4_vs_fp8_microtest.rs:39
↓ 2 callersFunctiontime_kernel_fp8
fp8_gemm_t_m128: BF16 A x FP8 B (E4M3), m16n8k32. Args: (A, B_fp8, C, M, N, K).
crates/spark-model/examples/w4a16_bf16_v2_bench.rs:87
↓ 2 callersFunctiontime_kernel_m64
M_TILE=64 kernels (w4a16_gemm_t / _k64): grid.y = M/64. Same arg list as time_kernel.
crates/spark-model/examples/w4a16_bf16_v2_bench.rs:124
↓ 2 callersFunctiontime_scan
( g: &dyn GpuBackend, k_wu: KernelHandle, k_scan: KernelHandle, c: &Case, vt: u32, ite
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:268
↓ 2 callersFunctiontime_scan
Kernel-only timing of the scan (W/U pre-staged once; we don't read S back so state corruption across iters is fine for pure timing). 8 warmup + `iters
crates/spark-model/examples/gdn_chunk_shapetest.rs:337
↓ 2 callersMethodtimeout_at
Request timeout deadline. None = no timeout.
crates/spark-server/src/api/inference_impl.rs:319
↓ 2 callersMethodtoken
(self)
crates/xgrammar/src/compiler/coalesce.rs:75
↓ 2 callersFunctiontokenise
(s: &str)
crates/spark-server/src/loop_detector.rs:301
↓ 2 callersFunctiontokenize_stop_sequences
Tokenize stop sequence strings into single-token stop IDs. Multi-token stop sequences are logged but excluded (require string matching).
crates/spark-server/src/api/inference_impl.rs:329
↓ 2 callersMethodtokenizer_info
The tokenizer this compiler is bound to.
crates/xgrammar/src/compiler/compiler.rs:270
↓ 2 callersFunctiontokenizer_json
()
crates/xgrammar/tests/qwen_toolcall_mask.rs:25
↓ 2 callersFunctiontool_eos_escape_enabled
Fix A (2026-06-05, baked default ON): lift EOS suppression after a completed tool call in auto mode (is_terminated() never becomes true there). This i
crates/spark-server/src/scheduler/helpers.rs:273
↓ 2 callersFunctiontool_response_hard_stop
()
crates/spark-server/src/scheduler/helpers.rs:48
↓ 2 callersFunctiontool_response_stop_enabled
Fix B (2026-06-05, baked default ON): hard-stop on the <tool_response> control token (a token the model must never generate). Default ON for the same
crates/spark-server/src/scheduler/helpers.rs:287
↓ 2 callersMethodtools_present
#192: whether the request declared tools (gates multi-tool-call continuation — `</tool_call>` is not a hard stop when true).
crates/spark-server/src/api/inference_impl.rs:257
↓ 2 callersMethodtop_k
Top-k sampling parameter.
crates/spark-server/src/api/inference_impl.rs:85
↓ 2 callersMethodtop_logprobs
Number of top logprobs to return per token. None = disabled.
crates/spark-server/src/api/inference_impl.rs:311
↓ 2 callersMethodtop_n_sigma
Top-n-sigma sampling parameter.
crates/spark-server/src/api/inference_impl.rs:101
↓ 2 callersMethodtop_p
Top-p sampling parameter.
crates/spark-server/src/api/inference_impl.rs:93
↓ 2 callersFunctiontopk
(logits: np.ndarray, k: int)
bench/fp8_dgx2_drift/c1_final_logit_overlap.py:92
↓ 2 callersMethodtotal_bytes
Total bytes across all weight tensors on the GPU.
crates/spark-runtime/src/weights.rs:136
↓ 2 callersMethodtranspose_for_prefill_hybrid
Hybrid-layout transpose pass — analogue of `transpose_for_prefill_unified` that **keeps** the untransposed originals so decode + MTP verify dispatch c
crates/spark-model/src/layers/moe/helpers_a.rs:151
↓ 2 callersMethodtranspose_for_prefill_impl
( &mut self, gpu: &dyn GpuBackend, config: &atlas_core::config::ModelConfig, i
crates/spark-model/src/layers/moe/helpers_a.rs:53
↓ 2 callersMethodtranspose_for_prefill_unified_inner
Phased build of the transposed weight set. When `keep_originals` is true (hybrid-layout mode), Phase B and Phase D frees are skipped so decode paths s
crates/spark-model/src/layers/moe/helpers_a.rs:164
↓ 2 callersFunctiontranspose_nvfp4_packed_kton
Transpose an Atlas-packed NVFP4 weight from the checkpoint/hand-kernel `[K/2, N]` layout into CUTLASS's `[N, K/2]` layout (the byte order the native N
crates/spark-runtime/src/cutlass/pack.rs:82
↓ 2 callersMethodtry_alloc_block
Try to allocate a free block without failing. Returns None if exhausted.
crates/spark-runtime/src/kv_cache/paged_impl.rs:148
↓ 2 callersMethodtry_byte
Advance by `byte` and recurse. Keeps the byte in `out` (parser left advanced) iff the recursion reaches a completion; otherwise rolls the byte back. R
crates/xgrammar/src/matcher/completion.rs:122
↓ 2 callersMethodtry_consume
Refill based on `rate_per_sec`, then try to debit `cost`. Returns true if the debit succeeded. Caps at `burst`.
crates/spark-server/src/rate_limiter.rs:124
↓ 2 callersMethodtry_dflash_capture
DFlash 5-layer hidden capture. Called inside each per-layer loop after `layer.decode(...)` returns. No-op when DFlash is disabled (the buffer is `None
crates/spark-model/src/model/impl_b3.rs:250
↓ 2 callersMethodtry_dflash_prefill_capture_layer
DFlash prefill capture: copy `proc_count` tokens × hidden_size BF16 from `self.buffers.hidden_states()` (filled by the just-completed prefill layer) i
crates/spark-model/src/model/impl_b3.rs:156
↓ 2 callersMethodtuple_of_strings
Decode a tuple-of-non-empty-strings macro value.
crates/xgrammar/src/grammar/parser_tagdispatch.rs:104
↓ 2 callersMethodturbo4_data_bytes
Turbo4 data section bytes (same layout as NVFP4: 4-bit packed).
crates/spark-runtime/src/kv_cache.rs:372
↓ 2 callersFunctionu16le
(v: &[u16])
crates/spark-model/examples/moe_silu_down_microtest.rs:70
↓ 2 callersFunctionu16s_to_le
(v: &[u16])
crates/spark-model/examples/fp4_mma_microproof.rs:54
↓ 2 callersFunctionu16s_to_le
(v: &[u16])
crates/spark-model/examples/dense_gemm_microtest.rs:95
↓ 2 callersFunctionu32_slice_to_bytes
(values: &[u32])
crates/spark-runtime/src/metal_backend/tests/helpers.rs:31
↓ 2 callersFunctionu64s_le
(v: &[u64])
crates/spark-model/examples/moe_microtest.rs:115
↓ 2 callersFunctionub
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/rope_microtest.rs:28
↓ 2 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/w8a16t_microtest.rs:68
↓ 2 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/fp8gemm_microtest.rs:44
↓ 2 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/moe_microtest.rs:70
↓ 2 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/fp4_mma_microproof.rs:37
↓ 2 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/dense_gemm_microtest.rs:69
↓ 2 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/w8a16_microtest.rs:70
↓ 2 callersFunctionup_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_chunk_delta_h_gateb.rs:34
↓ 2 callersFunctionup_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_strided_norm_microtest.rs:49
↓ 2 callersFunctionup_bf16
(gpu: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_recompute_wu_gateb.rs:35
↓ 2 callersFunctionup_f32
(gpu: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_recompute_wu_gateb.rs:41
↓ 2 callersMethodupdate_dflash_ctx_len_after_prefill
After prefill completes, advance the seq's DFlash `ctx_len` to `chunk_start + proc_count` so the drafter sees all captured prompt positions on the fir
crates/spark-model/src/model/impl_b3.rs:212
↓ 2 callersMethodupdate_lookahead_assertion_named
Set the lookahead-assertion expr id of the rule named `rule_name`.
crates/xgrammar/src/grammar/builder_rules.rs:111
↓ 2 callersMethodupdate_metadata
Merge `patch` into the conversation's metadata. Returns the updated snapshot; None when the id doesn't exist / is expired.
crates/spark-server/src/conversation_store.rs:154
↓ 2 callersMethodupdate_rule_body_named
Set the body of the rule named `rule_name`.
crates/xgrammar/src/grammar/builder_rules.rs:84
↓ 2 callersFunctionupload_bytes
(gpu: &dyn GpuBackend, bytes: &[u8])
crates/spark-model/examples/fp8gemm_microtest.rs:97
↓ 2 callersFunctionupload_bytes
(gpu: &dyn GpuBackend, bytes: &[u8])
crates/spark-model/examples/fp4_mma_microproof.rs:57
↓ 2 callersFunctionupload_bytes
───────────────────────── upload helpers (via GpuBackend) ─────────────────
crates/spark-model/examples/dense_gemm_microtest.rs:90
↓ 2 callersFunctionupload_i32
(dst: u64, host: &[i32], stream: u64)
crates/spark-storage/tests/tiled_attention_parity.rs:56
↓ 2 callersMethodv_is_rotated
V side stored in the WHT-rotated basis (gates V rotation at append and the iWHT(out) decode bookend).
crates/spark-model/src/forward/qwen3_5/mod.rs:260
↓ 2 callersFunctionvalid_token_ids
The valid JSON as a sequence of single-byte token ids.
crates/xgrammar/benches/grammar_bench.rs:92
↓ 2 callersMethodvalidate
Validate cross-field invariants. Returns `Ok` only if the config is internally consistent and the directory is plausibly usable.
crates/spark-storage/src/config.rs:37
↓ 2 callersFunctionvalidate_token_ids
Fail-fast validation that every supplied token ID is within the model vocabulary. The tokenizer is the authoritative source of vocab size (SSOT); an O
crates/spark-server/src/api/completions.rs:92
↓ 2 callersFunctionvalues_for
(runs: list[dict[str, Any]], metric_path: str)
bench/fp8_dgx2_drift/harness/compare_tiers.py:89
↓ 2 callersFunctionvarlen_prefill_enabled
VARLEN batched prefill enabled? (`ATLAS_PREFILL_VARLEN=1`). Co-admits varied-length concurrent prefills into one forward (cu_seqlens geometry, FlashIn
crates/spark-model/src/model/trait_impl/prefill_b/batch_kernel/eligible.rs:128
↓ 2 callersFunctionvisit
Construct the NFA for a single IR node.
crates/xgrammar/src/fsm/builder/regex_ir.rs:79
↓ 2 callersMethodvisit_choices_
Returns a list of new choice expr ids.
crates/xgrammar/src/grammar/functor/structure_normalizer.rs:102
↓ 2 callersMethodvisit_lookahead
(&mut self, id: i32)
crates/xgrammar/src/grammar/functor/structure_normalizer.rs:54
↓ 2 callersMethodvisit_tag
Port of `VisitSub(TagFormat)`.
crates/xgrammar/src/structural_tag/converter_tags.rs:63
← previousnext →2,001–2,100 of 7,049, ranked by callers