pub struct Hyperparameters {
pub n_vocab: usize,
pub n_ctx: usize,
pub n_embd: usize,
pub n_head: usize,
pub n_layer: usize,
pub n_rot: usize,
pub file_type: FileType,
}
Expand description
GPT-J hyperparameters
Fields§
§n_vocab: usize
Size of the model’s vocabulary
n_ctx: usize
Size of the model’s context
n_embd: usize
Size of the model’s embedding layer
n_head: usize
n_head
n_layer: usize
Number of layers in the model
n_rot: usize
n_rot
file_type: FileType
file_type
Trait Implementations§
Source§impl Clone for Hyperparameters
impl Clone for Hyperparameters
Source§fn clone(&self) -> Hyperparameters
fn clone(&self) -> Hyperparameters
Returns a copy 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 moreSource§impl Debug for Hyperparameters
impl Debug for Hyperparameters
Source§impl Default for Hyperparameters
impl Default for Hyperparameters
Source§fn default() -> Hyperparameters
fn default() -> Hyperparameters
Returns the “default value” for a type. Read more
Source§impl Hyperparameters for Hyperparameters
impl Hyperparameters for Hyperparameters
Source§fn read_ggml(reader: &mut dyn BufRead) -> Result<Self, LoadError>
fn read_ggml(reader: &mut dyn BufRead) -> Result<Self, LoadError>
Read the parameters in GGML format from a reader.
Source§fn write_ggml(
&self,
writer: &mut dyn Write,
) -> Result<(), HyperparametersWriteError>
fn write_ggml( &self, writer: &mut dyn Write, ) -> Result<(), HyperparametersWriteError>
Write the parameters in GGML format to a writer.
Source§fn n_vocabulary(&self) -> usize
fn n_vocabulary(&self) -> usize
Get the number of tokens in the vocabulary.
Source§impl PartialEq for Hyperparameters
impl PartialEq for Hyperparameters
impl Copy for Hyperparameters
impl Eq for Hyperparameters
impl StructuralPartialEq for Hyperparameters
Auto Trait Implementations§
impl Freeze for Hyperparameters
impl RefUnwindSafe for Hyperparameters
impl Send for Hyperparameters
impl Sync for Hyperparameters
impl Unpin for Hyperparameters
impl UnwindSafe for Hyperparameters
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