MCPcopy Create free account

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

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

↓ 5 callersMethodnext_forced_tokens
(&mut self, max: usize)
crates/xgrammar/src/matcher/coalesce.rs:146
↓ 5 callersMethodnext_u64
(&mut self)
crates/spark-model/examples/int8_gemm_test.rs:14
↓ 5 callersFunctionnorm
(ebnf: &str)
crates/xgrammar/src/grammar/functor/normalizer.rs:116
↓ 5 callersFunctionnormalize_e4m3fn_to_e4m3fnuz
( weight: torch.Tensor, weight_scale: torch.Tensor, input_scale: torch.Tensor | None = None, )
bench/fp8_dgx2_drift/vllm_src/w8a8_utils.py:110
↓ 5 callersMethodnum_state_heads
(&self)
crates/spark-model/src/forward/qwen3_5/mod.rs:126
↓ 5 callersMethodnum_steps
Number of input positions currently recorded (history depth).
crates/xgrammar/src/earley/parser.rs:162
↓ 5 callersFunctionoffset_norm_weights_plus_one
Step 3.7 uses shifted RMSNorm: `output = (x / rms) * (weight + 1)`. The checkpoint stores norm weights centered around 0, not 1. This function adds 1.
crates/spark-model/src/weight_loader/step3p7.rs:43
↓ 5 callersFunctionoptimized
Optimize an EBNF grammar to the FSM-accelerated form the no-cache compiler core expects. Used by the JIT determinism tests so a single* optimized gram
crates/xgrammar/src/compiler/tests/mod.rs:59
↓ 5 callersFunctionp_temp_div
(g, T, n_mc=4000, rng=None)
bench/fp8_dgx2_drift/temp03_margin_model.py:51
↓ 5 callersMethodpaged_strides
Stride triple for the kernel-native paged K/V layout: `[num_blocks, block_size, num_kv_heads, head_dim]`. All in BF16 elements.
crates/spark-storage/src/tiled_attention.rs:157
↓ 5 callersMethodpool_dev_ptr
(&self)
crates/spark-storage/src/scratch_pool.rs:81
↓ 5 callersMethodprefill
( &self, _tokens: &[u32], _seq: &mut SequenceState, _stream: u64, )
crates/spark-model/src/engine/tests.rs:93
↓ 5 callersMethodprefill_chunk
( &self, tokens: &[u32], seq: &mut SequenceState, _chunk_start: usize,
crates/spark-model/src/engine/tests.rs:103
↓ 5 callersFunctionptx_for_config
Find the PTX module set matching a `(model_type, hidden_size)` pair. Matching rules: 1. Exact match on `(model_type, Some(hidden_size))` wins 2. Wild
crates/atlas-kernels/src/lib.rs:378
↓ 5 callersFunctionquantized_from_fp8
Load a quantized weight from FP8 block-scaled data: FP8→BF16→NVFP4. `n` and `k` are the logical weight dimensions (e.g. [inter, hidden] for gate_proj
crates/spark-model/src/weight_map/nvfp4_detect.rs:285
↓ 5 callersFunctionqwen_xml_tool_calling_to_ebnf
Convert a function-call parameter schema into a Qwen-XML-style EBNF grammar. Port of `QwenXMLToolCallingToEBNF`.
crates/xgrammar/src/schema/api.rs:73
↓ 5 callersMethodr
(&mut self, lo: f64, hi: f64)
crates/spark-model/examples/gdn_chunk_delta_h_gateb.rs:30
↓ 5 callersMethodr
(&mut self, lo: f64, hi: f64)
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:50
↓ 5 callersMethodr
(&mut self, lo: f64, hi: f64)
crates/spark-model/examples/gdn_chunk_shapetest.rs:87
↓ 5 callersFunctionread_f32
(data: &[u8], i: usize)
crates/spark-runtime/src/sampler.rs:486
↓ 5 callersFunctionrebuild_tag_dispatch
Decode a `TagDispatch` and rebuild it into `builder` unchanged. Shared by the default `visit_tag_dispatch` and several passes.
crates/xgrammar/src/grammar/functor/mutator.rs:41
↓ 5 callersMethodrebuild_with_mapping
Rebuild with remapped state ids. Epsilon self-loops created by the mapping are dropped; duplicate edges per row are removed.
crates/xgrammar/src/fsm/fsm.rs:183
↓ 5 callersMethodreset_with_row_sizes
Resize the CSR so row `i` has `row_sizes[i]` default slots, reusing existing allocations. Port of `ResetWithRowSizes`.
crates/xgrammar/src/fsm/simplify.rs:38
↓ 5 callersFunctionrms_norm
RMS normalization: x * weight / sqrt(mean(x^2) + eps).
scripts/dev/verify_mistral_layer0.py:34
↓ 5 callersMethodrollback
Rollback the grammar state by `n` tokens. Used for MTP speculative decode: when draft tokens are rejected, the grammar state must be rewound to match
crates/spark-server/src/grammar/state.rs:318
↓ 5 callersMethodroot_rule
The root rule. Panics if the root is unset/out of bounds.
crates/xgrammar/src/grammar/data.rs:167
↓ 5 callersFunctionrun
(cmd, timeout=60)
scripts/dev/overnight_marathon.py:78
↓ 5 callersFunctionrun
( gpu: &dyn GpuBackend, stream: u64, h: KernelHandle, a: DevicePtr, b: DevicePtr, asc:
crates/spark-model/examples/int8_gemm_test.rs:35
↓ 5 callersFunctionsend_request
(prompt: str, max_tokens: int = 80)
scripts/dev/ssm_context_profile_v3.py:71
↓ 5 callersMethodset_prefill_weights
Set transposed NVFP4 weights for fast prefill GEMM (FP8 MMA, N128, cp.async). Switches prefill from w4a16_gemm (M64,N64,K16 BF16) to w4a16_gemm_t (M64
crates/spark-model/src/layers/nemotron_mamba2.rs:132
↓ 5 callersFunctionsh
(cmd, to=60)
scripts/dev/run_all_final.py:22
↓ 5 callersMethodstop_token_accepted
(&self)
crates/xgrammar/src/matcher/matcher.rs:209
↓ 5 callersFunctionstream_api
Send streaming request, return list of parsed SSE chunks.
scripts/test_coherence.py:30
↓ 5 callersFunctionstrip_bare_role_literal
Drop a delta that is nothing but a bare role literal (`user` / `assistant` / `tool`) — a Qwen3.5/3.6 hallucination leak, companion to the scheduler-si
crates/spark-server/src/api/chat_stream/handle_token.rs:59
↓ 5 callersFunctionstrip_in_tool_opener_bias
#192: drop the standing `<tool_call>` OPENER nudge while INSIDE a tool body. `sampling_setup` arms a +3.0 exponential-decay bias on the opener for too
crates/spark-server/src/scheduler/sample_step.rs:70
↓ 5 callersFunctionsummarize
(name: str, cosines: list[float])
bench/qwen36_fp8_dequant_audit/cosine_three_way_phase2b.py:48
↓ 5 callersMethodtranspose_for_prefill
( &mut self, gpu: &dyn GpuBackend, config: &atlas_core::config::ModelConfig, )
crates/spark-model/src/layers/moe/helpers_a.rs:30
↓ 5 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/moe_shared_microtest.rs:35
↓ 5 callersMethoduniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/moe_blend_microtest.rs:25
↓ 5 callersMethodunion
Merge the sets containing `a` and `b`. Both must have been added.
crates/xgrammar/src/fsm/union_find.rs:65
↓ 5 callersFunctionup
(b:&[u8])
3rdparty_patches/gdn_aot/gdn_rs.rs:19
↓ 5 callersFunctionup
(gpu: &dyn GpuBackend, b: &[u8])
crates/spark-model/examples/moe_blend_microtest.rs:42
↓ 5 callersFunctionup_bytes
(gpu: &dyn GpuBackend, b: &[u8])
crates/spark-model/examples/moe_shared_microtest.rs:73
↓ 5 callersMethoduse_t_layout_for_decode
(&self)
crates/spark-model/src/layers/moe/helpers_b.rs:184
↓ 5 callersMethodv_cache_ptr
Get V cache pointer for a layer and block.
crates/spark-runtime/src/kv_cache/paged_impl.rs:216
↓ 5 callersMethodvalidate
Sanity-check the descriptor's matrix sizes match the rank. Returns `Err(reason)` if the shape is impossible.
crates/spark-server/src/lqer.rs:67
↓ 5 callersMethodvisit
Visit a format, returning the rule id of the rule added for it. Port of `StructuralTagGrammarConverter::Visit`.
crates/xgrammar/src/structural_tag/converter.rs:60
↓ 5 callersFunctionw
Headerless little-endian BF16 + JSON sidecar.
bench/longcode/hang-forensics/hf_gdn_ref_a3b.py:48
↓ 5 callersFunctionw4a16_gemm_n128_m128
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight: &QuantizedWeight,
crates/spark-model/src/layers/ops/gemm_dense.rs:336
↓ 5 callersMethodwarn
Record a non-fatal warning (the C++ `RaiseWarning`).
crates/xgrammar/src/regex/cursor.rs:107
↓ 4 callersMethod__init__
(self, *, vllm_config: VllmConfig, prefix: str = "")
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:463
↓ 4 callersMethod__init__
( self, is_checkpoint_fp8_serialized: bool = False, activation_scheme: str = "dynamic"
bench/fp8_dgx2_drift/vllm_src/fp8.py:100
↓ 4 callersFunction_move_to_front
(backends: list[Fp8MoeBackend], backend: Fp8MoeBackend)
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:87
↓ 4 callersFunction_post
(url: str, body: dict, timeout: float = 180.0)
bench/qwen36_ttft.py:33
↓ 4 callersMethodaccept_token
Accept one token, advancing the matcher state. Returns whether the token was accepted by the grammar. Port of the vendored `GrammarMatcher::accept_to
crates/xgrammar/src/api/matcher.rs:66
↓ 4 callersMethodacceptable_byte_mask
A 256-entry bitmap: `out[b]` is true if byte `b` can be the next input. This is the exact acceptable-next-byte set.
crates/xgrammar/src/earley/accept.rs:71
↓ 4 callersMethodadd_byte_string_bytes
Add a `ByteString` expr from raw bytes (each `0..=255`).
crates/xgrammar/src/grammar/builder.rs:151
↓ 4 callersMethodadd_items
Append items. Enforces the per-call cap and returns the list of new items with assigned ids.
crates/spark-server/src/conversation_store.rs:184
↓ 4 callersMethodadd_repeat
Add a `Repeat` expr `[rule_id, min, max]`.
crates/xgrammar/src/grammar/builder.rs:214
↓ 4 callersMethodadd_rule
Add a fully-formed rule and return its id. Returns `Err` if a rule of the same name already exists.
crates/xgrammar/src/grammar/builder_rules.rs:15
↓ 4 callersFunctionadd_sub_grammar
Splice every rule of `sub_grammar` into `builder`, returning the new rule id of `sub_grammar`'s root rule. Rule references, repeats and tag dispatches
crates/xgrammar/src/grammar/functor/constructor.rs:17
↓ 4 callersMethodadmit
Admission check for a new request. `estimated_tokens` is the caller's best guess at how many tokens this call will burn (prompt + max completion). Str
crates/spark-server/src/rate_limiter.rs:212
↓ 4 callersFunctionadvance
Advance the set `from` by `value` along `edge_type` edges. `result` is cleared first, then filled with the epsilon closure of every reachable target.
crates/xgrammar/src/fsm/traversal.rs:69
↓ 4 callersFunctionadvance_envelope_streak
Pure decision core for the envelope-stuck guard (CC6, 2026-06-07). Tokens of a parameter VALUE (`inside_parameter_body`) are exempt — a legitimately l
crates/spark-server/src/scheduler/emit_step.rs:601
↓ 4 callersFunctionadvance_name_run
Advance the same-name run counter for a completed call, returning the new run length. Pure over the `Option` state so the #192 parallel fan-out contra
crates/spark-server/src/api/chat_stream/tool_handlers.rs:421
↓ 4 callersFunctionallocate_token_bitmask
Allocate a token bitmask: an `i32` buffer of `batch_size * ceil(vocab_size/32)` words, initialized to all-ones (`-1`, i.e. every token allowed). Port
crates/xgrammar/src/api/bitmask.rs:26
↓ 4 callersMethodallowed_next_tokens
Compute the vocab mask of allowed next tokens at `node_id`. Returns a sorted, deduped Vec — the caller intersects this with XGrammar's mask via AND.
crates/spark-server/src/symbol_trie.rs:129
↓ 4 callersFunctionanthropic
(body)
scripts/test_coherence.py:693
↓ 4 callersMethodapply_chat_template_jinja
Apply the Jinja chat template and encode to token IDs. `messages`: Vec of serde_json::Value objects with `role`, `content`, and optionally `tool_call
crates/spark-server/src/tokenizer/chat_impl.rs:112
↓ 4 callersMethodapply_layer_scalar
Apply layer_scalar in-place: `hidden *= scalar`. Uses `bf16_scale_inplace` for the (always BF16) residual stream.
crates/spark-model/src/layers/qwen3_attention/helpers.rs:158
↓ 4 callersFunctionapply_rope_neox
Apply RoPE with neox-style rotation (pair i with i + half_rot). x: [batch, n_heads, seq_len, head_dim] (BF16) positions: [seq_len] (long)
scripts/dev/verify_mistral_layer0.py:42
↓ 4 callersFunctionargs_from_outputs
Concatenated-fragment args OR (fallback) the single `ToolCallDelta` args. Lets a test accept either the live-stream shape or the buffered shape.
crates/spark-server/src/tool_parser/tests/streaming_frag.rs:35
↓ 4 callersFunctionassert_no_soup
(calls: &[ToolCall], ctx: &str)
crates/spark-server/src/tool_parser/tests/group_g_parallel.rs:218
↓ 4 callersFunctionassess_tool_call
Validate a single tool call. Returns `Ok(())` if valid, or a [`ToolCallIssue`] whose severity the caller maps to delivery behavior.
crates/spark-server/src/tool_parser/validation.rs:497
↓ 4 callersFunctionassign
Renumber `target` in discovery order if not yet seen.
crates/xgrammar/src/grammar/functor/hash_walk.rs:121
↓ 4 callersFunctionbackend_to_kernel_cls
( backend: Fp8MoeBackend, )
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:114
↓ 4 callersFunctionbare_pool
Build a bare pool that touches ONLY the CPU-side slot bookkeeping (`free_slots`/`max_slots`). All GPU pointer vectors are empty; the guard path and `c
crates/spark-model/src/model/ssm_pool.rs:477
↓ 4 callersFunctionbf16_bits_to_f32
───────────────────────── number-format helpers ─────────────────────────
crates/spark-model/examples/dense_gemm_microtest.rs:75
↓ 4 callersFunctionbf16_to_f32
(b: u16)
crates/spark-model/examples/moe_silu_down_microtest.rs:31
↓ 4 callersFunctionbf16_to_f32
(lo: u8, hi: u8)
crates/spark-runtime/src/sampler.rs:513
↓ 4 callersFunctionbf16_to_f32
(x: u16)
crates/spark-runtime/src/flashinfer.rs:270
↓ 4 callersMethodbuild
Parse `regex` and build its NFA. See [`regex::build_regex`].
crates/xgrammar/src/fsm/builder/mod.rs:28
↓ 4 callersMethodbuild
Build an anchor by embedding the tool's example queries. `example_queries` is a list of natural-language sentences like "list the files in a directory
crates/spark-server/src/tool_rag.rs:56
↓ 4 callersFunctionbuild_prompt_with_needle
Build prompt with needle at specified position. needle_position: "early" (10%), "middle" (50%), "late" (90%), "none"
scripts/dev/ssm_context_profile_v3.py:35
↓ 4 callersFunctionbuild_tag_dispatch_fsm
Build the FSM for a tag dispatch, or `None` if the trie cannot be built (e.g. overlapping tags).
crates/xgrammar/src/grammar/functor/tag_dispatch_fsm.rs:17
↓ 4 callersFunctionbuiltin_json_grammar_ebnf
Build the EBNF grammar for the "any JSON value" schema (`{}`). This is the schema-converter analogue of `compile_builtin_json grammar`: an empty sche
crates/xgrammar/src/schema/api.rs:95
↓ 4 callersMethodbyte_size
(self)
crates/spark-runtime/src/weights.rs:45
↓ 4 callersFunctionbytemuck_f32
(v: &[f32])
crates/spark-model/examples/int8_gemm_test.rs:1629
↓ 4 callersFunctionbytemuck_i8
(v: &[i8])
crates/spark-model/examples/int8_gemm_test.rs:1626
↓ 4 callersFunctioncall
(prompt, max_tok=64, timeout=600)
tests/atlas_bench_comprehensive.py:89
↓ 4 callersFunctionchat_completions_inner
Internal entry for the parsed-request path. Called by [`chat_completions`] after body capture, and by the Responses API adapter (which builds a `ChatC
crates/spark-server/src/api/chat/mod.rs:81
↓ 4 callersFunctionchat_to_anthropic_response
Translate a non-streaming chat-completion JSON body into Anthropic's `MessagesResponse` shape. Reads the body via untyped `serde_json::Value` so we do
crates/spark-server/src/anthropic/translate.rs:327
↓ 4 callersFunctioncheck_oom_guard
( gpu: &dyn GpuBackend, reserve_bytes: usize, phase: &str, )
crates/spark-runtime/src/weights/loader.rs:325
↓ 4 callersMethodcheckpoint_ssm_states
(&self, _seq: &mut SequenceState)
crates/spark-model/src/engine/tests.rs:209
↓ 4 callersFunctioncollect_fragments
Concatenate all `ToolCallArgsFragment` payloads emitted for any idx, in emission order. Live-streaming mode (`!buffer_args`) emits these instead of a
crates/spark-server/src/tool_parser/tests/streaming_frag.rs:23
↓ 4 callersMethodcompile_grammar_from_ebnf
Compile a grammar from an EBNF string. Port of the vendored `GrammarCompiler::compile_grammar_from_ebnf`.
crates/xgrammar/src/api/compiler.rs:92
↓ 4 callersMethodcompile_json_schema
( &self, schema: &str, any_whitespace: bool, indent: Option<i32>, sepa
crates/xgrammar/src/compiler/compiler.rs:191
↓ 4 callersMethodcompile_top_k_masks
OVERLAPPED MASK GENERATION (Tier 2, "configurable JIT"). Eagerly compute the `k` most-expensive adaptive-token masks, populating the lazy JIT cache s
crates/xgrammar/src/compiler/compiled_grammar.rs:322
↓ 4 callersFunctionconv1d_update_prefill
( gpu: &dyn GpuBackend, kernel: KernelHandle, conv_state: DevicePtr, input: DevicePtr, wei
crates/spark-model/src/layers/ops/ssm_mamba.rs:189
↓ 4 callersFunctioncpu_e4m3_to_f32
FP8 E4M3 byte → float. Mirrors `e4m3_to_f32` in `attention_decode_turbo8.metal`.
crates/spark-runtime/src/metal_backend/tests/helpers.rs:147
← previousnext →801–900 of 7,049, ranked by callers