pub struct ModelBundle {
pub root: PathBuf,
pub main: PathBuf,
pub canonical_main: Option<PathBuf>,
pub codec: PathBuf,
}Expand description
The model resources ftts say needs, located relative to one model path.
Fields§
§root: PathBufDirectory holding the artifact sidecars and tokenizer files.
main: PathBufThe raw main checkpoint, retained for enrollment-only components that have not yet gained a canonical-artifact accessor.
canonical_main: Option<PathBuf>The portable main-weight artifact selected for synthesis, when present.
codec: PathBufThe codec decoder checkpoint.
Implementations§
Source§impl ModelBundle
impl ModelBundle
Sourcepub fn resolve(model: &Path) -> Result<Self, FttsError>
pub fn resolve(model: &Path) -> Result<Self, FttsError>
Resolve a bundle from --model, which may name the directory, a .fttsq, or
model.safetensors.
§Errors
FttsError::ModelNotFound naming the exact missing file, so a partial download is
diagnosable without guessing which of the four is absent.
Trait Implementations§
Source§impl Clone for ModelBundle
impl Clone for ModelBundle
Source§fn clone(&self) -> ModelBundle
fn clone(&self) -> ModelBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelBundle
impl RefUnwindSafe for ModelBundle
impl Send for ModelBundle
impl Sync for ModelBundle
impl Unpin for ModelBundle
impl UnsafeUnpin for ModelBundle
impl UnwindSafe for ModelBundle
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
Mutably borrows from an owned value. Read more
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).