MCPcopy Create free account

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

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

↓ 4 callersFunctioncuGraphDestroy
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:87
↓ 4 callersFunctioncuLaunchKernel
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:58
↓ 4 callersFunctioncuMemFree_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:29
↓ 4 callersFunctioncuModuleLoadData
── modules / kernels ─────────────────────────────────────────────────
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:48
↓ 4 callersFunctioncutlass_nvfp4_attn_qkv_enabled
Native CUTLASS NVFP4 attention Q/K/V path enabled for the named projection.
crates/spark-model/src/layers/ops/dispatch_helpers.rs:72
↓ 4 callersMethoddec_disk_ref
(&mut self, id: u32)
crates/spark-storage/src/stubs.rs:41
↓ 4 callersMethoddecode
( &self, hidden: DevicePtr, residual: DevicePtr, _state: &mut dyn LayerState,
crates/spark-model/src/layers/nemotron_moe.rs:200
↓ 4 callersMethoddecode_rollback_enabled
Phase-C decode-rollback region availability.
crates/spark-model/src/model/ssm_snapshot.rs:197
↓ 4 callersFunctiondefault_partial_rotary
()
crates/atlas-core/src/config.rs:472
↓ 4 callersFunctiondense_bf16_as_f32
Load a BF16 tensor and convert to F32 on-device via CPU roundtrip. Used for Nemotron-H SSM parameters (A_log, D, dt_bias, conv1d.bias) which are stor
crates/spark-model/src/weight_map/model_a.rs:267
↓ 4 callersFunctiondense_gemm_ba_gates_prefill
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, // [M, K_stride] activation
crates/spark-model/src/layers/ops/ssm_preproc.rs:304
↓ 4 callersFunctiondrive
Drive a full measurement on an existing gate at a given depth.
crates/spark-server/src/scheduler/mtp_gate.rs:391
↓ 4 callersFunctiondrive_one_call
Drive one complete hermes call through the matcher, byte tokens for the JSON body and the single-token open/close tags — the exact shape a Qwen tokeni
crates/spark-server/src/grammar/tests/parallel_calls.rs:23
↓ 4 callersMethoddrop_pagecache
Test helper: drop the page cache for the layer files so subsequent reads actually hit NVMe (otherwise small tests trivially read from RAM).
crates/spark-storage/src/backend/posix.rs:89
↓ 4 callersMethoddtype_for_layer
Resolve the effective dtype for a given attention layer index.
crates/spark-runtime/src/kv_cache.rs:214
↓ 4 callersFunctiondummy
(rows: usize, cols: usize, rank: usize)
crates/spark-server/src/lqer.rs:339
↓ 4 callersFunctiondump_expert_ids
Log the top-K expert indices + weights (post-softmax/sigmoid + renorm) at the last token.
crates/spark-model/src/layers/moe/dump.rs:108
↓ 4 callersFunctiondump_gate_logits
Log the top-10 gate logits at the last token (post-matmul, pre-softmax).
crates/spark-model/src/layers/moe/dump.rs:79
↓ 4 callersMethoddump_response
Write a `{"kind":"response",...}` entry. `is_stream` is true when the `body` is the aggregated SSE chunk list rather than a final non-streaming respon
crates/spark-server/src/request_dumper.rs:84
↓ 4 callersMethodempty_or_bytes
`EmptyStr` for empty input, otherwise a `ByteString`.
crates/xgrammar/src/structural_tag/converter_tags.rs:36
↓ 4 callersFunctionescape_codepoint
Render a codepoint the way C++ `EscapeString(codepoint)` does (no additional escape map).
crates/xgrammar/src/regex/escape_handlers.rs:35
↓ 4 callersFunctionextract_code
Extract Python code from a response.
scripts/test_multiturn_agentic.py:39
↓ 4 callersFunctionextract_logprobs_from_f32
Extract top-K logprobs from an FP32 logits slice for one token position. Computes log-softmax over the logits, extracts the logprob of the sampled to
crates/spark-server/src/scheduler/logprobs.rs:11
↓ 4 callersFunctionf32_to_bf16
(val: f32)
crates/spark-model/src/weight_map/fp8_lut.rs:235
↓ 4 callersFunctionf32_to_bf16
(val: f32)
crates/atlas-quant/src/fp8.rs:100
↓ 4 callersFunctionf32_to_bf16_bits
(f: f32)
crates/spark-model/examples/inferspark_attn_microtest.rs:44
↓ 4 callersFunctionf32s_to_le
(v: &[f32])
crates/spark-model/examples/gdn_regresident_microtest.rs:52
↓ 4 callersMethodfile_path
(&self, id: u64)
crates/spark-runtime/src/kv_spill.rs:90
↓ 4 callersFunctionfill
Fill every bit `0..vocab_size` of `words` with `value`, leaving the padding bits of the final word cleared (so `count`/`all` over the logical vocabula
crates/xgrammar/src/matcher/bitmask.rs:55
↓ 4 callersMethodfill_all
Accept every token (set every logical bit).
crates/xgrammar/src/matcher/bitmask.rs:130
↓ 4 callersFunctionfind_balanced_json_end
Scan `s` starting at an opening `{` and return the byte offset immediately after the matching closing `}`. Returns `None` if the JSON object is incomp
crates/spark-server/src/tool_parser/helpers_a.rs:62
↓ 4 callersMethodforced_token
(&mut self)
crates/xgrammar/src/matcher/coalesce.rs:67
↓ 4 callersFunctionformat_float
Format a double to at most `precision` fractional digits, trimming trailing zeros. Port of `FormatFloat`.
crates/xgrammar/src/schema/float_regex.rs:11
↓ 4 callersFunctionformat_is_unlimited
Whether `format` can match arbitrarily long input. Port of `StructuralTagAnalyzer::IsUnlimited`.
crates/xgrammar/src/structural_tag/analyzer.rs:31
↓ 4 callersMethodformat_other_property
Format an additional/unevaluated property. Port of `FormatOtherProperty` plus the XML override.
crates/xgrammar/src/schema/gen_object.rs:39
↓ 4 callersMethodforward_batched
( &self, input: DevicePtr, num_tokens: usize, ctx: &ForwardContext, st
crates/spark-model/src/layers/mod.rs:120
↓ 4 callersFunctionfp32_to_bits
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:375
↓ 4 callersFunctionfp8_gemm_n128_m128
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, b_fp8: DevicePtr, output:
crates/spark-model/src/layers/ops/gemm_quant.rs:51
↓ 4 callersMethodgdn_fla_scratch
Split-K decode attention workspace (F32 partials). GDN FLA chunked-prefill scratch base (W|U|S|uc sub-divided by the caller). `DevicePtr::NULL` unless
crates/spark-runtime/src/buffers.rs:298
↓ 4 callersMethodgemv_gate_up_with
( &self, other: &Self, gpu: &dyn GpuBackend, x: DevicePtr, gate_y: Dev
crates/spark-model/src/forward/quant_weights.rs:129
↓ 4 callersFunctiongen
(url, prompt)
bench/prefix_cache_contamination2.py:57
↓ 4 callersFunctiongenerate_float_range_regex
Generate a regex matching floats in `[start, end]` inclusive, each bound `None` meaning unbounded, with at most `precision` fractional digits. Port of
crates/xgrammar/src/schema/float_regex.rs:55
↓ 4 callersFunctiongenerate_range_regex
Generate a regex matching integers in `[start, end]` (inclusive), each bound `None` meaning unbounded. Port of `GenerateRangeRegex`.
crates/xgrammar/src/schema/range_regex.rs:271
↓ 4 callersMethodget_grammar_expr
Borrowed view of expr `expr_id`. Panics if out of bounds — the builder is internal and ids it returns are always valid.
crates/xgrammar/src/grammar/builder.rs:255
↓ 4 callersMethodget_or_compute_mask
Get the adaptive token mask for a canonical parser state, computing and caching it on first access (the XGrammar-2 JIT lazy path). `canonical` MUST b
crates/xgrammar/src/compiler/compiled_grammar.rs:236
↓ 4 callersMethodhas_proposer
(&self)
crates/spark-model/src/engine/tests.rs:227
↓ 4 callersFunctionhc_expand
Broadcast a single hidden state into `hc_mult` identical streams: `streams[t, i, d] = hidden[t, d]`. One block per token.
crates/spark-model/src/layers/ops/hyper_connection.rs:15
↓ 4 callersMethodhc_streams
HC residual streams [M, hc_mult, hidden] BF16 (DeepSeek-V4 mHC).
crates/spark-runtime/src/buffers.rs:338
↓ 4 callersMethodinc_disk_ref
(&mut self, id: u32)
crates/spark-storage/src/stubs.rs:39
↓ 4 callersMethodis_active
(&self)
crates/spark-runtime/src/prefix_cache.rs:243
↓ 4 callersFunctionis_ascii_digit
`isdigit` for a codepoint.
crates/xgrammar/src/regex/sub_handlers.rs:123
↓ 4 callersMethodis_enabled
(&self)
crates/spark-server/src/scheduler/ssm_decode_ring.rs:83
↓ 4 callersFunctionis_excluded
Whether `format` carries non-empty excludes. Port of `StructuralTagAnalyzer::IsExcluded`.
crates/xgrammar/src/structural_tag/analyzer.rs:43
↓ 4 callersMethodis_xml
Whether this is one of the XML tool-calling formats.
crates/xgrammar/src/schema/options.rs:24
↓ 4 callersFunctionk4_record_outcome
(num_accepted: usize, seq_len: usize)
crates/spark-server/src/scheduler/verify_k4_step.rs:15
↓ 4 callersMethodkey_pattern
The basic string rule name for the current layer. Port of `GetKeyPattern`.
crates/xgrammar/src/schema/converter.rs:161
↓ 4 callersFunctionlast_tok_stats
|x| + first5 of a BF16 row at the last-token position.
crates/spark-model/src/layers/moe/dump.rs:48
↓ 4 callersFunctionlaunch
( gpu: &dyn GpuBackend, name: &str, ptrs: [DevicePtr; 4], m: u32, n: u32, k: u32,
crates/spark-model/examples/w8a16t_microtest.rs:188
↓ 4 callersFunctionlaunch
( gpu: &dyn GpuBackend, name: &str, ptrs: [DevicePtr; 3], m: u32, n: u32, k: u32,
crates/spark-model/examples/dense_gemm_microtest.rs:168
↓ 4 callersFunctionload
(p)
bench/fp8_dgx2_drift/cosine_vllm_atlas.py:24
↓ 4 callersFunctionload
(p: pathlib.Path)
bench/qwen36_fp8_dequant_audit/cosine_three_way_phase2b.py:32
↓ 4 callersFunctionload_mtp
Load MTP head weights from the weight store. MTP weights use `mtp.*` prefix. For NVFP4/BF16 models all are BF16 in safetensors. For FP8 models, proje
crates/spark-model/src/weight_map/loaders_moe.rs:188
↓ 4 callersMethodlocal_expert_range
Range of expert indices local to this EP rank. Returns (start, end) where start is inclusive and end is exclusive.
crates/atlas-core/src/config/methods.rs:105
↓ 4 callersMethodlogits_buffer_ptr
(&self)
crates/spark-model/src/engine/tests.rs:169
↓ 4 callersFunctionlower_responses_to_chat
Lower an OpenAI Responses-API request into a ChatCompletionRequest so the existing chat-completions pipeline can satisfy it. Prior-turn resume: when
crates/spark-server/src/openai/responses_lowering.rs:30
↓ 4 callersMethodmamba2_d_xbc
Mamba-2 d_xBC = d_inner + 2 * n_groups * ssm_state_size. This is the dimension that goes through conv1d (x + B + C concatenated).
crates/atlas-core/src/config/methods.rs:244
↓ 4 callersMethodmamba2_in_proj_size
Mamba-2 in_proj output size = z + xBC + dt.
crates/atlas-core/src/config/methods.rs:249
↓ 4 callersFunctionmask_with
Build a `BitmaskSlice`-backed buffer with `set_ids` accepted.
crates/xgrammar/src/compiler/coalesce.rs:157
↓ 4 callersFunctionmax_abs
(a: np.ndarray, b: np.ndarray)
bench/fp8_dgx2_drift/op_cosine.py:46
↓ 4 callersFunctionmean_abs
(a: np.ndarray, b: np.ndarray)
bench/fp8_dgx2_drift/op_cosine.py:50
↓ 4 callersFunctionminimax_test_tool_defs
()
crates/spark-server/src/grammar/tests/minimax.rs:6
↓ 4 callersFunctionmla_cache_assemble_batched
( gpu: &dyn GpuBackend, kernel: KernelHandle, kv_latent: DevicePtr, k_rope: DevicePtr, k_c
crates/spark-model/src/layers/ops/prefill_attn_a.rs:115
↓ 4 callersFunctionmodel_dir_path
Resolve the model dir from `ATLAS_INTEGRATION_MODEL_DIR` (env, with `~` expansion) or fall back to `DEFAULT_MODEL_DIR`.
crates/spark-server/tests/integration.rs:26
↓ 4 callersFunctionmoe_expert_gemv
Batched MoE expert W4A16 GEMV: runs top_k expert GEMVs in one launch. Uses device-side pointer tables for weight indirection. expert_indices come fro
crates/spark-model/src/layers/ops/moe_expert.rs:26
↓ 4 callersFunctionmoe_sort_by_expert
( gpu: &dyn GpuBackend, kernel: KernelHandle, topk_ids: DevicePtr, sorted_token_ids: DevicePtr
crates/spark-model/src/layers/ops/moe_grouped_a2.rs:24
↓ 4 callersFunctionmoe_transpose_u8_batched
( gpu: &dyn GpuBackend, kernel: KernelHandle, src_ptrs: DevicePtr, dst_ptrs: DevicePtr, ro
crates/spark-model/src/layers/ops/fp8_moe.rs:260
↓ 4 callersFunctionmoe_unpermute_reduce_indexed
( gpu: &dyn GpuBackend, kernel: KernelHandle, expert_output: DevicePtr, output: DevicePtr,
crates/spark-model/src/layers/ops/moe_grouped_a2.rs:55
↓ 4 callersMethodn_q_slots
(&self)
crates/spark-storage/src/tiled_attention.rs:52
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/w8a16t_microtest.rs:58
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/moe_microtest.rs:60
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/w4a16_bf16_microtest.rs:43
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:35
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/w8a16_microtest.rs:59
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/w4a16_bf16_v2_microtest.rs:43
↓ 4 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/w4a16_gemv_sw_microtest.rs:28
↓ 4 callersFunctionnormalize_paths
Normalize file paths in tool call arguments to be relative to the working directory. OPENCODE BUG FIX (2026-04-22): the previous behaviour stripped t
crates/spark-server/src/tool_parser/validation.rs:321
↓ 4 callersFunctionnvfp4_gemm_bf16_act_weight_t
( act: u64, weight_packed_t: u64, weight_scale_t: u64, weight_scale_2: f32, out: u64,
crates/spark-runtime/src/cutlass/gemm.rs:59
↓ 4 callersMethodnvfp4_scale_bytes
NVFP4 scale section bytes per block (FP8 per-group scales).
crates/spark-runtime/src/kv_cache.rs:367
↓ 4 callersFunctionpack_bf16_weight_to_nvfp4_t
Pack BF16 row-major weight `[N,K]` into the native CUTLASS NVFP4 layout: packed `[N,K/2]` (N-major, K-contiguous — NOT the Atlas transposed `[K/2,N]`)
crates/spark-runtime/src/cutlass/pack.rs:45
↓ 4 callersFunctionparse_bool_field
Parse an optional boolean field, defaulting to `false`.
crates/xgrammar/src/structural_tag/parser_tags.rs:244
↓ 4 callersFunctionparse_next_utf8_or_escaped
Parse the first codepoint from `utf8`, transparently decoding an escape sequence when the input starts with `\`. Returns `(codepoint, bytes_consumed)
crates/xgrammar/src/support/escape.rs:183
↓ 4 callersFunctionparse_qwen3_coder_call
(text: &str, _idx: u32)
crates/spark-server/src/tool_parser/parse_single_b.rs:6
↓ 4 callersFunctionpct
p-th percentile (0–100) of a non-empty list.
bench/bench_concurrency.py:205
↓ 4 callersFunctionpenalty_history_scope
#192: penalty history for the CURRENT tool-call segment — the token history slice that repetition / presence / frequency / LZ / DRY penalties see, cut
crates/spark-server/src/scheduler/sample_step.rs:52
↓ 4 callersFunctionpenalty_params_for
Build the penalty/bias-carrying [`SamplingParams`] for one sequence — the SINGLE source of truth for the repetition / presence / frequency / LZ / DRY
crates/spark-server/src/scheduler/sample_step.rs:102
↓ 4 callersMethodpop_rows
Remove the last `cnt` rows. # Panics Panics if `cnt` exceeds the number of rows.
crates/xgrammar/src/support/compact_2d_array.rs:137
↓ 4 callersMethodpos_scale
(&mut self)
crates/spark-model/examples/int8_gemm_test.rs:24
↓ 4 callersFunctionprefill_attention
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k: DevicePtr, v: DevicePtr,
crates/spark-model/src/layers/ops/prefill_attn_main_a.rs:26
↓ 4 callersMethodproperty_with_number_constraints
Build the repetition wrapper enforcing min/max property counts on a repeated property `pattern`. Port of `GetPropertyWithNumberConstraints`.
crates/xgrammar/src/schema/gen_object_props.rs:16
↓ 4 callersMethodpush_row_owned
Append `new_data` as a fresh row by value (no clone); returns the row index.
crates/xgrammar/src/support/compact_2d_array.rs:101
← previousnext →901–1,000 of 7,049, ranked by callers