Skip to content

Commit 8bf0dec

Browse files
author
George Ohashi
committed
revert train
1 parent 110b91d commit 8bf0dec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/llmcompressor/transformers/finetune/text_generation.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ def main(
263263
# exit immediately
264264
return
265265

266+
# Training
267+
if training_args.do_train:
268+
checkpoint = None
269+
if training_args.resume_from_checkpoint is not None:
270+
checkpoint = training_args.resume_from_checkpoint
271+
elif last_checkpoint is not None:
272+
checkpoint = last_checkpoint
273+
stage_runner.train(checkpoint)
274+
266275
# save if model was provided as a string or custom output_dir was set
267276
if isinstance(model_args.model, str) or (
268277
training_args.output_dir

0 commit comments

Comments
 (0)