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
↓ 6 callers
Function
roundtrip
(ebnf: &str)
crates/xgrammar/src/grammar/printer.rs:185
↓ 6 callers
Method
row
Immutable view of row `i`.
crates/xgrammar/src/fsm/simplify.rs:60
↓ 6 callers
Method
row_mut
Mutable view of row `i`.
crates/xgrammar/src/fsm/simplify.rs:67
↓ 6 callers
Method
rules_vec
(&self)
crates/xgrammar/src/grammar/builder.rs:94
↓ 6 callers
Function
run_one_bench
(label: &str, f: F)
crates/spark-storage/src/probe.rs:69
↓ 6 callers
Function
run_translator
Helper: drive the translator with a sequence of chunks and return the (event_type, parsed_data) list it emitted.
crates/spark-server/src/anthropic/tests/translator_b.rs:59
↓ 6 callers
Function
sample_with_params_seeded
Core sampling pipeline with explicit seed control. `seed` overrides the RNG for deterministic sampling. None = thread_rng.
crates/spark-runtime/src/sampler/sample_impl.rs:19
↓ 6 callers
Function
send_error_to_sink
Send an error directly to a ResponseSink that hasn't been attached to an ActiveSeq yet. Used by prefill_request when it fails AFTER extracting the sin
crates/spark-server/src/scheduler/lifecycle.rs:111
↓ 6 callers
Method
snapshot
(&self, rate_per_sec: f64, burst: f64, now: Instant)
crates/spark-server/src/rate_limiter.rs:140
↓ 6 callers
Method
start_rollback_and_checkpoint_async
( &self, seq: &mut SequenceState, num_accepted: usize, )
crates/spark-model/src/model/trait_impl/mod.rs:341
↓ 6 callers
Function
stop
(name, host=None)
scripts/dev/run_all_final.py:26
↓ 6 callers
Function
stop_container
(host: str, name: str)
tests/run_all_models.py:351
↓ 6 callers
Method
stream_synchronize
Block the calling thread until all prior work on `stream` completes.
crates/atlas-core/src/registry.rs:349
↓ 6 callers
Function
sv
(name,t)
3rdparty_patches/gdn_aot/gdn_dump_meta.py:39
↓ 6 callers
Function
tok
A tiny RAW-vocab tokenizer covering the bytes / multi-char tokens used by the test grammars. Index 0 (`</s>`) is the stop token; the rest are content
crates/xgrammar/src/matcher/tests.rs:28
↓ 6 callers
Method
touch
Mark `slot` as accessed at the current epoch.
crates/spark-storage/src/eviction.rs:43
↓ 6 callers
Method
uniform
(&mut self, lo: f32, hi: f32)
crates/spark-model/examples/gdn_regresident_microtest.rs:37
↓ 6 callers
Function
up_bf16
(g: &dyn GpuBackend, d: &[bf16])
crates/spark-model/examples/gdn_verify_fused_microtest.rs:67
↓ 6 callers
Function
up_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_verify_fused_microtest.rs:73
↓ 6 callers
Function
up_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_cdh_vblock_microtest.rs:60
↓ 6 callers
Function
up_f32
(g: &dyn GpuBackend, d: &[f32])
crates/spark-model/examples/gdn_chunk_shapetest.rs:98
↓ 6 callers
Function
upload
(gpu: &dyn GpuBackend, bytes: &[u8])
crates/spark-model/examples/w4a16_bf16_v2_bench.rs:29
↓ 6 callers
Function
validate_tool_calls
Validate tool calls against their schemas. Returns valid calls and error messages for invalid ones. Checks: 1. Tool name exists in definitions 2. Arg
crates/spark-server/src/tool_parser/validation.rs:416
↓ 6 callers
Function
verify_pick_all_with_pipeline
Convenience: copy the full `[K, vocab]` verify logits buffer to host and apply [`verify_pick_with_pipeline`] to every position, returning the K proces
crates/spark-server/src/scheduler/verify_pipeline_helper.rs:177
↓ 6 callers
Method
visit_element
Default: copy a leaf element verbatim into the builder.
crates/xgrammar/src/grammar/functor/mutator.rs:138
↓ 6 callers
Function
w4a16_gemv_batch3
W4A16 triple-GEMV (M=3): reads weights once, computes 3 outputs. A: [3, K] BF16 contiguous, B: NVFP4 packed, C: [3, N] BF16 contiguous. For K=3 specu
crates/spark-model/src/layers/ops/quant_dispatch.rs:154
↓ 6 callers
Function
w8a16_gemm_pipelined
( gpu: &dyn GpuBackend, kernel: KernelHandle, input: DevicePtr, weight: DevicePtr, block_s
crates/spark-model/src/layers/ops/gemm_quant.rs:281
↓ 6 callers
Method
whitespace_part
The whitespace fragment for `any_whitespace` mode.
crates/xgrammar/src/schema/indent.rs:45
↓ 5 callers
Method
__init__
(self, *, vllm_config: VllmConfig, prefix: str = "")
bench/fp8_dgx2_drift/vllm_src/qwen3_5.py:207
↓ 5 callers
Function
_plain_text_fallback
(reason: str)
tests/single_gpu_suite.py:397
↓ 5 callers
Function
_return_or_raise
( backend: Fp8MoeBackend, config: FusedMoEConfig, weight_key: QuantKey | None,
bench/fp8_dgx2_drift/vllm_src/moe_oracle_fp8.py:267
↓ 5 callers
Method
_stream_raw
Return raw SSE lines as parsed JSON objects.
scripts/dev/test_bugfixes.py:47
↓ 5 callers
Function
append_tool_choice_instruction
Shared tool_choice instruction appended to all system prompts.
crates/spark-server/src/tool_parser/helpers_b.rs:165
↓ 5 callers
Function
apply_penalties_and_bias
Apply repetition / presence / frequency / LZ / DRY penalties and per-token logit bias to `logits` IN PLACE, using `token_history`. SSOT for the pre-f
crates/spark-runtime/src/sampler.rs:374
↓ 5 callers
Function
bf16_bytes_to_f32
(bytes: [u8; 2])
crates/atlas-quant/src/fp8.rs:117
↓ 5 callers
Function
byte_to_char_map
The GPT-2 bytes-to-unicode forward map: byte -> unicode codepoint. This is the table HuggingFace uses to *encode* the vocabulary; it is the exact inv
crates/xgrammar/src/tokenizer/decoder.rs:88
↓ 5 callers
Function
calc_tps
Wall-clock tokens per second (includes prefill/TTFT). Not the decode steady-state — use calc_decode_tps for apples-to-apples comparisons again
tests/single_gpu_suite.py:105
↓ 5 callers
Function
cfg
()
crates/spark-storage/src/config.rs:74
↓ 5 callers
Function
cfg
(rpm: u64, tpm: u64)
crates/spark-server/src/rate_limiter/tests.rs:5
↓ 5 callers
Function
chat
Send a chat completion request and return the assistant's content.
scripts/test_multiturn_agentic.py:23
↓ 5 callers
Function
chat
Send a chat completion request.
tests/single_gpu_suite.py:32
↓ 5 callers
Function
cleanup
()
scripts/dev/run_tests.py:35
↓ 5 callers
Method
close_open_block
Close the currently open block (if any) and increment the block index. Returns the matching `content_block_stop` event, or `None` if no block was open
crates/spark-server/src/anthropic/translator.rs:96
↓ 5 callers
Function
cmp_pair
(a: np.ndarray, b: np.ndarray)
bench/qwen36_fp8_dequant_audit/cosine_three_way_phase2b.py:36
↓ 5 callers
Method
compile_gemma4_tool_grammar
Compile a grammar for Gemma-4 native tool calls. Gemma-4's native format uses special sentinel tokens: `<|tool_call>call:NAME{"key":"val",...}<tool_c
crates/spark-server/src/grammar/compile_tools.rs:586
↓ 5 callers
Method
compile_normalized
Run the full W3 pipeline (normalize then optimize) on a parsed grammar, then compile it against this compiler's tokenizer.
crates/xgrammar/src/compiler/compiler.rs:126
↓ 5 callers
Function
compress
Compress `text` to a target ratio in (0, 1] by dropping tokens with the lowest keep probabilities. Returns the compressed text (whitespace-joined) and
crates/spark-server/src/llmlingua.rs:75
↓ 5 callers
Function
confidence_run_step
F2 confidence-run accumulator. Given whether the current token is high-confidence (top-1 softmax ≥ 0.95) and the prior consecutive run length, return
crates/spark-server/src/scheduler/confidence.rs:49
↓ 5 callers
Method
conv_checkpoint
(&self, ssm_layer_idx: usize, slot: usize)
crates/spark-model/src/model/ssm_pool.rs:320
↓ 5 callers
Function
cos_sim
(a: np.ndarray, b: np.ndarray)
bench/fp8_dgx2_drift/op_cosine.py:36
↓ 5 callers
Function
cpu_f32_to_e4m3
float → FP8 E4M3 byte. Mirrors `f32_to_e4m3` in `kv_cache_append_turbo8.metal` exactly (saturating, round-half-away on the mantissa).
crates/spark-runtime/src/metal_backend/tests/helpers.rs:122
↓ 5 callers
Function
cuMemGetInfo_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:34
↓ 5 callers
Function
cuMemcpyDtoHAsync_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:38
↓ 5 callers
Function
cuMemcpyHtoDAsync_v2
crates/atlas-kernels/hip/libcuda_hip_shim.cpp:36
↓ 5 callers
Method
current_cmd_buf
Borrow (or open) the in-flight command buffer on the given stream. Returns a clone of the `Retained` so the caller can encode without holding the stre
crates/spark-runtime/src/metal_backend.rs:217
↓ 5 callers
Function
cutlass_nvfp4_flag_enabled
(name: &str)
crates/spark-model/src/layers/ops/dispatch_helpers.rs:62
↓ 5 callers
Function
cutlass_nvfp4_gemm_enabled
Native CUTLASS NVFP4 GEMM path enabled? (`ATLAS_CUTLASS_NVFP4_GEMM=1`). This path quantizes activations to CUTLASS NVFP4 and consumes transposed Atlas
crates/spark-model/src/layers/ops/dispatch_helpers.rs:56
↓ 5 callers
Function
cutlass_nvfp4_proj
( gpu: &dyn spark_runtime::gpu::GpuBackend, act: spark_runtime::gpu::DevicePtr, weight_t: &crate::
crates/spark-model/src/layers/ops/dispatch_proj.rs:311
↓ 5 callers
Function
cutlass_nvfp4_proj_from_fp8
( gpu: &dyn spark_runtime::gpu::GpuBackend, act: spark_runtime::gpu::DevicePtr, fp8w: &crate::weig
crates/spark-model/src/layers/ops/dispatch_proj.rs:369
↓ 5 callers
Method
decode_verify
( &self, tokens: &[u32], seq: &mut SequenceState, stream: u64, )
crates/spark-model/src/engine/tests.rs:194
↓ 5 callers
Function
deinterleave_qg
Deinterleave Q/Gate from per-head interleaved to contiguous layout (in-place). Input layout: [Q_h0(hd), G_h0(hd), Q_h1(hd), G_h1(hd), ...] Output la
crates/spark-model/src/layers/ops/ssm_preproc.rs:58
↓ 5 callers
Function
dequant_4bit_block_to_bf16
Dequant a 4-bit packed (NVFP4 or Turbo4) KV block to BF16. Layout per block: data: `bs * nkv * (hd / 2)` bytes (2 nibbles/byte). scales: `bs * nkv
crates/spark-runtime/src/kv_dequant.rs:89
↓ 5 callers
Function
dequant_fp8_pertensor_to_bf16
Dequantize FP8 E4M3 per-tensor-scaled data to BF16 bytes. Each FP8 byte is converted to f32, multiplied by the per-tensor scale, then truncated to BF
crates/atlas-quant/src/fp8.rs:140
↓ 5 callers
Function
e4m3_lut
E4M3 → f32 LUT (256 entries). Built lazily on first use.
crates/spark-runtime/src/kv_dequant.rs:49
↓ 5 callers
Method
embed
(&self, s: &str)
crates/spark-server/src/tool_rag.rs:123
↓ 5 callers
Function
empty_esc_map
()
crates/xgrammar/src/support/escape.rs:224
↓ 5 callers
Method
encode
(&self, s: &str)
crates/spark-server/src/symbol_trie.rs:157
↓ 5 callers
Function
extract_tag_value
Extract text content between `<tag>` and `</tag>`.
crates/spark-server/src/tool_parser/parse_single_b.rs:195
↓ 5 callers
Function
extract_text
Extract text content from API response. Falls back to `reasoning_content` when `content` is empty. Some reasoning-first models (Nemotron-Supe
tests/single_gpu_suite.py:76
↓ 5 callers
Function
f32_to_bf16
(f: f32)
crates/spark-model/examples/moe_blend_microtest.rs:32
↓ 5 callers
Method
find_completion_to_accept
(&mut self, max_bytes: usize)
crates/xgrammar/src/matcher/completion.rs:58
↓ 5 callers
Method
fp8_act
Persistent FP8 block-scaled activation scratch for prefill projections. Replaces a per-projection alloc/sync/free in the W8A8+FP32-epilogue path.
crates/spark-runtime/src/buffers.rs:315
↓ 5 callers
Method
fp8_act_scale
Persistent per-128-block FP32 scales paired with `fp8_act`.
crates/spark-runtime/src/buffers.rs:323
↓ 5 callers
Function
fp8_blockscaled_prefill_enabled
Whether block-scaled FP8 prefill (per-128-block weight scales + per-token activation scales via `fp8_gemm_t_blockscaled` / `moe_w8a8_grouped_gemm`) is
crates/spark-model/src/layers/ops/dispatch_helpers.rs:23
↓ 5 callers
Method
free_blocks
Free all blocks in a block table.
crates/spark-runtime/src/kv_cache/paged_impl.rs:183
↓ 5 callers
Method
function
(&self, name: &str)
crates/spark-storage/src/cuda_module.rs:48
↓ 5 callers
Function
gdn_prefill_fla
( gpu: &dyn GpuBackend, k_recompute_wu: KernelHandle, k_chunk_delta_h: KernelHandle, // wmma +
crates/spark-model/src/layers/ops/ssm_gdn_a2.rs:293
↓ 5 callers
Function
gdn_prefill_split4
( gpu: &dyn GpuBackend, kernel: KernelHandle, h_state: DevicePtr, query: DevicePtr, key: D
crates/spark-model/src/layers/ops/ssm_gdn_a2.rs:131
↓ 5 callers
Function
generate
Generate response tokens from a prompt. Runs prefill on the prompt tokens, then iteratively decodes up to `params.max_tokens` output tokens, stopping
crates/spark-model/src/engine.rs:26
↓ 5 callers
Method
get_or_compute
Get-or-compute: returns the cached mask if present, otherwise runs `compute`, inserts the result, and returns it. This is the single call site `compil
crates/xgrammar/src/compiler/rule_cache.rs:185
↓ 5 callers
Method
get_or_compute
Fetch from cache or compute via `f`, honoring `cache_enabled`.
crates/xgrammar/src/compiler/compiler.rs:138
↓ 5 callers
Function
ggml_bitset_get
kernels/gb10/qwen3.6-27b/nvfp4/q4k_vendor/ggml-impl.h:209
↓ 5 callers
Method
h_checkpoint
(&self, ssm_layer_idx: usize, slot: usize)
crates/spark-model/src/model/ssm_pool.rs:316
↓ 5 callers
Function
handle_escapes
Escape-class expansion for `\n`, `\d`, `\w`, … Returns the `(min, max)` byte ranges the escape at `regex[start]` denotes.
crates/xgrammar/src/fsm/builder/regex_leaf.rs:14
↓ 5 callers
Method
has_tool_calls
(&self)
crates/spark-server/src/tool_parser/streaming_impl.rs:447
↓ 5 callers
Function
hashed
(ebnf: &str)
crates/xgrammar/src/grammar/functor/fsm_hasher_tests.rs:7
↓ 5 callers
Method
i8
(&mut self)
crates/spark-model/examples/int8_gemm_test.rs:21
↓ 5 callers
Method
inc_ref
Increment reference count on a block (for prefix cache sharing).
crates/spark-runtime/src/kv_cache/paged_impl.rs:155
↓ 5 callers
Function
interleave_ba
CPU-side interleave A and B weight rows into BA format for dense_gemv_ba_gates. Expected output format per GQA group: [b_vh0, b_vh1, a_vh0, a_vh1] (v
crates/spark-model/src/weight_map/fp8_lut.rs:436
↓ 5 callers
Method
is_empty
True iff every channel is empty — the message contributed nothing measurable. Used to skip from the recent window so pure noise (heart-beats, pings) d
crates/spark-server/src/loop_detector.rs:192
↓ 5 callers
Method
is_mla
Multi-head Latent Attention guard. When true, chunked prefill MUST run as a single chunk — Atlas has no paged-MLA prefill kernel and multi-chunk MLA s
crates/spark-model/src/traits/model.rs:552
↓ 5 callers
Function
is_normalized_tool_name
Guard for candidate names scanned with `is_tool_name_or_namespace_char`: after `normalize_tool_name`, a real tool name never retains a `:`. A survivin
crates/spark-server/src/tool_parser.rs:48
↓ 5 callers
Function
issue_decode_body
Issue the per-layer decode body kernels onto the stream. Used both by eager-mode and inside `CapturedStep::capture` for the graph variant.
crates/spark-storage/tests/cuda_graph_capture.rs:166
↓ 5 callers
Method
k_cache_ptr
Get K cache pointer for a layer and block.
crates/spark-runtime/src/kv_cache/paged_impl.rs:208
↓ 5 callers
Method
kv_dim
(&self)
crates/spark-model/src/forward/qwen3_5/mod.rs:109
↓ 5 callers
Function
launch_kernel
Direct cuLaunchKernel wrapper. Caller is responsible for ensuring the `params` pointer array stays valid until the launch returns.
crates/spark-storage/src/cuda_module.rs:109
↓ 5 callers
Method
layout
(&self)
crates/spark-storage/src/backend/posix.rs:27
↓ 5 callers
Function
load_bin
3rdparty_patches/gdn_aot/gdn_harness.cpp:8
↓ 5 callers
Function
load_bin
(path: pathlib.Path)
bench/fp8_dgx2_drift/op_cosine.py:27
↓ 5 callers
Method
lookup
(&self, key: ResidentKey)
crates/spark-storage/src/scratch_pool.rs:97
← previous
next →
701–800 of 7,049, ranked by callers