Skip to content

Commit

Permalink
[neo] Get SM Fast Model Loader model dir name from package (#2541)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnzhng authored Nov 11, 2024
1 parent 8481f56 commit 3b91858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions serving/docker/partition/sm_neo_shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from lmi_dist.arg_utils import VllmEngineArgs
from lmi_dist.comms import comms

MODEL_DIR_NAME = "sagemaker-fast-model-loader"
CHUNK_MB = 8


Expand Down Expand Up @@ -107,7 +106,7 @@ def shard_lmi_dist_model(self, input_dir: str, output_dir: str,
)
engine = engine_from_args(engine_args)

model_dir = os.path.join(output_dir, MODEL_DIR_NAME)
model_dir = os.path.join(output_dir, sm_fml.MODEL_DIR_NAME)
os.makedirs(model_dir, exist_ok=True)

config_for_current_rank = engine.model_runner.vllm_worker.save_chunked_shard(
Expand Down

0 comments on commit 3b91858

Please sign in to comment.