MCPcopy Create free account

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

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

↓ 1 callersFunctionconcurrent_bench
Run *concurrency* streaming requests simultaneously. All threads are synchronized at a barrier so they fire at the same instant, ensurin
bench/bench_concurrency.py:214
↓ 1 callersMethodconfig_ref
Borrow the model config for post-construction wiring (e.g. building the DeepSeek-V4 MTP proposer, which needs `hidden_size` / `kv_lora_rank` / `qk_rop
crates/spark-model/src/model/impl_b3.rs:120
↓ 1 callersFunctionconsume_budget
Decrement `remaining` by one. Returns false (without touching `remaining`) when it is already 0 — the caller must finish the sequence rather than wrap
crates/spark-server/src/scheduler/types.rs:344
↓ 1 callersMethodconsume_space
Skip whitespace and `#` comments.
crates/xgrammar/src/grammar/lexer.rs:90
↓ 1 callersFunctioncontains
True if `needle` occurs anywhere in `haystack`.
crates/xgrammar/src/compiler/tests/decompose_tests.rs:121
↓ 1 callersFunctioncontains_from
True if `needle` occurs in `haystack` starting at any index >= `from`. Mirrors C++ `std::string::find(needle, from)`.
crates/xgrammar/src/compiler/compile.rs:156
↓ 1 callersFunctioncontains_subslice
True if `needle` occurs as a contiguous subslice of `haystack` (the empty needle always matches), mirroring `std::string::find`.
crates/xgrammar/src/tokenizer/info.rs:260
↓ 1 callersFunctioncontent_hash
FNV-1a 64-bit content fingerprint → 12 hex chars. Deterministic, no deps. Used to force atlas-kernels recompilation when the generated kernel set chan
crates/atlas-kernels/build.rs:461
↓ 1 callersFunctioncontinue_in_progress_prefills
( model: &dyn Model, policy: &dyn SchedulingPolicy, active: &mut Vec<ActiveSeq>, prefilling: &
crates/spark-server/src/scheduler/phase_continue_prefills.rs:62
↓ 1 callersMethodconv1d_update_biased
Conv1d update with bias (Nemotron conv1d has learned bias, unlike Qwen3). Kernel: `causal_conv1d_update(conv_state, input, weight, bias, output, batc
crates/spark-model/src/layers/nemotron_mamba2.rs:145
↓ 1 callersMethodconvert
Top-level conversion entry. Port of `Convert` (both the JSON and XML variants).
crates/xgrammar/src/schema/converter.rs:190
↓ 1 callersFunctionconvert_stop_reason
Convert Anthropic finish reason to stop_reason string.
crates/spark-server/src/anthropic/helpers.rs:58
↓ 1 callersFunctionconvert_to_fp8_moe_kernel_format
( fp8_backend: Fp8MoeBackend, layer: torch.nn.Module, w13: torch.Tensor, w2: torch.Tensor,
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:424
↓ 1 callersMethodcopy_d2d_async
Async device-to-device copy (no stream synchronization).
crates/spark-runtime/src/gpu.rs:191
↓ 1 callersMethodcopy_d2h
(&self, src: DevicePtr, dst: &mut [u8])
crates/spark-runtime/src/metal_backend.rs:307
↓ 1 callersMethodcopy_logits_to_host_dispatch
( &self, logits_ptr: DevicePtr, dst: &mut [u8], )
crates/spark-model/src/model/trait_impl/meta.rs:197
↓ 1 callersMethodcopy_slot
( &self, from: usize, to: usize, gpu: &dyn GpuBackend, stream: u64,
crates/spark-model/src/model/ssm_pool.rs:340
↓ 1 callersMethodcore_clone
Clone the wrapped pure-Rust `TokenizerInfo` — the compiler core takes it by value.
crates/xgrammar/src/api/tokenizer.rs:101
↓ 1 callersFunctioncos
(a: &[u16], b: &[u16], off: usize, n: usize)
crates/spark-model/examples/inferspark_attn_microtest.rs:193
↓ 1 callersFunctioncos
(a: &[u16], b: &[u16], off: usize, n: usize)
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:289
↓ 1 callersFunctioncos
(a: &[f32], b: &[f32])
crates/spark-model/examples/w8a16_gemv_batch4_microtest.rs:60
↓ 1 callersFunctioncos
(a: np.ndarray, b: np.ndarray)
bench/phase2c-kv-sweep/compare-configs.py:22
↓ 1 callersFunctioncos_bf16
(a: &[u16], b: &[u16])
crates/spark-model/examples/gdn_regresident_microtest.rs:61
↓ 1 callersFunctioncos_f32
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_regresident_microtest.rs:75
↓ 1 callersFunctioncosine
(a: &[u16], b: &[u16])
crates/spark-model/examples/w4a16_gemv_sw_microtest.rs:96
↓ 1 callersFunctioncosine_u16
(a: &[u16], b: &[u16])
crates/spark-model/examples/fp4_mma_microproof.rs:71
↓ 1 callersFunctioncount_drift_events
Per-write-tool-call drift signatures. All counts are over the WRITE tool invocations only. Drift modes catalogued in research3_drift_catalog.
bench/fp8_dgx2_drift/harness/score_run.py:105
↓ 1 callersFunctioncount_tool_calls
Aggregate counts + per-turn breakdown. `tool_calls_per_turn[i]` = count of tool_use events that happened during the i-th assistant message in
bench/fp8_dgx2_drift/harness/score_run.py:185
↓ 1 callersFunctioncpu_fwht
In-place butterfly WHT over `n` f32 values + 1/sqrt(n) normalization.
crates/spark-runtime/src/metal_backend/tests/parity_turbo.rs:19
↓ 1 callersFunctioncpu_reference
CPU reference mirroring the kernel's two-level FP32 accumulation exactly: inner accumulates one full 128-K block, then `outer += inner * scale`. Input
crates/spark-model/examples/w8a16t_microtest.rs:121
↓ 1 callersFunctioncpu_reference
CPU reference mirroring the kernel math: C[m,n] = bf16(Σ_k A[m,k]·B[n,k]) with FP32 accumulation. A is [M,K] row-major, B is [N,K] row-major (read tra
crates/spark-model/examples/dense_gemm_microtest.rs:102
↓ 1 callersFunctioncpu_reference
CPU reference mirroring the kernel's two-level FP32 accumulation exactly: inner accumulates one full 128-K block, then `outer += inner * scale`.
crates/spark-model/examples/w8a16_microtest.rs:123
↓ 1 callersFunctioncpu_wht
Forward rotation matching `wht_bf16_inplace` with TQ_PLUS_SIGNS: signs1 → FWHT → signs2.
crates/spark-runtime/src/metal_backend/tests/parity_turbo.rs:43
↓ 1 callersMethodcreate_ba_proj
( self, hidden_size: int, num_v_heads: int, quant_config: QuantizationConfig |
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:435
↓ 1 callersMethodcreate_event
(&self)
crates/spark-runtime/src/metal_backend.rs:598
↓ 1 callersMethodcreate_event_dispatch
(&self)
crates/spark-model/src/model/trait_impl/ep_misc.rs:80
↓ 1 callersFunctioncreate_fp8_input_scale
Create input scale parameter for static activation quantization.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1237
↓ 1 callersFunctioncreate_fp8_weight_parameter
Create FP8 weight parameter.
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:1173
↓ 1 callersMethodcreate_qkvz_proj
( self, hidden_size: int, key_dim: int, value_dim: int, quant_config:
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:409
↓ 1 callersFunctioncreate_stream
()
crates/spark-comm/src/nccl.rs:260
↓ 1 callersMethodcreate_stream
(&self)
crates/spark-runtime/src/metal_backend.rs:578
↓ 1 callersMethodcreate_stream_dispatch
(&self)
crates/spark-model/src/model/trait_impl/ep_misc.rs:76
↓ 1 callersFunctionct_eq
Constant-time byte-slice equality. Returns `1` if the slices are byte-equal, `0` otherwise. Always processes `max(a.len(), b.len())` bytes — never sho
crates/spark-server/src/auth.rs:106
↓ 1 callersFunctionctx
()
crates/spark-runtime/src/cublaslt.rs:122
↓ 1 callersFunctioncuCtxGetCurrent
── init / context ────────────────────────────────────────────────────
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:20
↓ 1 callersFunctioncuCtxSetCurrent
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:21
↓ 1 callersFunctioncuDeviceGet
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:101
↓ 1 callersFunctioncuFuncSetAttribute
On NVIDIA this opts a module function into >48KB dynamic shared mem. On AMD the LDS is sized from hipModuleLaunchKernel's shared-mem arg (up to the RD
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:57
↓ 1 callersFunctioncuGetErrorName
── errors ────────────────────────────────────────────────────────────
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:24
↓ 1 callersFunctioncuGetErrorString
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:25
↓ 1 callersFunctioncuGraphInstantiate
── CUDA graphs ─────────────────────────────────────────────────────── cudarc's cuGraphInstantiate (legacy arity): (exec*, graph, errNode*, logBuf, bu
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:81
↓ 1 callersFunctioncuInit
--- CudaContext::new path (cuDeviceGetAttribute maps CUDA enum NUMBERS to sane values, bypassing HIP enum mismatch) ---
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:99
↓ 1 callersFunctioncuMemAllocManaged
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:32
↓ 1 callersFunctioncuMemcpyHtoD_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:91
↓ 1 callersFunctioncuModuleGetGlobal_v2
Fetch a __constant__/global symbol's device addr+size (registry::device_symbol).
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:51
↓ 1 callersFunctioncuModuleUnload
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:53
↓ 1 callersFunctioncuStreamBeginCapture
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:69
↓ 1 callersFunctioncublas_fp8_enabled
Native-FP8 cuBLASLt GEMM path enabled? (`ATLAS_CUBLAS_FP8=1`), cached.
crates/spark-model/src/layers/ops/dispatch_helpers.rs:39
↓ 1 callersFunctioncublas_fp8_rowwise_proj
( gpu: &dyn spark_runtime::gpu::GpuBackend, act_bf16: spark_runtime::gpu::DevicePtr, act_fp8_scrat
crates/spark-model/src/layers/ops/dispatch_proj.rs:135
↓ 1 callersFunctioncuda_free_memory_bytes
Query GPU free memory without requiring a GpuBackend reference. Safe to call from any thread that shares the CUDA context. On unified memory systems
crates/spark-runtime/src/cuda_backend.rs:127
↓ 1 callersFunctioncutlass_bf16_proj
( gpu: &dyn spark_runtime::gpu::GpuBackend, act: spark_runtime::gpu::DevicePtr, fp8w: &crate::weig
crates/spark-model/src/layers/ops/dispatch_proj.rs:266
↓ 1 callersFunctioncutlass_gemm_enabled
CUTLASS GEMM path enabled? (`ATLAS_CUTLASS_GEMM=1`), cached. M0 is scoped to dense BF16 projections using the same FP8→BF16 cached dequant as cuBLASLt
crates/spark-model/src/layers/ops/dispatch_helpers.rs:47
↓ 1 callersFunctioncutlass_nvfp4_weight_from_fp8_cached
( gpu: &dyn spark_runtime::gpu::GpuBackend, fp8w: &crate::weight_map::Fp8Weight, stream: u64, )
crates/spark-model/src/layers/ops/dispatch_proj.rs:335
↓ 1 callersFunctioncutlass_nvfp4_weight_transposed_cached
Transpose a native NVFP4 checkpoint weight from Atlas `[K/2,N]` into the CUTLASS `[N,K/2]` byte layout the GEMM consumes, caching the result by source
crates/spark-model/src/layers/ops/dispatch_proj.rs:289
↓ 1 callersMethoddebug_buffer_checksum
Env-gated (`ATLAS_SSM_SAVE_DUMP`) per-buffer checksum probe. CBD: localize a stale/uninitialized decode-scratch buffer on the prefix-cache skip path.
crates/spark-runtime/src/buffers.rs:364
↓ 1 callersMethoddebug_kv_checksum_per_layer
DEBUG (env-gated): PER-LAYER K and V fingerprint over `blocks`, emitting (sum, ssq, sabs) for each attention layer so a localized divergence can't can
crates/spark-runtime/src/kv_cache/paged_impl.rs:248
↓ 1 callersFunctiondebug_sync_kernels
One-time read of `ATLAS_DEBUG_SYNC_KERNELS` (PCND opt-in). When `1`, `KernelLaunch::launch` synchronizes the stream after every launch so an asynchron
crates/spark-runtime/src/kernel_args.rs:210
↓ 1 callersMethoddec_refs
Decrement ref_count on all nodes along the matched path.
crates/spark-runtime/src/radix_tree/inner.rs:194
↓ 1 callersFunctiondecide
( nvfs: bool, cufile_open: bool, cufile: Option<f64>, iou: Option<f64>, posix: Option<f64>
crates/spark-storage/src/probe.rs:204
↓ 1 callersMethoddecode_batch
( &self, tokens: &[u32], seqs: &mut [&mut SequenceState], stream: u64, )
crates/spark-model/src/model/trait_impl/mod.rs:81
↓ 1 callersMethoddecode_batch_dispatch
( &self, tokens: &[u32], seqs: &mut [&mut SequenceState], stream: u64, )
crates/spark-model/src/model/trait_impl/decode_a2.rs:24
↓ 1 callersMethoddecode_batched_conv_gdn
Run conv1d_update_l2norm + GDN over `num_tokens` (multi-token decode / MTP verify). Picks the K=2/3/4/17 fused WY path if available, otherwise falls b
crates/spark-model/src/layers/qwen3_ssm/trait_decode_batched_conv_gdn.rs:62
↓ 1 callersFunctiondecode_batched_default
( layer: &(impl TransformerLayer + ?Sized), hidden: DevicePtr, residual: DevicePtr, num_tokens
crates/spark-model/src/layer/transformer_layer/default_loops.rs:52
↓ 1 callersMethoddecode_batched_inner
( &self, hidden: DevicePtr, residual: DevicePtr, num_tokens: usize, st
crates/spark-model/src/layers/qwen3_ssm/trait_decode_batched.rs:9
↓ 1 callersMethoddecode_direct_moe
Nano 30B: direct MoE — routed experts operate on hidden_size.
crates/spark-model/src/layers/nemotron_moe/decode_helpers.rs:111
↓ 1 callersMethoddecode_dispatch
( &self, token: u32, seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/decode_a.rs:31
↓ 1 callersMethoddecode_draft_dispatch
( &self, token: u32, seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/model/trait_impl/speculative.rs:85
↓ 1 callersFunctiondecode_image
Decode a base64 data URI or raw base64 string into a `DynamicImage`.
crates/spark-model/src/vision_preprocess.rs:22
↓ 1 callersMethoddecode_inner
( &self, hidden: DevicePtr, residual: DevicePtr, _state: &mut dyn LayerState,
crates/spark-model/src/layers/qwen3_attention/trait_impl/decode_inner.rs:17
↓ 1 callersMethoddecode_inner_hc
( &self, hidden: DevicePtr, _residual: DevicePtr, _state: &mut dyn LayerState,
crates/spark-model/src/layers/qwen3_attention/trait_impl/decode_inner.rs:417
↓ 1 callersMethoddecode_latent_moe
Super 120B: LatentMoE — routed experts operate in latent space `[moe_latent_size]`. fc1_latent(normed) → latent `[L]` routed up(latent) → `[inter]`,
crates/spark-model/src/layers/nemotron_moe/decode_helpers.rs:209
↓ 1 callersMethoddecode_logits_fp32
(&self)
crates/spark-model/src/model/trait_impl/mod.rs:379
↓ 1 callersMethoddecode_logits_fp32_dispatch
(&self)
crates/spark-model/src/model/trait_impl/ep_misc.rs:49
↓ 1 callersMethoddecode_logits_ptr_dispatch
(&self)
crates/spark-model/src/model/trait_impl/ep_misc.rs:55
↓ 1 callersMethoddecode_marconi_checkpoint_dispatch
#155 iter3: save a block-aligned Marconi SSM snapshot DURING decode so the next turn's warm hit restores from decode-produced state near the conversat
crates/spark-model/src/model/trait_impl/decode_checkpoint.rs:39
↓ 1 callersMethoddecode_ms_ssm_recurrent
( &self, states: &'a mut [&'b mut (dyn LayerState + 'static)], n: usize, norme
crates/spark-model/src/layers/qwen3_ssm/trait_decode_multi_seq/ssm_batched_recurrent.rs:18
↓ 1 callersFunctiondecode_multi_seq_default
( layer: &(impl TransformerLayer + ?Sized), hidden: DevicePtr, residual: DevicePtr, num_seqs:
crates/spark-model/src/layer/transformer_layer/default_loops.rs:88
↓ 1 callersMethoddecode_multi_seq_inner
( &self, hidden: DevicePtr, residual: DevicePtr, num_seqs: usize, stat
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/mod.rs:32
↓ 1 callersMethoddecode_multi_seq_inner
Multi-sequence decode for SSM (gated-delta-net) layers. The SSM mixer (conv1d + GDN recurrence + in/out projections) carries independent per-sequence
crates/spark-model/src/layers/qwen3_ssm/trait_decode_multi_seq.rs:36
↓ 1 callersMethoddecode_multi_seq_inner_hc
HC-enabled batched multi-sequence decode. Only the sequential per-token FFN branch is implemented (DeepSeek-V4 MLA always takes this path).
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/mod.rs:117
↓ 1 callersMethoddecode_profiled
Profile mode: run each layer with sync+timing, no CUDA graph.
crates/spark-model/src/model/impl_b1.rs:241
↓ 1 callersFunctiondecode_response_text
Decode `(reasoning_content, output_text)` from the scheduler's response. When `enable_thinking=true`, split at the last `</think>` token. When `enable
crates/spark-server/src/api/chat_blocking.rs:232
↓ 1 callersFunctiondecode_timing_record
DIAG (ATLAS_DECODE_TIMING=1): localize the host-path decode cost. Splits the per-token wall into `copy` (D2H of the full 248k-vocab logits + the GPU f
crates/spark-server/src/scheduler/decode_logits_step.rs:12
↓ 1 callersFunctiondecode_token
Decode one raw vocabulary token to its byte sequence for `vocab_type`.
crates/xgrammar/src/tokenizer/decoder.rs:21
↓ 1 callersMethoddecode_verify_dflash
DFlash γ-token verification: 1 verified + γ drafts → per-position argmax. Variable-length γ (vs fixed K=2/3/4) because it's a drafter config field. CU
crates/spark-model/src/traits/model.rs:417
↓ 1 callersMethoddecode_verify_dispatch
( &self, tokens: &[u32], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/model/trait_impl/verify_a.rs:31
↓ 1 callersMethoddecode_verify_graphed
( &self, tokens: &[u32; 2], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/mod.rs:241
↓ 1 callersMethoddecode_verify_graphed_dispatch
( &self, tokens: &[u32; 2], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/verify_b.rs:39
↓ 1 callersMethoddecode_verify_graphed_k3
( &self, tokens: &[u32; 3], seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/model/trait_impl/mod.rs:249
↓ 1 callersMethoddecode_verify_graphed_k3
( &self, tokens: &[u32; 3], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/engine/tests.rs:266
← previousnext →2,401–2,500 of 7,049, ranked by callers