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
Function
fp8_gemm_act_weight_t_rowwise
( act_fp8: u64, act_scale: u64, weight_fp8: u64, weight_scale: u64, out: u64, m: u32,
crates/spark-runtime/src/cublaslt/fp8.rs:17
↓ 1 callers
Method
free_chunked_prefill_meta
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/impl_a2.rs:88
↓ 1 callers
Method
free_count
(&self)
crates/spark-storage/src/scratch_pool.rs:119
↓ 1 callers
Method
free_host_pinned
(&self, ptr: *mut u8, _bytes: usize)
crates/spark-runtime/src/metal_backend.rs:691
↓ 1 callers
Method
free_sequence_dispatch
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/sequence.rs:99
↓ 1 callers
Method
free_state
(&self, _gpu: &dyn GpuBackend, state: &mut dyn ProposerState)
crates/spark-model/src/layers/mtp_head.rs:356
↓ 1 callers
Function
fresh
(name)
bench/fp8_dgx2_drift/harness/overnight/edit_probe2.py:53
↓ 1 callers
Function
fresh
(name)
bench/fp8_dgx2_drift/harness/overnight/edit_probe3.py:50
↓ 1 callers
Method
from_layer
(cls, layer: torch.nn.Module)
bench/fp8_dgx2_drift/vllm_src/scaled_mm_BlockScaledMMLinearKernel.py:32
↓ 1 callers
Method
function
Look up a cached function handle (cudarc safe API).
crates/atlas-core/src/registry.rs:210
↓ 1 callers
Function
fused_k_norm_rope_cache_write_bf16_mrope
( gpu: &dyn GpuBackend, kernel: KernelHandle, k_in: DevicePtr, k_norm_weight: DevicePtr, p
crates/spark-model/src/layers/ops/kv_cache.rs:168
↓ 1 callers
Function
fuzzy_match_tool_name
Fuzzy match a hallucinated tool name to the closest available tool. Strategies (in priority order): 0. Separator-normalized exact match — handles MCP
crates/spark-server/src/tool_parser/fuzzy_match.rs:26
↓ 1 callers
Method
gate_logits_f32
(&self)
crates/spark-runtime/src/buffers.rs:238
↓ 1 callers
Function
gdn_decode_f32_conv_norm
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, conv_state: DevicePtr, n
crates/spark-model/src/layers/ops/ssm_gdn_a.rs:166
↓ 1 callers
Function
gdn_decode_f32_strided
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a.rs:220
↓ 1 callers
Function
gdn_decode_f32_strided_norm
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a.rs:269
↓ 1 callers
Function
gdn_decode_wy17
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_b.rs:240
↓ 1 callers
Function
gdn_decode_wy2
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_b.rs:80
↓ 1 callers
Function
gdn_decode_wy3
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_b.rs:130
↓ 1 callers
Function
gdn_decode_wy4
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_b.rs:183
↓ 1 callers
Function
gdn_prefill_persistent_batched
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state_ptrs: DevicePtr, query: DevicePtr, k
crates/spark-model/src/layers/ops/ssm_gdn_batched.rs:82
↓ 1 callers
Function
gdn_prefill_regresident
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a.rs:114
↓ 1 callers
Function
gdn_prefill_split4_batched
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state_ptrs: DevicePtr, query: DevicePtr, k
crates/spark-model/src/layers/ops/ssm_gdn_batched.rs:129
↓ 1 callers
Function
gdn_verify_fused_conv_k2
( gpu: &dyn GpuBackend, kernel: KernelHandle, conv_state: DevicePtr, new_input: DevicePtr,
crates/spark-model/src/layers/ops/ssm_mamba.rs:104
↓ 1 callers
Function
gdn_verify_fused_norm_k2
( gpu: &dyn GpuBackend, kernel: KernelHandle, gdn_out: DevicePtr, deint: DevicePtr, weight
crates/spark-model/src/layers/ops/ssm_mamba.rs:150
↓ 1 callers
Function
gemma4_diag_enabled
Gemma-4 diagnostic gate. Set ATLAS_DIAG_GEMMA4=1 to enable per-layer hidden-state norm dumps in the decode path. Heavy (one d2h copy per
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:80
↓ 1 callers
Function
gemv_gate_up
Dual-output GEMV: `gate_y = gate @ x` and `up_y = up @ x` in one kernel launch. Halves the x-side memory bandwidth and removes one kernel-launch round
crates/spark-runtime/src/weights/mlx_int8.rs:368
↓ 1 callers
Method
gemv_silu_gate
( &self, gpu: &dyn GpuBackend, gate: DevicePtr, up: DevicePtr, y: Devi
crates/spark-model/src/forward/quant_weights.rs:143
↓ 1 callers
Function
gen
(w, h, name, idx)
scripts/gen_test_images.py:30
↓ 1 callers
Function
gen_case
(t: usize, batch: usize)
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:102
↓ 1 callers
Function
gen_case
(t: usize, batch: usize)
crates/spark-model/examples/gdn_chunk_shapetest.rs:170
↓ 1 callers
Function
gen_inputs
(seed: u64)
crates/spark-model/examples/gdn_verify_fused_microtest.rs:118
↓ 1 callers
Method
gen_object_pattern_case
Handle the `patternProperties` / `propertyNames` object case. Returns whether the object can be empty.
crates/xgrammar/src/schema/gen_object.rs:237
↓ 1 callers
Method
gen_object_props_and_patterns
Case 1a: named `properties` coexisting with `patternProperties` and/or `propertyNames`. Builds the pattern alternatives as an additional-property over
crates/xgrammar/src/schema/gen_object.rs:162
↓ 1 callers
Function
gen_weight
Build a random NVFP4 weight [N, K] directly in packed form, then derive the transposed layout with the EXACT loop from `transpose_for_gemm`.
crates/spark-model/examples/w4a16_bf16_microtest.rs:121
↓ 1 callers
Function
gen_weight
Build a random NVFP4 weight [N, K] directly in packed form, then derive the transposed layout with the EXACT loop from `transpose_for_gemm`.
crates/spark-model/examples/w4a16_bf16_v2_microtest.rs:121
↓ 1 callers
Function
gen_weight
(rng: &mut Rng, n: usize, k: usize)
crates/spark-model/examples/w4a16_gemv_sw_microtest.rs:73
↓ 1 callers
Function
generate
Helper: generate tokens from a prompt, returning (generated_token_ids, tok_per_sec).
crates/spark-server/tests/integration.rs:128
↓ 1 callers
Method
generate_all_of
Generate the EBNF for `allOf`. Only the single-schema case is fully supported; multiple schemas degrade to "any" (matching the C++ warning path). Port
crates/xgrammar/src/schema/gen_composite.rs:75
↓ 1 callers
Method
generate_any_of
Generate the EBNF for `anyOf` / `oneOf`. Port of `GenerateAnyOf`.
crates/xgrammar/src/schema/gen_composite.rs:56
↓ 1 callers
Method
generate_array_inner
(&mut self, spec: &ArraySpec, rule_name: &str)
crates/xgrammar/src/schema/gen_array.rs:30
↓ 1 callers
Method
generate_const
Generate the body for a `const`. `json_value` is serialized JSON. Port of `GenerateConst` plus the XML override.
crates/xgrammar/src/schema/gen_scalar.rs:136
↓ 1 callers
Method
generate_enum
Generate the body for an `enum`. Port of `GenerateEnum` plus the XML override.
crates/xgrammar/src/schema/gen_scalar.rs:148
↓ 1 callers
Function
generate_inner
( model: &dyn Model, prompt_tokens: &[u32], params: &SamplingParams, seq: &mut crate::traits::
crates/spark-model/src/engine.rs:42
↓ 1 callers
Function
generate_long_context
Generate a needle-in-haystack long-context prompt. The filler paragraphs are deliberately diverse — a short narrative about Alice walking thr
tests/single_gpu_suite.py:144
↓ 1 callers
Function
generate_number_patterns
Generate the alternation of fixed-length digit patterns covering the positive range `[lower, upper]`. Port of `GenerateNumberPatterns`.
crates/xgrammar/src/schema/range_regex.rs:32
↓ 1 callers
Method
generate_ref
Generate the EBNF for a `$ref`. Resolves the URI via the parser, allocating the rule name first to break recursion. Port of `GenerateRef`.
crates/xgrammar/src/schema/gen_composite.rs:15
↓ 1 callers
Method
generate_self_speculative_inner
( &self, prompt_tokens: &[u32], params: &spark_runtime::sampler::SamplingParams,
crates/spark-model/src/model/impl_b2.rs:31
↓ 1 callers
Function
generate_speculative
Generate with speculative decoding (MTP). Delegates the speculative decode loop to `model.generate_speculative()`, which has access to GPU/buffers ne
crates/spark-model/src/engine.rs:168
↓ 1 callers
Method
generate_speculative
( &self, prompt_tokens: &[u32], params: &spark_runtime::sampler::SamplingParams,
crates/spark-model/src/engine/tests.rs:217
↓ 1 callers
Method
generate_speculative_dispatch
( &self, prompt_tokens: &[u32], params: &spark_runtime::sampler::SamplingParams,
crates/spark-model/src/model/trait_impl/speculative.rs:31
↓ 1 callers
Method
generate_speculative_inner
( &self, prompt_tokens: &[u32], params: &spark_runtime::sampler::SamplingParams,
crates/spark-model/src/model/impl_b2.rs:163
↓ 1 callers
Function
generate_streaming
Generate response tokens with per-token callback. Same as [`generate`] but calls `on_token(token_id)` after each token is produced (including the fir
crates/spark-model/src/engine.rs:91
↓ 1 callers
Function
generate_streaming_inner
( model: &dyn Model, prompt_tokens: &[u32], params: &SamplingParams, on_token: &mut F, seq
crates/spark-model/src/engine.rs:117
↓ 1 callers
Method
generate_string
Generate the body for a string spec. Port of `GenerateString` plus the `XMLToolCallingConverter::GenerateString` override.
crates/xgrammar/src/schema/gen_scalar.rs:64
↓ 1 callers
Function
generate_target_ptx_rs
Generate the target_ptx.rs source with per-target kernel constants and lookup functions. Kernel blobs are emitted uniformly as `&'static [u8]` via `i
crates/atlas-kernels/build_codegen.rs:24
↓ 1 callers
Method
generate_type_array
Generate the EBNF for a `"type": [...]` array. Port of `GenerateTypeArray`.
crates/xgrammar/src/schema/gen_composite.rs:91
↓ 1 callers
Method
get_adaptive_token_mask
Compute the adaptive token mask for the seeded state. `is_root_rule` — when true the parent rules are not consulted, so there are no uncertain tokens
crates/xgrammar/src/compiler/mask_gen/mod.rs:82
↓ 1 callers
Function
get_bitmask_shape
Return the shape of the bitmask: `(batch_size, ceil(vocab_size/32))`. Port of the vendored `matcher::get_bitmask_shape`.
crates/xgrammar/src/api/bitmask.rs:17
↓ 1 callers
Function
get_diag_norms
Extract recent DIAG lines from docker logs.
scripts/dev/ssm_context_profile_v3.py:102
↓ 1 callers
Function
get_docker_logs_tail
Get last N lines from atlas-35b docker logs.
scripts/dev/ssm_context_profile_v2.py:166
↓ 1 callers
Method
get_expert_mapping
(self)
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:537
↓ 1 callers
Method
get_fused_moe_quant_config
(self, layer: torch.nn.Module)
bench/fp8_dgx2_drift/vllm_src/fp8.py:841
↓ 1 callers
Method
get_hf_config
(self)
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:109
↓ 1 callers
Function
get_model
()
scripts/bench_model.py:8
↓ 1 callers
Method
get_state_dtype
(self)
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:244
↓ 1 callers
Function
get_w8a8_block_fp8_configs
Return optimized configurations for the w8a8 block fp8 kernel. The return value will be a dictionary that maps an irregular grid of batch
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:797
↓ 1 callers
Function
ggml_can_fuse_ext
Returns true if nodes with indices { node_idxs } are the sequence of ggml_ops in ops[] and are fusable. Nodes are considered fusable according to this
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:669
↓ 1 callers
Function
ggml_node_get_use_count
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:629
↓ 1 callers
Function
ggml_node_has_n_uses
return true if the node's results are only used by N other nodes and can be fused into their calculations.
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:641
↓ 1 callers
Function
git
(args)
site/scripts/gen-stars.mjs:39
↓ 1 callers
Method
gqa_ratio
(&self)
crates/spark-storage/src/tiled_attention.rs:49
↓ 1 callers
Method
gqa_ratio
(&self)
crates/spark-storage/src/predictor.rs:48
↓ 1 callers
Function
grade
(content: str)
tests/vision_sweep.py:176
↓ 1 callers
Method
grammar_arc
Shared-pointer access to the optimized grammar — used to seed a lazily-constructed `MaskGenerator`.
crates/xgrammar/src/compiler/compiled_grammar.rs:200
↓ 1 callers
Function
grammar_budget_close_enabled
#144 (budget-aware graceful close, default ON): when a length-limited structured-output response would otherwise stop with the EOS token grammar-illeg
crates/spark-server/src/scheduler/helpers.rs:281
↓ 1 callers
Method
group_end
End a group of point-to-point operations.
crates/spark-comm/src/lib.rs:127
↓ 1 callers
Method
group_start
Begin a group of point-to-point operations (send_to/recv_from). All send_to/recv_from calls between group_start and group_end are batched into a sing
crates/spark-comm/src/lib.rs:122
↓ 1 callers
Function
h2f
(h:u16)
3rdparty_patches/gdn_aot/gdn_rs.rs:21
↓ 1 callers
Function
handle_brace_unicode
`\u{HHHH}` handling, split out of [`handle_char_escape`].
crates/xgrammar/src/regex/escape_handlers.rs:91
↓ 1 callers
Method
handle_character_class
Port of `HandleCharacterClass`.
crates/xgrammar/src/regex/sub_handlers.rs:16
↓ 1 callers
Function
handle_content_token
Handle one sampled token that lands in the content phase (model is not inside `<think>`). Mutates `a` in place: decrements the generation budget, adva
crates/spark-server/src/scheduler/decode_logits_content.rs:66
↓ 1 callers
Function
handle_done
( state: &mut StreamState, ctx: &StreamCtx, finish_reason: String, completion_tokens: usize,
crates/spark-server/src/api/chat_stream/handle_done.rs:23
↓ 1 callers
Function
handle_error
(ctx: &StreamCtx, msg: String)
crates/spark-server/src/api/chat_stream/handle_error.rs:11
↓ 1 callers
Function
handle_escape
Port of `RegexConverter::HandleEscape` — escapes that appear at the top level of the regex (outside a character class).
crates/xgrammar/src/regex/escape_handlers.rs:118
↓ 1 callers
Function
handle_escape_in_char_class
Port of `RegexConverter::HandleEscapeInCharClass` — escapes that appear *inside* a `[...]` character class.
crates/xgrammar/src/regex/escape_handlers.rs:151
↓ 1 callers
Method
handle_group_modifier
Port of `HandleGroupModifier` — `(?:…)`, `(?<name>…)`, and the rejection of lookahead/lookbehind/flag modifiers.
crates/xgrammar/src/regex/sub_handlers.rs:81
↓ 1 callers
Method
handle_plus_quantifier
`a+` — expands to `rule ::= a rule | a`.
crates/xgrammar/src/grammar/parser_quant.rs:45
↓ 1 callers
Method
handle_question_quantifier
`a?` — expands to `rule ::= "" | a`.
crates/xgrammar/src/grammar/parser_quant.rs:61
↓ 1 callers
Method
handle_repetition_range
Expand `{lower, upper}` choosing literal unzipping for small counts and a `Repeat` expr for large ones. Mirrors C++ `HandleRepetitionRange`.
crates/xgrammar/src/grammar/parser_repeat.rs:17
↓ 1 callers
Method
handle_repetition_range
Port of `HandleRepetitionRange` — `{x}`, `{x,}`, `{x,y}`.
crates/xgrammar/src/regex/sub_handlers.rs:44
↓ 1 callers
Method
handle_star_quantifier
`a*` — character classes become `CharacterClassStar`; anything else expands to a recursive rule `rule ::= a rule | ""`.
crates/xgrammar/src/grammar/parser_quant.rs:21
↓ 1 callers
Function
handle_token
Process one token. Returns the SSE events to forward to the client (empty `Vec` is valid). Thin wrapper around [`handle_token_inner`] that runs the o
crates/spark-server/src/api/chat_stream/handle_token.rs:81
↓ 1 callers
Function
handle_token_inner
(state: &mut StreamState, ctx: &StreamCtx, tok: u32)
crates/spark-server/src/api/chat_stream/handle_token.rs:110
↓ 1 callers
Method
has_any_override
True iff the schedule will produce any non-Inherit overrides. Loaders can use this to skip the per-tensor lookups entirely when no overrides are confi
crates/spark-model/src/precision_schedule.rs:239
↓ 1 callers
Method
has_grammar
F66/F69 (2026-04-29): does this parser have a registered XGrammar schema? Parsers without a grammar fall through to unconstrained decoding, which (per
crates/spark-server/src/tool_parser.rs:409
↓ 1 callers
Function
has_inward_edge
True if any state in the complete FSM has an edge into `state`.
crates/xgrammar/src/grammar/functor/fsm_hasher.rs:184
↓ 1 callers
Function
has_per_expert_tensors
Detect whether this checkpoint uses per-expert tensor format.
crates/spark-model/src/weight_loader/step3p7.rs:106
↓ 1 callers
Method
has_proposer_dispatch
(&self)
crates/spark-model/src/model/trait_impl/speculative.rs:77
↓ 1 callers
Method
has_self_speculative
(&self)
crates/spark-model/src/engine/tests.rs:230
← previous
next →
2,701–2,800 of 7,049, ranked by callers