MCPcopy Create free account

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

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

↓ 2 callersMethodvit_attention_gemm
( &self, gpu: &dyn GpuBackend, qkv: DevicePtr, // [seq, 3*H*D] o: DevicePtr,
crates/spark-model/src/layers/vision_encoder/enc_impl/vit_block.rs:76
↓ 2 callersFunctionw4a16_gemv_batchm
W4A16 batched GEMV (M<=MAX_M) — the NVFP4 sibling of `w8a16_gemv_batch4/16`. Reads the NVFP4 weight matrix ONCE and computes `m` outputs (one per seq
crates/spark-model/src/layers/ops/quant_dispatch.rs:185
↓ 2 callersFunctionw4a16_gemv_dual_batch2
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight0: &QuantizedWeight,
crates/spark-model/src/layers/ops/quant_dispatch.rs:403
↓ 2 callersFunctionw4a16_gemv_dual_batch3
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight0: &QuantizedWeight,
crates/spark-model/src/layers/ops/quant_dispatch.rs:365
↓ 2 callersFunctionw8a16_gemm_n128_m128
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight_t: DevicePtr, // [
crates/spark-model/src/layers/ops/gemm_quant.rs:638
↓ 2 callersFunctionw8a16_gemm_t_pipelined
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight_t: DevicePtr, block
crates/spark-model/src/layers/ops/gemm_quant.rs:669
↓ 2 callersFunctionwait_and_read
(job: dict)
tests/run_all_models.py:391
↓ 2 callersMethodwait_buffer_free
Wait for the previous DMA out of `buf_idx` to complete (if any) so we can reuse the buffer for a new io_uring read.
crates/spark-storage/src/backend/io_uring.rs:81
↓ 2 callersFunctionwait_ready
(name, host=None, timeout_s=420)
scripts/dev/overnight_marathon.py:107
↓ 2 callersMethodwalk
Walk the tree matching block-aligned token chunks. Returns (matched_blocks, matched_disk_block_ids, matched_tokens). The disk-id vec parallels matched
crates/spark-runtime/src/radix_tree/inner.rs:105
↓ 2 callersMethodwants_typed_arguments
(&self)
crates/spark-server/src/tool_parser/qwen3_xml.rs:22
↓ 2 callersFunctionwarmup_request
Send one throwaway request to absorb first-call JIT costs (CUDA graph capture, cuBLAS workspace, FP8 calibration token, paged KV allocation).
tests/run_all_models.py:402
↓ 2 callersMethodwrite_entry
( &self, kind: &str, endpoint: &str, seq: u64, body: &T, is_st
crates/spark-server/src/request_dumper.rs:94
↓ 2 callersFunctionwrite_f32
(path: pathlib.Path, arr: np.ndarray)
bench/fp8_dgx2_drift/hf_op_dump.py:56
↓ 2 callersMethodwrite_logits_for_token
Write BF16 logits that make `token_id` the argmax.
crates/spark-model/src/engine/tests.rs:72
↓ 2 callersFunctionwrite_string
Write `s` as a JSON string literal with the standard escapes.
crates/xgrammar/src/structural_tag/json_serialize.rs:72
↓ 2 callersFunctionwrite_test_safetensors
Build a minimal `model.safetensors` with two BF16 tensors and one U8 tensor. Layout written by hand so the test doesn't depend on the safetensors crat
crates/spark-runtime/tests/fast_weights_parity.rs:19
↓ 2 callersFunctionwriter
()
crates/spark-server/src/scheduler/logit_dump.rs:33
↓ 2 callersFunctionxml_param_value_body_ebnf
Body EBNF for an XML-style `<parameter=NAME>VALUE{value_close}` parameter block (a `<parameter=…>…{close}` sequence). The VALUE region accepts arbitra
crates/spark-server/src/grammar/compile_tools.rs:119
↓ 2 callersFunctionyarn_get_mscale
YaRN attention-temperature factor for a single `mscale` value. Matches HF `yarn_get_mscale`: `0.1 * mscale * ln(scale) + 1.0` for `scale > 1`, else `1
crates/spark-model/src/layers/qwen3_attention/helpers.rs:13
↓ 2 callersMethodzero_block
Zero all KV data in a block across all layers. Prevents stale KV data from previous sequences from leaking into new sequences via paged attention read
crates/spark-runtime/src/kv_cache/paged_impl.rs:89
↓ 2 callersMethodzero_slot
Zero h_state and conv_state for a slot across all SSM layers. Must be called on slot allocation to prevent stale SSM state from prior sequences from c
crates/spark-model/src/model/ssm_pool.rs:212
↓ 1 callersMethod__init__
(self)
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:137
↓ 1 callersMethod__init__
(self, config: FP8ScaledMMLinearLayerConfig)
bench/fp8_dgx2_drift/vllm_src/scaled_mm_BlockScaledMMLinearKernel.py:49
↓ 1 callersFunction_bash_commands
Extract every bash command string the agent issued.
bench/fp8_dgx2_drift/harness/followed_directions.py:58
↓ 1 callersFunction_build_timeout_s
SSOT for the scorer's `cargo build` timeout. Default raised to 600s so a cold build under heavy CPU contention (the realistic worst case when
bench/fp8_dgx2_drift/harness/score_run.py:253
↓ 1 callersFunction_cpu_cuda_shim
NemotronH's Mamba `torch_forward` hardcodes `with torch.cuda.stream(torch.cuda.default_stream(device)): ...` (modeling_nemotron_h.py:769) pure
bench/mamba_ssm_stub.py:105
↓ 1 callersFunction_deployed_image
()
bench/fp8_dgx2_drift/harness/overnight/run_level.py:168
↓ 1 callersFunction_force_torch_path
Keep transformers' fast-path probes False so NemotronH uses the canonical pure-PyTorch `torch_forward` reference, not Triton kernels.
bench/mamba_ssm_stub.py:93
↓ 1 callersMethod_forward_core_decode_fast
( self, qkvz: torch.Tensor, ba: torch.Tensor, z_out: torch.Tensor, cor
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:1312
↓ 1 callersMethod_forward_core_decode_non_spec
Core attention computation with a packed non-spec decode fast path.
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:1378
↓ 1 callersMethod_forward_core_rocm
ROCm AITER fast path: conv1d + recurrent attention from packed qkvz/ba layout. For decode-only (no spec, no prefill), dispatches dire
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:987
↓ 1 callersFunction_free_port
Acquire an OS-assigned ephemeral port that is free *right now*. Bind 127.0.0.1:0, read the assigned port, close. The scorer then runs the age
bench/fp8_dgx2_drift/harness/score_run.py:214
↓ 1 callersFunction_get_priority_backends
Get available backends in priority order based on platform and config. This function can be extended to become more complex as needed.
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:61
↓ 1 callersFunction_grouped_rms
(t)
bench/mamba_ssm_stub.py:30
↓ 1 callersFunction_has_tests
tests/ integration dir, or a unit-test attribute in any source file.
bench/fp8_dgx2_drift/harness/followed_directions.py:88
↓ 1 callersFunction_install
()
bench/mamba_ssm_stub.py:57
↓ 1 callersFunction_load_json_fixture
(name: str)
scripts/test_coherence.py:807
↓ 1 callersFunction_reads_port_env
(target: pathlib.Path)
bench/fp8_dgx2_drift/harness/followed_directions.py:102
↓ 1 callersFunction_tool_calls_supported
(model: str)
tests/single_gpu_suite.py:503
↓ 1 callersFunction_warm_target_dir
SSOT for the shared, pre-warmed cargo target directory. Mirrors warm_cargo_cache.sh's ATLAS_WARM_TARGET_DIR (same env var, same explicit defa
bench/fp8_dgx2_drift/harness/score_run.py:236
↓ 1 callersMethoda_g_bytes
(&self)
crates/spark-storage/src/predictor.rs:51
↓ 1 callersMethodaccept_bytes
Accept a literal byte string — the byte-level form of [`Self::accept_string`] (token bytes are not always UTF-8).
crates/xgrammar/src/matcher/matcher.rs:276
↓ 1 callersMethodaccept_forced_chain
Detect the Coalescence forced chain and accept it in place — the efficient server primitive. Advances the matcher past the whole forced run (no peek /
crates/xgrammar/src/api/matcher.rs:161
↓ 1 callersMethodaccept_stop_token
Try to accept the stop token, terminating the matcher. Returns whether the stop token was acceptable. Port of `AcceptStopToken`.
crates/xgrammar/src/matcher/matcher.rs:224
↓ 1 callersMethodacceptable_byte_ranges
All byte ranges acceptable as the next input, across every latest scanable state. Ranges may overlap and are unsorted.
crates/xgrammar/src/earley/accept.rs:61
↓ 1 callersMethodacceptable_ranges_of
Append the byte ranges `state` can accept to `ranges` as inclusive `(min, max)` pairs. FSM-backed states contribute their char-range edges; non-FSM st
crates/xgrammar/src/earley/accept.rs:19
↓ 1 callersMethodadadec_label
AdaDec diagnostic path label — only tags the env-gated `ATLAS_ADADEC_DIAGNOSTIC` JSONL record; never alters a transform.
crates/spark-server/src/scheduler/sample_step.rs:23
↓ 1 callersFunctionadd_back_edges_to_fsm
Insert Aho-Corasick back edges so a failed match restarts the search.
crates/xgrammar/src/fsm/builder/trie.rs:118
↓ 1 callersMethodadd_basic_rules
Register the basic helper rules. Port of `AddBasicRules` / `AddHelperRules` for both formats.
crates/xgrammar/src/schema/converter.rs:223
↓ 1 callersMethodadd_eos_edge
Add an EOS edge.
crates/xgrammar/src/fsm/fsm.rs:115
↓ 1 callersMethodadd_root_rule
Add the top-level `root` rule referencing `ref_rule_id`. Port of `AddRootRuleAndGetGrammar`.
crates/xgrammar/src/structural_tag/converter.rs:45
↓ 1 callersMethodadvance_byte_string
Advance a `ByteString` element by one byte. The string cannot be skipped, so a partial match is appended directly; a completed string advances `elemen
crates/xgrammar/src/earley/scan.rs:74
↓ 1 callersMethodadvance_character_class
Advance a `CharacterClass` element by `ch`. On a completed (single- or multi-byte) match `element_id` advances; partial UTF-8 progress is recorded in
crates/xgrammar/src/earley/scan_charclass.rs:55
↓ 1 callersMethodadvance_character_class_star
Advance a `CharacterClassStar` element by `ch`. Identical range logic to [`Self::advance_character_class`], but a completed match loops on the same el
crates/xgrammar/src/earley/scan_charclass.rs:77
↓ 1 callersMethodadvance_fsm
Advance an FSM-backed state by `ch` along char-range edges. A successor that is purely scanable (no rule-ref/epsilon and not an end state) is added di
crates/xgrammar/src/earley/scan.rs:41
↓ 1 callersFunctionadvise_prefetch_shard
(file: &File, shard_path: &Path, file_size: u64)
crates/spark-runtime/src/fast_weights/mod.rs:390
↓ 1 callersFunctionaggregate_tier
Strict tier match — file name must be exactly `run_<tier>_<N>.json` with `<N>` a positive integer. Prevents glob collisions between prefix-rel
bench/fp8_dgx2_drift/harness/aggregate.py:109
↓ 1 callersMethodall_gather
(&self, _send_ptr: u64, _recv_ptr: u64, _bytes: usize)
crates/spark-comm/src/lib.rs:165
↓ 1 callersMethodall_set
(&self)
crates/xgrammar/src/matcher/bitmask.rs:144
↓ 1 callersMethodalloc
(&self, bytes: usize)
crates/spark-runtime/src/metal_backend.rs:251
↓ 1 callersFunctionalloc_full_attention_scratch
(backend: &MetalGpuBackend)
crates/spark-model/examples/metal_qwen35_inference/alloc.rs:13
↓ 1 callersMethodalloc_host_pinned
(&self, bytes: usize)
crates/spark-runtime/src/metal_backend.rs:670
↓ 1 callersFunctionalloc_linear_attention_scratch
(backend: &MetalGpuBackend)
crates/spark-model/examples/metal_qwen35_inference/alloc.rs:35
↓ 1 callersFunctionalloc_linear_attention_state
(backend: &MetalGpuBackend)
crates/spark-model/examples/metal_qwen35_inference/alloc.rs:58
↓ 1 callersMethodalloc_node
(&mut self, node: RadixNode)
crates/spark-runtime/src/radix_tree/inner.rs:88
↓ 1 callersMethodalloc_sequence_dispatch
(&self)
crates/spark-model/src/model/trait_impl/meta.rs:90
↓ 1 callersMethodalloc_state
(&self, gpu: &dyn GpuBackend)
crates/spark-model/src/layers/deepseek_v4_mtp.rs:474
↓ 1 callersMethodalloc_state_inner
Allocate per-sequence state. Mirrors the body's own `alloc_state` for the body sub-state.
crates/spark-model/src/layers/deepseek_v4_mtp.rs:164
↓ 1 callersMethodalloc_state_inner
(&self, gpu: &dyn GpuBackend)
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_phase3.rs:89
↓ 1 callersFunctionanalyze
Run the analyzer over a structural tag, mutating its [`Format`] tree in place. Port of `StructuralTagAnalyzer::Analyze`.
crates/xgrammar/src/structural_tag/analyzer.rs:25
↓ 1 callersFunctionanalyze
Invoke analyze.mjs on a raw sample JSON; return its metrics dict.
bench/longcode/harness.py:101
↓ 1 callersFunctionapi_call
(messages, max_tokens=8000)
scripts/dev/agentic_test.py:43
↓ 1 callersFunctionapi_call
Make an OpenAI-compatible API call.
tests/single_gpu_suite.py:17
↓ 1 callersMethodappend_expr
Append a raw `(type, data[])` expression to the CSR store and return its new expr id. Used by `LookaheadAssertionAnalyzer`, which adds Sequence exprs
crates/xgrammar/src/grammar/data.rs:179
↓ 1 callersFunctionappender
()
crates/spark-server/src/scheduler/logit_processors/adadec_diag.rs:46
↓ 1 callersMethodapply
( &self, logits: &mut [f32], a: &mut ActiveSeq, ctx: &LogitsContext, )
crates/spark-server/src/scheduler/logit_processors/mid_word.rs:23
↓ 1 callersMethodapply_block_scaled_mm
( self, A: torch.Tensor, B: torch.Tensor, As: torch.Tensor, Bs: torch.
bench/fp8_dgx2_drift/vllm_src/scaled_mm_BlockScaledMMLinearKernel.py:144
↓ 1 callersFunctionapply_canonical_rotation_inplace
( gpu: &dyn GpuBackend, weight_bf16: DevicePtr, outer: usize, n_heads: usize, head_dim: us
crates/spark-model/src/weight_loader/qwen35/load_layers/tq_plus_weight_rotation.rs:48
↓ 1 callersMethodapply_could_be_empty
Apply the "object could be empty" wrapping. Port of the tail of `GenerateObject`.
crates/xgrammar/src/schema/gen_object.rs:292
↓ 1 callersFunctionapply_dry_penalty
DRY (Don't Repeat Yourself) penalty. Ported from llama.cpp PR #9702. Uses suffix matching to find the longest repeated sequence ending at the current
crates/spark-runtime/src/sampler.rs:289
↓ 1 callersMethodapply_logit_softcap
Apply logit softcapping in-place: `logits[i] = cap * tanh(logits[i] / cap)`. BF16 path. Use `apply_logit_softcap_dtype` to dispatch by buffer dtype.
crates/spark-model/src/model/impl_a3.rs:275
↓ 1 callersMethodapply_logit_softcap_dtype
Dtype-aware softcap dispatcher. Picks the BF16 or FP32 kernel based on whether the buffer holds FP32 logits. No-op when softcap is disabled (cap == 0)
crates/spark-model/src/model/impl_a3.rs:298
↓ 1 callersFunctionapply_lz_penalty
Sampling pipeline: repetition_penalty → top-n-sigma → temperature → top-k → softmax → min-p → top-p → sample. `data` contains FP32 logits (4 bytes pe
crates/spark-runtime/src/sampler.rs:246
↓ 1 callersFunctionapply_model_default_num_drafts
( args: &mut cli::ServeArgs, ptx_set: &atlas_kernels::TargetPtxSet, )
crates/spark-server/src/main_modules/serve_phases/config.rs:89
↓ 1 callersFunctionapply_overrides
Apply KEY=VAL overrides to a request body (shallow, numeric-aware).
scripts/replay_dump.py:62
↓ 1 callersFunctionapply_rollback
Apply the truncation + KV/position rewind + watchdog-state reset to a live [`ActiveSeq`]. Delegates the buffer rewind to [`rewind_buffers`].
crates/spark-server/src/scheduler/rollback.rs:374
↓ 1 callersMethodargmax_batch
(&self, logits_ptr: DevicePtr, n: usize, stream: u64)
crates/spark-model/src/engine/tests.rs:180
↓ 1 callersMethodargmax_batch_dispatch
( &self, logits_ptr: DevicePtr, n: usize, _stream: u64, )
crates/spark-model/src/model/trait_impl/meta.rs:251
↓ 1 callersFunctionargmax_bf16
(data: &[u8])
crates/spark-model/src/engine/tests.rs:5
↓ 1 callersFunctionargmax_grammar_masked
CPU grammar-masked argmax over the BF16 logits (mirrors `MtpHead`): D2H the logit vector, mask off (→ -inf) tokens the grammar rejects, argmax on CPU.
crates/spark-model/src/layers/deepseek_v4_mtp.rs:434
↓ 1 callersMethodargmax_on_device_dispatch
( &self, logits_ptr: DevicePtr, _stream: u64, )
crates/spark-model/src/model/trait_impl/meta.rs:213
↓ 1 callersMethodas_any
(&self)
crates/spark-model/src/speculative.rs:107
↓ 1 callersMethodas_any_mut
(&mut self)
crates/spark-model/src/speculative.rs:110
↓ 1 callersMethodas_words_mut
Mutable access to the packed words (for the W7 shim / kernels).
crates/xgrammar/src/matcher/bitmask.rs:105
↓ 1 callersFunctionassemble_layer
( ctx: MistralLayerCtx<'_>, yarn_inv_freq: DevicePtr, layer_kv_dtypes: &[KvCacheDtype], )
crates/spark-model/src/mistral_loader/loader_impl/phase_assemble.rs:16
↓ 1 callersFunctionassess_output
Assess output quality.
scripts/dev/ssm_context_profile_v2.py:144
↓ 1 callersMethodat_last
Whether `current_` is exactly one before `end_` (the C++ `current_ == end_ - 1` test used for `$`).
crates/xgrammar/src/regex/cursor.rs:59
↓ 1 callersMethodat_start
`current_ == start_`: nothing consumed yet.
crates/xgrammar/src/regex/cursor.rs:53
↓ 1 callersFunctionatlasGenerators
()
site/vite.config.js:12
← previousnext →2,101–2,200 of 7,049, ranked by callers