pub enum ModelLineageEdge {
FineTuned {
parent: ModelId,
recipe: RecipeId,
},
Distilled {
teacher: ModelId,
temperature: f32,
},
Merged {
sources: Vec<ModelId>,
weights: Vec<f32>,
},
Quantized {
source: ModelId,
quantization: QuantizationType,
},
Pruned {
source: ModelId,
sparsity: f32,
},
}Expand description
Types of model lineage relationships.
Variants§
FineTuned
Model was fine-tuned from parent.
Distilled
Model was distilled from teacher.
Merged
Model was merged from multiple sources.
Quantized
Model was quantized from source.
Pruned
Model was pruned from source.
Trait Implementations§
Source§impl Clone for ModelLineageEdge
impl Clone for ModelLineageEdge
Source§fn clone(&self) -> ModelLineageEdge
fn clone(&self) -> ModelLineageEdge
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 ModelLineageEdge
impl Debug for ModelLineageEdge
Source§impl<'de> Deserialize<'de> for ModelLineageEdge
impl<'de> Deserialize<'de> for ModelLineageEdge
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 ModelLineageEdge
impl RefUnwindSafe for ModelLineageEdge
impl Send for ModelLineageEdge
impl Sync for ModelLineageEdge
impl Unpin for ModelLineageEdge
impl UnsafeUnpin for ModelLineageEdge
impl UnwindSafe for ModelLineageEdge
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