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
Function
nested_groups_and_alternation
()
crates/xgrammar/src/fsm/builder/regex_tests.rs:40
Function
nested_quantifiers
()
crates/xgrammar/src/grammar/parser_tests.rs:246
Function
nested_rules_simple
()
crates/xgrammar/src/earley/tests.rs:83
Function
neutral_params_classify_neutral
()
crates/spark-server/src/scheduler/fast_greedy.rs:151
Function
never_closing_envelope_still_trips_cap
()
crates/spark-server/src/scheduler/emit_step.rs:740
Method
new
(vocab_size: usize)
crates/xgrammar/src/matcher/bitmask.rs:85
Method
new
(max_threads: Option<usize>)
crates/xgrammar/src/matcher/batch.rs:39
Method
new
( compiled_grammar: CompiledGrammar, override_stop_tokens: Option<Vec<i32>>, terminate
crates/xgrammar/src/matcher/matcher.rs:108
Method
new
Wrap a grammar for printing.
crates/xgrammar/src/grammar/printer.rs:24
Method
new
A rule with no lookahead assertion.
crates/xgrammar/src/grammar/data.rs:32
Method
new
A range `[lower, upper]`.
crates/xgrammar/src/grammar/builder.rs:42
Method
new
New state wrapping `grammar`, with a fresh empty builder.
crates/xgrammar/src/grammar/functor/mutator.rs:30
Method
new
Construct a cache bounded by `max_cache_memory_size` bytes. Pass [`UNLIMITED_SIZE`] for no bound. Port of the C++ `RuleLevelCache(size_t)` constructor
crates/xgrammar/src/compiler/rule_cache.rs:121
Method
new
Construct a compiler bound to `tokenizer_info`. `max_threads` — retained for API parity. Mask computation is now lazy (XGrammar-2 JIT), so there is n
crates/xgrammar/src/compiler/compiler.rs:88
Method
new
Construct a generator for `init_state`.
crates/xgrammar/src/compiler/mask_gen/mod.rs:55
Method
new
Construct a [`StructuralTagItem`].
crates/xgrammar/src/structural_tag/format.rs:137
Method
new
Build directly from a CSR edge array and aux data.
crates/xgrammar/src/fsm/compact.rs:27
Method
new
Create an empty array (zero rows).
crates/xgrammar/src/fsm/compact_array.rs:28
Method
new
Build a standalone compact FSM; `node_num`/`edge_num` are the FSM's own counts.
crates/xgrammar/src/fsm/compact_with_start_end.rs:35
Method
new
Create an empty union-find set.
crates/xgrammar/src/fsm/union_find.rs:21
Method
new
Build from parts.
crates/xgrammar/src/fsm/with_start_end.rs:30
Method
new
Construct a parser for `grammar`, seeding it with `initial_state` (or the root state when `initial_state` is the invalid sentinel). When `need_expand`
crates/xgrammar/src/earley/parser.rs:105
Method
new
Construct an item. `repeat_count` and `partial_codepoint` default to 0 — matching the C++ constructor defaults.
crates/xgrammar/src/earley/state.rs:44
Method
new
An empty queue.
crates/xgrammar/src/earley/queue.rs:30
Method
new
Construct the compiler. `max_threads` and `cache_limit_bytes` keep the vendored integer types (`i32` / `isize`); they are range-checked and forwarded
crates/xgrammar/src/api/compiler.rs:33
Method
new
Construct the grammar matcher. Port of the vendored `GrammarMatcher::new`. `compiled_grammar` is taken by reference and cloned (cheap — `CompiledGram
crates/xgrammar/src/api/matcher.rs:40
Method
new
Construct the tokenizer info from a raw (encoded) vocabulary. Port of the vendored `TokenizerInfo::new`. The vocab size is `encoded_vocab.len()`; `st
crates/xgrammar/src/api/tokenizer.rs:30
Method
new
Construct an indent manager. `indent == None` disables newlines. Port of the C++ constructor.
crates/xgrammar/src/schema/indent.rs:27
Method
new
Build a parser over `root_schema`.
crates/xgrammar/src/schema/parser.rs:34
Method
new
Build a converter from the resolved options.
crates/xgrammar/src/schema/converter.rs:82
Method
new
Fresh, empty script builder.
crates/xgrammar/src/schema/script.rs:26
Method
new
Build a converter for `regex`. Fails if `regex` is not valid UTF-8.
crates/xgrammar/src/regex/converter.rs:35
Method
new
Decode `regex` into codepoints. Returns an error if the regex is not valid UTF-8 — faithful to the C++ `kInvalidUTF8` check.
crates/xgrammar/src/regex/cursor.rs:27
Method
new
Build a `TokenizerInfo` from a raw (encoded) vocabulary. Mirrors the C++ `TokenizerInfo` constructor: `encoded_vocab` — raw vocabulary strings, index
crates/xgrammar/src/tokenizer/info.rs:67
Method
new
Create an empty array (`indptr` initialized to `[0]`).
crates/xgrammar/src/support/compact_2d_array.rs:34
Method
new
Create an empty union-find set.
crates/xgrammar/src/support/union_find.rs:23
Method
new
(algo: String, ignore_modules: Vec<String>)
crates/spark-model/src/quant_format/modelopt.rs:44
Method
new
(ignore_modules: Vec<String>)
crates/spark-model/src/quant_format/fp8_blockscaled.rs:28
Method
new
(format: String, ignore_modules: Vec<String>)
crates/spark-model/src/quant_format/compressed_tensors.rs:38
Method
new
Build the snapshot pool. `num_slots` sizes the Marconi LRU region; `decode_ring_slots` × `decode_max_seqs` sizes the Phase-C decode-rollback region.
crates/spark-model/src/model/ssm_snapshot.rs:101
Method
new
( config: ModelConfig, embed_tokens: DenseWeight, final_norm: DenseWeight, lm_
crates/spark-model/src/model/impl_a1.rs:31
Method
new
( config: &ModelConfig, max_slots: usize, has_mtp: bool, num_intermediates: us
crates/spark-model/src/model/ssm_pool.rs:57
Method
new
(output_sequence: Vec<u32>)
crates/spark-model/src/engine/tests.rs:46
Method
new
Build the proposer from a loaded `DeepseekV4MtpModule` and the shared embedding + NVFP4 LM head.
crates/spark-model/src/layers/deepseek_v4_mtp.rs:111
Method
new
( input_norm: DenseWeight, ssm: NemotronSsmWeights, config: &atlas_core::config::Model
crates/spark-model/src/layers/nemotron_mamba2.rs:63
Method
new
(weights: DenseFfnWeights, gpu: &dyn GpuBackend)
crates/spark-model/src/layers/dense_ffn.rs:214
Method
new
( weights: NemotronMoeWeights, input_norm: DenseWeight, config: &ModelConfig,
crates/spark-model/src/layers/nemotron_moe.rs:74
Method
new
Create a new calibration tracker. `warmup_tokens`: number of tokens to observe before freezing scales. `gpu`: GPU backend for allocating the absmax r
crates/spark-model/src/layers/fp8_calibration.rs:69
Method
new
Assemble a multi-module proposer from per-module heads. Callers construct each `MtpHead` via `MtpHead::new` with the MTP weights for that module's pr
crates/spark-model/src/layers/mtp_multi.rs:73
Method
new
( input_norm: DenseWeight, attn: AttentionWeights, post_attn_norm: DenseWeight,
crates/spark-model/src/layers/qwen3_attention/init.rs:16
Method
new
( layer: &Qwen3AttentionLayer, fwd: &'a ForwardContext<'a>, hidden: DevicePtr,
crates/spark-model/src/layers/qwen3_attention/trait_impl/multi_seq/ctx.rs:47
Method
new
( input_norm: DenseWeight, ssm: SsmWeights, post_attn_norm: DenseWeight, ffn:
crates/spark-model/src/layers/qwen3_ssm/init.rs:8
Method
new
( weights: MoeWeights, num_experts: usize, gate_nvfp4: Option<QuantizedWeight>,
crates/spark-model/src/layers/moe/init.rs:8
Method
new
( weights: MtpWeights, embed_tokens: DenseWeight, lm_head_nvfp4: QuantizedWeight,
crates/spark-model/src/layers/mtp_head/new.rs:15
Method
new
( patch_embed_w: DevicePtr, patch_embed_b: DevicePtr, pos_embed: DevicePtr, nu
crates/spark-model/src/layers/vision_encoder/enc_impl/init.rs:11
Method
new
( store: &'a WeightStore, config: &'a ModelConfig, gpu: &'a dyn GpuBackend, ab
crates/spark-model/src/mistral_loader/loader_impl/ctx.rs:69
Method
new
(dims: TiledAttentionDims)
crates/spark-storage/src/tiled_attention.rs:82
Method
new
(layer: u32, block: u32, kv_head: u16, kv_kind: KvKind)
crates/spark-storage/src/group.rs:32
Method
new
(ordinal: i32)
crates/spark-storage/src/cuda_min.rs:51
Method
new
(num_seqs: usize, num_q_heads: usize, head_dim: usize)
crates/spark-storage/src/attention_ref.rs:23
Method
new
(head_dim: usize, r: usize)
crates/spark-storage/src/projection.rs:21
Method
new
(ctx: &CudaCtx, dims: PredictorDims, projection_seed: u64)
crates/spark-storage/src/predictor.rs:74
Method
new
(dims: ScratchDims)
crates/spark-storage/src/scratch_pool.rs:62
Method
new
(num_slots: u32)
crates/spark-storage/src/eviction.rs:30
Method
new
()
crates/spark-storage/src/high_speed_swap.rs:54
Method
new
()
crates/spark-storage/src/cuda_module.rs:73
Method
new
(layout: Layout, qd: usize)
crates/spark-storage/src/backend/io_uring.rs:27
Method
new
(layout: Layout)
crates/spark-storage/src/backend/posix.rs:22
Method
new
(burst: u64)
crates/spark-server/src/rate_limiter.rs:115
Method
new
(dir: impl Into<PathBuf>)
crates/spark-server/src/response_store.rs:112
Method
new
(weights: Vec<f32>, bias: f32)
crates/spark-server/src/lookback_lens.rs:86
Method
new
(_order: usize)
crates/spark-server/src/ngram.rs:29
Method
new
Construct with default cap=16, Jaccard threshold=0.55.
crates/spark-server/src/loop_simhash.rs:62
Method
new
Construct with default parameters.
crates/spark-server/src/tool_arg_dedup.rs:54
Method
new
(tbt_deadline_ms: u64)
crates/spark-server/src/scheduling_policy.rs:93
Method
new
(ttl_secs: u64)
crates/spark-server/src/session_manager.rs:35
Method
new
Build from a calibration result. `num_layers` sizes the per-layer count array; pass 40 for Qwen3.5.
crates/spark-server/src/retrieval_heads.rs:60
Method
new
Build from offline-trained weights. Returns `None` if `weights` is empty.
crates/spark-server/src/halluc_probe.rs:40
Method
new
Create a new adaptive state from the request's base temperature.
crates/spark-server/src/adaptive_sampler.rs:48
Method
new
Create a new per-request grammar state from a compiled grammar. `vocab_size` must match the tokenizer vocabulary used during compilation. As part of
crates/spark-server/src/grammar/state.rs:76
Method
new
Build a [`GrammarEngine`] from an ordered vocabulary (index = token ID). `vocab` must be ordered by token ID: `vocab[i]` is the string for token `i`.
crates/spark-server/src/grammar/engine.rs:51
Method
new
Create a ring with room for `capacity` snapshots. `capacity == 0` produces a permanently-disabled ring (every `record` is a no-op, every lookup return
crates/spark-server/src/scheduler/ssm_decode_ring.rs:72
Method
new
`num_drafts`: drafts proposed per verify step (scheduler SSOT; K=2 ⇒ 1).
crates/spark-server/src/scheduler/mtp_gate.rs:155
Method
new
()
crates/spark-server/src/tool_parser/pipeline.rs:52
Method
new
()
crates/spark-server/src/tool_parser/streaming_impl.rs:7
Method
new
(model: String)
crates/spark-server/src/anthropic/translator.rs:64
Method
new
(model: &str, text: String, usage: Usage, finish_reason: &str)
crates/spark-server/src/openai/completions.rs:117
Method
new
(model: &str, content: String, usage: Usage, finish_reason: &str)
crates/spark-server/src/openai/chat_response.rs:127
Method
new
( tools_active: bool, enable_thinking: bool, cancel_flag: std::sync::Arc<std::sync::at
crates/spark-server/src/api/chat_stream/state.rs:163
Method
new
Initialize an Atlas device on the given GPU ordinal.
crates/atlas-core/src/device.rs:54
Method
new
Create a new CUDA stream on the given device.
crates/atlas-core/src/stream.rs:17
Method
new
Create a new tensor reference from a raw pointer and shape. Assumes contiguous (row-major) layout.
crates/atlas-core/src/tensor.rs:27
Method
new
Create a new NVIDIA target, locating nvcc from CUDA_HOME or PATH.
crates/atlas-core/src/compute.rs:140
Method
new
Initialize NCCL with TCP bootstrap. Rank 0 listens on `master_addr:master_port`, generates a unique ID, and sends it to all connecting ranks. All ran
crates/spark-comm/src/nccl_backend.rs:124
Method
new
()
crates/spark-runtime/src/radix_tree.rs:53
Method
new
(vocab_size: usize)
crates/spark-runtime/src/sampler.rs:143
Method
new
Initialize the Metal backend with the embedded metallib modules. `kernel_modules` is the `metallib_modules()` slice produced by `atlas-kernels`' buil
crates/spark-runtime/src/metal_backend.rs:124
Method
new
(gpu: &'a dyn GpuBackend, kernel: KernelHandle)
crates/spark-runtime/src/kernel_args.rs:68
Method
new
Create a new spill manager rooted at `spill_dir` with a byte budget. Creates the directory if it doesn't exist. Removes any stale files from prior ru
crates/spark-runtime/src/kv_spill.rs:27
Method
new
Allocate all intermediate buffers on the GPU.
crates/spark-runtime/src/buffers.rs:107
← previous
next →
5,601–5,700 of 7,049, ranked by callers