pub struct Card {
pub name: &'static str,
pub memory: Tier,
pub on_chip: Tier,
pub streams: Streams,
pub array: Fact<f64>,
pub vector: Fact<f64>,
pub scale: Fact<f64>,
pub host: Option<HostLink>,
pub sources: &'static [&'static str],
}Expand description
A card that streams its weights, as a pass sees it.
Fields§
§name: &'static str§memory: TierOff-chip memory: the weights, and every KV cache and recurrent state it holds.
on_chip: TierOn-chip memory: the batch’s token-rows through a layer.
streams: StreamsThe shares of memory’s bandwidth the stream engines sustain.
array: Fact<f64>Multiply-adds per second the integer array retires: a 4-bit weight code times an 8-bit activation code.
vector: Fact<f64>f32 multiply-adds per second the vector units retire: norms, attention, the recurrence, float matrices.
scale: Fact<f64>Cycles per second the block-scale lanes retire, all lanes together (lane_cycles).
host: Option<HostLink>§sources: &'static [&'static str]Implementations§
Trait Implementations§
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.