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() -> CompileProfile
pub fn llama32_prefill() -> CompileProfile
Fusion-first prefill defaults (Direct lowering, fusion passes on).
Sourcepub fn llama32_decode() -> CompileProfile
pub fn llama32_decode() -> CompileProfile
Decode graphs: Fusable lowering so KV-cache concat patterns fuse cleanly.
Sourcepub fn qwen35_prefill() -> CompileProfile
pub fn qwen35_prefill() -> CompileProfile
Qwen3.5 prefill — same fusion-first defaults as LLaMA prefill.
Sourcepub fn qwen35_decode() -> CompileProfile
pub fn qwen35_decode() -> CompileProfile
Qwen3.5 decode — fusable policy for GDN / full-attn KV patterns.
Sourcepub fn qwen3_prefill() -> CompileProfile
pub fn qwen3_prefill() -> CompileProfile
Qwen3 dense LM prefill (GQA + SwiGLU).
Sourcepub fn qwen3_decode() -> CompileProfile
pub fn qwen3_decode() -> CompileProfile
Qwen3 decode — fusable policy for bucketed KV-cache graphs.
Sourcepub fn gemma_prefill() -> CompileProfile
pub fn gemma_prefill() -> CompileProfile
Gemma 2 / Gemma 3 causal LM prefill (GQA + RMSNorm + softcap).
Sourcepub fn gemma_decode() -> CompileProfile
pub fn gemma_decode() -> CompileProfile
Gemma decode — fusable policy for bucketed KV-cache graphs.
Sourcepub fn flux2() -> CompileProfile
pub fn flux2() -> CompileProfile
FLUX.2 diffusion transformer + VAE/text-encoder graphs.
Sourcepub fn sam_encoder() -> CompileProfile
pub fn sam_encoder() -> CompileProfile
SAM / SAM2 image encoder and mask-decoder subgraphs (ConvNeXt-style stacks).
Sourcepub fn sam3() -> CompileProfile
pub fn sam3() -> CompileProfile
SAM3 detector encoder/decoder layers (ViT + deformable-style decoder).
Sourcepub fn sam2() -> CompileProfile
pub fn sam2() -> CompileProfile
SAM2 image + mask-decoder + memory subgraphs (Hiera encoder uses same tier-1 knobs).
Sourcepub fn sam2_memory_attention() -> CompileProfile
pub fn sam2_memory_attention() -> CompileProfile
SAM2 memory-attention layers — fusion off (host RoPE between subgraphs).
Sourcepub fn llada2_diffusion() -> CompileProfile
pub fn llada2_diffusion() -> CompileProfile
LLaDA2 / TIDE block-diffusion MoE (bidirectional attention + grouped MoE).
Fusion is off so graphs legalize on wgpu/CUDA without unfused
FusedResidualRmsNorm lowerings.
Sourcepub fn encoder() -> CompileProfile
pub fn encoder() -> CompileProfile
Bidirectional encoder defaults (BERT, NomicBERT, vision encoders).
pub fn fusion_policy(&self) -> FusionPolicy
pub fn from_toml_str(s: &str) -> Result<CompileProfile, Error>
pub fn from_toml_path(path: &Path) -> Result<CompileProfile, Error>
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§fn default() -> CompileProfile
fn default() -> 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<CompileProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompileProfile, <__D as Deserializer<'de>>::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 ==.Source§impl Serialize for CompileProfile
impl Serialize for CompileProfile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CompileProfile
Auto Trait Implementations§
impl Freeze for CompileProfile
impl RefUnwindSafe for CompileProfile
impl Send for CompileProfile
impl Sync for CompileProfile
impl Unpin for CompileProfile
impl UnsafeUnpin for CompileProfile
impl UnwindSafe for CompileProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more