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: usizeResidual width (1280).
intermediate: usize§heads: usize§kv_heads: usize§head_dim: usizeqk_channels, default 64 — NOT hidden/heads (= 40).
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: usizeBand half-width visual_token_window_size (|i−j| ≤ 64).
use_sink: bool§rms_eps: f64Implementations§
Source§impl MimoVisionGeom
impl MimoVisionGeom
pub fn from_config(cfg: &Value) -> Result<Self, String>
Sourcepub fn merge_width(&self) -> usize
pub fn merge_width(&self) -> usize
Width of one merge unit: hidden·merge².
Sourcepub fn patch_width(&self) -> usize
pub fn patch_width(&self) -> usize
Values per patch row: in_channels·temporal_patch·patch².
Trait Implementations§
Source§impl Clone for MimoVisionGeom
impl Clone for MimoVisionGeom
Source§impl Debug for MimoVisionGeom
impl Debug for MimoVisionGeom
Source§impl PartialEq for MimoVisionGeom
impl PartialEq for MimoVisionGeom
impl StructuralPartialEq for MimoVisionGeom
Auto Trait Implementations§
impl Freeze for MimoVisionGeom
impl RefUnwindSafe for MimoVisionGeom
impl Send for MimoVisionGeom
impl Sync for MimoVisionGeom
impl Unpin for MimoVisionGeom
impl UnsafeUnpin for MimoVisionGeom
impl UnwindSafe for MimoVisionGeom
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