pub struct DemoConfig {
pub model_name: String,
pub batch_size: usize,
pub learning_rate: f32,
pub num_epochs: usize,
pub max_seq_len: usize,
pub use_fp16: bool,
pub use_lora: bool,
pub lora_rank: usize,
}Expand description
Demo configuration for fine-tuning
Fields§
§model_name: StringModel name shown in the banner.
batch_size: usizeDisplayed batch size.
learning_rate: f32Starting learning rate of the simulated schedule.
num_epochs: usizeSimulated epochs.
max_seq_len: usizeDisplayed sequence length.
use_fp16: boolShow the loss-scaler line.
use_lora: boolShow LoRA settings.
lora_rank: usizeDisplayed LoRA rank.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DemoConfig
impl RefUnwindSafe for DemoConfig
impl Send for DemoConfig
impl Sync for DemoConfig
impl Unpin for DemoConfig
impl UnsafeUnpin for DemoConfig
impl UnwindSafe for DemoConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more