pub struct ModelLayer {
pub base: Digest256,
pub diff: Digest256,
}Expand description
Pointers to the model-layer blobs.
Fields§
§base: Digest256Digest of the base-model weights (often shared across many images).
diff: Digest256Digest of the diff blob (LoRA / IA³ / full delta).
Trait Implementations§
Source§impl Clone for ModelLayer
impl Clone for ModelLayer
Source§fn clone(&self) -> ModelLayer
fn clone(&self) -> ModelLayer
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 moreSource§impl Debug for ModelLayer
impl Debug for ModelLayer
Source§impl<'de> Deserialize<'de> for ModelLayer
impl<'de> Deserialize<'de> for ModelLayer
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelLayer
impl RefUnwindSafe for ModelLayer
impl Send for ModelLayer
impl Sync for ModelLayer
impl Unpin for ModelLayer
impl UnsafeUnpin for ModelLayer
impl UnwindSafe for ModelLayer
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