Commit 123da5a2 authored by yzy5630's avatar yzy5630
Browse files

fix errors for lm_finetuning examples

parent 60a1bdcd
......@@ -325,6 +325,7 @@ def main():
global_step += 1
# Save a trained model
if torch.distributed.get_rank() == 0:
logging.info("** ** * Saving fine-tuned model ** ** * ")
model_to_save = model.module if hasattr(model, 'module') else model # Only save the model it-self
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment