pub struct GlmVitGeometry {
pub hidden_size: usize,
pub num_heads: usize,
pub intermediate_size: usize,
pub spatial_merge_size: usize,
pub out_hidden_size: usize,
pub projection_intermediate_size: usize,
pub patch_size: usize,
pub temporal_patch_size: usize,
pub rms_norm_eps: f32,
pub swiglu_limit: f32,
pub rope_theta: f32,
pub max_pixels: Option<usize>,
}Expand description
Everything new needs that is not a device pointer. A struct rather than
fifteen positional arguments, because eleven of them are usize and the
compiler cannot tell hidden_size from intermediate_size.
Fields§
§num_heads: usize§intermediate_size: usize§spatial_merge_size: usize§projection_intermediate_size: usize§patch_size: usize§temporal_patch_size: usize§rms_norm_eps: f32§swiglu_limit: f32§rope_theta: f32§max_pixels: Option<usize>Trait Implementations§
Source§impl Clone for GlmVitGeometry
impl Clone for GlmVitGeometry
Source§fn clone(&self) -> GlmVitGeometry
fn clone(&self) -> GlmVitGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GlmVitGeometry
impl RefUnwindSafe for GlmVitGeometry
impl Send for GlmVitGeometry
impl Sync for GlmVitGeometry
impl Unpin for GlmVitGeometry
impl UnwindSafe for GlmVitGeometry
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