pub enum KdaShard {
Replicated,
HeadRows,
ChannelRows,
ChannelCols,
}Expand description
2026-09-25: How one KDA tensor maps onto TP ranks.
Variants§
Replicated
2026-09-25: Every rank holds the whole tensor.
HeadRows
2026-09-25: Leading dim is heads: slice by head range.
ChannelRows
2026-09-25: Leading dim is heads * head_dim: slice by channel range.
ChannelCols
2026-09-25: Trailing (input) dim is heads * head_dim: a row-parallel GEMM, sliced on the
input dim, whose output is all-reduced.
Trait Implementations§
impl Copy for KdaShard
impl Eq for KdaShard
impl StructuralPartialEq for KdaShard
Auto Trait Implementations§
impl Freeze for KdaShard
impl RefUnwindSafe for KdaShard
impl Send for KdaShard
impl Sync for KdaShard
impl Unpin for KdaShard
impl UnwindSafe for KdaShard
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
Checks if this value is equivalent to the given key. Read more
§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.