pub struct BackboneLoadOptions {
pub metal_prefill: MetalGgufPrefillMode,
pub use_fast_kv: Option<bool>,
pub memory_efficient: bool,
}Expand description
Options when constructing crate::backbone::BackboneModel.
Fields§
§metal_prefill: MetalGgufPrefillModeMetal GGUF prefill strategy for the KV generator path.
use_fast_kv: Option<bool>Force incremental KV decode vs packed runner. None uses env
(ORPHEUS_METAL_KV, ORPHEUS_PACKED_LM, …).
memory_efficient: boolWhen true (default for Self::synthesis), use dynamic decode and skip
the bucket compile ladder unless ORPHEUS_BUCKET_DECODE=1.
Implementations§
Source§impl BackboneLoadOptions
impl BackboneLoadOptions
Sourcepub fn synthesis() -> BackboneLoadOptions
pub fn synthesis() -> BackboneLoadOptions
Low-RAM TTS: CPU F32 GGUF prefill + CPU decode on Metal hosts (reference path).
Sourcepub fn gpu(device: Device) -> BackboneLoadOptions
pub fn gpu(device: Device) -> BackboneLoadOptions
GPU TTS on Metal / CUDA / ROCm: on-device prefill + decode (mmap GGUF). wgpu / Vulkan use CPU GGUF prefill + decode (parity) with SNAC logit mask.
Sourcepub fn for_device(device: Device) -> BackboneLoadOptions
pub fn for_device(device: Device) -> BackboneLoadOptions
Pick GPU path when an accelerator is available and low-memory mode is off.
Sourcepub fn reference_parity() -> BackboneLoadOptions
pub fn reference_parity() -> BackboneLoadOptions
Reference parity / throughput: bucket decode allowed when RAM budget permits.
Sourcepub fn fast_prefill() -> BackboneLoadOptions
pub fn fast_prefill() -> BackboneLoadOptions
Experimental: packed Metal KV + CPU F32 logits.
pub fn with_memory_efficient(self, enabled: bool) -> BackboneLoadOptions
pub fn with_metal_prefill( self, mode: MetalGgufPrefillMode, ) -> BackboneLoadOptions
pub fn with_fast_kv(self, enabled: bool) -> BackboneLoadOptions
Trait Implementations§
Source§impl Clone for BackboneLoadOptions
impl Clone for BackboneLoadOptions
Source§fn clone(&self) -> BackboneLoadOptions
fn clone(&self) -> BackboneLoadOptions
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 BackboneLoadOptions
impl Debug for BackboneLoadOptions
Source§impl Default for BackboneLoadOptions
impl Default for BackboneLoadOptions
Source§fn default() -> BackboneLoadOptions
fn default() -> BackboneLoadOptions
Auto Trait Implementations§
impl Freeze for BackboneLoadOptions
impl RefUnwindSafe for BackboneLoadOptions
impl Send for BackboneLoadOptions
impl Sync for BackboneLoadOptions
impl Unpin for BackboneLoadOptions
impl UnsafeUnpin for BackboneLoadOptions
impl UnwindSafe for BackboneLoadOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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