Skip to content

Commit a40db47

Browse files
committed
fix integ
1 parent 312759c commit a40db47

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

hyperpod-custom-inference-template/hyperpod_custom_inference_template/v1_0/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ def validate_model_source_config(self):
251251
if not self.s3_bucket_name or not self.s3_region:
252252
raise ValueError("s3_bucket_name and s3_region are required when model_source_type is 's3'")
253253
elif self.model_source_type == "fsx":
254-
if not self.fsx_dns_name or not self.fsx_file_system_id or not self.fsx_mount_name:
255-
raise ValueError("fsx_dns_name, fsx_file_system_id and fsx_mount_name are required when model_source_type is 'fsx'")
254+
if not self.fsx_file_system_id:
255+
raise ValueError("fsx_file_system_id is required when model_source_type is 'fsx'")
256256
return self
257257

258258
def to_domain(self) -> HPEndpoint:

test/integration_tests/inference/cli/test_cli_custom_fsx_inference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def test_custom_create(runner, custom_endpoint_name):
5151
"--model-source-type", "fsx",
5252
"--model-location", "hf-eqa",
5353
"--fsx-file-system-id", FSX_LOCATION,
54-
"--s3-region", REGION,
5554
"--image-uri", "763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-inference:2.3.0-transformers4.48.0-cpu-py311-ubuntu22.04",
5655
"--container-port", "8080",
5756
"--model-volume-mount-name", "model-weights",

0 commit comments

Comments
 (0)