pub struct Config {Show 28 fields
pub v_d: usize,
pub v_i: usize,
pub v_layers: usize,
pub v_heads: usize,
pub v_hd: usize,
pub patch: usize,
pub pool: usize,
pub v_theta: f32,
pub v_eps: f32,
pub v_rows: usize,
pub d: usize,
pub i: usize,
pub layers: usize,
pub heads: usize,
pub eps: f32,
pub hd: Vec<usize>,
pub kv_heads: Vec<usize>,
pub global: Vec<bool>,
pub theta_s: f32,
pub theta_g: f32,
pub ple: usize,
pub out: usize,
pub window: usize,
pub t_rows: usize,
pub o_width: usize,
pub max_soft_tokens: usize,
pub no_window: u32,
pub max_text_tokens: usize,
}Expand description
The model’s constants (the manifest’s params).
Fields§
§v_d: usize§v_i: usize§v_layers: usize§v_heads: usize§v_hd: usize§patch: usize§pool: usize§v_theta: f32§v_eps: f32§v_rows: usizepatches the device buffers hold
d: usize§i: usize§layers: usize§heads: usize§eps: f32§hd: Vec<usize>§kv_heads: Vec<usize>§global: Vec<bool>per layer: a global (full-attention) layer
theta_s: f32§theta_g: f32§ple: usize§out: usize§window: usize§t_rows: usize§o_width: usize§max_soft_tokens: usize§no_window: u32§max_text_tokens: usizethe longest text (tokens, with <bos> / <eos>) the bundle takes;
0 for an image-only bundle
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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