Skip to main content

MimoVisionGeom

Struct MimoVisionGeom 

Source
pub struct MimoVisionGeom {
Show 16 fields pub depth: usize, pub hidden: usize, pub intermediate: usize, pub heads: usize, pub kv_heads: usize, pub head_dim: usize, pub out_hidden: usize, pub in_channels: usize, pub patch: usize, pub temporal_patch: usize, pub merge: usize, pub fullatt: Vec<usize>, pub window_types: Vec<i64>, pub band: usize, pub use_sink: bool, pub rms_eps: f64,
}
Expand description

ViT geometry (config.vision_config, HF MiMoVisionTransformer).

Fields§

§depth: usize§hidden: usize

Residual width (1280).

§intermediate: usize§heads: usize§kv_heads: usize§head_dim: usize

qk_channels, default 64 — NOT hidden/heads (= 40).

§out_hidden: usize

LLM hidden the merger projects to (4096).

§in_channels: usize§patch: usize§temporal_patch: usize§merge: usize§fullatt: Vec<usize>

Blocks with full (per-frame) attention.

§window_types: Vec<i64>

vit_window_attn_types (−1 full, 0 row order, 1 column order).

§band: usize

Band half-width visual_token_window_size (|i−j| ≤ 64).

§use_sink: bool§rms_eps: f64

Implementations§

Source§

impl MimoVisionGeom

Source

pub fn from_config(cfg: &Value) -> Result<Self, String>

Source

pub fn qkv_rows(&self) -> usize

Rows of the fused qkv: (heads + 2·kv_heads)·head_dim.

Source

pub fn merge_width(&self) -> usize

Width of one merge unit: hidden·merge².

Source

pub fn patch_width(&self) -> usize

Values per patch row: in_channels·temporal_patch·patch².

Source

pub fn has_sink(&self, i: usize) -> bool

Block i carries a key-0 sink (every non-full block when use_sink).

Trait Implementations§

Source§

impl Clone for MimoVisionGeom

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MimoVisionGeom

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MimoVisionGeom

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MimoVisionGeom

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more