pub struct CompileProfile {
pub fusion: FusionProfile,
pub passes: PassProfile,
pub precision: PrecisionProfile,
pub backend: BackendOverrides,
}Expand description
Tier-1 compile configuration. Load from *.rlx.toml or use Rust presets.
Fields§
§fusion: FusionProfile§passes: PassProfile§precision: PrecisionProfile§backend: BackendOverridesImplementations§
Source§impl CompileProfile
impl CompileProfile
Sourcepub fn llama32_prefill() -> Self
pub fn llama32_prefill() -> Self
Fusion-first prefill defaults (Direct lowering, fusion passes on).
Sourcepub fn llama32_decode() -> Self
pub fn llama32_decode() -> Self
Decode graphs: Fusable lowering so KV-cache concat patterns fuse cleanly.
Sourcepub fn qwen35_prefill() -> Self
pub fn qwen35_prefill() -> Self
Qwen3.5 prefill — same fusion-first defaults as LLaMA prefill.
Sourcepub fn qwen35_decode() -> Self
pub fn qwen35_decode() -> Self
Qwen3.5 decode — fusable policy for GDN / full-attn KV patterns.
Sourcepub fn qwen3_prefill() -> Self
pub fn qwen3_prefill() -> Self
Qwen3 dense LM prefill (GQA + SwiGLU).
Sourcepub fn qwen3_decode() -> Self
pub fn qwen3_decode() -> Self
Qwen3 decode — fusable policy for bucketed KV-cache graphs.
Sourcepub fn gemma_prefill() -> Self
pub fn gemma_prefill() -> Self
Gemma 2 / Gemma 3 causal LM prefill (GQA + RMSNorm + softcap).
Sourcepub fn gemma_decode() -> Self
pub fn gemma_decode() -> Self
Gemma decode — fusable policy for bucketed KV-cache graphs.
Sourcepub fn sam_encoder() -> Self
pub fn sam_encoder() -> Self
SAM / SAM2 image encoder and mask-decoder subgraphs (ConvNeXt-style stacks).
Sourcepub fn sam2() -> Self
pub fn sam2() -> Self
SAM2 image + mask-decoder + memory subgraphs (Hiera encoder uses same tier-1 knobs).
Sourcepub fn sam2_memory_attention() -> Self
pub fn sam2_memory_attention() -> Self
SAM2 memory-attention layers — fusion off (host RoPE between subgraphs).
Sourcepub fn llada2_diffusion() -> Self
pub fn llada2_diffusion() -> Self
LLaDA2 / TIDE block-diffusion MoE (bidirectional attention + grouped MoE).
Fusion is off so graphs legalize on wgpu/CUDA without unfused
FusedResidualRmsNorm lowerings.
pub fn fusion_policy(&self) -> FusionPolicy
pub fn from_toml_str(s: &str) -> Result<Self>
pub fn from_toml_path(path: &Path) -> Result<Self>
Trait Implementations§
Source§impl Clone for CompileProfile
impl Clone for CompileProfile
Source§fn clone(&self) -> CompileProfile
fn clone(&self) -> CompileProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompileProfile
impl Debug for CompileProfile
Source§impl Default for CompileProfile
impl Default for CompileProfile
Source§impl<'de> Deserialize<'de> for CompileProfilewhere
CompileProfile: Default,
impl<'de> Deserialize<'de> for CompileProfilewhere
CompileProfile: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CompileProfile
impl PartialEq for CompileProfile
Source§fn eq(&self, other: &CompileProfile) -> bool
fn eq(&self, other: &CompileProfile) -> bool
self and other values to be equal, and is used by ==.