MCPcopy Create free account

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

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

↓ 3 callersMethodparse_format
Parse a Format object. The `type` field is checked here. Port of `StructuralTagParser::ParseFormat`.
crates/xgrammar/src/structural_tag/parser.rs:61
↓ 3 callersFunctionparse_gemma4_native_call
Parse a Gemma-4 native tool call: `call:fn_name{key:val,...}` Converts native `<|"|>` delimited values to JSON.
crates/spark-server/src/tool_parser/helpers_b.rs:74
↓ 3 callersFunctionparse_json_schema
Port of `ParseJSONSchemaFormat`.
crates/xgrammar/src/structural_tag/parser.rs:144
↓ 3 callersFunctionparse_next_utf8
Decode the first codepoint from a UTF-8 byte slice. Returns `(codepoint, bytes_consumed)`. On invalid UTF-8 (bad first byte, missing/invalid continua
crates/xgrammar/src/support/encoding.rs:105
↓ 3 callersMethodparse_tag_obj
Parse a tag-format object. Port of the `picojson::object` overload of `ParseTagFormat`.
crates/xgrammar/src/structural_tag/parser_tags.rs:79
↓ 3 callersMethodparse_value
(&mut self)
crates/xgrammar/src/schema/json_value.rs:120
↓ 3 callersFunctionpercentile
(data: list, p: float)
bench/bench_isl_osl.py:54
↓ 3 callersFunctionpoll_innerq
()
crates/spark-server/src/scheduler/phase_continue_prefills.rs:50
↓ 3 callersFunctionpossible_token_intervals
`(left, right)` half-open ranges of `sorted_decoded_vocab` whose tokens start with a byte allowed by `first_char_mask`. Port of `GetPossibleTokenInte
crates/xgrammar/src/compiler/mask_gen/intervals.rs:15
↓ 3 callersMethodpre_verify_copy_async
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/mod.rs:351
↓ 3 callersMethodprefill_b_finalize_last_at
Q12 Path B: stream-offset-aware finalize for the kernel-batched orchestrator. `hidden_stream_offset_tokens` is `b * chunk_len` where `b` is the stream
crates/spark-model/src/model/trait_impl/prefill_b/finalize_last.rs:48
↓ 3 callersMethodprefill_b_prefix_lookup
( &self, tokens: &[u32], seq: &mut SequenceState, chunk_start: usize,
crates/spark-model/src/model/trait_impl/prefill_b/prefix_lookup.rs:16
↓ 3 callersMethodprefill_b_proc_range
( &self, tokens: &[u32], seq: &mut SequenceState, chunk_start: usize,
crates/spark-model/src/model/trait_impl/prefill_b/proc_range.rs:28
↓ 3 callersMethodprefill_b_save_checkpoint
( &self, tokens: &[u32], seq: &mut SequenceState, kv_cache: &mut PagedKvCache,
crates/spark-model/src/model/trait_impl/prefill_b/save_checkpoint.rs:17
↓ 3 callersMethodprefill_b_upload_paged
( &self, seq: &mut SequenceState, total: usize, proc_start: usize, pro
crates/spark-model/src/model/trait_impl/prefill_b/upload_paged.rs:17
↓ 3 callersMethodprefill_one_proj
( &self, proj: Proj, normed: DevicePtr, out: DevicePtr, n: u32,
crates/spark-model/src/layers/qwen3_attention/prefill/paged_qkv.rs:94
↓ 3 callersMethodprefill_qkvz_proj
( &self, normed: DevicePtr, deinterleaved: DevicePtr, k: u32, qkvz_siz
crates/spark-model/src/layers/qwen3_ssm/trait_prefill_proj.rs:19
↓ 3 callersMethodprefill_slice_budget
(&self, active_timings: &[ActiveSeqTiming], full_chunk: usize)
crates/spark-server/src/scheduling_policy.rs:123
↓ 3 callersFunctionprev_char
(c: char)
crates/xgrammar/src/schema/range_regex.rs:258
↓ 3 callersMethodprint_expr_id
Print the expression with the given id.
crates/xgrammar/src/grammar/printer.rs:59
↓ 3 callersMethodprobability
Hallucination probability via sigmoid(logit). Caller thresholds at e.g. 0.5 for binary classification or streams the float as a confidence signal.
crates/spark-server/src/halluc_probe.rs:64
↓ 3 callersFunctionprocess_decode_logits
Sample and process decode logits for all active sequences. Factored out of `step_decode_only` so that `mixed_forward` can reuse the same sampling + t
crates/spark-server/src/scheduler/decode_logits_step.rs:41
↓ 3 callersMethodprocess_openai_chunk
Process one OpenAI chat-completion chunk JSON value, push resulting Anthropic events into `out`.
crates/spark-server/src/anthropic/translator.rs:160
↓ 3 callersMethodprocess_weights_after_loading
(self, layer: Module)
bench/fp8_dgx2_drift/vllm_src/fp8.py:787
↓ 3 callersFunctionproj_is_fp8_any_scale
True when `{prefix}.weight` is on-disk FP8 with ANY dequant scale — block (`weight_scale_inv` / 2D `weight_scale`) OR the ModelOpt per-tensor SCALAR `
crates/spark-model/src/weight_loader/qwen35_dense.rs:43
↓ 3 callersFunctionproj_is_native_fp8
True when a projection ships as native block-scaled FP8 on disk: an `FP8E4M3 .weight` plus a 2D block scale. The scale tensor name varies by producer
crates/spark-model/src/weight_loader/qwen35/load_layers.rs:31
↓ 3 callersMethodproject_kv_block
Update A_g for a single (layer, block_id) slot from the K data the caller just wrote into the KV cache. `k_block` device ptr to `[block_size, num_kv_h
crates/spark-storage/src/predictor.rs:202
↓ 3 callersMethodproject_q
`q` device pointer to `[num_q_heads, head_dim]` BF16. `q_proj` device pointer to `[num_q_heads, r]` BF16 output.
crates/spark-storage/src/predictor.rs:168
↓ 3 callersFunctionpromote_completed_prefills
( model: &dyn Model, prefilling: &mut Vec<PrefillInProgress>, mut completed_indices: Vec<(usize, O
crates/spark-server/src/scheduler/phase_promote_prefills.rs:13
↓ 3 callersMethodprompt_len
Number of prompt tokens in this request.
crates/spark-server/src/api/inference_impl.rs:43
↓ 3 callersMethodpropose
Propose a draft token based on prompt lookup. Searches `all_tokens` (prompt + generated) for the longest suffix match with the tail of `all_tokens`.
crates/spark-server/src/ngram.rs:53
↓ 3 callersMethodpush_state_and_expand
Push `state` into the parser and run predict/complete on it, recording the resulting scanable states as a new input position.
crates/xgrammar/src/earley/parser_api.rs:37
↓ 3 callersFunctionq12_batched_scratch_bytes
Exact scratch footprint (bytes) of the Q12 kernel-batched prefill staging for `n` streams of `chunk_len` tokens each. SSOT for both scratch sizing (`B
crates/spark-runtime/src/buffers/sizes.rs:23
↓ 3 callersMethodr
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/w8a16_gemv_batch4_microtest.rs:31
↓ 3 callersFunctionrand_offset
(file_bytes: u64, io_bytes: usize, i: usize)
crates/spark-storage/src/bench.rs:48
↓ 3 callersFunctionrandom_bf16
(n: usize, rng: &mut ChaCha8Rng)
crates/spark-storage/tests/cuda_graph_capture.rs:34
↓ 3 callersFunctionrandom_bf16
(n: usize, rng: &mut ChaCha8Rng)
crates/spark-storage/tests/tiled_attention_parity.rs:42
↓ 3 callersFunctionrandom_bf16
(n: usize, rng: &mut ChaCha8Rng)
crates/spark-storage/tests/high_speed_swap_e2e.rs:32
↓ 3 callersFunctionrandom_bf16
(n: usize, rng: &mut ChaCha8Rng)
crates/spark-storage/examples/long_context_bench.rs:79
↓ 3 callersMethodread_block
Read K and V data for one block at one layer from GPU to host. Returns `(k_data, v_data)` sized to each side's block stride (which may differ for asy
crates/spark-runtime/src/kv_cache/paged_impl.rs:449
↓ 3 callersMethodrecord_usage
Record bytes written to a swap file (call after flush).
crates/spark-runtime/src/kv_spill.rs:73
↓ 3 callersMethodremove_file
Remove a swap file and reclaim its disk usage.
crates/spark-runtime/src/kv_spill.rs:64
↓ 3 callersFunctionrender_minimax_openai_template
( messages: &[serde_json::Value], tools: Option<&[serde_json::Value]>, enable_thinking: bool, )
crates/spark-server/src/tokenizer/tests.rs:8
↓ 3 callersFunctionresolve_path
Resolve the `--dump` argument to a final file path. `"<auto>"` (from clap's `default_missing_value`) maps to a timestamped file under `$TMPDIR`; anyth
crates/spark-server/src/request_dumper.rs:183
↓ 3 callersFunctionresponses_event_name
The SSE `event:` name for a given stream event (used by the handler's SSE writer).
crates/spark-server/src/openai/responses.rs:285
↓ 3 callersFunctionreuse_prefix_match_disk_ids
Phase 6.1.e: bump disk-side refcounts for blocks reused from a prefix-cache hit, and push the disk_block_ids onto the sequence's history. The cache's
crates/spark-model/src/model/block_mgmt.rs:113
↓ 3 callersMethodrollback_ssm_states
(&self, _seq: &mut SequenceState, _num_accepted: usize)
crates/spark-model/src/engine/tests.rs:213
↓ 3 callersFunctionrollback_to_boundary
Roll an [`ActiveSeq`] back to the last well-formed boundary and re-steer, instead of hard-stopping. Steps: 1. Honor the `[behavior].rollback_resteer`
crates/spark-server/src/scheduler/rollback.rs:203
↓ 3 callersFunctionrope_proportional
( gpu: &dyn GpuBackend, kernel: KernelHandle, q: DevicePtr, k: DevicePtr, positions: Devic
crates/spark-model/src/layers/ops/embeddings.rs:65
↓ 3 callersMethodrow
Borrow row `i` as a slice. # Panics Panics if `i` is out of `0..len()`.
crates/xgrammar/src/support/compact_2d_array.rs:55
↓ 3 callersFunctionrun
(script)
site/vite.config.js:13
↓ 3 callersFunctionrun
(cmd, cwd=None, timeout=None, stdin=None, env=None)
bench/fp8_dgx2_drift/harness/overnight/edit_probe.py:86
↓ 3 callersFunctionrun
(cmd, cwd=None, timeout=None, stdin=None, env=None)
bench/fp8_dgx2_drift/harness/overnight/edit_probe3.py:24
↓ 3 callersFunctionrun_cublaslt_algo
( algo_index: i32, act: *mut c_void, weight: *mut c_void, out: *mut c_void, m: usize,
crates/spark-runtime/src/cutlass/tests/mod.rs:116
↓ 3 callersFunctionrun_gpu
(tile_size: usize, q: &[bf16], k: &[bf16], v: &[bf16], block_table: &[i32])
crates/spark-storage/tests/tiled_attention_parity.rs:60
↓ 3 callersFunctionrun_test
(url, label, session_ids, concurrent)
tests/test_session_isolation.py:60
↓ 3 callersFunctionsample_fsm
()
crates/xgrammar/src/fsm/compact_tests.rs:15
↓ 3 callersMethodscore_blocks
Score `num_active_blocks` (already-laid-out) blocks for the current layer. `q_proj` device ptr to `[num_q_heads, r]` BF16. `a_g_seq` is a device ptr t
crates/spark-storage/src/predictor.rs:260
↓ 3 callersMethodsession_matches
Check if a snapshot belongs to the given session. Returns true if: session tracking is disabled (hash=0), no tag exists, or tags match.
crates/spark-model/src/model/ssm_snapshot.rs:324
↓ 3 callersMethodset_fp8_decode_weights
Install native FP8 block-scaled weights for the decode GEMV path. Inputs MUST be tagged `WeightQuantFormat::Fp8BlockScaled` — that is the canonical i
crates/spark-model/src/layers/qwen3_ssm/init.rs:302
↓ 3 callersMethodset_rope_overrides
Set per-layer RoPE overrides (theta, rotary_dim) for dual-RoPE models (Gemma-4).
crates/spark-model/src/layers/qwen3_attention/helpers.rs:77
↓ 3 callersFunctionsh
(cmd, timeout=120)
tests/atlas_bench_comprehensive.py:53
↓ 3 callersFunctionsh
(cmd, timeout=120)
tests/test_kv_dtype_smoke.py:46
↓ 3 callersFunctionshingles
(tokens: &[&str], order: usize)
crates/spark-server/src/loop_detector.rs:311
↓ 3 callersMethodshould_prefill
(&self, _active_timings: &[ActiveSeqTiming])
crates/spark-server/src/scheduling_policy.rs:69
↓ 3 callersFunctionsigmoid_gate_mul
Element-wise sigmoid gate: `output[i] = input[i] * sigmoid(gate[i])`. Used for gated attention in Qwen3: attn_output = attn_output * sigmoid(q_gate).
crates/spark-model/src/layers/ops/activations.rs:73
↓ 3 callersFunctionsigmoid_gate_mul_head_broadcast
Per-head sigmoid gate multiply with broadcast over head_dim. Step 3.7 attention gate: `g_proj` produces one BF16 scalar per head. This kernel applies
crates/spark-model/src/layers/ops/activations.rs:100
↓ 3 callersMethodsizes
(&self)
crates/spark-runtime/src/buffers.rs:352
↓ 3 callersFunctionslice_fused_experts
Slice a fused NVFP4 tensor into per-expert QuantizedWeight entries. Step 3.7's original checkpoint stores all experts in one contiguous tensor per pr
crates/spark-model/src/weight_loader/step3p7.rs:77
↓ 3 callersMethodsnapshot_positions
The set of token positions that currently have a live snapshot, most-recent last. Used by boundary selection to restrict the rollback target to a boun
crates/spark-server/src/scheduler/ssm_decode_ring.rs:140
↓ 3 callersMethodspecial_token_ids
The special token ids. Port of the vendored `special_token_ids`.
crates/xgrammar/src/api/tokenizer.rs:89
↓ 3 callersFunctionsplit_url
Split `s` into `(url, rest)` where `url` is the first http(s) token. Returns `None` when the string doesn't begin with a URL.
crates/spark-server/src/citation.rs:310
↓ 3 callersMethodssm_qkv_size
SSM QKV projection output size (without Z): Q + K + V.
crates/atlas-core/src/config/methods.rs:85
↓ 3 callersMethodssm_z_size
SSM Z gate projection output size.
crates/atlas-core/src/config/methods.rs:93
↓ 3 callersMethodstar
`self*` — Kleene star.
crates/xgrammar/src/fsm/fsm_ops.rs:13
↓ 3 callersFunctionstart
(name, model, port, extra, host=None, hf=HF, maxseq=16384, ep="")
scripts/dev/run_all_final.py:30
↓ 3 callersMethodstart_checkpoint_async
(&self, seq: &mut SequenceState)
crates/spark-model/src/model/trait_impl/mod.rs:338
↓ 3 callersMethodstart_checkpoint_async
Launch SSM state checkpoint D2D copies on a secondary CUDA stream. Non-blocking: returns immediately. The copies can overlap with MTP propose on the
crates/spark-model/src/traits/model.rs:607
↓ 3 callersFunctionstats
(lbl, xs)
bench/fp8_dgx2_drift/cosine_analyze.py:87
↓ 3 callersFunctionstats
(name, xs)
bench/fp8_dgx2_drift/cosine_run.py:94
↓ 3 callersFunctionstep_decode_only
Decode-only step: batched decode for all active sequences (no MTP).
crates/spark-server/src/scheduler/decode_step.rs:8
↓ 3 callersFunctionstop_container
(name: str)
tests/ab_35b.py:114
↓ 3 callersMethodstop_token_ids
(&self)
crates/xgrammar/src/matcher/matcher.rs:179
↓ 3 callersMethodstream_ready_fragments
Emit any NEWLY-COMPLETE argument fragments for the in-progress tool call seen in `self.buffer[..limit]`, advancing `self.current_tc_emitted` past what
crates/spark-server/src/tool_parser/streaming_emit.rs:54
↓ 3 callersMethodstream_wait_event
(&self, stream: u64, event: u64)
crates/spark-model/src/model/trait_impl/mod.rs:411
↓ 3 callersFunctionstrip_anchors
Strip the leading `^(` and trailing `)$` from an integer range regex so it can be embedded.
crates/xgrammar/src/schema/float_regex.rs:44
↓ 3 callersFunctionstructural_tag_from_items
Build a grammar from a list of [`StructuralTagItem`]s and trigger prefixes — the legacy `Grammar::FromStructuralTag(tags, triggers)` entry point. Eac
crates/xgrammar/src/structural_tag/mod.rs:97
↓ 3 callersFunctionsummarize
(name: str, cosines: list[float])
bench/qwen36_fp8_dequant_audit/cosine_three_way.py:47
↓ 3 callersMethodsync_secondary
(&self)
crates/spark-model/src/model/trait_impl/mod.rs:348
↓ 3 callersMethodsync_secondary_dispatch
(&self)
crates/spark-model/src/model/trait_impl/async_chkpt.rs:146
↓ 3 callersMethodtag_choices
Build a `Choices` of `begin content [end]` over `tags`, using `begin_of` to derive each tag's begin byte string.
crates/xgrammar/src/structural_tag/converter_tags.rs:105
↓ 3 callersFunctiontest_fib
(name, system_prompt)
scripts/test_long_context.py:29
↓ 3 callersFunctiontest_model
(port, is_mistral=False)
scripts/dev/run_all_final.py:49
↓ 3 callersMethodto_text
(&self)
crates/spark-server/src/anthropic/types.rs:49
↓ 3 callersMethodtranspose_for_prefill_unified
Phase 8a unified-layout transpose pass: build persistent transposed gate/up/down for all experts, freeing the untransposed copies between phases so th
crates/spark-model/src/layers/moe/helpers_a.rs:136
↓ 3 callersMethodtranspose_fp8_for_prefill
Transpose FP8 weights for fast prefill (`w8a16_gemm_t`: coalesced reads). Must be called after [`Self::set_fp8_weights`]. Allocates new GPU buffers.
crates/spark-model/src/layers/qwen3_attention/prefill_weights.rs:153
↓ 3 callersMethodtranspose_gate_up_for_prefill
Transpose only the gate+up routed weights, leaving the down projection in its original layout. Cuts the transpose memory cost from ~3× (gate+up+down)
crates/spark-model/src/layers/moe/helpers_a.rs:45
↓ 3 callersFunctiontscg_enabled
Whether tool schemas should be TSCG-compiled for this model. Defaults to `false` until `set_tscg_enabled` runs, so any pre-boot caller and the unit te
crates/spark-server/src/tscg/mod.rs:53
↓ 3 callersFunctionu16s_to_le
(v: &[u16])
crates/spark-model/examples/inferspark_attn_microtest.rs:48
↓ 3 callersFunctionu16s_to_le
(v: &[u16])
crates/spark-model/examples/gdn_regresident_microtest.rs:49
← previousnext →1,301–1,400 of 7,049, ranked by callers