pub struct ArchShape {
pub layer_kinds: Vec<LayerKind>,
pub dims: BTreeMap<String, u64>,
}Expand description
2026-09-28: What instantiation needs from a model config: its layer kinds in order and
its named dims. The caller fills it from ModelConfig, so this crate does not depend on
the config tree.
Fields§
§layer_kinds: Vec<LayerKind>2026-09-28: Kind of each text-stack layer, index = layer.
dims: BTreeMap<String, u64>2026-09-28: Named dims (hidden, head_dim, …), the names the templates read.
Trait Implementations§
impl Eq for ArchShape
impl StructuralPartialEq for ArchShape
Auto Trait Implementations§
impl Freeze for ArchShape
impl RefUnwindSafe for ArchShape
impl Send for ArchShape
impl Sync for ArchShape
impl Unpin for ArchShape
impl UnwindSafe for ArchShape
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.