pub struct DdlTransformerBlockRecord<B: Backend> {
pub attn_norm: <RmsNorm<B> as Module<B>>::Record,
pub attn: <MultiHeadAttention<B> as Module<B>>::Record,
pub attn_delta: <DeltaResBlock<B> as Module<B>>::Record,
pub mlp_norm: <RmsNorm<B> as Module<B>>::Record,
pub mlp: <SwiGluMlp<B> as Module<B>>::Record,
pub mlp_delta: <DeltaResBlock<B> as Module<B>>::Record,
pub token_compressor: <Option<TokenConvCompressor<B>> as Module<B>>::Record,
pub channel_compressor: <Option<ChannelConvCompressor<B>> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§attn_norm: <RmsNorm<B> as Module<B>>::RecordThe module record associative type.
attn: <MultiHeadAttention<B> as Module<B>>::RecordThe module record associative type.
attn_delta: <DeltaResBlock<B> as Module<B>>::RecordThe module record associative type.
mlp_norm: <RmsNorm<B> as Module<B>>::RecordThe module record associative type.
mlp: <SwiGluMlp<B> as Module<B>>::RecordThe module record associative type.
mlp_delta: <DeltaResBlock<B> as Module<B>>::RecordThe module record associative type.
token_compressor: <Option<TokenConvCompressor<B>> as Module<B>>::RecordThe module record associative type.
channel_compressor: <Option<ChannelConvCompressor<B>> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for DdlTransformerBlockRecord<B>
impl<B: Backend> Record<B> for DdlTransformerBlockRecord<B>
Source§type Item<S: PrecisionSettings> = DdlTransformerBlockRecordItem<B, S>
type Item<S: PrecisionSettings> = DdlTransformerBlockRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for DdlTransformerBlockRecord<B>
impl<B> !RefUnwindSafe for DdlTransformerBlockRecord<B>
impl<B> Send for DdlTransformerBlockRecord<B>
impl<B> !Sync for DdlTransformerBlockRecord<B>
impl<B> Unpin for DdlTransformerBlockRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnsafeUnpin for DdlTransformerBlockRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
impl<B> !UnwindSafe for DdlTransformerBlockRecord<B>
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