Skip to content

Commit

Permalink
[partition] fix checking for model files (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ys authored Mar 18, 2024
1 parent ce08dfe commit 39bc296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serving/docker/partition/properties_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def set_and_validate_model_dir(self):
if 'model_dir' in self.properties:
model_dir = self.properties['model_dir']
model_files = glob.glob(os.path.join(model_dir, '*.bin'))
model_files = glob.glob(os.path.join(model_dir, '.safetensors'))
model_files = glob.glob(os.path.join(model_dir, '*.safetensors'))
if not model_files:
raise ValueError(
f'No .bin or .safetensors files found in the dir: {model_dir}'
Expand Down

0 comments on commit 39bc296

Please sign in to comment.