training::config::TrainingConfig
Public Functions
Public Attributes
Public Functions Documentation
function to_lora_params
dict to_lora_params(
self self
)
function to_args_dict
dict to_args_dict(
self self
)
function from_yaml
"TrainingConfig" from_yaml(
cls cls,
Path yaml_path,
Optional specialist[str] =None
)
Public Attributes Documentation
variable fine_tune_type
static str fine_tune_type = "lora";
variable optimizer
static str optimizer = "adamw";
variable batch_size
static int batch_size = 4;
variable iters
variable val_batches
static int val_batches = 25;
variable learning_rate
static float learning_rate = 1e-5;
variable steps_per_report
static int steps_per_report = 50;
variable steps_per_eval
static int steps_per_eval = 200;
variable save_every
static int save_every = 200;
variable num_layers
static int num_layers = 16;
variable grad_checkpoint
static bool grad_checkpoint = True;
variable grad_accumulation_steps
static int grad_accumulation_steps = 1;
variable mask_prompt
static bool mask_prompt = False;
variable report_to
static Optional report_to = None;
variable project_name
static Optional project_name = None;
variable seed
variable lora_rank
static int lora_rank = 16;
variable lora_dropout
static float lora_dropout = 0.05;
variable lora_scale
static float lora_scale = 20.0;
variable use_qlora
static bool use_qlora = True;
variable lora_rank
variable lora_dropout
variable lora_scale
variable fine_tune_type
variable optimizer
variable batch_size
variable iters
variable val_batches
variable learning_rate
variable steps_per_report
variable steps_per_eval
variable save_every
variable num_layers
variable grad_checkpoint
variable grad_accumulation_steps
variable mask_prompt
variable report_to
variable project_name
variable seed
Updated on 2026-07-25 at 22:56:57 +0000