Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Avarok-Cybersecurity/atlas
/ functions
Functions
7,049 in github.com/Avarok-Cybersecurity/atlas
⨍
Functions
7,049
◇
Types & classes
847
↓ 1 callers
Method
parse_array
(&mut self)
crates/xgrammar/src/schema/json_value.rs:176
↓ 1 callers
Function
parse_bare_identifier_json_calls
Scan text for `identifier{json}` patterns and promote them to tool calls. Matches bare function calls where the model dropped the format envelope: `I
crates/spark-server/src/tool_parser/helpers_a.rs:153
↓ 1 callers
Function
parse_behavior
Parse `[behavior]` from MODEL.toml. Absent table or parse error → `ParsedBehavior::default()`.
crates/atlas-kernels/build_parse.rs:184
↓ 1 callers
Method
parse_bool
(&mut self)
crates/xgrammar/src/schema/json_value.rs:262
↓ 1 callers
Method
parse_char_class
Parse a character class `[...]` into a token stream.
crates/xgrammar/src/grammar/lexer_scan.rs:62
↓ 1 callers
Method
parse_char_class
Parse a `[...]` character class into a `CharacterClass` expr.
crates/xgrammar/src/grammar/parser_element.rs:28
↓ 1 callers
Method
parse_const
Parse a `const` schema into a [`SpecKind::Const`].
crates/xgrammar/src/schema/parser_composite.rs:15
↓ 1 callers
Function
parse_csv
(env: &str)
crates/spark-model/src/layers/qwen3_attention/op_dump.rs:28
↓ 1 callers
Function
parse_csv_usize
(env: &str)
crates/spark-model/src/layers/qwen3_attention/op_dump.rs:40
↓ 1 callers
Function
parse_deepseek_v4
(json: &str)
crates/atlas-core/src/config/parsers/deepseek_v4.rs:21
↓ 1 callers
Function
parse_dflash
Parse `[dflash]` from MODEL.toml. Returns `None` when the section is absent (model has no DFlash drafter pairing). The build emits the parsed values i
crates/atlas-kernels/build_parse.rs:365
↓ 1 callers
Function
parse_disable_watchdogs
(env: Option<&str>)
crates/spark-server/src/scheduler/helpers.rs:186
↓ 1 callers
Method
parse_element
Parse one element: a parenthesised group, a character class, a string literal, a macro call, or a rule reference.
crates/xgrammar/src/grammar/parser_element.rs:112
↓ 1 callers
Method
parse_element_with_quantifier
Parse an element optionally followed by a `*`/`+`/`?`/`{m,n}` quantifier. Quantifier expansion lives in `parser_quant.rs`.
crates/xgrammar/src/grammar/parser_element.rs:152
↓ 1 callers
Function
parse_end_field
Parse the `end` field: a string, or a non-empty array of strings.
crates/xgrammar/src/structural_tag/parser_tags.rs:195
↓ 1 callers
Method
parse_enum
Parse an `enum` schema into a [`SpecKind::Enum`].
crates/xgrammar/src/schema/parser_composite.rs:23
↓ 1 callers
Function
parse_excludes
Parse the optional `excludes` array (non-empty strings).
crates/xgrammar/src/structural_tag/parser_tags.rs:220
↓ 1 callers
Function
parse_forced_token_fastpath
Pure parse of the `ATLAS_DISABLE_FORCED_TOKEN` env value into the resolved "fast-path enabled" boolean. Split out of [`forced_token_fastpath_enabled`]
crates/spark-server/src/scheduler/helpers.rs:247
↓ 1 callers
Method
parse_format_inner
(&mut self, value: &JsonValue)
crates/xgrammar/src/structural_tag/parser.rs:71
↓ 1 callers
Function
parse_gemma4_params
(raw: &serde_json::Value)
crates/atlas-core/src/config/parsers/gemma4.rs:16
↓ 1 callers
Function
parse_grammar
Port of `ParseGrammarFormat`.
crates/xgrammar/src/structural_tag/parser.rs:212
↓ 1 callers
Function
parse_group_close
Handle a `)` — pop until the matching `(`, build a `Bracket` or `Union` node, and push it back.
crates/xgrammar/src/fsm/builder/regex_parse.rs:13
↓ 1 callers
Function
parse_header
Parse the safetensors header of an open file. Tensor offsets in the header are relative to the start of the data section; we convert to absolute file
crates/spark-runtime/src/fast_weights/header.rs:96
↓ 1 callers
Method
parse_identifier
Parse a bare rule-reference identifier and return its name.
crates/xgrammar/src/grammar/parser_element.rs:15
↓ 1 callers
Method
parse_identifier_str
Parse a bare identifier string.
crates/xgrammar/src/grammar/lexer.rs:128
↓ 1 callers
Method
parse_integer
Parse the `integer` type keywords. Port of `ParseInteger`.
crates/xgrammar/src/schema/parser.rs:173
↓ 1 callers
Function
parse_layer_ranges
(spec: &str)
crates/spark-model/src/weight_loader/qwen35/load_layers.rs:972
↓ 1 callers
Method
parse_lookahead_assertion
Parse a `(= ...)` lookahead assertion, returning its expr id.
crates/xgrammar/src/grammar/parser.rs:135
↓ 1 callers
Method
parse_macro_arguments
Parse a `(...)` macro argument list.
crates/xgrammar/src/grammar/parser_macro.rs:32
↓ 1 callers
Function
parse_minimax_m2
(raw: &serde_json::Value)
crates/atlas-core/src/config/parsers/minimax.rs:16
↓ 1 callers
Function
parse_mistral_native_call
Parse a single Mistral-native segment of the form `name[ARGS]{json}`. Expects the `[TOOL_CALLS]` prefix to already be stripped. Handles both complete
crates/spark-server/src/tool_parser/helpers_a.rs:15
↓ 1 callers
Function
parse_mistral_native_calls
Parse all Mistral native tool calls from a completed response text. Returns `(content_before_first_call, tool_calls)`.
crates/spark-server/src/tool_parser/helpers_b.rs:8
↓ 1 callers
Function
parse_mistral_params
(json: &str)
crates/atlas-core/src/config/parsers/mistral.rs:16
↓ 1 callers
Function
parse_model_types
Parse `[[model_types]]` from MODEL.toml. Each entry maps a `(model_type, optional hidden_size)` pair to this kernel target. Missing `hidden_size` = w
crates/atlas-kernels/build_parse.rs:332
↓ 1 callers
Method
parse_null
(&mut self)
crates/xgrammar/src/schema/json_value.rs:272
↓ 1 callers
Method
parse_number
Parse the `number` type keywords. Port of `ParseNumber`.
crates/xgrammar/src/schema/parser.rs:216
↓ 1 callers
Method
parse_number
(&mut self)
crates/xgrammar/src/schema/json_value.rs:293
↓ 1 callers
Method
parse_object
(&mut self)
crates/xgrammar/src/schema/json_value.rs:143
↓ 1 callers
Method
parse_ref
Extract the `$ref` URI string. Port of `ParseRef`.
crates/xgrammar/src/schema/parser_composite.rs:33
↓ 1 callers
Function
parse_regex
Port of `ParseRegexFormat`.
crates/xgrammar/src/structural_tag/parser.rs:225
↓ 1 callers
Method
parse_repetition_range
Parse a `{m}` / `{m,}` / `{m,n}` repetition range.
crates/xgrammar/src/grammar/parser_quant.rs:73
↓ 1 callers
Method
parse_rule
Parse one `name ::= body (= lookahead)?` rule definition.
crates/xgrammar/src/grammar/parser.rs:146
↓ 1 callers
Method
parse_rule_ref
Parse a reference to a previously-declared rule.
crates/xgrammar/src/grammar/parser_element.rs:101
↓ 1 callers
Function
parse_sampling_presets
Parse sampling presets from MODEL.toml `[sampling.*]` sections.
crates/atlas-kernels/build_parse.rs:56
↓ 1 callers
Method
parse_sequence
Parse a `|`-free sequence of elements into a `Sequence` expr.
crates/xgrammar/src/grammar/parser.rs:106
↓ 1 callers
Function
parse_sse_response
Condense an SSE stream into a summary for decision-gating. Returns dict with: content (concatenated), tool_calls (parsed), finish_reason, usa
scripts/replay_dump.py:85
↓ 1 callers
Function
parse_step3p7
(raw: &serde_json::Value)
crates/atlas-core/src/config/parsers/step3p7.rs:38
↓ 1 callers
Method
parse_string
Parse a `"..."` literal into a `ByteString` (or `EmptyStr`).
crates/xgrammar/src/grammar/parser_element.rs:84
↓ 1 callers
Method
parse_string
Parse the `string` type keywords. Port of `ParseString`.
crates/xgrammar/src/schema/parser.rs:253
↓ 1 callers
Method
parse_structural_tag
Port of `StructuralTagParser::ParseStructuralTag`.
crates/xgrammar/src/structural_tag/parser.rs:39
↓ 1 callers
Method
parse_tag_dispatch
Parse a `TagDispatch(...)` macro call into a `TagDispatch` expr.
crates/xgrammar/src/grammar/parser_tagdispatch.rs:13
↓ 1 callers
Method
parse_tag_value
Parse a tag-format value, checking the `type` field if present. Port of the `picojson::value` overload of `ParseTagFormat`.
crates/xgrammar/src/structural_tag/parser_tags.rs:63
↓ 1 callers
Function
parse_to_ir
Parse the regex string into a [`RegexIr`].
crates/xgrammar/src/fsm/builder/regex.rs:85
↓ 1 callers
Function
parse_tools_tag_calls
Fallback: scan for bare `<function>` or `<function=` tags not wrapped in `<tool_call>`. Parse tool calls wrapped in `<tools>JSON</tools>` tags. Some
crates/spark-server/src/tool_parser/parse_tools_tag.rs:10
↓ 1 callers
Method
parse_type_array
Parse a `"type": [...]` array. Port of `ParseTypeArray`.
crates/xgrammar/src/schema/parser_composite.rs:74
↓ 1 callers
Method
parse_typed
Dispatch a concrete `type` string to its parser.
crates/xgrammar/src/schema/parser.rs:136
↓ 1 callers
Function
partial_hash_fsm
Partially hash an FSM: tolerated when up to one referenced rule is unhashed *and* that edge starts at the start state. `None` otherwise.
crates/xgrammar/src/grammar/functor/hash_walk.rs:131
↓ 1 callers
Method
partial_rule_case1
( &mut self, properties: &[Property], required: &[String], additional: Option<
crates/xgrammar/src/schema/gen_object_props.rs:116
↓ 1 callers
Method
partial_rule_constrained
( &mut self, properties: &[Property], required: &[String], additional: Option<
crates/xgrammar/src/schema/gen_object_props_constrained.rs:16
↓ 1 callers
Method
patch_embed
Upload f32 pixels → convert to BF16 → patch embed GEMM → add pos_embed.
crates/spark-model/src/layers/vision_encoder/enc_impl/patch_embed.rs:13
↓ 1 callers
Method
patch_embed_batched
Batched patch-embed over N images packed at `p_off[i]` (rows). Uploads each image's f32 pixels into `buf_f32` at its row offset, then runs ONE f32→bf1
crates/spark-model/src/layers/vision_encoder/enc_impl/patch_embed.rs:62
↓ 1 callers
Method
peek_at
Codepoint `offset` positions ahead of `current_`, if in range.
crates/xgrammar/src/regex/sub_handlers.rs:112
↓ 1 callers
Method
peek_matched_tokens
(&self, tokens: &[u32], block_size: usize)
crates/spark-runtime/src/radix_tree.rs:103
↓ 1 callers
Function
per_head_cos
(a, b, hd)
bench/longcode/hang-forensics/gdn_chain_diff_a3b.py:31
↓ 1 callers
Function
per_layer
(config_dir: pathlib.Path)
bench/phase2c-kv-sweep/compare-configs.py:28
↓ 1 callers
Function
per_token_group_quant_fp8
Function to perform per-token-group quantization on an input tensor `x`. It converts the tensor values into signed float8 values and returns the
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:510
↓ 1 callers
Method
persist
(&self, _entry: &StoredEntry)
crates/spark-server/src/response_store.rs:96
↓ 1 callers
Method
poison_block
DIAGNOSTIC (ATLAS_KV_POISON): fill a freshly-allocated block with 0xFF (a NaN bit-pattern in both bf16 `0xFFFF` and fp8-e4m3 `0xFF`) instead of zero.
crates/spark-runtime/src/kv_cache/paged_impl.rs:122
↓ 1 callers
Method
pool_bytes
(&self)
crates/spark-storage/src/scratch_pool.rs:48
↓ 1 callers
Function
populate_disk
(backend: &mut PosixBackend, k: &[bf16], v: &[bf16])
crates/spark-storage/tests/common/mod.rs:48
↓ 1 callers
Function
populate_disk_via
( backend: &mut B, k: &[bf16], v: &[bf16], )
crates/spark-storage/tests/common/mod.rs:143
↓ 1 callers
Method
possible_rules
All rule ids referenced by `state`'s outgoing edges.
crates/xgrammar/src/fsm/compact.rs:129
↓ 1 callers
Function
post_load_memory_audit
( args: &cli::ServeArgs, config: &ModelConfig, gpu: &dyn spark_runtime::gpu::GpuBackend, weigh
crates/spark-server/src/main_modules/serve_phases/preflight.rs:253
↓ 1 callers
Function
post_request
POST `body` to http://{host}{endpoint}. Returns (raw_response, summary).
scripts/replay_dump.py:306
↓ 1 callers
Method
pre_verify_copy_async_dispatch
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/async_chkpt.rs:171
↓ 1 callers
Function
preallocate
(file: &File, size: u64)
crates/spark-storage/src/layout.rs:94
↓ 1 callers
Method
precision_schedule
Per-(layer, role) weight precision schedule (C.3, 2026-04-25). Default impl returns the empty schedule (every lookup yields `Dtype::Inherit`), preserv
crates/spark-model/src/weight_loader/mod.rs:166
↓ 1 callers
Function
predequant_nvfp4_to_fp8
( gpu: &dyn GpuBackend, kernel: KernelHandle, b_packed: DevicePtr, b_scale: DevicePtr, sca
crates/spark-model/src/layers/ops/gemm_dense.rs:433
↓ 1 callers
Method
predict_ref_edge
Predict the rule referenced by `ref_edge`: record the parent state in the completable table and enqueue the referenced rule's FSM start node.
crates/xgrammar/src/earley/predict_fsm.rs:94
↓ 1 callers
Function
predictor_score_ref
( q_proj: &[bf16], k_lr_seq: &[bf16], num_q_heads: usize, num_kv_heads: usize, block_size:
crates/spark-storage/src/predictor_ref.rs:71
↓ 1 callers
Method
prefill
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, st
crates/spark-model/src/layer/transformer_layer.rs:72
↓ 1 callers
Method
prefill_attention_cache_skip_mla
Run the cache-skip MLA prefill chain. Always returns the output pointer — caller short-circuits with `return Ok(out)`.
crates/spark-model/src/layers/qwen3_attention/prefill/cache_skip_mla.rs:34
↓ 1 callers
Method
prefill_attention_cache_skip_qkv
( &self, normed: DevicePtr, normed_fp8: DevicePtr, n: u32, h: u32,
crates/spark-model/src/layers/qwen3_attention/prefill/cache_skip_qkv.rs:26
↓ 1 callers
Method
prefill_attention_cache_skip_v4
( &self, kv_cache: &mut PagedKvCache, ctx: &ForwardContext, args: &super::cach
crates/spark-model/src/layers/qwen3_attention/prefill/cache_skip_v4.rs:15
↓ 1 callers
Function
prefill_attention_paged
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_a.rs:203
↓ 1 callers
Function
prefill_attention_paged_512
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:71
↓ 1 callers
Function
prefill_attention_paged_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:117
↓ 1 callers
Method
prefill_attention_paged_attn
Run the chunk-1+ flash-attention path. Returns either an attention output pointer (early return) or `Continue` to defer to the caller.
crates/spark-model/src/layers/qwen3_attention/prefill/paged_attn.rs:54
↓ 1 callers
Method
prefill_attention_paged_attn_batched
( &self, kv_cache: &mut PagedKvCache, ctx: &ForwardContext, args: &PagedAttnBa
crates/spark-model/src/layers/qwen3_attention/prefill/paged_attn_batched.rs:47
↓ 1 callers
Function
prefill_attention_paged_batched
Batched BF16-KV paged prefill attention (BR=32).
crates/spark-model/src/layers/ops/prefill_attn_batched.rs:29
↓ 1 callers
Function
prefill_attention_paged_batched_64
Batched BF16-KV paged prefill attention (BR=64, 256-thread variant).
crates/spark-model/src/layers/ops/prefill_attn_batched.rs:73
↓ 1 callers
Function
prefill_attention_paged_bf16k_turbo2v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:500
↓ 1 callers
Function
prefill_attention_paged_bf16k_turbo3v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:389
↓ 1 callers
Function
prefill_attention_paged_bf16k_turbo4v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:445
↓ 1 callers
Function
prefill_attention_paged_fp8
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_a.rs:248
↓ 1 callers
Function
prefill_attention_paged_fp8_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_main_b.rs:167
↓ 1 callers
Function
prefill_attention_paged_fp8_batched
Batched FP8-KV paged prefill attention (BR=32).
crates/spark-model/src/layers/ops/prefill_attn_batched.rs:117
↓ 1 callers
Function
prefill_attention_paged_fp8_batched_64
Batched FP8-KV paged prefill attention (BR=64, 256-thread variant).
crates/spark-model/src/layers/ops/prefill_attn_batched.rs:167
↓ 1 callers
Function
prefill_attention_paged_fp8k_turbo2v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_fp8k.rs:126
↓ 1 callers
Function
prefill_attention_paged_fp8k_turbo3v_64
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k_cache: DevicePtr, v_cache: D
crates/spark-model/src/layers/ops/prefill_attn_fp8k.rs:28
← previous
next →
3,201–3,300 of 7,049, ranked by callers