MCPcopy Create free account

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

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

↓ 1 callersFunctionrun_shape
( gpu: &dyn GpuBackend, stream: u64, base_h: spark_runtime::gpu::KernelHandle, bf16_h: spark_r
crates/spark-model/examples/w4a16_bf16_v2_microtest.rs:222
↓ 1 callersFunctionrun_shape
( gpu: &dyn GpuBackend, stream: u64, base_h: spark_runtime::gpu::KernelHandle, sw_h: spark_run
crates/spark-model/examples/w4a16_gemv_sw_microtest.rs:118
↓ 1 callersMethodrun_shared_expert_prefill
( &self, input: DevicePtr, n: u32, h: u32, shared_inter: u32,
crates/spark-model/src/layers/moe/forward_prefill_phase.rs:22
↓ 1 callersFunctionrun_standard_chunk_loop
( model: &dyn Model, p: &mut PrefillInProgress, idx: usize, active: &mut Vec<ActiveSeq>, m
crates/spark-server/src/scheduler/phase_continue_prefills/run_standard.rs:18
↓ 1 callersFunctionrun_sweep
( url: str, model: str, osl: int, isls: list[int], concs: list[int], warmup: int, count_prompt: bo
bench/bench_concurrency.py:267
↓ 1 callersFunctionrun_test_suite
Run a single test across all target context lengths.
scripts/dev/ssm_context_profile_v2.py:178
↓ 1 callersFunctionrun_tool_call_tests
Test tool calling capability. For models whose Atlas tool-call parser is a known gap (Mistral Small 4 uses [TOOL_CALLS][ARGS] format instead
tests/single_gpu_suite.py:508
↓ 1 callersFunctionrun_tps_benchmark
Benchmark tokens per second at different output lengths.
tests/single_gpu_suite.py:580
↓ 1 callersFunctionrun_variant
(v: dict)
tests/ab_35b.py:141
↓ 1 callersFunctionrun_wy
Run the WY{K} kernel once. Tokens are strided: qk_stride=NK*KD, v_stride=NV*VD, gb_stride=NV (one row per token), matching the production `decode_batc
crates/spark-model/examples/gdn_wy_verify_microtest.rs:144
↓ 1 callersFunctions
(chunk_len, chunk_start, is_last_chunk)
crates/spark-model/src/model/trait_impl/prefill_b/batch_kernel_tests.rs:10
↓ 1 callersMethodsafe_emit_len
Returns safe byte length to emit without splitting a partial tag. Holds back content that could be the start of `<tool_call>` or bare `<function`.
crates/spark-server/src/tool_parser/streaming_impl.rs:465
↓ 1 callersFunctionsample_token
Sample one token from device logits, applying temperature/top-k/top-p if non-greedy. `suppress_ids`: token IDs to mask to -inf before sampling (e.g.
crates/spark-server/src/scheduler/sample_step.rs:238
↓ 1 callersFunctionsanitize_recursive
( schema: &serde_json::Value, root: &serde_json::Value, depth: usize, )
crates/spark-server/src/grammar/schema.rs:113
↓ 1 callersMethodsave_decode
Save the SSM state of pool slot `ssm_slot` into the decode-rollback ring slot `(ssm_slot, ring_slot)`. Deterministic addressing — no free list, no evi
crates/spark-model/src/model/ssm_snapshot.rs:207
↓ 1 callersMethodsave_decode_ssm_snapshot
Save `seq`'s live SSM `h_state` + `conv_state` (all SSM layers) into the decode-rollback snapshot slot `ring_slot`. `ring_slot` is a per-sequence rin
crates/spark-model/src/traits/model.rs:302
↓ 1 callersMethodsave_decode_ssm_snapshot_dispatch
Phase-C decode-time boundary snapshot save. Copies the sequence's live SSM state (the active `SsmStatePool` slot `seq.slot_idx`) into the decode-roll
crates/spark-model/src/model/trait_impl/verify_a.rs:364
↓ 1 callersMethodsave_hidden
Stash the last-token post-final-norm hidden (`hidden_bytes`, BF16) for a leaf snapshot slot. Used so an exact full-prompt hit can emit the first token
crates/spark-model/src/model/ssm_snapshot.rs:373
↓ 1 callersMethodsave_hidden_for_mtp_dispatch
( &self, token_idx: usize, _stream: u64, )
crates/spark-model/src/model/trait_impl/speculative.rs:94
↓ 1 callersMethodsave_sequence_state
Save KV blocks + SSM state to writer. Does NOT free resources. Format: `[KV layers × blocks × (K + V)]` then `[SSM layers × (h + conv)]`. The model o
crates/spark-model/src/traits/model.rs:681
↓ 1 callersMethodsave_sequence_state_dispatch
( &self, seq: &SequenceState, writer: &mut dyn std::io::Write, )
crates/spark-model/src/model/trait_impl/sequence.rs:347
↓ 1 callersMethodscale_embeddings_bf16
( &self, data: DevicePtr, num_tokens: usize, stream: u64, )
crates/spark-model/src/model/impl_a3.rs:51
↓ 1 callersMethodscales
Get current scales. Returns (k_scale, v_scale). During warmup: returns (1.0, 1.0) (uncalibrated). After warmup: returns calibrated scales.
crates/spark-model/src/layers/fp8_calibration.rs:106
↓ 1 callersFunctionscan
(s)
bench/fp8_dgx2_drift/harness/mtp_warm_stress.py:104
↓ 1 callersMethodscan
Scan input byte `ch` from `state`, producing successor states. FSM-backed states walk the FSM; non-FSM states dispatch on the current element's expres
crates/xgrammar/src/earley/scan.rs:17
↓ 1 callersMethodscan_one_token
Feed one token byte-by-byte into the parser, reusing the longest common prefix with `prev_token` to avoid redundant work. Returns whether the whole to
crates/xgrammar/src/compiler/mask_gen/intervals.rs:186
↓ 1 callersMethodscrub_if_due
(&self, now: Instant)
crates/spark-server/src/rate_limiter.rs:353
↓ 1 callersFunctionseed
(target: pathlib.Path)
bench/fp8_dgx2_drift/harness/overnight/edit_probe.py:98
↓ 1 callersFunctionselect_fp8_moe_backend
Select the primary FP8 MoE backend Note: Shape-specific fallbacks may still occur at runtime.
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:225
↓ 1 callersMethodselect_prefills
(&self, requests: &[PendingRequestInfo], capacity: usize)
crates/spark-server/src/scheduling_policy.rs:73
↓ 1 callersFunctionsend_concurrent_streaming
( url: &str, prompt: &str, max_tokens: usize, concurrency: usize, )
crates/atlas-spark-bench/src/lib.rs:234
↓ 1 callersFunctionsend_request
Send a non-streaming chat completion and return the response.
scripts/dev/test_long_context.py:69
↓ 1 callersMethodsend_to
(&self, _ptr: u64, _bytes: usize, _dest_rank: usize, _stream: u64)
crates/spark-comm/src/lib.rs:181
↓ 1 callersFunctionsequential_ref
Sequential single-token recurrent reference (f64 SSOT, mirrors the exact per-token GDN recurrence the WY kernels implement: bf16 inputs cast to f32, g
crates/spark-model/examples/gdn_wy_verify_microtest.rs:97
↓ 1 callersFunctionserver_url
()
crates/atlas-spark-bench/src/lib.rs:26
↓ 1 callersMethodset_add_kernel
Provide a kernel handle for the BF16 in-place addition kernel. Used by the 2-rank send/recv all-reduce path. The kernel is loaded by the model layer
crates/spark-comm/src/lib.rs:100
↓ 1 callersMethodset_attn_scale_override
Set per-layer attention scale override. Gemma-4 uses QK-norm, so attention scale should be 1.0 (not 1/sqrt(head_dim)).
crates/spark-model/src/layers/qwen3_attention/helpers.rs:91
↓ 1 callersMethodset_bf16_experts
Set BF16 expert weights for the FP8-dequant-on-load MoE path. Activated by `ATLAS_FP8_DEQUANT_MOE_TO_BF16=1`. Eliminates the per-layer 0.989 FP8 cosi
crates/spark-model/src/layers/moe/helpers_c.rs:84
↓ 1 callersMethodset_bf16_weights
Install BF16 dense MLP weights. After this call, the forward paths dispatch to the BF16 GEMV/GEMM kernels instead of w4a16. The caller must ensure the
crates/spark-model/src/layers/dense_ffn.rs:533
↓ 1 callersFunctionset_boundary_token_mask
Set once at startup from the resolved tokenizer. Idempotent.
crates/spark-server/src/scheduler/helpers.rs:402
↓ 1 callersMethodset_edge_aux_data
Replace the repeat-edge auxiliary data buffer.
crates/xgrammar/src/fsm/fsm.rs:75
↓ 1 callersFunctionset_enable_loop_watchdog
Set once at startup from the resolved `ModelBehavior.enable_loop_watchdog`. Idempotent: subsequent calls within the same process are ignored.
crates/spark-server/src/scheduler/helpers.rs:208
↓ 1 callersMethodset_end_states
Replace the accepting-state bitmap.
crates/xgrammar/src/fsm/with_start_end.rs:84
↓ 1 callersMethodset_expr_data
Borrowed view of expr `expr_id` as `(type, &mut data[..])`. Used by `RepetitionNormalizer` to rewrite a `Repeat` payload in place.
crates/xgrammar/src/grammar/data.rs:130
↓ 1 callersMethodset_gelu_activation
Set GeGLU activation for MoE experts (Gemma-4 26B). Replaces SiLU with GELU in the sorted/unfused path and forces decode to use the sorted path (avoid
crates/spark-model/src/layers/moe/helpers_a.rs:24
↓ 1 callersMethodset_hc_weights
Set per-block Manifold-Constrained Hyper-Connection weights (DeepSeek-V4). When set, the attn/ffn residual sites route through `hc_pre`/`hc_post` agai
crates/spark-model/src/layers/qwen3_attention/helpers.rs:44
↓ 1 callersMethodset_head_gate_weight
Set per-head attention gate weight (Step 3.7 g_proj). The weight is BF16 shape [num_q_heads, hidden_size].
crates/spark-model/src/layers/qwen3_attention/helpers.rs:71
↓ 1 callersFunctionset_im_start_hard_stop
Install the ChatML role-boundary hard-stop. Called once from `main.rs` at startup when `<|im_start|>` resolves to a single token id. Noop when called
crates/spark-server/src/scheduler/helpers.rs:30
↓ 1 callersMethodset_k_eq_v
Set K=V mode (Gemma-4 full-attention layers). `v_norm_weight` is a BF16 weight buffer of size `[head_dim]`. For Gemma-4 it's ones-filled because Gemm
crates/spark-model/src/layers/qwen3_attention/helpers.rs:102
↓ 1 callersMethodset_layer_scalar
Set per-layer scalar (Gemma-4: hidden_states *= scalar at end of layer).
crates/spark-model/src/layers/qwen3_attention/helpers.rs:137
↓ 1 callersFunctionset_max_decode_seqs
Record the configured max decode batch size (idempotent; first write wins). Called once from `TransformerModel::new` with the serve `max_batch_size`.
crates/spark-model/src/layers/qwen3_attention/mod.rs:83
↓ 1 callersFunctionset_mid_word_token_mask
Set once at startup from the resolved tokenizer. Idempotent.
crates/spark-server/src/scheduler/helpers.rs:431
↓ 1 callersMethodset_moe_down_transpose_scratch
( &mut self, scratch_packed: DevicePtr, scratch_scale: DevicePtr, packed_ptrs_
crates/spark-model/src/layers/qwen3_attention/trait_impl.rs:246
↓ 1 callersMethodset_moe_ffn
Set secondary MoE FFN (Gemma-4 26B dual-FFN: dense + MoE per layer).
crates/spark-model/src/layers/qwen3_attention/helpers.rs:143
↓ 1 callersMethodset_moe_parameters
(self)
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:681
↓ 1 callersFunctionset_numeric_token_mask
Set once at startup from the resolved tokenizer. Idempotent.
crates/spark-server/src/scheduler/helpers.rs:381
↓ 1 callersMethodset_post_sublayer_norms
Set post-sublayer norms (Gemma-4: 4-norm residual structure).
crates/spark-model/src/layers/qwen3_attention/helpers.rs:126
↓ 1 callersMethodset_pre_expert_norm
Transpose MoE weights for coalesced prefill GEMM reads. Transposes per-expert routed weights [N, K/2] → [K/2, N] to enable the cp.async pipelined FP8
crates/spark-model/src/layers/moe/helpers_a.rs:17
↓ 1 callersMethodset_rope_proportional
Enable proportional RoPE (Gemma-4 full-attention layers). Must be called AFTER `set_rope_overrides`; the `rotary_dim` set there is reinterpreted as th
crates/spark-model/src/layers/qwen3_attention/helpers.rs:85
↓ 1 callersMethodset_token_bitmask
Turn the accepted-bitset + rejected-interset into the packed mask. Port of `SetTokenBitmask`.
crates/xgrammar/src/matcher/fill.rs:238
↓ 1 callersFunctionset_tool_response_hard_stop
(id: u32)
crates/spark-server/src/scheduler/helpers.rs:45
↓ 1 callersFunctionset_tscg_enabled
Set once at startup from MODEL.toml `[behavior].tscg`. Idempotent.
crates/spark-server/src/tscg/mod.rs:46
↓ 1 callersMethodset_v_norm
Install a pure-RMSNorm v_norm WITHOUT enabling K=V aliasing. Used for Gemma-4 sliding-attention layers where V_proj exists on disk but HF `Gemma4TextA
crates/spark-model/src/layers/qwen3_attention/helpers.rs:112
↓ 1 callersFunctionset_watchdog_params
Set once at startup from the resolved `ModelBehavior`. Idempotent.
crates/spark-server/src/scheduler/helpers.rs:362
↓ 1 callersFunctionsetup_lm_heads
( store: &WeightStore, lm_head: &crate::weight_map::DenseWeight, config: &ModelConfig, gpu: &d
crates/spark-model/src/factory/lm_head_setup.rs:18
↓ 1 callersFunctionsh
Run a local shell command.
tests/run_all_models.py:254
↓ 1 callersFunctionshard_dense_1d_bf16
Shard a 1D BF16 vector `[dim]` (e.g. q_norm_full, gate_proj bias) on dim 0. Used for per-output vectors that pair with column-parallel GEMMs.
crates/spark-model/src/tp_shard.rs:115
↓ 1 callersFunctionshort_tool_trigger_enabled
Whether the SHORT shared `<tool_call>` trigger is forced under `tool_choice="auto"`. Read once per call from `ATLAS_TOOL_SHORT_TRIGGER`; OFF unless ex
crates/spark-server/src/grammar/compile_tools.rs:95
↓ 1 callersFunctionshould_inject_think_end
Boundary gate for the forced `</think>` injection. F2 / the thinking-budget cap may *arm* `force_end_thinking` while the model is mid-statement; injec
crates/spark-server/src/scheduler/confidence.rs:100
↓ 1 callersMethodshould_use_greedy
Greedy-threshold gate (arXiv:2510.05987). Returns true if the top-1 softmax probability exceeds the zone threshold, meaning argmax should be used rega
crates/spark-server/src/adaptive_sampler.rs:103
↓ 1 callersFunctionskip_build
()
crates/spark-storage/build.rs:57
↓ 1 callersFunctionsmoke_one
(image, model_path, dtype, prompt)
tests/test_kv_dtype_smoke.py:97
↓ 1 callersFunctionsnapshot_boundary_if_ssm
Record an SSM-state snapshot at a boundary token reached during normal decode, so a later watchdog rollback can restore the recurrent state to this po
crates/spark-server/src/scheduler/rollback.rs:311
↓ 1 callersMethodsource_extension
(&self)
crates/atlas-kernels/build_target.rs:43
↓ 1 callersFunctionsources_block_citations
Find `Sources:` or `References:` heading and emit a citation for each bullet line containing an http(s) URL until a blank line or a non-bullet line br
crates/spark-server/src/citation.rs:236
↓ 1 callersFunctionspace_replacer_decoder
SpaceReplacer decoder: transform the UTF-8 of `▁` (U+2581, "lower one eighth block", bytes `E2 96 81`) back into an ASCII space. Faithful to C++ `Spa
crates/xgrammar/src/tokenizer/decoder.rs:58
↓ 1 callersFunctionspawn_oom_watchdog
Start a background OOM watchdog that polls GPU memory every `interval`. If free memory drops below `threshold_mb` MB, the process exits immediately.
crates/spark-runtime/src/cuda_backend.rs:160
↓ 1 callersMethodspeculative_calculation
Decide whether speculative fast-accept applies for the seeded state, and which first bytes are "safe". Returns `(applicable, safe_byte_mask)`. Port o
crates/xgrammar/src/compiler/mask_gen/speculative.rs:22
↓ 1 callersFunctionsplice_into
Splice `sub` into `complete`, returning a view whose start/ends point at the spliced-in states.
crates/xgrammar/src/grammar/functor/fsm_builder.rs:73
↓ 1 callersFunctionsplit_tensor_name
(name: str, expert_idx: int)
scripts/preprocess_step3p7_experts.py:66
↓ 1 callersFunctionssh_worker
Run a remote command on the worker via SSH.
tests/run_all_models.py:264
↓ 1 callersMethodssm_decode
( &self, gpu: &dyn GpuBackend, h_state: DevicePtr, x: DevicePtr, b_pro
crates/spark-model/src/layers/nemotron_mamba2.rs:174
↓ 1 callersMethodssm_state_norm_dims
SSM state normalization dimensions: (num_heads, k_dim, v_dim). Used by the state normalization kernel to prevent drift.
crates/atlas-core/src/config/methods.rs:281
↓ 1 callersMethodstage_batched_attn_metadata
Build BatchedAttnMetadata for N streams. See module docs. `scratch_offset_bytes` is the byte offset within `self.buffers.scratch()` where staging sta
crates/spark-model/src/model/trait_impl/prefill_b/stage_batched.rs:68
↓ 1 callersMethodstart
Enter calibration phase: zero `d_innerq_sq_accum` / `d_innerq_count` / `d_innerq_active`, set `d_innerq_calibrating = 1`. Idempotent.
crates/spark-model/src/layers/qwen3_attention/innerq_driver.rs:75
↓ 1 callersMethodstart_checkpoint_async_dispatch
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/async_chkpt.rs:31
↓ 1 callersFunctionstart_chunked_prefill
Start a chunked prefill: process chunk 0, return result.
crates/spark-server/src/scheduler/prefill_a_step.rs:8
↓ 1 callersFunctionstart_container
Start a serve container. Returns container name.
tests/run_all_models.py:313
↓ 1 callersFunctionstart_container
(image, model_path, kv_dtype, env_kvs, max_seq_len=32768)
tests/atlas_bench_comprehensive.py:62
↓ 1 callersFunctionstart_container
(image, model_path, kv_dtype)
tests/test_kv_dtype_smoke.py:55
↓ 1 callersFunctionstart_container
(v: dict)
tests/ab_35b.py:77
↓ 1 callersFunctionstart_ep2
Start rank 0 on head + rank 1 on worker. Returns (rank0_name, rank1_name).
tests/run_all_models.py:585
↓ 1 callersFunctionstart_new_requests
( model: &dyn Model, new_reqs: Vec<InferenceRequest>, chunked: bool, always_mixed: bool, m
crates/spark-server/src/scheduler/phase_start_prefills.rs:14
↓ 1 callersMethodstart_rollback_and_checkpoint_async
Launch SSM state rollback + checkpoint on the secondary stream. Used on the reject path: rollback to `intermediate[0]`, then checkpoint the rolled-ba
crates/spark-model/src/traits/model.rs:616
↓ 1 callersMethodstart_rollback_and_checkpoint_async_dispatch
( &self, seq: &mut SequenceState, num_accepted: usize, )
crates/spark-model/src/model/trait_impl/async_chkpt.rs:77
↓ 1 callersMethodstart_separator
Separator before the first element of a container.
crates/xgrammar/src/schema/indent.rs:65
↓ 1 callersMethodstate_ref
(&self)
crates/xgrammar/src/grammar/functor/optimizer.rs:99
↓ 1 callersFunctionstep_ngram
N-gram speculative step: CPU proposer + CUDA-graphed K=2 verify. Two-phase pipeline (same as MTP but with N-gram proposer instead): 1. Bootstrap: reg
crates/spark-server/src/scheduler/spec_step.rs:176
↓ 1 callersFunctionstep_ngram_verify
Verify a single N-gram draft via CUDA-graphed K=2 path.
crates/spark-server/src/scheduler/spec_step.rs:235
↓ 1 callersFunctionstep_self_spec
Self-speculative step: draft via layer-skipping, verify with full model. Combines bootstrap + verify in one step (no pipeline). `verify_ctx` is plumb
crates/spark-server/src/scheduler/spec_step.rs:14
← previousnext →3,501–3,600 of 7,049, ranked by callers