pub struct LoRALayer {
pub down_proj: Vec<f32>,
pub up_proj: Vec<f32>,
pub layer_idx: usize,
}Expand description
Single LoRA layer
Fields§
§down_proj: Vec<f32>Down projection weights
up_proj: Vec<f32>Up projection weights
layer_idx: usizeLayer index
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoRALayer
impl<'de> Deserialize<'de> for LoRALayer
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 LoRALayer
impl RefUnwindSafe for LoRALayer
impl Send for LoRALayer
impl Sync for LoRALayer
impl Unpin for LoRALayer
impl UnwindSafe for LoRALayer
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