Skip to content

Commit 38c2c5e

Browse files
Fix scripts
Signed-off-by: Onur Yilmaz <oyilmaz@nvidia.com>
1 parent e160a60 commit 38c2c5e

5 files changed

Lines changed: 2 additions & 296 deletions

File tree

scripts/deploy/llm/automodel/deploy_ray.py

Lines changed: 0 additions & 252 deletions
This file was deleted.

scripts/deploy/llm/mbridge/deploy_ray.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def parse_args():
9696
parser.add_argument(
9797
"--model_id",
9898
type=str,
99-
default="nemo-model",
99+
default="megatron-model",
100100
help="Identifier for the model in the API responses",
101101
)
102102
parser.add_argument(
@@ -167,12 +167,6 @@ def parse_args():
167167
default=None,
168168
help="Random seed for reproducible inference",
169169
)
170-
parser.add_argument(
171-
"--megatron_checkpoint",
172-
type=str,
173-
default=None,
174-
help="Path to the Megatron checkpoint file",
175-
)
176170
parser.add_argument(
177171
"--model_type",
178172
type=str,
@@ -206,12 +200,6 @@ def main():
206200
port=args.port,
207201
runtime_env=runtime_env,
208202
)
209-
if args.nemo_checkpoint:
210-
model_format = "nemo"
211-
elif args.megatron_checkpoint:
212-
model_format = "megatron"
213-
else:
214-
raise ValueError("Either --nemo_checkpoint or --megatron_checkpoint must be provided")
215203

216204
model_config_kwargs = {
217205
"account_for_embedding_in_pipeline_split": args.account_for_embedding_in_pipeline_split,
@@ -240,9 +228,7 @@ def main():
240228
legacy_ckpt=args.legacy_ckpt,
241229
max_batch_size=args.max_batch_size,
242230
random_seed=args.random_seed,
243-
megatron_checkpoint_filepath=args.megatron_checkpoint,
244231
model_type=args.model_type,
245-
model_format=model_format,
246232
micro_batch_size=args.micro_batch_size,
247233
**model_config_kwargs,
248234
)

scripts/deploy/llm/mlm/deploy_ray.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def parse_args():
9696
parser.add_argument(
9797
"--model_id",
9898
type=str,
99-
default="nemo-model",
99+
default="megatron-model",
100100
help="Identifier for the model in the API responses",
101101
)
102102
parser.add_argument(
@@ -167,12 +167,6 @@ def parse_args():
167167
default=None,
168168
help="Random seed for reproducible inference",
169169
)
170-
parser.add_argument(
171-
"--megatron_checkpoint",
172-
type=str,
173-
default=None,
174-
help="Path to the Megatron checkpoint file",
175-
)
176170
parser.add_argument(
177171
"--model_type",
178172
type=str,
@@ -206,12 +200,6 @@ def main():
206200
port=args.port,
207201
runtime_env=runtime_env,
208202
)
209-
if args.nemo_checkpoint:
210-
model_format = "nemo"
211-
elif args.megatron_checkpoint:
212-
model_format = "megatron"
213-
else:
214-
raise ValueError("Either --nemo_checkpoint or --megatron_checkpoint must be provided")
215203

216204
model_config_kwargs = {
217205
"account_for_embedding_in_pipeline_split": args.account_for_embedding_in_pipeline_split,
@@ -240,9 +228,7 @@ def main():
240228
legacy_ckpt=args.legacy_ckpt,
241229
max_batch_size=args.max_batch_size,
242230
random_seed=args.random_seed,
243-
megatron_checkpoint_filepath=args.megatron_checkpoint,
244231
model_type=args.model_type,
245-
model_format=model_format,
246232
micro_batch_size=args.micro_batch_size,
247233
**model_config_kwargs,
248234
)

scripts/deploy/llm/mlm/deploy_triton.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ def get_args(argv):
209209
default="gpt",
210210
help="Type of model to load",
211211
)
212-
parser.add_argument(
213-
"-mf",
214-
"--model_format",
215-
type=str,
216-
default="nemo",
217-
help="Format of model to load",
218-
)
219212
parser.add_argument(
220213
"-mb",
221214
"--micro_batch_size",

scripts/deploy/nlp/deploy_inframework_triton.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ def get_args(argv):
209209
default="gpt",
210210
help="Type of model to load",
211211
)
212-
parser.add_argument(
213-
"-mf",
214-
"--model_format",
215-
type=str,
216-
default="nemo",
217-
help="Format of model to load",
218-
)
219212
parser.add_argument(
220213
"-mb",
221214
"--micro_batch_size",

0 commit comments

Comments
 (0)