@@ -367,7 +367,7 @@ def test_create_multimodel(
367
367
mock_model .display_name = "test_display_name"
368
368
mock_model .description = "test_description"
369
369
mock_model .freeform_tags = {
370
- "OCI_AQUA" : "ACTIVE" ,
370
+ # "OCI_AQUA": "ACTIVE",
371
371
}
372
372
mock_model .id = "mock_model_id"
373
373
mock_model .artifact = "mock_artifact_path"
@@ -391,10 +391,7 @@ def test_create_multimodel(
391
391
env_var = {"params" : "--trust-remote-code --max-model-len 32000" },
392
392
)
393
393
394
- with pytest .raises (
395
- AquaValueError ,
396
- match = "Invalid selected model test_display_name. Currently only service models are supported for multi model deployment." ,
397
- ):
394
+ with pytest .raises (AquaValueError ):
398
395
model = self .app .create_multi (
399
396
models = [model_info_1 , model_info_2 ],
400
397
project_id = "test_project_id" ,
@@ -403,10 +400,7 @@ def test_create_multimodel(
403
400
404
401
mock_model .freeform_tags ["aqua_service_model" ] = TestDataset .SERVICE_MODEL_ID
405
402
406
- with pytest .raises (
407
- AquaValueError ,
408
- match = "Invalid or missing task tag for selected model test_display_name. Currently only text-generation models are support for multi model deployment." ,
409
- ):
403
+ with pytest .raises (AquaValueError ):
410
404
model = self .app .create_multi (
411
405
models = [model_info_1 , model_info_2 ],
412
406
project_id = "test_project_id" ,
@@ -415,10 +409,7 @@ def test_create_multimodel(
415
409
416
410
mock_model .freeform_tags ["task" ] = "text-generation"
417
411
418
- with pytest .raises (
419
- AquaValueError ,
420
- match = "Unsupported deployment container 'odsc-tgi-serving' for model 'mock_model_id'. Only 'odsc-vllm-serving' is supported for multi-model deployments." ,
421
- ):
412
+ with pytest .raises (AquaValueError ):
422
413
model = self .app .create_multi (
423
414
models = [model_info_1 , model_info_2 ],
424
415
project_id = "test_project_id" ,
@@ -449,7 +440,7 @@ def test_create_multimodel(
449
440
mock_from_id .return_value = mock_model
450
441
mock_create .return_value = mock_model
451
442
452
- assert model .freeform_tags == {"OCI_AQUA" : "active" , " aqua_multimodel" : "true" }
443
+ assert model .freeform_tags == {"aqua_multimodel" : "true" }
453
444
assert model .custom_metadata_list .get ("model_group_count" ).value == "2"
454
445
assert (
455
446
model .custom_metadata_list .get ("deployment-container" ).value
0 commit comments