pub enum OverlayTensorKind {
Base,
Delta,
FullSave,
LoraEmbedA,
LoraEmbedB,
}Expand description
The role an overlay tensor plays in build_overlay.
Variants§
Base
token_adapter.base_layer.weight — the adapter’s own [R,h] table.
Delta
token_adapter.trainable_tokens_delta — [T,h] replacement rows.
FullSave
modules_to_save full weight (embed_tokens.weight / lm_head.weight).
LoraEmbedA
Classic low-rank embedding LoRA A factor (Tier-2, load-rejected).
LoraEmbedB
Classic low-rank embedding LoRA B factor (Tier-2, load-rejected).
Trait Implementations§
Source§impl Clone for OverlayTensorKind
impl Clone for OverlayTensorKind
Source§fn clone(&self) -> OverlayTensorKind
fn clone(&self) -> OverlayTensorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 OverlayTensorKind
impl Debug for OverlayTensorKind
Source§impl PartialEq for OverlayTensorKind
impl PartialEq for OverlayTensorKind
impl Copy for OverlayTensorKind
impl Eq for OverlayTensorKind
impl StructuralPartialEq for OverlayTensorKind
Auto Trait Implementations§
impl Freeze for OverlayTensorKind
impl RefUnwindSafe for OverlayTensorKind
impl Send for OverlayTensorKind
impl Sync for OverlayTensorKind
impl Unpin for OverlayTensorKind
impl UnwindSafe for OverlayTensorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.