Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Naman Nandan committed Jun 16, 2023
1 parent 64685cb commit e7559e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/large_models/inferentia2/save_split_checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os

import torch
from transformers_neuronx.module import save_pretrained_split
from transformers.models.opt import OPTForCausalLM
from transformers_neuronx.module import save_pretrained_split


def create_directory_if_not_exists(path_str: str) -> str:
Expand Down Expand Up @@ -51,5 +51,3 @@ def amp_callback(model: OPTForCausalLM, dtype: torch.dtype) -> None:
save_pretrained_split(hf_model, args.save_path)

print(f"Files for '{args.model_name}' have been downloaded to '{args.save_path}'.")


0 comments on commit e7559e7

Please sign in to comment.