Struct candle_transformers::models::bigcode::Config
source · pub struct Config {
pub vocab_size: usize,
pub max_position_embeddings: usize,
pub num_hidden_layers: usize,
pub hidden_size: usize,
pub layer_norm_epsilon: f64,
pub n_inner: Option<usize>,
pub num_attention_heads: usize,
pub multi_query: bool,
pub use_cache: bool,
}Fields§
§vocab_size: usize§max_position_embeddings: usize§layer_norm_epsilon: f64§n_inner: Option<usize>§num_attention_heads: usize§multi_query: bool§use_cache: boolImplementations§
source§impl Config
impl Config
pub fn starcoder_1b() -> Self
pub fn starcoder_3b() -> Self
pub fn starcoder_7b() -> Self
pub fn starcoder() -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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