Skip to content

Commit c0b9cf3

Browse files
committed
fix: make linter happy
Signed-off-by: Oleg S <[email protected]>
1 parent d025471 commit c0b9cf3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/instructlab/training/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class DeepSpeedOffloadStrategy(Enum):
3030

3131
# public API
3232
class DistributedBackend(Enum):
33-
FSDP: str = "fsdp"
34-
DEEPSPEED: str = "deepspeed"
33+
FSDP = "fsdp"
34+
DEEPSPEED = "deepspeed"
3535

3636

3737
# public API
@@ -121,6 +121,7 @@ class DeepSpeedOptions(BaseModel):
121121
save_samples: int | None = None
122122

123123

124+
# public API
124125
class DistillationConfig(BaseModel):
125126
"""
126127
Config to use when performing knowledge distillation during training.

src/instructlab/training/main_ds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ def run_training(torch_args: TorchrunArgs, train_args: TrainingArgs) -> None:
10861086
parser.add_argument(
10871087
"--weight_decay",
10881088
type=float,
1089-
default=1e-3,
1089+
default=0,
10901090
help="Weight decay rate for optimizers that support it.",
10911091
)
10921092
parser.add_argument(

0 commit comments

Comments
 (0)