MCPcopy Create free account

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

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

↓ 2 callersMethodr
(&mut self, a: f64, b: f64)
crates/spark-model/examples/rope_microtest.rs:24
↓ 2 callersFunctionragged_prefill_bf16_hd256
( q: u64, k: u64, v: u64, o: u64, qo_indptr_h: &[i32], kv_indptr_h: &[i32], qo_ind
crates/spark-runtime/src/flashinfer.rs:166
↓ 2 callersFunctionrandom_bf16
(n: usize, rng: &mut ChaCha8Rng, scale: f32)
crates/spark-storage/tests/recall_at_k.rs:47
↓ 2 callersFunctionrange_overlaps
True if some range in `data` could still be matched by a codepoint known to lie in `[min, max]` — used to prune partial UTF-8 matches.
crates/xgrammar/src/earley/scan_charclass.rs:31
↓ 2 callersMethodratios
Build the per-head ratio feature vector: `ratio[h] =` lookback / (lookback + rest). Bounded in [0, 1]; closer to 1 means the head is "looking back" at
crates/spark-server/src/lookback_lens.rs:58
↓ 2 callersMethodraw_function_cached
Look up a raw CUfunction handle with OnceLock caching. Uses the raw CUDA driver API — no cudarc struct layout dependency.
crates/atlas-core/src/registry.rs:237
↓ 2 callersFunctionread_bf16
(gpu: &dyn GpuBackend, ptr: DevicePtr, m: usize, n: usize)
crates/spark-model/examples/fp4_mma_microproof.rs:62
↓ 2 callersFunctionread_output
(ctx: &CudaCtx, b: &Bundle)
crates/spark-storage/tests/cuda_graph_capture.rs:194
↓ 2 callersFunctionread_safetensor_header
Read only the safetensor header from a file (no mmap, no GPU memory impact). The header is typically a few KB of JSON — safe to read on GB10 unified m
crates/spark-runtime/src/weights/loader.rs:183
↓ 2 callersFunctionread_scalar_weight_scale
Read a per-tensor FP8 `weight_scale` scalar (FP32 or BF16 — RedHatAI re-quants ship BF16) from the store as `f32`. Shared host fallback for the per-te
crates/spark-model/src/weight_map/model_a.rs:398
↓ 2 callersMethodreadback_f32
Read FP32 values from GPU memory (diagnostics).
crates/spark-model/src/model/impl_b1.rs:228
↓ 2 callersFunctionready
(name, host=None, secs=420)
scripts/dev/run_all_final.py:35
↓ 2 callersMethodrearrange_mixed_qkv
Split packed qkv into contiguous (1, seq, heads, dim) tensors. The original code used ``rearrange(x, "l (h d) -> 1 l h d", d=...)`` f
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:622
↓ 2 callersFunctionrecord
(r, kind, think)
scripts/realistic_soak.py:185
↓ 2 callersFunctionrecord
Record one kernel lookup. Cheap; called from `GpuBackend::kernel`.
crates/spark-runtime/src/kernel_audit.rs:25
↓ 2 callersFunctionref_hash
The hash of a referenced rule (or the self-recursion flag).
crates/xgrammar/src/grammar/functor/hash_walk.rs:111
↓ 2 callersMethodrefund
Add tokens back (used when a streaming request admits with a reservation and actual consumption was lower).
crates/spark-server/src/rate_limiter.rs:157
↓ 2 callersMethodreject_consecutive_quantifier
Reject a second repetition modifier directly following a quantifier — port of the "Two consecutive repetition modifiers" check.
crates/xgrammar/src/regex/converter.rs:165
↓ 2 callersFunctionrender_holo_template
(messages: &[serde_json::Value], enable_thinking: bool)
crates/spark-server/src/tokenizer/tests.rs:42
↓ 2 callersFunctionrepair_empty_keys
Recursively repair empty-string object keys (`""`) to the unique missing `required` schema property, descending into array `items` and nested object `
crates/spark-server/src/tool_parser/type_coerce.rs:138
↓ 2 callersMethodrepetition_penalty
Repetition penalty parameter.
crates/spark-server/src/api/inference_impl.rs:117
↓ 2 callersMethodreplay
(&self, _ttl: Duration)
crates/spark-server/src/response_store.rs:98
↓ 2 callersMethodrequire_tool_call
Whether a tool call is required for this request.
crates/spark-server/src/api/inference_impl.rs:244
↓ 2 callersFunctionrequired_optional_kernels_for_dtype
Optional-handle kernels (loaded via `try_kernel`, dispatch checks `handle.0 != 0`) that the given `--kv-cache-dtype` cannot run without. `kernel_modul
crates/spark-model/src/layers/qwen3_attention/kernel_requirements.rs:22
↓ 2 callersFunctionrerank
Rerank a set of top-k candidate tokens given each candidate's attention sums (one per candidate). Returns the index of the candidate with the HIGHEST
crates/spark-server/src/lookback_lens.rs:117
↓ 2 callersMethodresample_pos_embed_into
Bilinear interpolate the learned pos_embed grid `[num_grid_per_side × num_grid_per_side, hidden_size]` down to `[grid_h × grid_w, hidden_size]` in row
crates/spark-model/src/layers/vision_encoder/enc_impl/pos_embed.rs:32
↓ 2 callersFunctionreshape_and_cache
( gpu: &dyn GpuBackend, kernel: KernelHandle, key: DevicePtr, value: DevicePtr, k_cache: D
crates/spark-model/src/layers/ops/kv_cache.rs:56
↓ 2 callersFunctionreshape_and_cache_fp8
`k_cache`/`v_cache` are the full pool base pointers. `cache_stride` is in elements (block_size * num_kv_heads * head_dim).
crates/spark-model/src/layers/ops/kv_cache.rs:530
↓ 2 callersFunctionreshape_and_cache_nvfp4
Write K/V to paged NVFP4 cache (E2M1 data + per-group FP8 scales). Kernel: `reshape_and_cache_flash_nvfp4(key, value, k_cache, v_cache, slot_mapping,
crates/spark-model/src/layers/ops/prefill_attn_b.rs:22
↓ 2 callersFunctionresidual_add_rms_norm_gatef32
( gpu: &dyn GpuBackend, kernel: KernelHandle, hidden: DevicePtr, src: DevicePtr, weight: &
crates/spark-model/src/layers/ops/norm.rs:119
↓ 2 callersFunctionresolve_model_dir
(args: &cli::ServeArgs)
crates/spark-server/src/main_modules/serve_phases/config.rs:56
↓ 2 callersMethodresolve_thinking
(&self, model_default: bool)
crates/spark-server/src/openai/chat_request.rs:359
↓ 2 callersFunctionretrieve_top_k
Retrieve the top-K tool names most similar to `query_embedding`. Returns names in descending similarity order. When `k >= anchors.len()`, returns all
crates/spark-server/src/tool_rag.rs:87
↓ 2 callersMethodreturn_evicted_block
Return a block to the free pool directly, bypassing ref counting. Used by eviction: the radix tree already removed its reference.
crates/spark-runtime/src/kv_cache/paged_impl.rs:191
↓ 2 callersFunctionrms_norm
(h: np.ndarray, gamma: np.ndarray, eps: float)
bench/fp8_dgx2_drift/c1_final_logit_overlap.py:78
↓ 2 callersFunctionrms_norm
(h, gamma, eps=EPS)
bench/fp8_dgx2_drift/temp03_sampling_amp.py:45
↓ 2 callersMethodrollback_ssm_states
(&self, seq: &mut SequenceState, num_accepted: usize)
crates/spark-model/src/model/trait_impl/mod.rs:196
↓ 2 callersFunctionrope_mrope_interleaved
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k: DevicePtr, pos_t: DevicePtr
crates/spark-model/src/layers/ops/embeddings.rs:108
↓ 2 callersMethodrule_allows_empty
True if `rule_id` is permitted to match the empty string.
crates/xgrammar/src/earley/predict.rs:119
↓ 2 callersFunctionrun
(cmd, cwd=None, timeout=None, stdin=None, env=None)
bench/fp8_dgx2_drift/harness/overnight/edit_probe2.py:27
↓ 2 callersFunctionrun
(cmd, cwd=None, timeout=None, stdin=None, env=None)
bench/fp8_dgx2_drift/harness/overnight/edit_probe4.py:61
↓ 2 callersFunctionrun_append
( backend: &crate::metal_backend::MetalGpuBackend, kernel_mod: &str, new_k: &[half::bf16], new
crates/spark-runtime/src/metal_backend/tests/parity_turbo23.rs:64
↓ 2 callersFunctionrun_full
One full run → (S_c bytes, uc bytes, S_final bytes). Fresh h0 each call (chunk_delta_h mutates h_state in place).
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:236
↓ 2 callersFunctionrun_full
One full run → (S_c bytes, uc bytes, S_final bytes). Fresh h0 each call (chunk_delta_h mutates h_state in place). W/U/gc come from recompute_wu so thi
crates/spark-model/examples/gdn_chunk_shapetest.rs:306
↓ 2 callersFunctionrun_golden
STAGE 0 — run the CURRENT K=2 path op-for-op and capture golden outputs. Sequence mirrors `decode_batched_conv_gdn` (num_tokens==2 arm): conv(t0) → s
crates/spark-model/examples/gdn_verify_fused_microtest.rs:256
↓ 2 callersFunctionrun_in_hbm_reference
(ctx: &CudaCtx, q: &[bf16], k: &[bf16], v: &[bf16])
crates/spark-storage/tests/streaming_attention_e2e.rs:21
↓ 2 callersFunctionrun_model_suite
Run full test suite on a model, return results dict.
scripts/dev/overnight_marathon.py:136
↓ 2 callersMethodrun_paged_decode
( &self, gpu: &dyn GpuBackend, q: DevicePtr, kv_cache: &PagedKvCache,
crates/spark-model/src/layers/qwen3_attention/decode/run_paged_decode.rs:20
↓ 2 callersFunctionrun_pipeline_with_path
Canonical pipeline driver with an explicit AdaDec diagnostic path label. SSOT for the per-stage transform order: both the non-MTP decode path (`decode
crates/spark-server/src/scheduler/logit_processors/mod.rs:125
↓ 2 callersFunctionrun_session
Run a 5-turn agentic session with full history carryover.
scripts/test_multiturn_agentic.py:44
↓ 2 callersFunctionrun_streaming
( ctx: &CudaCtx, backend: &mut B, group_stride: u64, q: &[bf16], tile_size: usize, )
crates/spark-storage/tests/streaming_attention_e2e.rs:103
↓ 2 callersFunctionrun_suite
Run single_gpu_suite.py against the given server, return parsed JSON.
tests/run_all_models.py:370
↓ 2 callersFunctionrun_wu
( g: &dyn GpuBackend, k_wu: KernelHandle, c: &Case, kp: DevicePtr, vp: DevicePtr, gp:
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:139
↓ 2 callersFunctionrun_wu
( g: &dyn GpuBackend, k_wu: KernelHandle, c: &Case, kp: DevicePtr, vp: DevicePtr, gp:
crates/spark-model/examples/gdn_chunk_shapetest.rs:206
↓ 2 callersFunctionsample_token_with_grammar
Sample one token from device logits with optional grammar constraint. Like `sample_token` but also applies grammar bitmask when `grammar_state` is pr
crates/spark-server/src/scheduler/sample_step.rs:331
↓ 2 callersFunctionsample_with_params_history
( data: &[u8], params: &SamplingParams, token_history: &[u32], )
crates/spark-runtime/src/sampler/sample_impl.rs:9
↓ 2 callersMethodscore_blocks_on_stream
( &self, stream: u64, q_proj: u64, k_lr_seq: u64, scores_out: u64,
crates/spark-storage/src/predictor.rs:271
↓ 2 callersFunctionscore_seed
Analyze a saved seed sample; carry finish_reason/stats through.
bench/longcode/harness.py:125
↓ 2 callersMethodscratch_bytes
Allocated byte size of the scratch buffer (#110: bounds-check batched metadata-staging uploads against this).
crates/spark-runtime/src/buffers.rs:280
↓ 2 callersMethodscratch_pool_strides
Stride triple for the scratch-pool slot layout `[slot, K|V, kv_head, block_size, head_dim]`. Reads of contiguous- per-(kv_head) groups stay efficient
crates/spark-storage/src/tiled_attention.rs:168
↓ 2 callersMethodseed
Seed for deterministic sampling (None = non-deterministic).
crates/spark-server/src/api/inference_impl.rs:287
↓ 2 callersMethodsegment_counts
Count of static / dynamic segments in this body, recursing into [`Segment::Choice`] branches. A choice contributes its branches' segments (the choice
crates/xgrammar/src/compiler/decompose.rs:171
↓ 2 callersFunctionsend_request
Send a completion request and return parsed response with timing.
scripts/dev/ssm_context_profile_v2.py:102
↓ 2 callersFunctionsend_request
Send a completion request and return parsed response with timing.
scripts/dev/ssm_context_profile.py:70
↓ 2 callersFunctionsend_request
(url: str, model: str, prompt: str, max_tokens: int)
bench/bench_isl_osl.py:64
↓ 2 callersFunctionsend_stream_event
Send one stream event to the response sink, handling backpressure. Returns `false` if the receiver has dropped (caller should finish the sequence). A
crates/spark-server/src/scheduler/emit_step.rs:411
↓ 2 callersFunctionsend_streaming_request
(session, prompt: str, max_tokens: int)
bench/bench-atlas-concurrency.py:97
↓ 2 callersFunctionserialize_compact
Compactly serialize a [`JsonValue`] to a JSON string, preserving object key order. Equivalent to picojson `serialize(false)`.
crates/xgrammar/src/structural_tag/json_serialize.rs:20
↓ 2 callersFunctionserialize_compact
Serialize a [`JsonValue`] with no extra whitespace — the analogue of picojson's `serialize(false)`. Object keys keep insertion order (picojson seriali
crates/xgrammar/src/schema/cache_key.rs:70
↓ 2 callersFunctionserve
(mut args: cli::ServeArgs)
crates/spark-server/src/main_modules/serve.rs:25
↓ 2 callersMethodsession_hash
Session hash for SSM snapshot isolation.
crates/spark-server/src/api/inference_impl.rs:197
↓ 2 callersFunctionset_baseline_free_bytes
Record the free-memory baseline at GPU-context init. Call once, early, before weight loading. Idempotent-last-write; intended to be set exactly once.
crates/spark-runtime/src/gpu.rs:23
↓ 2 callersFunctionset_bit
(words: &mut [i32], token: usize, value: bool)
crates/xgrammar/src/matcher/bitmask.rs:35
↓ 2 callersMethodset_dflash_proposer
Install a DFlash drafter as the active proposer, replacing whatever MTP proposer (if any) `TransformerModel::new` built. The target's hidden-state cap
crates/spark-model/src/model/impl_b3.rs:133
↓ 2 callersMethodset_dimension_overrides
Set per-layer dimension overrides for heterogeneous models (Gemma-4). Full-attention layers have different Q/KV head counts and head_dim than sliding
crates/spark-model/src/layers/qwen3_attention/helpers.rs:51
↓ 2 callersMethodset_down_transpose_scratch
Wire a shared per-prefill down_proj scratch + transposed pointer table. Called by the factory after the persistent MoE transpose pass falls back to g
crates/spark-model/src/layers/moe/helpers_b.rs:16
↓ 2 callersMethodset_fp8_experts
Set FP8 expert weights for native FP8 dispatch. Builds device-side pointer tables from FP8 expert weights so the fused FP8 MoE kernel can index by ex
crates/spark-model/src/layers/moe/helpers_c.rs:62
↓ 2 callersMethodset_fp8_prefill_only_weights
Set raw FP8 DevicePtrs for the prefill GEMM path ONLY (no decode GEMV scale fields). Used by the Qwen3.6-27B-FP8 native-FP8 SSM prefill path: the FP8
crates/spark-model/src/layers/qwen3_ssm/init.rs:325
↓ 2 callersMethodset_mla_weights
Set MLA weights for 2-step latent decode. When set, decode uses latent→norm→expand instead of single-step GEMV.
crates/spark-model/src/layers/qwen3_attention/helpers.rs:37
↓ 2 callersMethodset_moe_parameters
(self)
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:734
↓ 2 callersMethodset_o_dense_bf16
Install a BF16 dense fallback for the output projection. When set, decode + prefill skip the NVFP4 `attn.o_proj` path and use this BF16 dense_gemv / d
crates/spark-model/src/layers/qwen3_attention/helpers.rs:121
↓ 2 callersMethodset_rule_name
Mutable access to a rule's name — used by `RootRuleRenamer`.
crates/xgrammar/src/grammar/data.rs:124
↓ 2 callersMethodset_vision_slice_base
Set the co-dispatched batched-ViT slice base for the NEXT prefill_chunk (row offset into buf_out, grid index offset, image count owned). Pass (0,0,0)
crates/spark-model/src/traits/model.rs:496
↓ 2 callersFunctionsettle
()
tests/run_all_models.py:365
↓ 2 callersFunctionsetup_mock_cache
Create a mock HF cache structure for testing.
crates/spark-server/src/model_resolver.rs:202
↓ 2 callersFunctionsetup_mock_cache_no_weights
Mock HF cache where the snapshot has only metadata (config + tokenizer) but no weight files — mirrors the real-world failure where refs/main pointed t
crates/spark-server/src/model_resolver.rs:222
↓ 2 callersFunctionshard_fp8_block_scaled
Shard an FP8 block-scaled weight. `weight` is `[N, K]` FP8 bytes; `row_scale` is `[N/block_size, K/block_size]` FP32 (widened at load). Both slice on
crates/spark-model/src/tp_shard/quant_shard.rs:143
↓ 2 callersFunctionshort_prompt
()
crates/atlas-spark-bench/src/lib.rs:256
↓ 2 callersMethodshould_skip_tensor
(&self, name: &str)
crates/spark-runtime/src/fast_weights/mod.rs:97
↓ 2 callersFunctionsigmoid_gate_mul_batched
Batched sigmoid gate multiply across multiple tokens. Replaces per-token [`sigmoid_gate_mul`] launches with a single kernel. `gate` is strided (gate_
crates/spark-model/src/layers/ops/ssm_preproc.rs:191
↓ 2 callersFunctionsingle_allowed_token
Count the allowed tokens in `state`'s current bitmask and return the single allowed token id when exactly one is allowed. This is the authoritative "w
crates/spark-server/src/grammar/tests/engine_state.rs:192
↓ 2 callersMethodskip_lm_head_quantization
Whether to skip NVFP4 quantization of the LM head. MLA models (kv_lora_rank > 0) lose logit precision under NVFP4. Gemma-4 dense (31B): the LM head ti
crates/atlas-core/src/config/methods.rs:218
↓ 2 callersMethodslot_bytes
(&self)
crates/spark-storage/src/scratch_pool.rs:45
↓ 2 callersMethodslot_dev_ptr
(&self, slot: u32)
crates/spark-storage/src/scratch_pool.rs:84
↓ 2 callersMethodslot_k_ptr
K stripe device pointer for (slot, kv_head).
crates/spark-storage/src/scratch_pool.rs:88
↓ 2 callersMethodslot_v_ptr
V stripe device pointer for (slot, kv_head).
crates/spark-storage/src/scratch_pool.rs:92
↓ 2 callersFunctionsnapshot_has_weights
True when the directory contains at least one weight file Atlas's safetensors loader can pick up. Mirrors the heuristic in `spark-runtime::weights::Sa
crates/spark-server/src/model_resolver.rs:129
↓ 2 callersFunctionsoftmax2
(g,T)
bench/fp8_dgx2_drift/temp03_excess_div.py:27
↓ 2 callersFunctionsoftmax2
(g, T)
bench/fp8_dgx2_drift/temp03_margin_model.py:39
↓ 2 callersFunctionsoftmax_T
(logits, T)
bench/fp8_dgx2_drift/temp03_sampling_amp.py:50
← previousnext →1,901–2,000 of 7,049, ranked by callers