MCPcopy Create free account

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

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

↓ 1 callersMethodreduce_scatter
(&self, _send_ptr: u64, _recv_ptr: u64, _bytes: usize)
crates/spark-comm/src/lib.rs:169
↓ 1 callersFunctionregex_escape_map
Additional escape map for character-class literal escapes — each of these escape sequences (`\^`, `\.`, `\-`, …) resolves to itself.
crates/xgrammar/src/grammar/lexer_scan.rs:246
↓ 1 callersMethodregions
(&self)
crates/xgrammar/src/compiler/decompose.rs:216
↓ 1 callersMethodregister_basic_typed_rules
Register `basic_any/integer/number/string/boolean/null/array/ object` and seed their cache keys.
crates/xgrammar/src/schema/converter.rs:267
↓ 1 callersMethodregister_buffer
Pre-register a GPU buffer with the communication backend. For NCCL over IB/RoCE, this caches the IB memory registration (`ibv_reg_mr`), avoiding per-
crates/spark-comm/src/lib.rs:64
↓ 1 callersMethodregister_xml_basic_rules
Register the XML-format helper rules (`xml_string` etc.). Port of `XMLToolCallingConverter::AddBasicRules`.
crates/xgrammar/src/schema/converter.rs:313
↓ 1 callersMethodrelease
(&self, _tokens: &[u32], _block_size: usize)
crates/spark-runtime/src/prefix_cache.rs:288
↓ 1 callersMethodremote_count
Number of (token, expert) pairs dispatched to remote rank.
crates/spark-model/src/layers/ep_dispatch.rs:40
↓ 1 callersMethodremove_item
Remove a single item by id. Returns true when an item with that id was present.
crates/spark-server/src/conversation_store.rs:216
↓ 1 callersFunctionrender_template
( state: &Arc<AppState>, req: &ChatCompletionRequest, messages: &[MsgEntry], image_pad_counts:
crates/spark-server/src/api/chat/template.rs:30
↓ 1 callersFunctionrepair_bare_object_json
Repair common bare-JSON issues from models that emit unquoted keys or unquoted bareword string values (e.g. Gemma-4-26B Search WARN where output is `w
crates/spark-server/src/tool_parser/helpers_a.rs:255
↓ 1 callersMethodrepeat_target_closure
Epsilon closure of all repeat-ref targets at `aux_idx`.
crates/xgrammar/src/fsm/algorithms.rs:189
↓ 1 callersFunctionrequant_w_nvfp4_int8
( gpu: &dyn GpuBackend, kernel: KernelHandle, w_packed: DevicePtr, w_e4m3: DevicePtr, scal
crates/spark-model/src/layers/ops/gemm_dense_int8.rs:22
↓ 1 callersFunctionrequant_weight_rowwise_fp8_cached
Re-quantize a block-scaled FP8 weight `[N,K]` → ROW-WISE FP8 (E4M3 + per-row FP32 scale `[N]`) on-GPU once, cached by the FP8 weight pointer. Path: bl
crates/spark-model/src/layers/ops/dispatch_proj.rs:71
↓ 1 callersFunctionrequant_weight_ue8m0_inplace
Re-quantise *weight* so that its per-block scaling factors are in the UE8M0 (power-of-two) format expected by the new DeepGEMM kernels inplace.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:932
↓ 1 callersFunctionrequantize_with_max_scale
( weight: torch.Tensor, weight_scale: torch.Tensor, logical_widths: list[int] )
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:76
↓ 1 callersMethodresample_pos_embed
Zero-offset shim: resample into `buf_pos_resampled` (single-image path).
crates/spark-model/src/layers/vision_encoder/enc_impl/pos_embed.rs:14
↓ 1 callersMethodreset
Reset the matcher to its initial state.
crates/xgrammar/src/matcher/matcher.rs:331
↓ 1 callersMethodreset
Reset the parser to a fresh parse of the grammar's root rule.
crates/xgrammar/src/earley/parser_api.rs:74
↓ 1 callersMethodreset
Reset all bookkeeping (called on `ScratchPool::clear`).
crates/spark-storage/src/eviction.rs:54
↓ 1 callersMethodreset
Drop all stored signatures.
crates/spark-server/src/loop_simhash.rs:103
↓ 1 callersMethodreset
Drop all stored hashes.
crates/spark-server/src/tool_arg_dedup.rs:104
↓ 1 callersMethodreset
Reset the grammar state to the initial position.
crates/spark-server/src/grammar/state.rs:324
↓ 1 callersMethodreset_slot
(&self, slot: usize, gpu: &dyn GpuBackend)
crates/spark-model/src/model/ssm_pool.rs:324
↓ 1 callersFunctionreset_token_bitmask
Reset a bitmask buffer to the full (all-allowed) mask. Port of the vendored `matcher::reset_token_bitmask`.
crates/xgrammar/src/api/bitmask.rs:34
↓ 1 callersFunctionreshape_and_cache_bf16k_turbo2v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache.rs:395
↓ 1 callersFunctionreshape_and_cache_bf16k_turbo3v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache.rs:257
↓ 1 callersFunctionreshape_and_cache_bf16k_turbo4v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache.rs:355
↓ 1 callersFunctionreshape_and_cache_fp8k_turbo2v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache_fp8k.rs:111
↓ 1 callersFunctionreshape_and_cache_fp8k_turbo3v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache_fp8k.rs:27
↓ 1 callersFunctionreshape_and_cache_fp8k_turbo4v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache_fp8k.rs:69
↓ 1 callersFunctionreshape_and_cache_turbo3k_turbo8v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache_turbok.rs:110
↓ 1 callersFunctionreshape_and_cache_turbo4k_turbo3v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache_turbok.rs:26
↓ 1 callersFunctionreshape_and_cache_turbo4k_turbo8v
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache_turbok.rs:68
↓ 1 callersFunctionresolve_cache_root
Determine the HF hub cache root directory. Precedence (matches official HuggingFace behavior): 1. `cache_dir` argument (from `--cache-dir`) 2. `$HF_H
crates/spark-server/src/model_resolver.rs:178
↓ 1 callersFunctionresolve_compute_target
Resolve the compilation target from the HARDWARE.toml vendor field. Falls back to NVIDIA if no vendor is specified.
crates/atlas-kernels/build_target.rs:370
↓ 1 callersFunctionresolve_dtype
(name: str)
tests/gemma4_hf_diff.py:76
↓ 1 callersFunctionresolve_from_hf_cache
Look up a HuggingFace model ID in the local hub cache. Cache layout: `{cache_root}/models--{org}--{name}/snapshots/{hash}/` The active snapshot hash
crates/spark-server/src/model_resolver.rs:29
↓ 1 callersFunctionresolve_kv_cache_config
( args: &cli::ServeArgs, config: &ModelConfig, behavior_default_kv_dtype: &str, )
crates/spark-server/src/main_modules/serve_phases/kv_cache.rs:172
↓ 1 callersFunctionresolve_local_ref
Resolve a local JSON Pointer `$ref` (e.g. `#/$defs/Foo`).
crates/spark-server/src/grammar/schema.rs:326
↓ 1 callersFunctionresolve_model_name
( args: &cli::ServeArgs, config_json: &str, model_dir: &Path, )
crates/spark-server/src/main_modules/serve_phases/runtime.rs:243
↓ 1 callersFunctionresolve_prefill_budget
( args: &cli::ServeArgs, ssm_prefill_chunk: usize, )
crates/spark-server/src/main_modules/serve_phases/kv_cache.rs:17
↓ 1 callersFunctionresolve_prompt_tokens
Resolve an OpenAI-compatible `prompt` field into the concrete prompt token sequence consumed by the scheduler. Text forms (`Text` / `TextArray`) are
crates/spark-server/src/api/completions.rs:56
↓ 1 callersMethodresolve_ref
Resolve a `$ref` URI to a [`SchemaSpec`]. Handles `#` (whole-document), `#/path/to/def` JSON-pointer style refs, and circular references via a placeho
crates/xgrammar/src/schema/parser_composite.rs:125
↓ 1 callersFunctionresolve_schema_type
Fix tool call arguments: schema-aware type coercion + backfill missing params. The qwen3_coder XML format emits all parameter values as raw text. Thi
crates/spark-server/src/tool_parser/validation.rs:20
↓ 1 callersFunctionresolve_shards
( model_dir: &Path, )
crates/spark-runtime/src/fast_weights/header.rs:37
↓ 1 callersFunctionresolve_targets
Resolve all compilation targets from env vars, expanding wildcards.
crates/atlas-kernels/build.rs:652
↓ 1 callersFunctionresolve_thinking
( state: &Arc<AppState>, req: &ChatCompletionRequest, tools_active: bool, )
crates/spark-server/src/api/chat/thinking.rs:16
↓ 1 callersFunctionresolve_tokenizer_runtime
( args: &cli::ServeArgs, config: &mut ModelConfig, tokenizer: &crate::tokenizer::ChatTokenizer,
crates/spark-server/src/main_modules/serve_phases/tokenizer_runtime.rs:28
↓ 1 callersFunctionresolve_tool_call_parser
( args: &cli::ServeArgs, ptx_set: &atlas_kernels::TargetPtxSet, config: &ModelConfig, )
crates/spark-server/src/main_modules/serve_phases/runtime.rs:264
↓ 1 callersFunctionresolve_topology
( args: &cli::ServeArgs, config: &mut ModelConfig, )
crates/spark-server/src/main_modules/serve_phases/topology.rs:24
↓ 1 callersFunctionresolve_vision_max_pixels
(args: &cli::ServeArgs)
crates/spark-server/src/main_modules/serve.rs:699
↓ 1 callersMethodresolved_separators
Resolve the `(comma, colon)` separator pair, applying the same defaulting logic as the C++ `JSONSchemaConverter` constructor.
crates/xgrammar/src/schema/options.rs:67
↓ 1 callersFunctionresponses_endpoint_stream
( state: State<Arc<AppState>>, mut chat_req: ChatCompletionRequest, metadata: Option<std::collecti
crates/spark-server/src/api/responses_stream.rs:45
↓ 1 callersMethodrestore_decode
Restore the SSM state of pool slot `ssm_slot` from the decode-rollback ring slot `(ssm_slot, ring_slot)`.
crates/spark-model/src/model/ssm_snapshot.rs:235
↓ 1 callersMethodrestore_decode_ssm_snapshot
Restore `seq`'s SSM `h_state` + `conv_state` (all SSM layers) from the decode-rollback snapshot slot `ring_slot` previously written by [`Self::save_de
crates/spark-model/src/traits/model.rs:311
↓ 1 callersMethodrestore_decode_ssm_snapshot_dispatch
Phase-C decode-time boundary snapshot restore. Inverse of [`Self::save_decode_ssm_snapshot_dispatch`]: copies the ring snapshot `(seq.slot_idx, ring_
crates/spark-model/src/model/trait_impl/verify_a.rs:388
↓ 1 callersMethodrestore_hidden
Restore the stashed last-token hidden of `snap_slot` into `dst` (the `norm_output` buffer), ready for `lm_head`.
crates/spark-model/src/model/ssm_snapshot.rs:400
↓ 1 callersMethodrestore_sequence_state
Restore KV blocks + SSM state from reader into an allocated sequence. Allocates `num_blocks` new KV blocks, fills from reader, restores SSM.
crates/spark-model/src/traits/model.rs:692
↓ 1 callersMethodrestore_sequence_state_dispatch
( &self, seq: &mut SequenceState, num_blocks: usize, reader: &mut dyn std::io:
crates/spark-model/src/model/trait_impl/sequence.rs:393
↓ 1 callersFunctionresume_swapped_seq
Resume a swapped-out sequence by restoring its state from disk.
crates/spark-server/src/scheduler/lifecycle.rs:233
↓ 1 callersFunctionretire_finished_sequences
Retire finished sequences. After swap_remove, the last element moves to position i. Compact its SSM states to match its new slot index so CUDA graph a
crates/spark-server/src/scheduler/mod_helpers.rs:188
↓ 1 callersFunctionrmsnorm_fn
(x, weight, bias=None, z=None, eps=1e-6, group_size=None, norm_before_gate=False, **kwargs)
bench/mamba_ssm_stub.py:21
↓ 1 callersMethodrollback_ssm_states_dispatch
( &self, seq: &mut SequenceState, num_accepted: usize, )
crates/spark-model/src/model/trait_impl/verify_a.rs:282
↓ 1 callersFunctionrope_mrope_interleaved_k_only
( gpu: &dyn GpuBackend, kernel: KernelHandle, k: DevicePtr, pos_t: DevicePtr, pos_h: Devic
crates/spark-model/src/layers/ops/embeddings.rs:148
↓ 1 callersFunctionrule_is_exact_lookahead
Whether `init_rule_id`'s rule has an exact lookahead assertion.
crates/xgrammar/src/compiler/mask_gen/mod.rs:151
↓ 1 callersFunctionrule_lookahead_id
The lookahead-assertion expr id of `rule_id`, or `-1`.
crates/xgrammar/src/compiler/mask_gen/mod.rs:156
↓ 1 callersMethodrule_mask_key
Build the cross-grammar [`RuleMaskKey`] for a canonical parser state, returning it together with the shared [`RuleLevelCache`]. `None` — the rule-lev
crates/xgrammar/src/compiler/compiled_grammar.rs:124
↓ 1 callersMethodrule_name_to_id_mut
(&mut self)
crates/xgrammar/src/grammar/builder.rs:103
↓ 1 callersMethodrule_target_closure
Epsilon closure of all rule-ref targets matching `rule`.
crates/xgrammar/src/fsm/algorithms.rs:173
↓ 1 callersFunctionrun
( model: Box<dyn Model>, request_rx: tokio::sync::mpsc::Receiver<InferenceRequest>, eos_tokens: Ve
crates/spark-server/src/scheduler/mod.rs:110
↓ 1 callersMethodrun_all
(self)
scripts/dev/test_bugfixes.py:494
↓ 1 callersMethodrun_all
(self)
scripts/dev/coherence_test.py:361
↓ 1 callersFunctionrun_asym_append
( backend: &crate::metal_backend::MetalGpuBackend, func: &str, new_k: &[half::bf16], new_v: &[
crates/spark-runtime/src/metal_backend/tests/parity_asym.rs:59
↓ 1 callersFunctionrun_batched_mixed_step
( model: &dyn Model, active: &mut Vec<ActiveSeq>, prefilling: &mut [PrefillInProgress], comple
crates/spark-server/src/scheduler/phase_continue_prefills/run_batched_mixed.rs:24
↓ 1 callersFunctionrun_batched_prefill_step
( model: &dyn Model, prefilling: &mut [PrefillInProgress], completed_indices: &mut Vec<(usize, Opt
crates/spark-server/src/scheduler/phase_continue_prefills/run_batched_prefill.rs:20
↓ 1 callersFunctionrun_benchmark
()
bench/bench-atlas-concurrency.py:271
↓ 1 callersFunctionrun_blocking_path
(args: BlockingPathArgs)
crates/spark-server/src/api/chat_blocking.rs:59
↓ 1 callersFunctionrun_case
(name, u1, u2)
bench/warm_cold_chat_diff.py:112
↓ 1 callersFunctionrun_case
(name, t1_prompt)
bench/warm_cold_multiturn_diff.py:96
↓ 1 callersFunctionrun_coherence_tests
Test basic coherence with diverse questions. Keyword-based acceptance (case-insensitive, post-think-strip). Uses 1024 max_tokens for Reasonin
tests/single_gpu_suite.py:232
↓ 1 callersFunctionrun_fibonacci_test
Ask the model for a Python Fibonacci function, then execute it in a sandboxed subprocess and verify the first 10 Fibonacci numbers. Acceptanc
tests/single_gpu_suite.py:336
↓ 1 callersFunctionrun_fused_stage1
STAGE 1 — fused conv1d+L2norm ×2 in one launch, then WY2 (existing separate launch), then fused gated-RMS-norm ×2 in one launch. Drives `gdn_verify_f
crates/spark-model/examples/gdn_verify_fused_microtest.rs:406
↓ 1 callersFunctionrun_in_hbm
( ctx: &CudaCtx, q: &[bf16], k: &[bf16], v: &[bf16], blocks: u32, steps: usize, )
crates/spark-storage/examples/long_context_bench.rs:220
↓ 1 callersFunctionrun_in_hbm_reference
(ctx: &CudaCtx, q: &[bf16], k: &[bf16], v: &[bf16])
crates/spark-storage/tests/high_speed_swap_e2e.rs:50
↓ 1 callersFunctionrun_long_context_tests
Test with progressively longer input contexts. Uses needle-in-haystack: the prompt embeds a distinctive code word at the middle of the haysta
tests/single_gpu_suite.py:638
↓ 1 callersFunctionrun_model
(model_path: &Path)
crates/spark-runtime/benches/bench_fast_weights.rs:85
↓ 1 callersMethodrun_mtp_propose_dispatch
( &self, token: u32, position: usize, seq: &mut SequenceState, _stream
crates/spark-model/src/model/trait_impl/speculative.rs:114
↓ 1 callersMethodrun_mtp_propose_inner
( &self, token: u32, position: usize, num_drafts: usize, seq: &mut Seq
crates/spark-model/src/model/impl_b3.rs:31
↓ 1 callersMethodrun_mtp_propose_multi
( &self, token: u32, position: usize, num_drafts: usize, seq: &mut Seq
crates/spark-model/src/model/trait_impl/mod.rs:285
↓ 1 callersMethodrun_mtp_propose_multi_dispatch
( &self, token: u32, position: usize, num_drafts: usize, seq: &mut Seq
crates/spark-model/src/model/trait_impl/speculative.rs:125
↓ 1 callersFunctionrun_one
(name)
bench/fp8_dgx2_drift/harness/overnight/edit_probe2.py:138
↓ 1 callersFunctionrun_one
(name)
bench/fp8_dgx2_drift/harness/overnight/edit_probe3.py:128
↓ 1 callersFunctionrun_pair
COLD (unique salt prefix) vs WARM (same prompt resent → warm hit).
bench/warm_cold_specdecode_diff.py:115
↓ 1 callersFunctionrun_probe
(cfg: &ProbeConfig)
crates/spark-storage/src/probe.rs:90
↓ 1 callersFunctionrun_ref
(tile_size: usize, q: &[bf16], k: &[bf16], v: &[bf16], block_table: &[i32])
crates/spark-storage/tests/tiled_attention_parity.rs:114
↓ 1 callersFunctionrun_round
Run a single round: start containers on each host, run suite in parallel, stop containers. Returns {label: result_json}.
tests/run_all_models.py:437
↓ 1 callersMethodrun_routed_grouped_gemm
( &self, expert_input: DevicePtr, expert_offsets: DevicePtr, sorted_token_ids:
crates/spark-model/src/layers/moe/forward_prefill_routed.rs:34
↓ 1 callersFunctionrun_session
Run a full agentic session and return (success, turns, summary).
scripts/dev/agentic_test.py:82
↓ 1 callersFunctionrun_shape
( gpu: &dyn GpuBackend, stream: u64, base_h: spark_runtime::gpu::KernelHandle, bf16_h: spark_r
crates/spark-model/examples/w4a16_bf16_microtest.rs:212
← previousnext →3,401–3,500 of 7,049, ranked by callers