MCPcopy Create free account

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

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

↓ 3 callersFunctionunescape_string
Decode an escaped grammar-literal byte string into its UTF-8 form. Convenience helper layered on [`parse_next_utf8_or_escaped`]: walks the whole inpu
crates/xgrammar/src/support/escape.rs:199
↓ 3 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/inferspark_attn_microtest.rs:37
↓ 3 callersFunctionup_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_split4_microtest.rs:30
↓ 3 callersFunctionup_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_wy_verify_microtest.rs:51
↓ 3 callersFunctionup_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_chunk_delta_h_gateb.rs:40
↓ 3 callersFunctionup_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_split4_microtest.rs:36
↓ 3 callersFunctionup_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_wy_verify_microtest.rs:57
↓ 3 callersFunctionupdate_tool_param_state
(a: &mut ActiveSeq, tok: u32)
crates/spark-server/src/scheduler/emit_step.rs:610
↓ 3 callersFunctionupload
(gpu: &dyn GpuBackend, b: &[u8])
crates/spark-model/examples/inferspark_attn_microtest.rs:51
↓ 3 callersFunctionupload
(gpu: &dyn GpuBackend, bytes: &[u8])
crates/spark-model/examples/w4a16_gemv_sw_microtest.rs:61
↓ 3 callersFunctionupload_bf16
(dst: u64, host: &[bf16], stream: u64)
crates/spark-storage/tests/tiled_attention_parity.rs:53
↓ 3 callersFunctionupload_bytes
───────────────────────── upload helpers (via GpuBackend) ─────────────────
crates/spark-model/examples/w8a16t_microtest.rs:103
↓ 3 callersFunctionupload_bytes
───────────────────────── upload helpers (via GpuBackend) ─────────────────
crates/spark-model/examples/w8a16_microtest.rs:109
↓ 3 callersMethodv_block_bytes_for_layer
V-side bytes per block for a specific attention layer. For symmetric dtypes this equals `k_block_bytes_for_layer`.
crates/spark-runtime/src/kv_cache.rs:304
↓ 3 callersFunctionvarying_template_stream
12-token template `[1..=6, <num>, 7..=11]`; `num` varies each repeat so the exact detector cannot match, but normalization collapses every repeat to a
crates/spark-server/src/scheduler/helpers_tests.rs:215
↓ 3 callersMethodvisit_expr
Visit an expression, dispatching on its type.
crates/xgrammar/src/grammar/functor/mutator.rs:105
↓ 3 callersMethodvisit_sequence_
Returns a list of new sequence element expr ids (flattened).
crates/xgrammar/src/grammar/functor/structure_normalizer.rs:161
↓ 3 callersFunctionvisit_tag
Port of `StructuralTagAnalyzer::VisitSub(TagFormat*)`.
crates/xgrammar/src/structural_tag/analyzer.rs:157
↓ 3 callersMethodw4a16_gemm_m128_dispatch
( &self, gpu: &dyn GpuBackend, input: DevicePtr, weight: &crate::weight_map::Q
crates/spark-model/src/layers/qwen3_attention/prefill_weights.rs:19
↓ 3 callersFunctionw4a16_gemv_qg
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight: &QuantizedWeight,
crates/spark-model/src/layers/ops/quant_dispatch.rs:218
↓ 3 callersFunctionw8a16_gemm_t
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight_t: DevicePtr, // [
crates/spark-model/src/layers/ops/gemm_quant.rs:606
↓ 3 callersFunctionwrap
Wrap a raw word buffer into a `TokenBitmask` for assertions.
crates/xgrammar/src/matcher/tests.rs:97
↓ 3 callersMethodwrite_block
Write K and V data for one block at one layer from host to GPU.
crates/spark-runtime/src/kv_cache/paged_impl.rs:469
↓ 3 callersFunctionwrite_f32
(path: pathlib.Path, arr: np.ndarray, label: str)
bench/fp8_dgx2_drift/vllm_layer_dump.py:50
↓ 3 callersFunctionwrite_f32
(path: pathlib.Path, arr: np.ndarray, label: str)
bench/qwen36_fp8_dequant_audit/hf_dequant_forward.py:31
↓ 3 callersFunctionxml_tool_calling_to_ebnf
Validate that `schema` is a tool-calling object schema and convert it with the given XML `format`. Shared by the three XML helpers.
crates/xgrammar/src/schema/api.rs:48
↓ 3 callersMethodzero_prefill_essentials
Zero only buffers that carry residual state between requests. During prefill, every buffer except hidden_states and residual is fully overwritten bef
crates/spark-runtime/src/buffers.rs:444
↓ 2 callersMethod_forward_core
Core conv1d + recurrent attention (standard path). Args: mixed_qkv: packed [q, k, v] projection (num_tokens, qkv_dim)
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:1047
↓ 2 callersFunction_has_repetition_loop
Detect pathological repetition loops like 'a a a a a a…' or 'Tidal ocean blue, Tidal ocean blue, Tidal ocean blue…'. Checks multiple n-gram si
tests/single_gpu_suite.py:48
↓ 2 callersFunction_last_row
Last prompt-token row. vLLM prefill flattens to [num_tokens, hidden].
bench/fp8_dgx2_drift/vllm_layer_dump.py:56
↓ 2 callersFunction_last_tok_from_flat_BL32x128
(t)
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:77
↓ 2 callersFunction_load_events
(path: pathlib.Path)
bench/fp8_dgx2_drift/harness/followed_directions.py:152
↓ 2 callersFunction_load_fixture
Load a test fixture file from scripts/fixtures/.
scripts/test_coherence.py:800
↓ 2 callersFunction_maybe_pad_fp8_weight
Pad the weight tensor. This is an optimization on ROCm platform, which can benefit from tensors located far enough from one another in memory
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1105
↓ 2 callersMethod_output_projection
Part 3: RMSNormGated + output linear projection. The RMSNormGated + quant sequence is eligible for fusion by the compilation pass whe
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:665
↓ 2 callersFunction_post
(url, body, timeout=300.0)
bench/cold_warm_ttft.py:26
↓ 2 callersMethod_quantize_group_native
( self, x: torch.Tensor )
bench/fp8_dgx2_drift/vllm_src/input_quant_fp8.py:228
↓ 2 callersMethod_setup_kernel
( self, layer: FusedMoE, w13: torch.Tensor, w2: torch.Tensor, w13_scal
bench/fp8_dgx2_drift/vllm_src/fp8.py:741
↓ 2 callersMethod_stream
POST with stream=True, return list of parsed SSE data objects. The [DONE] sentinel is represented as {"_done": True}.
scripts/dev/coherence_test.py:58
↓ 2 callersFunction_strip_thinking
Remove <think>...</think> and [THINK]...[/THINK] blocks so we can keyword-check the visible portion of a reasoning-model response. Also strips
tests/single_gpu_suite.py:219
↓ 2 callersMethod_warmup_prefill_kernels
Warm up GDN prefill kernels during V1 profiling. During V1 profile runs, ``_forward_core`` returns early because ``attn_metadata`` is
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:883
↓ 2 callersMethodadd_character_class
Add a `CharacterClass` expr, e.g. `[a-z]` / `[^a-z]`.
crates/xgrammar/src/grammar/builder.rs:174
↓ 2 callersMethodadd_empty_rule_with_hint
Add a body-less rule with a unique name derived from `name_hint`.
crates/xgrammar/src/grammar/builder_rules.rs:63
↓ 2 callersMethodadd_right_recursion_parents
Right-recursion: copy the matching ancestors of `src_rule_id` recorded at completable row `src_pos` forward into the current (last) completable row, t
crates/xgrammar/src/earley/predict.rs:92
↓ 2 callersMethodadjacency
Materialize the adjacency rows as `Vec<Vec<FsmEdge>>` so the shared traversal helpers can run. Edges are already sorted.
crates/xgrammar/src/fsm/compact.rs:80
↓ 2 callersMethodadvance
Advance the parser one byte; returns whether it was accepted.
crates/xgrammar/src/compiler/mask_gen/mod.rs:133
↓ 2 callersMethodadvance_bytes_as_step
Advance the parser over `bytes` as a single rollback step. On a rejected byte the bytes already consumed are rolled back so the matcher state is unch
crates/xgrammar/src/matcher/matcher.rs:290
↓ 2 callersMethodafter_verify
( &self, num_accepted: usize, state: &mut dyn ProposerState, _stream: u64,
crates/spark-model/src/layers/mtp_head.rs:327
↓ 2 callersFunctionall_close_1d
(x: torch.Tensor)
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:53
↓ 2 callersMethodall_reduce_2rank
2-rank all-reduce using send/recv + local BF16 add. For world_size == 2: 1. Group send+recv (one RDMA write each direction) 2. Local BF16 add: `ptr[i
crates/spark-comm/src/nccl_backend.rs:341
↓ 2 callersMethodall_sets
Collect every disjoint set. Each inner vector is sorted ascending, and the outer vector is sorted by each set's smallest element — deterministic outp
crates/xgrammar/src/support/union_find.rs:117
↓ 2 callersFunctionanalyze_bitmask
(mask: &BitmaskSlice<'_>)
crates/xgrammar/src/compiler/coalesce.rs:105
↓ 2 callersMethodap
(&self)
crates/spark-model/src/mistral_loader/loader_impl/ctx.rs:118
↓ 2 callersFunctionapi_test
(port, prompt, max_tokens=150, timeout_s=120, host=None)
scripts/dev/overnight_marathon.py:118
↓ 2 callersFunctionappend_repaired_member
(out: &mut String, member: &str, first: &mut bool)
crates/spark-server/src/tool_parser/helpers_a.rs:302
↓ 2 callersMethodapply
(&self, state: &mut PassState<'_>)
crates/spark-server/src/tool_parser/pipeline.rs:136
↓ 2 callersMethodapply_chat_template_openai
Apply the OpenAI-variant template (if available), falling back to the default. The OpenAI variant gates historical `<think>` wrappers on enable_thinki
crates/spark-server/src/tokenizer/chat_impl.rs:203
↓ 2 callersFunctionapply_evicted_blocks
Apply an `EvictedBlocks` result to the production cache and the HSS orchestrator. Physical blocks return to the free list; disk-block IDs get `dec_dis
crates/spark-model/src/model/block_mgmt.rs:52
↓ 2 callersFunctionapply_rate_headers
( headers: &mut axum::http::HeaderMap, d: &rate_limiter::RateDecision, )
crates/spark-server/src/main_modules/middleware.rs:202
↓ 2 callersFunctionargmax_bf16
Legacy: argmax over BF16 values (still used by argmax_on_device fallback).
crates/spark-runtime/src/sampler.rs:493
↓ 2 callersFunctionargmax_immune
Per-position immunity check for [`PenaltyGate::ReduceOnly`]: the argmax token is untouched by reduce-only penalties iff it is not in the scoped histor
crates/spark-server/src/scheduler/fast_greedy.rs:78
↓ 2 callersMethodas_any_mut
(&mut self)
crates/spark-model/src/layers/dflash_head.rs:156
↓ 2 callersFunctionassemble_layer
( layer_idx: usize, layer_prefix: &str, // When true, load ALL experts locally regardless of EP sh
crates/spark-model/src/weight_loader/deepseek_v4/assemble.rs:89
↓ 2 callersFunctionassert_mask_matches_parser
Assert that, at the state reached by `prefix`, the filled bitmask agrees with `accept_token` for EVERY token id in the vocabulary.
crates/xgrammar/src/matcher/tests/mask_regression_tests.rs:48
↓ 2 callersFunctionatlas_gdn_load
3rdparty_patches/gdn_aot/gdn_shim.cpp:13
↓ 2 callersFunctionatlas_gdn_prefill_packed
3rdparty_patches/gdn_aot/gdn_shim.cpp:46
↓ 2 callersMethodattention_forward
( &self, normed: DevicePtr, seq_len: usize, block_table: &mut Vec<u32>,
crates/spark-model/src/layers/qwen3_attention/decode/attention_forward.rs:20
↓ 2 callersMethodattention_forward_v4
Run the DeepSeek-V4-Flash decode chain. Returns the O-projection output (`ctx.buffers.qkv_output()`). Visibility is widened to the whole `qwen3_atten
crates/spark-model/src/layers/qwen3_attention/decode/attention_forward_v4.rs:24
↓ 2 callersFunctionavailable_targets
All compiled kernel targets and their PTX module sets. Returns one entry per target compiled at build time. Single-target builds return one entry; wi
crates/atlas-kernels/src/lib.rs:359
↓ 2 callersFunctionbase
(extra: &str)
crates/spark-server/src/openai/chat_request.rs:471
↓ 2 callersMethodbegin_step_on_stream
(&self, stream: u64, num_seqs: usize)
crates/spark-storage/src/tiled_attention.rs:127
↓ 2 callersFunctionbench_cufile
( cufile: &cufile_sys::CuFile, fd: RawFd, file_bytes: u64, dev: &DeviceBuffer, io_bytes: u
crates/spark-storage/src/bench.rs:54
↓ 2 callersFunctionbench_io_uring
( ctx: &CudaCtx, fd: RawFd, file_bytes: u64, pinned: &PinnedBuffer, dev: &DeviceBuffer,
crates/spark-storage/src/bench.rs:109
↓ 2 callersFunctionbench_posix
( ctx: &CudaCtx, fd: RawFd, file_bytes: u64, pinned: &PinnedBuffer, dev: &DeviceBuffer,
crates/spark-storage/src/bench.rs:167
↓ 2 callersFunctionbf16_absmax
Compute max absolute value of a BF16 buffer into a device-side f32. Used for FP8 KV cache online scale calibration: accumulates max |K| and max |V| d
crates/spark-model/src/layers/ops/prefill_attn_b.rs:66
↓ 2 callersFunctionbf16_bits_to_f32
───────────────────────── bf16 helpers ─────────────────────────
crates/spark-model/examples/w4a16_bf16_microtest.rs:59
↓ 2 callersFunctionbf16_bits_to_f32
(b: u16)
crates/spark-model/examples/fp4_mma_microproof.rs:50
↓ 2 callersFunctionbf16_bits_to_f32
───────────────────────── bf16 helpers ─────────────────────────
crates/spark-model/examples/w4a16_bf16_v2_microtest.rs:59
↓ 2 callersFunctionbf16_bits_to_f32
(b: u16)
crates/spark-model/examples/gdn_regresident_microtest.rs:46
↓ 2 callersFunctionbf16_gemm_act_weight_t
Row-major `out[M,N] = act[M,K] @ weight[N,K]ᵀ`, all BF16 — the standard projection GEMM (activation × transposed weight). Maps to cuBLASLt's column-ma
crates/spark-runtime/src/cublaslt.rs:155
↓ 2 callersFunctionbf16_to_f32
(lo: u8, hi: u8)
crates/spark-model/src/engine/tests.rs:24
↓ 2 callersMethodbind_gpu_to_thread
(&self)
crates/spark-model/src/engine/tests.rs:139
↓ 2 callersFunctionblank
Blank bytes [start, end) by char: non-newline chars → ASCII spaces of the same byte length, newlines preserved. Char boundaries taken from the origina
crates/spark-server/src/openai/annotations.rs:226
↓ 2 callersMethodblock_bytes
Bytes per block per layer (K or V, not both), using the uniform dtype.
crates/spark-runtime/src/kv_cache.rs:318
↓ 2 callersMethodblock_bytes_kv_all_layers
Sum of K+V block bytes across all layers for one block slot. Accounts for mixed dtypes when layer_dtypes is set AND asym K/V splits.
crates/spark-runtime/src/kv_cache.rs:349
↓ 2 callersMethodblock_stride_bytes
Block stride in bytes (for NVFP4 kernels), using the uniform dtype.
crates/spark-runtime/src/kv_cache/paged_impl.rs:363
↓ 2 callersFunctionbuild
(ctx: &CudaCtx, seed: u64)
crates/spark-storage/tests/cuda_graph_capture.rs:62
↓ 2 callersFunctionbuild_ep2_serve_cmd
Multi-rank serve cmd (EP=2, TP=2, or TP+EP overlapping). `--network host` is required for NCCL discovery. The legacy name is preserved for back-co
tests/run_all_models.py:536
↓ 2 callersFunctionbuild_inputs
(seed: u64)
crates/spark-storage/tests/tiled_attention_parity.rs:157
↓ 2 callersFunctionbuild_linear_attention_fp8
( layer_idx: usize, store: &WeightStore, lp: &str, gpu: &dyn GpuBackend, _variant: Nvfp4Va
crates/spark-model/src/weight_loader/qwen35/load_layers/linear_attn_arms.rs:120
↓ 2 callersFunctionbuild_long_prompt
(target_chars)
tests/atlas_bench_comprehensive.py:117
↓ 2 callersFunctionbuild_messages
(nonce, filler, user2)
bench/fp8_dgx2_drift/harness/prefix_partial_hit_repro.py:101
↓ 2 callersFunctionbuild_mlx_fixture
Build an MLX-int8 fixture (synthetic packed weights, scales, biases, + the dequantised reference). Returned as raw little-endian byte blobs so callers
crates/spark-runtime/src/metal_backend/tests/helpers.rs:61
↓ 2 callersFunctionbuild_model
( args: &cli::ServeArgs, config: &ModelConfig, store: &spark_runtime::weights::WeightStore, gp
crates/spark-server/src/main_modules/serve_phases/build.rs:31
↓ 2 callersFunctionbuild_prefill_in_progress
( prompt_tokens: Arc<Vec<u32>>, session_hash: u64, seq: SequenceState, chunk_offset: usize,
crates/spark-server/src/scheduler/prefill_a_step_params.rs:25
↓ 2 callersFunctionbuild_prompt
Build a prompt with approximately target_tokens of filler text.
scripts/dev/ssm_context_profile_v2.py:68
↓ 2 callersFunctionbuild_ptr_table
( experts: &[NemotronExpertWeight], proj: impl Fn(&NemotronExpertWeight) -> &QuantizedWeight, gpu:
crates/spark-model/src/layers/nemotron_moe.rs:414
↓ 2 callersFunctionbuild_ptr_table_from_weights
( weights: &[QuantizedWeight], gpu: &dyn GpuBackend, )
crates/spark-model/src/layers/nemotron_moe.rs:384
↓ 2 callersFunctionbuild_regex
Parse `regex` and build its NFA.
crates/xgrammar/src/fsm/builder/regex.rs:24
↓ 2 callersFunctionbuild_request
Return (body, kind, think). body is a full chat-completions payload.
scripts/realistic_soak.py:61
← previousnext →1,401–1,500 of 7,049, ranked by callers