fix: LR range 1e-5 to 2e-4 matching Colab
Browse files- train_hf_jobs.py +1 -1
train_hf_jobs.py
CHANGED
|
@@ -417,7 +417,7 @@ def main():
|
|
| 417 |
r = trial.suggest_categorical("r", [8, 16, 32])
|
| 418 |
lora_alpha = r * 2
|
| 419 |
lora_dropout = trial.suggest_categorical("lora_dropout", [0.0, 0.05, 0.1])
|
| 420 |
-
lr = trial.suggest_float("learning_rate",
|
| 421 |
modules_key = trial.suggest_categorical("target_modules", ["minimal", "attention", "full"])
|
| 422 |
warmup_steps = trial.suggest_categorical("warmup_steps", [0, 25, 50])
|
| 423 |
weight_decay = trial.suggest_categorical("weight_decay", [0.0, 0.01, 0.1])
|
|
|
|
| 417 |
r = trial.suggest_categorical("r", [8, 16, 32])
|
| 418 |
lora_alpha = r * 2
|
| 419 |
lora_dropout = trial.suggest_categorical("lora_dropout", [0.0, 0.05, 0.1])
|
| 420 |
+
lr = trial.suggest_float("learning_rate", 1e-5, 2e-4, log=True)
|
| 421 |
modules_key = trial.suggest_categorical("target_modules", ["minimal", "attention", "full"])
|
| 422 |
warmup_steps = trial.suggest_categorical("warmup_steps", [0, 25, 50])
|
| 423 |
weight_decay = trial.suggest_categorical("weight_decay", [0.0, 0.01, 0.1])
|