Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Avarok-Cybersecurity/atlas
/ functions
Functions
7,049 in github.com/Avarok-Cybersecurity/atlas
⨍
Functions
7,049
◇
Types & classes
847
↓ 4 callers
Method
qkv_total_lin
(&self)
crates/spark-model/src/forward/qwen3_5/mod.rs:120
↓ 4 callers
Method
r
(&mut self, lo: f64, hi: f64)
crates/spark-model/examples/gdn_recompute_wu_gateb.rs:30
↓ 4 callers
Function
random_bf16
(n: usize, seed: u64)
crates/spark-storage/tests/predictor_parity.rs:47
↓ 4 callers
Method
reachable_states
All states reachable from `from`. `result` is cleared first.
crates/xgrammar/src/fsm/compact.rs:139
↓ 4 callers
Method
read_alloc
(&self, ptr: DevicePtr)
crates/spark-runtime/src/gpu/mock.rs:51
↓ 4 callers
Function
read_bf16_row
Read a `[num_elements]` BF16 row at `ptr + offset_bytes` to a host `Vec<f32>` (converting BF16 → f32 via shift-left 16).
crates/spark-model/src/layers/moe/dump.rs:31
↓ 4 callers
Function
read_env_u64
(key: &str, default: u64)
crates/spark-server/src/rate_limiter.rs:60
↓ 4 callers
Function
read_file_tool
()
crates/spark-server/src/grammar/tests/gemma4_required.rs:24
↓ 4 callers
Method
record_decode
Record one timed decode-step sample. Caller times only the decode-step wall (D2H + sample included, identically to the verify path).
crates/spark-server/src/scheduler/mtp_gate.rs:227
↓ 4 callers
Function
record_event
(event: u64, stream: u64)
crates/spark-comm/src/nccl.rs:278
↓ 4 callers
Method
record_event
Record an event on a stream (marks a point in the stream's work).
crates/spark-model/src/traits/model.rs:722
↓ 4 callers
Method
record_snapshot_save_dispatch
Record the snapshot-ordering event on `save_stream` AFTER an SSM-snapshot save's D2D copies have been enqueued. A later warm Marconi restore on the pr
crates/spark-model/src/model/trait_impl/async_chkpt.rs:158
↓ 4 callers
Method
record_verify
Record one timed verify-step sample. Only steps that actually ran a verify forward (not a bootstrap-only step) should be reported.
crates/spark-server/src/scheduler/mtp_gate.rs:239
↓ 4 callers
Method
refund_tokens
Called after a streaming request completes with `(reserved - actual)` so over-estimated reservations don't burn the token bucket forever.
crates/spark-server/src/rate_limiter.rs:341
↓ 4 callers
Function
regex_to_grammar
Convert a regex string straight to a parsed [`GrammarData`] AST. This is the regex→grammar-AST path: it lowers the regex to EBNF (via [`regex_to_ebnf
crates/xgrammar/src/regex/mod.rs:112
↓ 4 callers
Method
register
(mut self, pass: Box<dyn ToolCallPass>, kind: PassKind)
crates/spark-server/src/tool_parser/pipeline.rs:59
↓ 4 callers
Method
repetition_detection
Per-request override for the vLLM-anchored token-loop detector. `None` = use the boot-global watchdog parameters.
crates/spark-server/src/api/inference_impl.rs:230
↓ 4 callers
Function
report
(name, a, b, segs, head_dim)
bench/longcode/hang-forensics/gdn_chain_diff_a3b.py:55
↓ 4 callers
Method
rest_bytes
The remaining input from `current_`, re-encoded as UTF-8 bytes. Escape handlers use this to call the byte-oriented `parse_next_escaped`.
crates/xgrammar/src/regex/cursor.rs:82
↓ 4 callers
Method
restore
Restore SSM state from a snapshot slot into an active pool slot.
crates/spark-model/src/model/ssm_snapshot.rs:336
↓ 4 callers
Function
rewind_buffers
Token-buffer rewind applied to a generated-token buffer and the paged-attention sequence buffers. Pure over plain `Vec`s / scalars so it is unit-testa
crates/spark-server/src/scheduler/rollback.rs:355
↓ 4 callers
Function
router_entropy
MoE quality interventions: LASER routing rebalance + MoE-Spec verification-time expert budgeting (B.5, 2026-04-25). References: - LASER: arXiv:2510.0
crates/spark-server/src/moe_quality.rs:34
↓ 4 callers
Method
row
Borrow row `i` as a slice. Panics if `i` is out of bounds.
crates/xgrammar/src/fsm/compact_array.rs:51
↓ 4 callers
Method
rule_mut
Mutable access to a rule.
crates/xgrammar/src/grammar/data.rs:147
↓ 4 callers
Method
rule_name_to_id
(&self)
crates/xgrammar/src/grammar/builder.rs:100
↓ 4 callers
Method
rules_vec_mut
(&mut self)
crates/xgrammar/src/grammar/builder.rs:97
↓ 4 callers
Function
run
(cmd, **kw)
scripts/dev/run_tests.py:32
↓ 4 callers
Function
run
Run a command, capture output, never raise. Returns (rc, out, err).
bench/fp8_dgx2_drift/harness/overnight/run_level.py:55
↓ 4 callers
Function
run_cutlass_variant
( name: &str, f: CutlassVariant, act: *mut c_void, weight: *mut c_void, out: *mut c_void,
crates/spark-runtime/src/cutlass/tests/mod.rs:85
↓ 4 callers
Function
run_ep2_round
Launch both ranks, run the suite against head, stop both.
tests/run_all_models.py:653
↓ 4 callers
Function
save_f32
(name, t)
bench/nemotron_hf_ref_cpu.py:93
↓ 4 callers
Function
save_f32
(name, t)
bench/nemotron_hf_ref.py:89
↓ 4 callers
Function
send_blocking
(url: &str, prompt: &str, max_tokens: usize)
crates/atlas-spark-bench/src/lib.rs:117
↓ 4 callers
Function
send_error
Send error to client and free GPU resources.
crates/spark-server/src/scheduler/lifecycle.rs:83
↓ 4 callers
Method
set_fp8_weights
Install native block-scaled FP8 dense MLP weights. After this call the forward paths dispatch `w8a16_gemv` (decode) / `w8a16_gemm` (prefill) instead o
crates/spark-model/src/layers/dense_ffn.rs:519
↓ 4 callers
Method
set_sliding_window
Set per-layer sliding-window size (Gemma-4 hybrid attention). Call with `Some(window_size)` on sliding layers, `None` on full-attention layers. Non-Ge
crates/spark-model/src/layers/qwen3_attention/helpers.rs:65
↓ 4 callers
Function
setup_model
Helper: build model + GPU backend from model directory.
crates/spark-server/tests/integration.rs:38
↓ 4 callers
Method
simple_token
Build a value-less token at `(line, column)`.
crates/xgrammar/src/grammar/lexer.rs:164
↓ 4 callers
Method
slot_for_position
Find the snapshot slot for the entry whose `token_position` exactly equals `keep_len` — i.e. the snapshot of SSM state right after the boundary token
crates/spark-server/src/scheduler/ssm_decode_ring.rs:130
↓ 4 callers
Method
sort_edges
Sort every state's edges by `(min, max, target)`.
crates/xgrammar/src/fsm/fsm.rs:175
↓ 4 callers
Method
state
(&mut self)
crates/xgrammar/src/grammar/functor/normalizer.rs:33
↓ 4 callers
Function
stream_names
Faithfully mirror the `handle_token` content-phase pipeline for the two steps under test: the bare role-literal strip (guarded by the detector's `insi
crates/spark-server/src/api/chat_stream/handle_token.rs:817
↓ 4 callers
Function
stream_wait_event
(stream: u64, event: u64)
crates/spark-comm/src/nccl.rs:286
↓ 4 callers
Method
stream_wait_event
Make a stream wait for an event (GPU-side sync, CPU does not block).
crates/spark-model/src/traits/model.rs:727
↓ 4 callers
Function
tag_dispatch_spec
Build a [`TagDispatchSpec`] from the structural-tag fields. Shared by the `any_text` and `triggered_tags` converters.
crates/xgrammar/src/structural_tag/mod.rs:59
↓ 4 callers
Function
target_size_with_max_pixels
Compute the target (H, W) so that: - Neither side exceeds `MAX_DIM`. - Both sides are multiples of `grid_unit = patch_size × spatial_merge_size`. - As
crates/spark-model/src/vision_preprocess.rs:48
↓ 4 callers
Function
test_config
()
crates/spark-runtime/src/kv_cache/tests_tq_plus.rs:23
↓ 4 callers
Method
thinking_explicitly_requested
(&self)
crates/spark-server/src/openai/chat_request.rs:336
↓ 4 callers
Function
to_f32
(buf: &[u8], idx: usize)
crates/spark-model/src/weight_loader/deepseek_v4/compute.rs:27
↓ 4 callers
Method
to_fsm
Expand back into a mutable [`Fsm`].
crates/xgrammar/src/fsm/compact.rs:146
↓ 4 callers
Function
tokenizer_info
Construct the `TokenizerInfo` over the synthetic vocab. ByteLevel so the matcher's decoded-vocab path matches a Qwen/MiniMax tokenizer.
crates/xgrammar/benches/grammar_bench.rs:51
↓ 4 callers
Function
tool
(name: &str, desc: &str, params: serde_json::Value)
crates/spark-server/src/tscg/render.rs:174
↓ 4 callers
Function
tool_list_body
Render the `<tools>` body for a parser's `system_prompt()`. When TSCG is enabled (MODEL.toml `[behavior].tscg`), returns the compact function-signatu
crates/spark-server/src/tool_parser/helpers_b.rs:191
↓ 4 callers
Method
total_memory
(&self)
crates/spark-runtime/src/gpu/mock.rs:168
↓ 4 callers
Method
trie_subtree_nodes_range
Pseudo-trie subtree end-indices over [`Self::sorted_decoded_vocab`].
crates/xgrammar/src/tokenizer/info.rs:191
↓ 4 callers
Method
trim_proposer_state
( &self, seq: &mut SequenceState, num_accepted: usize, _stream: u64, )
crates/spark-model/src/model/trait_impl/mod.rs:306
↓ 4 callers
Function
u16le
(v: &[u16])
crates/spark-model/examples/moe_blend_microtest.rs:36
↓ 4 callers
Method
uniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/moe_silu_down_microtest.rs:27
↓ 4 callers
Function
up
(gpu: &dyn GpuBackend, b: &[u8])
crates/spark-model/examples/moe_silu_down_microtest.rs:65
↓ 4 callers
Function
up_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:54
↓ 4 callers
Function
up_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_chunk_shapetest.rs:92
↓ 4 callers
Function
up_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_strided_norm_microtest.rs:42
↓ 4 callers
Function
upload
(gpu: &dyn GpuBackend, b: &[u8])
crates/spark-model/examples/inferspark_attn_fp8_microtest.rs:82
↓ 4 callers
Function
urls
(anns: &[Annotation])
crates/spark-server/src/citation.rs:352
↓ 4 callers
Function
visit
Visit a format. `enclosing_end` is the end-strings of the nearest enclosing tag. `depth` guards against pathological nesting.
crates/xgrammar/src/structural_tag/analyzer.rs:53
↓ 4 callers
Function
w4a16_gemv_dual
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight1: &QuantizedWeight,
crates/spark-model/src/layers/ops/moe_prefill.rs:159
↓ 4 callers
Function
w8a16_gemv_batch4
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight: DevicePtr, block_s
crates/spark-model/src/layers/ops/fp8_gemv_batch.rs:50
↓ 4 callers
Method
walk_prefix
Return `Some(node_id)` after walking `prefix_tokens` from root. Returns `None` if the prefix has fallen off the trie (no more valid extensions). Calle
crates/spark-server/src/symbol_trie.rs:114
↓ 4 callers
Method
whitespace_pattern
The whitespace fragment used between JSON tokens.
crates/xgrammar/src/schema/converter.rs:127
↓ 4 callers
Function
write_and_bash_tools
()
crates/spark-server/src/tool_parser/tests/streaming_frag.rs:185
↓ 4 callers
Function
xml_wrapper
XML tag wrapper strings: `(key_prefix, key_suffix, param_suffix)`.
crates/xgrammar/src/schema/converter.rs:44
↓ 4 callers
Method
z_dim_lin
(&self)
crates/spark-model/src/forward/qwen3_5/mod.rs:114
↓ 4 callers
Function
zeros
(n:usize)
3rdparty_patches/gdn_aot/gdn_rs.rs:20
↓ 3 callers
Method
_base
Build request payload. Omits temperature so the server uses the model's generation_config.json default — avoids argmax degeneration on NVFP4 m
scripts/dev/coherence_test.py:102
↓ 3 callers
Function
_make_log_backend
(backend: Fp8MoeBackend)
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:248
↓ 3 callers
Function
_make_log_unsupported
(backend: Fp8MoeBackend, reason: str | None)
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:255
↓ 3 callers
Function
_p
(values: list[float], p: int, fmt: str = ".0f")
bench/bench_concurrency.py:251
↓ 3 callers
Method
_pad_to_alignment
Pad tensor ``x`` along ``dim`` to the next multiple of ``alignment``.
bench/fp8_dgx2_drift/vllm_src/scaled_mm_cutlass.py:166
↓ 3 callers
Function
_source_files
Agent-authored .rs files (skip build artifacts under target/).
bench/fp8_dgx2_drift/harness/followed_directions.py:75
↓ 3 callers
Function
_upcast_e8m0_to_fp32
Upcast E8M0 (exponent-only) scale to float32. E8M0 stores only the 8-bit biased exponent (bias=127). To convert to float32 we place those 8 b
bench/fp8_dgx2_drift/vllm_src/fp8_utils.py:992
↓ 3 callers
Method
a_g_dev_ptr
(&self)
crates/spark-storage/src/predictor.rs:310
↓ 3 callers
Method
accept_forced_chain
Detect the forced chain and ACCEPT it in place — the efficient server primitive for Coalescence. Unlike [`Self::next_forced_tokens`], which peeks and
crates/xgrammar/src/matcher/coalesce.rs:205
↓ 3 callers
Method
accept_string
Accept a string in one rollback step. Port of the vendored `GrammarMatcher::accept_string`.
crates/xgrammar/src/api/matcher.rs:78
↓ 3 callers
Method
accept_token
Accept one token per matcher. `token_ids[i]` is fed to `matchers[i]`. Port of `BatchAcceptToken`.
crates/xgrammar/src/matcher/batch.rs:100
↓ 3 callers
Method
add_character_class_star
Add a `CharacterClassStar` expr, e.g. `[a-z]*`.
crates/xgrammar/src/grammar/builder.rs:184
↓ 3 callers
Function
add_character_range
Add a `[min, max]` range of packed UTF-8 codepoints to `fsm`, splitting the range at byte-length boundaries.
crates/xgrammar/src/grammar/functor/char_range.rs:56
↓ 3 callers
Method
add_ebnf_sub_grammar
Splice a sub-grammar built from EBNF into the builder. Port of the `SubGrammarAdder().Apply(...)` calls.
crates/xgrammar/src/structural_tag/converter.rs:127
↓ 3 callers
Method
add_repeat_edge
Add a repeat-reference edge, allocating `[rule_id, lower, upper]` into `edge_aux_data`. The source state must have no other edges.
crates/xgrammar/src/fsm/fsm.rs:121
↓ 3 callers
Function
agg
(vals)
bench/longcode/harness.py:114
↓ 3 callers
Method
all_edges
All adjacency rows.
crates/xgrammar/src/fsm/fsm.rs:55
↓ 3 callers
Method
all_sets
Collect all sets, each sorted ascending, ordered by their first element — deterministic, matching the C++ `GetAllSets`.
crates/xgrammar/src/fsm/union_find.rs:84
↓ 3 callers
Method
alloc_sequence
(&self)
crates/spark-model/src/model/trait_impl/mod.rs:164
↓ 3 callers
Function
anthropic_req
(payload, timeout=300)
scripts/test_coherence.py:1162
↓ 3 callers
Function
api
(port, prompt, mt=150, to=300)
scripts/dev/run_all_final.py:44
↓ 3 callers
Method
apply_bitmask_to_logits
Apply the current bitmask to a slice of f32 logits in-place. Masked tokens (disallowed by grammar) are set to `f32::NEG_INFINITY`. This is the CPU-si
crates/spark-server/src/grammar/state.rs:334
↓ 3 callers
Method
apply_merger
Apply one DeepStack/final merger: norm (per-patch) → spatial merge → fc1 → GELU → fc2. Writes output to `out_slice` (pre-offset into buf_out for this
crates/spark-model/src/layers/vision_encoder/enc_impl/merger.rs:28
↓ 3 callers
Method
apply_weights
( self, layer: torch.nn.Module, x: torch.Tensor, bias: torch.Tensor | None = N
bench/fp8_dgx2_drift/vllm_src/scaled_mm_triton.py:121
↓ 3 callers
Method
as_any
(&self)
crates/spark-model/src/layers/mtp_head.rs:73
↓ 3 callers
Method
as_any_mut
(&mut self)
crates/spark-model/src/layers/deepseek_v4_mtp.rs:79
↓ 3 callers
Method
as_any_mut
(&mut self)
crates/spark-model/src/layers/mtp_multi.rs:48
← previous
next →
1,001–1,100 of 7,049, ranked by callers