MCPcopy Create free account

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

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

Functionforced_think_end_gate_semantics
()
crates/spark-server/src/scheduler/logit_processors/pipeline_tests.rs:95
Methodforced_token
The single grammar-forced next token, if the current state admits exactly one legal token (the dottxt.ai "Coalescence" fast-path). When `Some`, the ca
crates/xgrammar/src/api/matcher.rs:119
Functionforced_token_does_not_change_state
()
crates/xgrammar/src/matcher/tests/coalesce_tests.rs:70
Functionforced_token_fastpath_default_enabled
()
crates/spark-server/src/scheduler/helpers_tests.rs:413
Functionforced_token_fastpath_disabled_by_truthy
()
crates/spark-server/src/scheduler/helpers_tests.rs:420
Functionforced_token_fastpath_enabled_by_falsy_or_junk
()
crates/spark-server/src/scheduler/helpers_tests.rs:429
Functionforced_token_is_stop_when_only_completion_left
()
crates/xgrammar/src/matcher/tests/coalesce_tests.rs:59
Functionforced_token_none_at_choice_point
()
crates/xgrammar/src/matcher/tests/coalesce_tests.rs:34
Functionforced_token_none_when_terminated
()
crates/xgrammar/src/matcher/tests/coalesce_tests.rs:50
Functionforced_token_none_with_prefix_siblings
()
crates/xgrammar/src/matcher/tests/coalesce_tests.rs:41
Functionforced_token_single_legal_token
()
crates/xgrammar/src/matcher/tests/coalesce_tests.rs:26
Functionformat_from_str
()
crates/spark-server/src/reasoning_parser/tests.rs:209
Methodformat_property_key
Format a property key literal. Port of `FormatPropertyKey` plus the XML override.
crates/xgrammar/src/schema/gen_object.rs:14
Methodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/qwen3_xml.rs:30
Methodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/qwen3_coder.rs:164
Methodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/minimax_xml.rs:81
Methodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/hermes.rs:46
Methodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/bare_json.rs:54
Methodformat_tool_calls
(&self, calls: &[IncomingToolCall])
crates/spark-server/src/tool_parser/mistral.rs:41
Methodformat_tool_response
Format a tool response message for the chat template. Default wraps in `<tool_response>` tags (works for all current formats).
crates/spark-server/src/tool_parser.rs:261
Methodformat_tool_response
(&self, content: &str)
crates/spark-server/src/tool_parser/qwen3_xml.rs:34
Methodformat_tool_response
(&self, content: &str)
crates/spark-server/src/tool_parser/mistral.rs:54
Functionformat_tool_response_default
()
crates/spark-server/src/tool_parser/tests/group_b.rs:216
Methodforward
( &self, input: DevicePtr, ctx: &ForwardContext, stream: u64, )
crates/spark-model/src/layers/mod.rs:74
Methodforward
Single-token decode: 2-3 kernel launches depending on activation. SiLU: dual GEMV + SiLU-fused down GEMV (2 launches). GELU: dual GEMV + gelu_mul + do
crates/spark-model/src/layers/dense_ffn.rs:627
Methodforward
Single-image forward (back-compat shim). For N=1 this issues the SAME kernels with the SAME args in the SAME order as the old per-image path → byte-id
crates/spark-model/src/layers/vision_encoder/enc_impl/forward.rs:20
Methodforward
(self, x, z=None)
bench/mamba_ssm_stub.py:76
Methodforward
(self, hidden_states: torch.Tensor)
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:175
Methodforward
( self, positions: torch.Tensor, output: torch.Tensor, hidden_states: torch.Te
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:284
Methodforward
( self, hidden_states: torch.Tensor, residual: torch.Tensor | None, positions:
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:401
Methodforward
( self, input_ids: torch.Tensor | None, positions: torch.Tensor, intermediate_
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:503
Methodforward
( self, input_ids: torch.Tensor | None, positions: torch.Tensor, intermediate_
bench/fp8_dgx2_drift/vllm_src/qwen3_next.py:763
Methodforward
( self, input_ids: torch.Tensor, positions: torch.Tensor, intermediate_tensors
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:498
Methodforward
Run forward pass for Qwen3.5. Args: input_ids: Flattened (concatenated) input_ids corresponding to a batch.
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:622
Methodforward
( self, hidden_states: torch.Tensor, output: torch.Tensor, )
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:658
Methodforward_atomic_c4_decode
( &self, input: DevicePtr, num_tokens: usize, ctx: &ForwardContext, st
crates/spark-model/src/layers/mod.rs:154
Methodforward_batched
Batched forward (per-token loop). Used by forward_batched in model loop.
crates/spark-model/src/layers/dense_ffn.rs:1599
Methodforward_cpu
( self, hidden_states: torch.Tensor, output: torch.Tensor, )
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:833
Methodforward_cuda
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, g: torch.Te
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:175
Methodforward_ep_dispatch
4. Computes local experts on local + received tokens 5. Sends results back (combine) 6. Weighted sum into output Currently scaffolding only — builds
crates/spark-model/src/layers/moe/forward_ep.rs:16
Methodforward_hip
ROCm forward using AITER Triton fused projection+attention when available, otherwise falling back to the generic CUDA path.
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:685
Methodforward_hip
( self, x: torch.Tensor, scale: torch.Tensor | None = None, scale_ub: torch.Te
bench/fp8_dgx2_drift/vllm_src/input_quant_fp8.py:134
Methodforward_k2
(&self, input: DevicePtr, ctx: &ForwardContext, stream: u64)
crates/spark-model/src/layers/mod.rs:87
Methodforward_k2
K=2 speculative: batched GEMV for 2 tokens. 3 launches: dual batch2 (gate+up) + silu_mul + batch2 (down).
crates/spark-model/src/layers/dense_ffn.rs:898
Methodforward_k3
(&self, input: DevicePtr, ctx: &ForwardContext, stream: u64)
crates/spark-model/src/layers/mod.rs:95
Methodforward_k3
K=3 speculative: batched GEMV for 3 tokens. 3 launches: dual batch3 (gate+up) + silu_mul + batch3 (down).
crates/spark-model/src/layers/dense_ffn.rs:944
Methodforward_native
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, g: torch.Te
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:207
Methodforward_native
( self, x: torch.Tensor, scale: torch.Tensor | None = None, scale_ub: torch.Te
bench/fp8_dgx2_drift/vllm_src/input_quant_fp8.py:179
Methodforward_prefill
( &self, input: DevicePtr, num_tokens: usize, ctx: &ForwardContext, st
crates/spark-model/src/layers/mod.rs:103
Functionforward_rule_reference
()
crates/xgrammar/src/grammar/parser_tests.rs:233
Methodforward_token_major_decode
( &self, input: DevicePtr, num_tokens: usize, ctx: &ForwardContext, st
crates/spark-model/src/layers/mod.rs:137
Methodforward_xpu
Forward pass with three parts: 1. Input projection 2. Core attention (custom op) 3. Output projection
bench/fp8_dgx2_drift/vllm_src/gdn_linear_attn.py:784
Methodforward_xpu
( self, x: torch.Tensor, scale: torch.Tensor | None = None, scale_ub: torch.Te
bench/fp8_dgx2_drift/vllm_src/input_quant_fp8.py:169
Methodfp32_routing_active
ATLAS_FP32_ROUTING active for this FFN (MoE only; false otherwise).
crates/spark-model/src/layers/mod.rs:67
Functionfp4_act_scratch_bytes
block_fp4_mmq activation scratch bytes for [m, k]. +1MB slack: the kernel's smem copy loop rounds the last y-slice read up to warp granularity (same c
crates/spark-model/src/layers/ops/nvfp4_mmq.rs:37
Methodfp8
FP8 per-tensor quantization
crates/atlas-core/src/dtype.rs:79
Methodfp8_act_bytes
Allocated byte size of `fp8_act` (debug bounds-check at call sites).
crates/spark-runtime/src/buffers.rs:319
Functionfp8_dequant_with_scale
()
crates/spark-runtime/src/kv_dequant.rs:260
Functionfp8_gemm_act_weight_t_blkscaled
( _act_fp8: u64, _act_scale: u64, _weight_fp8: u64, _weight_block_scale: u64, _out: u64,
crates/spark-runtime/src/cublaslt_metal_stub.rs:40
Functionfp8_gemm_act_weight_t_rowwise
( _act_fp8: u64, _act_scale: u64, _weight_fp8: u64, _weight_scale: u64, _out: u64, _m:
crates/spark-runtime/src/cublaslt_metal_stub.rs:26
Functionfp8_like_multiplier_disables_k2
()
crates/spark-server/src/scheduler/mtp_gate.rs:345
Methodfree
(&self, ptr: DevicePtr)
crates/spark-runtime/src/metal_backend.rs:274
Methodfree
(&self, ptr: DevicePtr)
crates/spark-runtime/src/cuda_backend/gpu_impl.rs:79
Functionfree_count
(pool: &SsmStatePool)
crates/spark-model/src/model/ssm_pool.rs:495
Methodfree_host_pinned
(&self, ptr: *mut u8, bytes: usize)
crates/spark-runtime/src/gpu.rs:318
Methodfree_host_pinned
(&self, ptr: *mut u8, _bytes: usize)
crates/spark-runtime/src/cuda_backend/gpu_impl.rs:454
Methodfree_memory
(&self)
crates/spark-runtime/src/metal_backend.rs:568
Methodfree_memory
(&self)
crates/spark-runtime/src/cuda_backend/gpu_impl.rs:376
Methodfree_state
Free per-sequence proposer state (KV cache blocks, device buffers, etc.). Must be called when a sequence is finished to avoid resource leaks. `gpu` i
crates/spark-model/src/speculative.rs:92
Methodfree_state
(&self, _gpu: &dyn GpuBackend, state: &mut dyn ProposerState)
crates/spark-model/src/layers/deepseek_v4_mtp.rs:556
Methodfree_state
(&self, gpu: &dyn GpuBackend, state: &mut dyn ProposerState)
crates/spark-model/src/layers/dflash_head.rs:344
Methodfree_state
(&self, _gpu: &dyn GpuBackend, state: &mut dyn ProposerState)
crates/spark-model/src/layers/mtp_multi.rs:216
Functionfreetext_zone_passes_through
()
crates/spark-server/src/adaptive_sampler.rs:244
Functionfresh_decision_taken_exactly_once
()
crates/spark-server/src/scheduler/mtp_gate.rs:434
Methodfrom
(b: &'a mut TokenBitmask)
crates/xgrammar/src/matcher/bitmask.rs:231
Methodfrom
(data: GrammarData)
crates/xgrammar/src/api/grammar.rs:108
Methodfrom
(w: QuantizedWeight)
crates/spark-model/src/weight_map/expert.rs:168
Methodfrom
(e: std::io::Error)
crates/spark-server/src/lqer.rs:185
Methodfrom_accepted
Build a mask from only accepted + uncertain partitions (the rejected partition was not materialized — too large to be worth storing). Port of the thre
crates/xgrammar/src/compiler/mask.rs:96
Methodfrom_accepted_rejected
Build a mask from accepted + rejected + uncertain partitions. Port of the four-argument C++ constructor. `sorted_decoded_vocab` supplies the `index -
crates/xgrammar/src/compiler/mask.rs:60
Methodfrom_aux
Build a [`RepeatEdgeRef`] from the 3-element aux slice starting at `idx`.
crates/xgrammar/src/fsm/edge.rs:125
Methodfrom_compiled_grammar
(compiled_grammar: CompiledGrammar)
crates/xgrammar/src/matcher/matcher.rs:135
Methodfrom_config
(config: &ModelConfig)
crates/spark-model/src/tp_shard.rs:213
Methodfrom_config
Derive capabilities from a ModelConfig. This is the SSOT for model feature detection. When adding a new model, ensure its config fields populate the
crates/atlas-core/src/capabilities.rs:64
Methodfrom_config
Compute all buffer sizes from model config and max batch tokens. All sizes in bytes. BF16 = 2 bytes per element. Logits buffer is capped: only needed
crates/spark-runtime/src/buffers/sizes.rs:122
Methodfrom_config
Look for `quantization` (or `quantization_config` as fallback) at the top level of `config.json`. Returns `None` if either the block is missing or the
crates/spark-runtime/src/weights/mlx_int8.rs:48
Methodfrom_ebnf
Construct a grammar from an EBNF string. Port of the vendored `Grammar::from_ebnf`.
crates/xgrammar/src/api/grammar.rs:33
Methodfrom_edges
Create an FSM from a ready-made adjacency list.
crates/xgrammar/src/fsm/fsm.rs:35
Methodfrom_env
Reads `TURBO_INNERQ` and `TURBO_INNERQ_STRENGTH` env vars. Returns `None` if `TURBO_INNERQ` is unset, unparsable, or `<= 0`.
crates/spark-model/src/layers/qwen3_attention/innerq_driver.rs:55
Methodfrom_env
()
crates/spark-server/src/rate_limiter.rs:42
Methodfrom_env
()
crates/spark-server/src/conversation_store.rs:58
Methodfrom_env
Build from env. - `ATLAS_STORE_MAX_ENTRIES` (default 10 000) - `ATLAS_STORE_TTL_SECONDS` (default 86 400) - `ATLAS_STORE_DIR` — when set, enable files
crates/spark-server/src/response_store/store_impl.rs:23
Methodfrom_fd
(fd: c_int)
crates/cufile-sys/src/lib.rs:49
Methodfrom_grammar
Build a parser seeded with the grammar's root rule.
crates/xgrammar/src/earley/parser.rs:142
Methodfrom_huggingface
Construct from the raw text of a HuggingFace `tokenizer.json`, inferring `vocab_type` and `add_prefix_space`. Port of the vendored `TokenizerInfo::fr
crates/xgrammar/src/api/tokenizer.rs:52
Methodfrom_huggingface
Build a `TokenizerInfo` from the raw text of a HuggingFace `tokenizer.json`, inferring `vocab_type` and `add_prefix_space`. Returns `Err` when `token
crates/xgrammar/src/tokenizer/info.rs:138
Functionfrom_huggingface_byte_fallback_with_prefix
()
crates/xgrammar/src/tokenizer/tests.rs:262
Functionfrom_huggingface_byte_level
()
crates/xgrammar/src/tokenizer/tests.rs:250
Functionfrom_huggingface_invalid_json_is_err
()
crates/xgrammar/src/tokenizer/tests.rs:274
Functionfrom_huggingface_unknown_decoder_falls_back_to_raw
()
crates/xgrammar/src/tokenizer/tests.rs:280
← previousnext →4,801–4,900 of 7,049, ranked by callers