MCPcopy Create free account

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

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

↓ 2 callersMethodgemv_silu_gate_resid
( &self, gpu: &dyn GpuBackend, gate: DevicePtr, up: DevicePtr, x_resid
crates/spark-model/src/forward/quant_weights.rs:153
↓ 2 callersMethodgenerate_array
Generate the EBNF body for an array spec. Port of `GenerateArray`; the XML wrapper just bumps `nested_object_level`.
crates/xgrammar/src/schema/gen_array.rs:15
↓ 2 callersMethodgenerate_integer
Generate the body for an integer spec. Port of `GenerateInteger`.
crates/xgrammar/src/schema/gen_scalar.rs:28
↓ 2 callersMethodgenerate_number
Generate the body for a number spec. Port of `GenerateNumber`.
crates/xgrammar/src/schema/gen_scalar.rs:46
↓ 2 callersMethodgenerate_object_inner
( &mut self, spec: &ObjectSpec, rule_name: &str, need_braces: bool, )
crates/xgrammar/src/schema/gen_object.rs:69
↓ 2 callersFunctiongenerate_sub_range_regex
Generate the parenthesized alternation for the positive range `[lower, upper]`. Port of `GenerateSubRangeRegex`.
crates/xgrammar/src/schema/range_regex.rs:264
↓ 2 callersMethodget_cache
Look up a cached rule name. Port of `GetCache`.
crates/xgrammar/src/schema/converter.rs:148
↓ 2 callersFunctionget_docker_logs_tail
Get last N lines from atlas-35b docker logs.
scripts/dev/ssm_context_profile.py:137
↓ 2 callersMethodget_expert_mapping
(self)
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:544
↓ 2 callersFunctionget_safetensor_shards
(model_dir: Path)
scripts/preprocess_step3p7_experts.py:85
↓ 2 callersMethodget_script
Render the full EBNF script — one `name ::= body` line per rule. Port of `GetScript`.
crates/xgrammar/src/schema/script.rs:71
↓ 2 callersFunctiongetrandom
Read random bytes from the OS (Linux: getrandom syscall).
crates/spark-server/src/openai/mod.rs:44
↓ 2 callersFunctionggml_bitset_set
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:213
↓ 2 callersFunctionggml_hash_find
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:259
↓ 2 callersFunctiongh
(args)
site/scripts/gen-stars.mjs:32
↓ 2 callersFunctiongit
(args)
site/scripts/gen-benchmarks.mjs:39
↓ 2 callersFunctiongpu_dequant_fp8_pertensor
GPU-dequant an FP8 E4M3 + per-tensor scalar-scale weight into `out` (BF16). Reuses the byte-exact `dequant_fp8_blockscaled_bf16` kernel: a per-tensor
crates/spark-model/src/weight_map/model_a.rs:336
↓ 2 callersFunctiongrammar_blocks_stop
#192: whether the active grammar FORBIDS ending the turn at the current matcher position — the single EOS-suppression predicate for both decode paths
crates/spark-server/src/grammar/state.rs:369
↓ 2 callersFunctiongrid_block
Per-kernel launch geometry. Add a new arm when a rewritten kernel lands so the harness can A/B old vs new on identical inputs. The kernel is resolved
crates/spark-model/examples/dense_gemm_microtest.rs:136
↓ 2 callersMethodgrounded_prob
Returns grounded probability in [0, 1] given the per-head ratio feature vector.
crates/spark-server/src/lookback_lens.rs:95
↓ 2 callersFunctiongrouped_cutlass_gate_up_enabled
Whether the single-launch CUTLASS grouped NVFP4 gate_up path is enabled (`ATLAS_HOLO_MOE_GROUPED_CUTLASS=1`). Off by default; falls back to the hand-r
crates/spark-model/src/layers/moe/forward_prefill_routed.rs:16
↓ 2 callersFunctionhandle_char_escape
Port of `RegexConverter::HandleCharEscape`. `current_` (the cursor) must point at the leading `\`. The cursor is advanced past the whole escape seque
crates/xgrammar/src/regex/escape_handlers.rs:44
↓ 2 callersFunctionhandle_prefill_start_error
SSM-pool-full preemption: free oldest active sequence and surface a 503-equivalent error to the preempted request. Mirrors vLLM's preemption strategy
crates/spark-server/src/scheduler/phase_start_prefills.rs:237
↓ 2 callersFunctionhandle_utf8_first_byte
Inspect a UTF-8 first byte. Returns `(is_valid, total_byte_count, initial_codepoint_bits)`, matching C++ `HandleUTF8FirstByte`.
crates/xgrammar/src/support/encoding.rs:88
↓ 2 callersMethodhas_hidden
Whether `snap_slot` holds a valid last-token hidden (leaf snapshot).
crates/spark-model/src/model/ssm_snapshot.rs:394
↓ 2 callersFunctionhas_repeating_pattern_anchored
(tokens: &[u32], pattern_len: usize, min_repeats: usize)
crates/spark-server/src/scheduler/helpers.rs:691
↓ 2 callersMethodhas_ssm_layers
True when this model has recurrent SSM / Mamba layers whose `h_state` + `conv_state` are advanced in-place every decoded token. Pure-attention models
crates/spark-model/src/traits/model.rs:276
↓ 2 callersFunctionhash_fsm
Hash a fully-hashable FSM (all referenced rules already hashed, or self-recursive). Returns `(hash, new_state_id_mapping)`.
crates/xgrammar/src/grammar/functor/hash_walk.rs:47
↓ 2 callersMethodhigh_speed_swap_dims
Dims for the `--high-speed-swap` orchestrator (installed thread-local after `bind_gpu_to_thread`). `None` for legacy/non-attention models.
crates/spark-model/src/traits/model.rs:209
↓ 2 callersMethodinside_tool_call
True while the detector is between a `<tool_call>` opener and its matching close — i.e. accumulating a tool-call body. Callers use this to suppress co
crates/spark-server/src/tool_parser/streaming_impl.rs:459
↓ 2 callersFunctioninstall_local
( _stream: u64, _cfg: HighSpeedSwapConfig, _model: ModelDims, )
crates/spark-storage/src/stubs.rs:102
↓ 2 callersMethodis_enabled
(&self)
crates/spark-server/src/rate_limiter.rs:55
↓ 2 callersFunctionis_fused_expert_tensor
(name: str)
scripts/preprocess_step3p7_experts.py:59
↓ 2 callersMethodis_greedy
(&self)
crates/spark-runtime/src/sampler.rs:127
↓ 2 callersMethodis_relevant
(&self, ctx: &HintContext)
crates/spark-server/src/hint_injector.rs:40
↓ 2 callersFunctionis_scanable_state
True if `state` has an outgoing character-range edge — i.e. the parser can `Scan` a byte from it. Port of `IsScanableState`.
crates/xgrammar/src/earley/fsm_view.rs:16
↓ 2 callersMethodis_ssm_layer
(&self)
crates/spark-model/src/layers/qwen3_ssm/mod.rs:317
↓ 2 callersMethodis_state_dead
True if a live scanable `state` is provably dead — its FSM node can never reach its rule's end node, so no continuation completes the rule. FSM-less s
crates/xgrammar/src/earley/prune.rs:102
↓ 2 callersFunctionis_tool_name_or_namespace_char
Characters accepted in model-emitted tool names before normalization. OpenAI function names themselves are intentionally narrow, but models often lea
crates/spark-server/src/tool_parser.rs:32
↓ 2 callersFunctioniso8601_now
ISO-8601 UTC timestamp with milliseconds, suitable for human and machine consumption.
crates/spark-server/src/request_dumper.rs:151
↓ 2 callersFunctionjson_schema_to_grammar
Convert a JSON Schema string into a parsed [`GrammarData`] AST by generating the EBNF and feeding it through the EBNF parser.
crates/xgrammar/src/schema/api.rs:37
↓ 2 callersFunctionjson_value_to_ebnf
Convert a JSON Schema document (already parsed into a [`JsonValue`]) into an EBNF grammar string. Port of the `picojson::value` overload of `JSONSchem
crates/xgrammar/src/schema/api.rs:17
↓ 2 callersFunctionk2_record_outcome
(accepted: bool, seq_len: usize)
crates/spark-server/src/scheduler/verify_k2_step.rs:18
↓ 2 callersFunctionkill_opencode
()
bench/fp8_dgx2_drift/harness/overnight/edit_probe.py:106
↓ 2 callersFunctionkill_opencode
Kill every lingering opencode process. opencode (a Bun binary) leaks multi-threaded instances when a `run` is SIGTERM'd or hangs; a leaked ins
bench/fp8_dgx2_drift/harness/overnight/run_level.py:70
↓ 2 callersFunctionkl_div
(p: np.ndarray, q: np.ndarray)
bench/fp8_dgx2_drift/c1_final_logit_overlap.py:113
↓ 2 callersFunctionlaser_top_k
LASER top-k expansion decision. Returns the number of experts to route to: - When entropy is below `entropy_threshold`, return the original top-k (sha
crates/spark-server/src/moe_quality.rs:52
↓ 2 callersMethodlaunch
Execute the kernel launch via `GpuBackend::launch_typed`. Builds a typed `KernelArg` slice from the recorded storage + kinds. The cuda backend's defa
crates/spark-runtime/src/kernel_args.rs:154
↓ 2 callersFunctionlaunch_conv1d
Launch `causal_conv1d_update_l2norm` for a single token (batch=1), exactly as `conv1d_update_l2norm` (ops::ssm_mamba) wraps it.
crates/spark-model/examples/gdn_verify_fused_microtest.rs:162
↓ 2 callersMethodlaunch_on_stream
Launch a kernel on a specified raw CUDA stream. When `stream_ptr` comes from the caller (e.g. `torch.cuda.current_stream().cuda_stream`), this ensure
crates/atlas-core/src/registry.rs:369
↓ 2 callersFunctionlaunch_wy2
( g: &dyn GpuBackend, k: KernelHandle, h_state: DevicePtr, q: DevicePtr, key: DevicePtr,
crates/spark-model/examples/gdn_verify_fused_microtest.rs:191
↓ 2 callersMethodlegacy_handle_repetition_range
Expand `{lower, upper}` by literal unzipping. `upper == -1` means unbounded. Mirrors C++ `LegacyHandleRepetitionRange`.
crates/xgrammar/src/grammar/parser_quant.rs:119
↓ 2 callersFunctionlib
()
crates/spark-model/src/layers/ops/gdn_flashinfer.rs:54
↓ 2 callersFunctionlist_subdirs
List subdirectory names (not files) in a directory, sorted.
crates/atlas-kernels/build.rs:814
↓ 2 callersFunctionload
(p: pathlib.Path)
bench/phase2c-kv-sweep/compare-configs.py:18
↓ 2 callersFunctionload_atlas_dumps
Load Atlas's per-layer BF16 dumps; return {label: f32 tensor}.
tests/vit_reference_check.py:56
↓ 2 callersFunctionload_attention
Load attention weights for a full_attention layer.
crates/spark-model/src/weight_map/loaders_fp8.rs:219
↓ 2 callersFunctionload_dense_ffn
( store: &WeightStore, gpu: &dyn GpuBackend, lp: &str, intermediate_size: usize, h: usize,
crates/spark-model/src/weight_loader/step3p7/load_layers.rs:277
↓ 2 callersFunctionload_embedding_impl
( store: &WeightStore, config: &ModelConfig, )
crates/spark-model/src/weight_loader/gemma4/loader_b.rs:126
↓ 2 callersFunctionload_from_dir
Load every `.lqer` file in `dir` into an `LqerCorrectionSet`. Returns an empty set when the directory doesn't exist (graceful degrade — production ser
crates/spark-server/src/lqer.rs:303
↓ 2 callersFunctionload_hc_site
Load one HC site (`attn` or `ffn`) for a block as float32 device buffers. Tries the flat `hc_<site>_*` (DeepSeek reference / RedHatAI re-quant) and th
crates/spark-model/src/weight_loader/deepseek_v4/assemble.rs:433
↓ 2 callersFunctionload_hidden
(path: pathlib.Path)
bench/fp8_dgx2_drift/c1_final_logit_overlap.py:85
↓ 2 callersFunctionload_hidden
(p)
bench/fp8_dgx2_drift/temp03_sampling_amp.py:32
↓ 2 callersFunctionload_layers
( loader: &dyn ModelWeightLoader, store: &WeightStore, config: &ModelConfig, gpu: &dyn GpuBack
crates/spark-model/src/weight_loader/qwen35/load_layers.rs:44
↓ 2 callersFunctionload_moe
Load MoE weights for a layer. Under EP (ep_world_size > 1), only local experts are loaded from the store. Remote experts get NULL pointers — kernels
crates/spark-model/src/weight_map/loaders_fp8.rs:290
↓ 2 callersFunctionload_moe_inner
( store: &WeightStore, layer_prefix: &str, num_experts: usize, gpu: &dyn GpuBackend, confi
crates/spark-model/src/weight_map/loaders_moe.rs:13
↓ 2 callersFunctionload_moe_qwen35_fp8_experts
Load MoE experts as native FP8 weights (no NVFP4 conversion). Returns the standard MoeWeights (with NVFP4 gate/shared for compatibility) PLUS a Vec o
crates/spark-model/src/weight_map/ssm_qwen35.rs:307
↓ 2 callersFunctionload_runs
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/compare_tiers.py:70
↓ 2 callersFunctionload_shard_fast
( shard_path: &Path, tensor_filter: Option<&[String]>, gpu: &dyn GpuBackend, skip_fn: &dyn Fn(
crates/spark-runtime/src/fast_weights/mod.rs:258
↓ 2 callersFunctionload_ssm
Load SSM weights for a linear_attention layer.
crates/spark-model/src/weight_map/loaders_fp8.rs:255
↓ 2 callersFunctionload_ssm_fp8_decode_weights
Native FP8 SSM build: keeps decode in block-scaled FP8 via `w8a16_gemv`, and prefill in block-scaled FP8 via `w8a16_gemm`. No NVFP4 detour. Disk form
crates/spark-model/src/weight_loader/qwen35/load_layers/linear_attn_arms.rs:41
↓ 2 callersFunctionload_ssm_qwen35
Load SSM weights for Qwen3.5 (separate projections, BF16 out_proj).
crates/spark-model/src/weight_map/ssm_qwen35.rs:40
↓ 2 callersFunctionload_w
(key_suffix)
bench/fp8_dgx2_drift/temp03_sampling_amp.py:37
↓ 2 callersMethodload_weights
(self, weights: Iterable[tuple[str, torch.Tensor]])
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:274
↓ 2 callersFunctionloader_for_config
Select the weight loader for a given model config. This is the ONLY place model_type strings are matched. All downstream code is model-agnostic.
crates/spark-model/src/factory.rs:45
↓ 2 callersFunctionlog_softmax
(x: np.ndarray)
tests/metal_kv_kld_compare.py:30
↓ 2 callersFunctionlog_step
Public entry point usable from the main decode path (`decode_logits_seq::process_seq_logits`) which applies its stages INLINE rather than via `run_pip
crates/spark-server/src/scheduler/logit_processors/adadec_diag.rs:126
↓ 2 callersMethodlogit_bias
Per-token logit bias.
crates/spark-server/src/api/inference_impl.rs:189
↓ 2 callersFunctionlogit_is_positive
Read ONE logit for `tok` from the device logits buffer at `base` (row `row` of a `[*, vocab]` layout) and test strict positivity. BF16 unless the mode
crates/spark-server/src/scheduler/fast_greedy.rs:91
↓ 2 callersMethodlogits_ptr_is_fp32
FP32 logits flag (host buffer needs `vocab*4` bytes, reinterpret `&[f32]`). True only for Gemma-4 dense single-token decode `lm_head`; default false.
crates/spark-model/src/traits/model.rs:228
↓ 2 callersFunctionloop_suppress_disabled
BW1/SPINFIX relaxation (Iter 52, 2026-06-02): the loop detector hard-masks the `<tool_call>` token (Suppress verdict + spinning) after only ~3 similar
crates/spark-server/src/api/chat/loop_detect.rs:32
↓ 2 callersFunctionlower_with_tools
( tools: serde_json::Value, )
crates/spark-server/src/openai/tests.rs:101
↓ 2 callersMethodlz_penalty
LZ penalty (A.1, arXiv:2504.20131). 0.0 = disabled.
crates/spark-server/src/api/inference_impl.rs:161
↓ 2 callersFunctionmannwhitney_u_self
Two-sided Mann-Whitney U with normal approximation, when scipy isn't available. Returns (U_stat, p_value).
bench/fp8_dgx2_drift/harness/compare_tiers.py:34
↓ 2 callersFunctionmax_abs
(a: &[f32], b: &[f32])
crates/spark-model/examples/gdn_strided_norm_microtest.rs:82
↓ 2 callersFunctionmax_abs_bf16
(a: &[bf16], b: &[bf16])
crates/spark-storage/tests/predictor_parity.rs:59
↓ 2 callersFunctionmeasure_ttft
(url, model, prompt)
bench/cold_warm_ttft.py:44
↓ 2 callersMethodmemory_size
Approximate bytes held by the cache — the sum of every cached mask's `memory_size()`. Port of `MemorySize(const RuleLevelCache&)`.
crates/xgrammar/src/compiler/rule_cache.rs:213
↓ 2 callersFunctionmerge_dedupe
Merge two annotation lists, deduping by URL (keeping the first hit in document order). Used to combine the bare-URL extractor's output with structured
crates/spark-server/src/citation.rs:327
↓ 2 callersFunctionmetrics
(a, b)
bench/nemotron_layer_diff.py:32
↓ 2 callersMethodmin_p
Min-p sampling parameter.
crates/spark-server/src/api/inference_impl.rs:109
↓ 2 callersMethodmin_tokens
Minimum tokens before allowing EOS/stop (0 = no minimum).
crates/spark-server/src/api/inference_impl.rs:303
↓ 2 callersFunctionminimax_xml_tool_calling_to_ebnf
Convert a function-call parameter schema into a MiniMax-XML-style EBNF grammar. Port of `MiniMaxXMLToolCallingToEBNF`.
crates/xgrammar/src/schema/api.rs:79
↓ 2 callersFunctionmla_batched_gemv
Paged decode attention (FP8 KV cache, single/multi sequence). Kernel: `paged_decode_attn_fp8(Q, K_cache, V_cache, O, block_tables, seq_lens, max_bloc
crates/spark-model/src/layers/ops/kv_cache.rs:582
↓ 2 callersFunctionmla_kv_assemble_batched
( gpu: &dyn GpuBackend, kernel: KernelHandle, kv_expanded: DevicePtr, k_rope_buf: DevicePtr,
crates/spark-model/src/layers/ops/prefill_attn_a.rs:80
↓ 2 callersFunctionmoe_build_tile_worklist
( gpu: &dyn GpuBackend, kernel: KernelHandle, expert_offsets: DevicePtr, // [num_experts + 1]
crates/spark-model/src/layers/ops/gemm_quant.rs:429
↓ 2 callersFunctionmoe_expert_gate_up_shared_prefill
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, // [num_tokens, H] BF16 gate_p
crates/spark-model/src/layers/ops/moe_prefill.rs:20
↓ 2 callersFunctionmoe_expert_gate_up_shared_t
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, gate_packed_t_ptrs: DevicePtr,
crates/spark-model/src/layers/ops/fp8_moe.rs:299
↓ 2 callersFunctionmoe_expert_silu_down_shared_t
( gpu: &dyn GpuBackend, kernel: KernelHandle, gate_out: DevicePtr, up_out: DevicePtr, pack
crates/spark-model/src/layers/ops/fp8_moe.rs:350
↓ 2 callersFunctionmoe_topk_sqrtsoftplus
( gpu: &dyn GpuBackend, kernel: KernelHandle, gate_logits: DevicePtr, bias: DevicePtr, exp
crates/spark-model/src/layers/ops/moe_gate.rs:92
← previousnext →1,701–1,800 of 7,049, ranked by callers