I'm trying to finetune a small 1B parameter model, using below. What can I do to make…
- User
I'm trying to finetune a small 1B parameter model, using below. What can I do to make performance increase?
trainer = SFTTrainer( model = model, train_dataset = dataset, dataset_text_field = "text", max_seq_length = max_seq_length, packing = True, # Packs short sequences together to save time! args = TrainingArguments( per_device_train_batch_size = 2, gradient_accumulation_steps = 4, warmup_ratio = 0.1, num_train_epochs = 1, learning_rate = 2e-5, # 1e-5 fp16 = not torch.cuda.is_bf16_supported(), bf16 = torch.cuda.is_bf16_supported(), logging_steps = 1, optim = "adamw_8bit", weight_decay = 0.1, lr_scheduler_type = "linear", seed = 3407, output_dir = "outputs", max_steps=100, ), )
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.