Skip to content

Commit

Permalink
revert train
Browse files Browse the repository at this point in the history
  • Loading branch information
horheynm committed Mar 6, 2025
1 parent 110b91d commit 8bf0dec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/llmcompressor/transformers/finetune/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,15 @@ def main(
# exit immediately
return

# Training
if training_args.do_train:
checkpoint = None
if training_args.resume_from_checkpoint is not None:
checkpoint = training_args.resume_from_checkpoint
elif last_checkpoint is not None:
checkpoint = last_checkpoint
stage_runner.train(checkpoint)

# save if model was provided as a string or custom output_dir was set
if isinstance(model_args.model, str) or (
training_args.output_dir
Expand Down

0 comments on commit 8bf0dec

Please sign in to comment.