pub struct LlamaLayer {
pub input_layernorm: RMSNorm,
pub self_attn: LlamaAttention,
pub post_attention_layernorm: RMSNorm,
pub mlp: LlamaMLP,
pub predictor: Option<LowRankPredictor>,
}Fields§
§input_layernorm: RMSNorm§self_attn: LlamaAttention§post_attention_layernorm: RMSNorm§mlp: LlamaMLP§predictor: Option<LowRankPredictor>Auto Trait Implementations§
impl Freeze for LlamaLayer
impl RefUnwindSafe for LlamaLayer
impl Send for LlamaLayer
impl Sync for LlamaLayer
impl Unpin for LlamaLayer
impl UnwindSafe for LlamaLayer
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