Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samruds committed Mar 14, 2024
1 parent 3b5475e commit 30b6c88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sagemaker/serve/builder/model_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@

MIB_CONVERSION_FACTOR = 0.00000095367431640625
MEMORY_BUFFER_MULTIPLIER = 1.2 # 20% buffer
VERSION_DETECTION_ERROR = "Please install accelerate and transformers for HuggingFace (HF) model " \
"size calculations pip install 'sagemaker[huggingface]'"
VERSION_DETECTION_ERROR = (
"Please install accelerate and transformers for HuggingFace (HF) model "
"size calculations pip install 'sagemaker[huggingface]'"
)


# pylint: disable=attribute-defined-outside-init
Expand Down Expand Up @@ -736,7 +738,7 @@ def _total_inference_model_size_mib(self):
args = parser.parse_args([self.model, "--dtypes", dtypes])

output = accelerate.commands.estimate.gather_data.gather_data(
args
args
) # "dtype", "Largest Layer", "Total Size Bytes", "Training using Adam"
except ImportError as e:
logger.warning(VERSION_DETECTION_ERROR)
Expand Down

0 comments on commit 30b6c88

Please sign in to comment.