MCPcopy Create free account

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

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

↓ 2 callersFunctionmoe_w4a16_fused_gate_up_k64_n128
( gpu: &dyn GpuBackend, kernel: KernelHandle, a: DevicePtr, gate_packed_ptrs: DevicePtr, g
crates/spark-model/src/layers/ops/moe_grouped_a.rs:293
↓ 2 callersFunctionmoe_w4a16_grouped_gemm_ptrtable_n128
( gpu: &dyn GpuBackend, kernel: KernelHandle, a: DevicePtr, b_packed_ptrs: DevicePtr, b_sc
crates/spark-model/src/layers/ops/moe_grouped_a.rs:183
↓ 2 callersFunctionmoe_weighted_sum_blend
( gpu: &dyn GpuBackend, kernel: KernelHandle, output: DevicePtr, expert_out: DevicePtr, ex
crates/spark-model/src/layers/ops/moe_expert_more.rs:33
↓ 2 callersFunctionmoe_weighted_sum_blend_batch3
( gpu: &dyn GpuBackend, kernel: KernelHandle, output: DevicePtr, // [3, hidden] BF16 e
crates/spark-model/src/layers/ops/moe_expert_more.rs:316
↓ 2 callersMethodms_mla_decode
Batched MLA decode for `c.n` sequences. Writes each sequence's O-projection output into `moe_output[i*h .. (i+1)*h]` and returns the `moe_output` base
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/mla.rs:61
↓ 2 callersMethodms_phase_cache_write
Phase 4: per-token KV cache write.
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/attn.rs:55
↓ 2 callersMethodms_phase_o_proj
Phase 6: gate multiply (when gated) + O projection. Writes to `o_out`. Returns the o_out buffer pointer.
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/attn.rs:197
↓ 2 callersMethodms_phase_paged_decode
Phase 5: build contiguous Q buffer + run BATCHED paged decode. Returns the attn_out buffer pointer for downstream phases.
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/attn.rs:101
↓ 2 callersMethodms_phase_qkv
(&self, c: &MultiSeqCtx<'_>)
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/qkv.rs:19
↓ 2 callersMethodms_phase_rope
Phase 3: per-token RoPE (each sequence has its own position).
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/attn.rs:17
↓ 2 callersMethodnext_access
(&mut self)
crates/spark-runtime/src/radix_tree/inner.rs:83
↓ 2 callersMethodnext_states
Collect every transition target from `from` for `value` along `edge_type` into `targets` (cleared first). Because the compact rows are sorted, this co
crates/xgrammar/src/fsm/compact.rs:88
↓ 2 callersFunctionnorm
(s: &str)
crates/spark-server/src/api/stream_guards.rs:70
↓ 2 callersFunctionnorm_ratio_dev
norm-ratio deviation = |‖a‖/‖b‖ − 1| — SCALE-SENSITIVE (catches a wrong decay scale / dropped edl·S_c carry that cosine misses).
crates/spark-model/examples/gdn_chunk_shapetest.rs:146
↓ 2 callersFunctionnormalize_param_name
Map a model-emitted parameter `key` to its canonical schema property name for the tool `call_name`. SSOT for the camelCase↔snake_case repair used by b
crates/spark-server/src/tool_parser/validation.rs:46
↓ 2 callersMethodnormalize_ssm_states
(&self, seq: &SequenceState, stream: u64)
crates/spark-model/src/model/trait_impl/mod.rs:158
↓ 2 callersMethodnormalize_ssm_states_dispatch
( &self, seq: &SequenceState, stream: u64, )
crates/spark-model/src/model/trait_impl/meta.rs:50
↓ 2 callersMethodnot
The complement of the FSM's language. Only valid for leaf FSMs (no rule references).
crates/xgrammar/src/fsm/dfa_ops.rs:105
↓ 2 callersMethodnote_depth
Note the current sequence depth while measuring. The last value seen before `finalize` becomes the decision's `measured_at_depth`.
crates/spark-server/src/scheduler/mtp_gate.rs:170
↓ 2 callersFunctionnow_unix
()
crates/spark-server/src/response_store.rs:137
↓ 2 callersMethodnum_edges
Total number of edges across all states.
crates/xgrammar/src/fsm/fsm.rs:50
↓ 2 callersMethodnum_free_blocks
Number of free blocks.
crates/spark-runtime/src/kv_cache/paged_impl.rs:203
↓ 2 callersMethodnum_history_steps
(&self)
crates/xgrammar/src/matcher/matcher.rs:340
↓ 2 callersMethodnum_states
Number of states in the logical (sub-)FSM. For a per-rule view this is the spliced-in sub-FSM's count, not the backing `complete_fsm`'s total (upstrea
crates/xgrammar/src/fsm/compact_with_start_end.rs:91
↓ 2 callersMethodnum_states
Total number of states.
crates/xgrammar/src/fsm/with_start_end.rs:67
↓ 2 callersFunctionnumeric_token_mask
Read the numeric-token mask. `None` until `set_numeric_token_mask` runs — callers must treat `None` as "normalized path disabled".
crates/spark-server/src/scheduler/helpers.rs:387
↓ 2 callersFunctionnvfp4_mmq_quantize_act
Quantize bf16 activations [m, k] -> block_fp4_mmq (e2m1 + ue4m3 group-16, ±2 scale search) into `out_y`. One thread per 16-value group; ne0 padded to
crates/spark-model/src/layers/ops/nvfp4_mmq.rs:69
↓ 2 callersMethodoffload_block
Persist a freshly-written KV block to disk and update the predictor's per-block K_lr. K block layout is `[block_size, num_kv_heads, head_dim]` BF16 in
crates/spark-storage/src/high_speed_swap/impl_more.rs:21
↓ 2 callersMethodoffload_block_inner_on_stream
( &mut self, stream: u64, layer: u32, block: u32, k_block_dev: u64,
crates/spark-storage/src/high_speed_swap/impl_more.rs:90
↓ 2 callersFunctionone_request
(model: str)
tests/ab_35b.py:119
↓ 2 callersFunctionop_dump_dir
Returns Some(dir) if ATLAS_OP_DUMP is set, the layer index is allowed, and the op name is allowed. Returns None otherwise (no-op fast path).
crates/spark-model/src/layers/qwen3_attention/op_dump.rs:49
↓ 2 callersMethodopen
Open `path` in append mode, creating it if missing. Errors are surfaced to the caller (startup) so the user knows immediately if the path is bad.
crates/spark-server/src/request_dumper.rs:47
↓ 2 callersMethodopen_file
Open an existing swap file for reading.
crates/spark-runtime/src/kv_spill.rs:57
↓ 2 callersMethodoptional
`self?` — optional.
crates/xgrammar/src/fsm/fsm_ops.rs:39
↓ 2 callersMethodp_bytes
(&self)
crates/spark-storage/src/predictor.rs:58
↓ 2 callersFunctionpack8x3
(idx: &[u8])
crates/spark-runtime/src/metal_backend/tests/parity_turbo23.rs:53
↓ 2 callersFunctionpaged_decode_attn_fp8
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_a.rs:329
↓ 2 callersFunctionparse_any_text
Port of `ParseAnyTextFormat`.
crates/xgrammar/src/structural_tag/parser.rs:180
↓ 2 callersMethodparse_array
Parse an `array`-typed schema. Port of `ParseArray`.
crates/xgrammar/src/schema/parser_collections.rs:13
↓ 2 callersFunctionparse_const_string
Port of `ParseConstStringFormat`.
crates/xgrammar/src/structural_tag/parser.rs:134
↓ 2 callersFunctionparse_dflash_config
Parse a DFlash drafter's `config.json` into a [`DflashConfig`]. Used by `main.rs` after fetching the drafter's HF metadata to size the runtime `BlockD
crates/spark-model/src/weight_loader/dflash_loader.rs:136
↓ 2 callersMethodparse_elements
Shared `elements`-array parsing for sequence/or formats.
crates/xgrammar/src/structural_tag/parser_tags.rs:37
↓ 2 callersFunctionparse_expert_index
Parse expert index from tensor name (e.g. "model.layers.3.mlp.experts.42.gate_proj.weight" → 42).
crates/spark-runtime/src/weights.rs:227
↓ 2 callersMethodparse_hex4
(&mut self)
crates/xgrammar/src/schema/json_value.rs:251
↓ 2 callersMethodparse_integer
Parse a single integer literal token.
crates/xgrammar/src/grammar/parser_quant.rs:102
↓ 2 callersFunctionparse_json_fallback_calls
Parse tool calls from JSON embedded in code blocks or bare JSON. Catches cases where the model writes tool invocations in wrong format. Recognized fo
crates/spark-server/src/tool_parser/pipeline_helpers.rs:41
↓ 2 callersFunctionparse_kernel_toml
( kernel_dir: &std::path::Path, vendor: &str, )
crates/atlas-kernels/build_parse.rs:11
↓ 2 callersMethodparse_macro_value
Parse a single macro value (string, int, bool, identifier, tuple).
crates/xgrammar/src/grammar/parser_macro.rs:62
↓ 2 callersFunctionparse_minimax_xml_calls_all
Extract every `<invoke name="...">…</invoke>` block from a MiniMax envelope's inner content. The streaming detector hands us the body between `<minima
crates/spark-server/src/tool_parser/parse_single_a.rs:229
↓ 2 callersFunctionparse_next_escaped
Parse one escape sequence at the start of `data` (which must begin with `\`). Returns `(codepoint, bytes_consumed)`. Supports the C-escape table, `ad
crates/xgrammar/src/support/escape.rs:116
↓ 2 callersMethodparse_object
Parse an `object`-typed schema. Port of `ParseObject`.
crates/xgrammar/src/schema/parser_collections.rs:112
↓ 2 callersMethodparse_or
Port of `ParseOrFormat`.
crates/xgrammar/src/structural_tag/parser_tags.rs:28
↓ 2 callersFunctionparse_safetensors_header
Parse a safetensors file header, return (header_dict, data_offset).
scripts/preprocess_step3p7_experts.py:74
↓ 2 callersMethodparse_sequence
Port of `ParseSequenceFormat`.
crates/xgrammar/src/structural_tag/parser_tags.rs:16
↓ 2 callersMethodparse_string
(&mut self)
crates/xgrammar/src/schema/json_value.rs:199
↓ 2 callersFunctionparse_tag_style_call
Parse tag-style function call: `<function>NAME</function>` with optional `<parameters>` block. Fallback for models that output XML tag format instead
crates/spark-server/src/tool_parser/parse_single_b.rs:156
↓ 2 callersMethodparse_tags
Parse a list of tags. Shared by triggered/separator formats.
crates/xgrammar/src/structural_tag/parser_tags.rs:103
↓ 2 callersMethodparse_tags_with_separator
Port of `ParseTagsWithSeparatorFormat`.
crates/xgrammar/src/structural_tag/parser_tags.rs:170
↓ 2 callersMethodparse_triggered_tags
Port of `ParseTriggeredTagsFormat`.
crates/xgrammar/src/structural_tag/parser_tags.rs:128
↓ 2 callersFunctionparse_vision_config
(raw: &serde_json::Value)
crates/atlas-core/src/config/parsers/vision.rs:12
↓ 2 callersMethodpartial_rule_for_properties
( &mut self, properties: &[Property], required: &[String], additional: Option<
crates/xgrammar/src/schema/gen_object_props.rs:56
↓ 2 callersFunctionpartial_window
Codepoint window reachable from `partial` with `remaining` UTF-8 continuation bytes still to read.
crates/xgrammar/src/earley/scan_charclass.rs:44
↓ 2 callersMethodpath_for
(&self, id: &str)
crates/spark-server/src/response_store.rs:118
↓ 2 callersMethodpeek_back
Byte one position before `pos`, or `0` at the start.
crates/xgrammar/src/grammar/lexer.rs:67
↓ 2 callersMethodper_layer_block_floats
(&self)
crates/spark-storage/src/predictor.rs:55
↓ 2 callersFunctionper_tensor_dequantize
( tensor: torch.Tensor, inv_scale: float | torch.Tensor )
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:45
↓ 2 callersMethodplus
`self+` — one or more.
crates/xgrammar/src/fsm/fsm_ops.rs:28
↓ 2 callersMethodpredict
Run prediction on `state`. Returns `(scanable, completable)`: `scanable` is true when the state can consume an input byte and must be added to the sca
crates/xgrammar/src/earley/predict.rs:21
↓ 2 callersFunctionprefill_attention_512_sink
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k: DevicePtr, v: DevicePtr,
crates/spark-model/src/layers/ops/prefill_attn_main_a.rs:69
↓ 2 callersFunctionprefill_attention_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k: DevicePtr, v: DevicePtr,
crates/spark-model/src/layers/ops/prefill_attn_main_a.rs:110
↓ 2 callersMethodprefill_attention_paged
( &self, normed: DevicePtr, num_tokens: usize, seq_len_start: usize, k
crates/spark-model/src/layers/qwen3_attention/prefill/paged.rs:14
↓ 2 callersMethodprefill_attention_paged_oproj
( &self, attn_out: DevicePtr, n: u32, h: u32, nq: u32, hd: u32
crates/spark-model/src/layers/qwen3_attention/prefill/paged_oproj.rs:17
↓ 2 callersMethodprefill_attention_with_cache_skip
( &self, normed: DevicePtr, num_tokens: usize, kv_write_start: usize,
crates/spark-model/src/layers/qwen3_attention/prefill/cache_skip.rs:19
↓ 2 callersMethodprefill_b_embed_chunk
( &self, tokens: &[u32], chunk_start: usize, chunk_len: usize, stream:
crates/spark-model/src/model/trait_impl/prefill_b/embed_chunk.rs:14
↓ 2 callersMethodprefill_b_embed_chunk_at
Embed `chunk_len` tokens into `hidden_dst` starting at position 0 of the destination, then apply embedding scale + vision-pad overlay. Used by both th
crates/spark-model/src/model/trait_impl/prefill_b/embed_chunk.rs:31
↓ 2 callersMethodprefill_b_forward_layers
( &self, seq: &mut SequenceState, kv_cache: &mut PagedKvCache, chunk_start: us
crates/spark-model/src/model/trait_impl/prefill_b/forward_layers.rs:18
↓ 2 callersMethodprefill_b_upload_meta
( &self, tokens: &[u32], seq: &mut SequenceState, chunk_start: usize,
crates/spark-model/src/model/trait_impl/prefill_b/upload_meta.rs:25
↓ 2 callersMethodprefill_b_upload_meta_at
Build positions + slots metadata for `proc_count` tokens and upload to the caller-provided `meta_base` device pointer. Used by both the single-stream
crates/spark-model/src/model/trait_impl/prefill_b/upload_meta.rs:60
↓ 2 callersMethodprefill_batch_chunk
Process N concurrent prefill chunks in one forward pass (same weight load amortised across N streams). The default implementation falls back to a per-
crates/spark-model/src/traits/model.rs:121
↓ 2 callersMethodprefill_chunk_dispatch
( &self, tokens: &[u32], seq: &mut SequenceState, chunk_start: usize,
crates/spark-model/src/model/trait_impl/prefill_b.rs:44
↓ 2 callersMethodprefill_gdn_full
( &self, state: &mut dyn LayerState, gdn_bufs: &GdnPrefillBuffers, ctx: &Forwa
crates/spark-model/src/layers/qwen3_ssm/mod.rs:397
↓ 2 callersMethodprefill_inner
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, _s
crates/spark-model/src/layers/qwen3_attention/trait_impl/prefill_inner.rs:18
↓ 2 callersMethodprefill_out_proj_dispatch
( &self, ctx: &ForwardContext, normed_out_buf: DevicePtr, out_proj_buf: Device
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_helper.rs:19
↓ 2 callersMethodprefill_phase3
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, gd
crates/spark-model/src/layers/qwen3_ssm/mod.rs:451
↓ 2 callersMethodprepare_vision_embed
Encode images through the vision encoder and store embeddings for the next prefill. Each tuple is `(pixels: Vec<f32>, grid_h: usize, grid_w: usize)`.
crates/spark-model/src/traits/model.rs:477
↓ 2 callersFunctionpreprocess_image_with_max_pixels
Preprocess an image with an optional max-pixels cap, matching vLLM-style multimodal processor controls. `None` preserves Atlas' historical 1280px long
crates/spark-model/src/vision_preprocess.rs:80
↓ 2 callersMethodpresence_penalty
Presence penalty (OpenAI-style additive).
crates/spark-server/src/api/inference_impl.rs:129
↓ 2 callersMethodprint_rule
Print one rule: `name ::= body [(=lookahead)]`.
crates/xgrammar/src/grammar/printer.rs:39
↓ 2 callersFunctionprocess_detector_content
Common processing for a sanitized content chunk: SimHash semantic guard, token-level loop watchdog, salvage on trip, otherwise emit a `content_chunk`.
crates/spark-server/src/api/chat_stream/handle_token.rs:510
↓ 2 callersFunctionprocess_position_logits
Unified per-position logit post-processing — the SINGLE function both the non-MTP final-decode path (`decode_logits_seq::process_seq_logits`) and the
crates/spark-server/src/scheduler/logit_processors/mod.rs:185
↓ 2 callersFunctionproj_is_native_fp8
True when `{prefix}.weight` is FP8 E4M3 on disk with a 2D block scale (`weight_scale_inv` or 2D `weight_scale`) — i.e. a native FP8 checkpoint project
crates/spark-model/src/weight_loader/qwen35_dense.rs:24
↓ 2 callersMethodproject_kv_block_on_stream
( &self, stream: u64, layer: usize, block_id: usize, k_block: u64,
crates/spark-storage/src/predictor.rs:212
↓ 2 callersMethodproject_q_on_stream
Stream-only variant for production callers that already own a CUDA context (and therefore don't need the test-side `CudaCtx` wrapper).
crates/spark-storage/src/predictor.rs:174
↓ 2 callersMethodpropose
( &self, last_token: u32, target_hidden: DevicePtr, position: usize, n
crates/spark-model/src/layers/mtp_head.rs:256
↓ 2 callersMethodpush_dynamic
Close any pending static run, then append one dynamic segment.
crates/xgrammar/src/compiler/decompose.rs:329
↓ 2 callersMethodpush_one_state_to_check
Push one state as an extra history step that only checks whether it can accept a token — used by the matcher to probe a candidate without running pred
crates/xgrammar/src/earley/parser_api.rs:66
↓ 2 callersFunctionpush_start_open
Open-ended-above patterns starting from `sb` of length `len`.
crates/xgrammar/src/schema/range_regex.rs:218
↓ 2 callersFunctionquantize_act_q8_1
Quantize bf16 activations [m, k] -> q8_1_mmq (DS4 layout) into `out_q8`.
crates/spark-model/src/layers/ops/q4k_mmq.rs:78
↓ 2 callersFunctionquantize_bf16_to_nvfp4
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, packed_out: DevicePtr, sca
crates/spark-model/src/layers/ops/gemm_dense.rs:178
↓ 2 callersFunctionquantize_to_fp8
Quantize a BF16 dense weight to FP8 E4M3 on GPU. Allocates FP8 weight buffer + per-row scale buffer, runs GPU quantization kernel. Called once at mod
crates/spark-model/src/weight_map/quantize_fns.rs:17
← previousnext →1,801–1,900 of 7,049, ranked by callers