15
15
from copy import deepcopy
16
16
from enum import Enum
17
17
from typing import Any , Dict , List , Optional , Set , Union
18
+ from sagemaker .session import Session
18
19
from sagemaker .utils import get_instance_type_family , format_tags , Tags
19
20
from sagemaker .enums import EndpointType
20
21
from sagemaker .model_metrics import ModelMetrics
@@ -1290,7 +1291,6 @@ class JumpStartModelInitKwargs(JumpStartKwargs):
1290
1291
"model_version" ,
1291
1292
"hub_arn" ,
1292
1293
"model_type" ,
1293
- "hub_arn" ,
1294
1294
"instance_type" ,
1295
1295
"tolerate_vulnerable_model" ,
1296
1296
"tolerate_deprecated_model" ,
@@ -1323,7 +1323,6 @@ class JumpStartModelInitKwargs(JumpStartKwargs):
1323
1323
"model_version" ,
1324
1324
"hub_arn" ,
1325
1325
"model_type" ,
1326
- "hub_arn" ,
1327
1326
"tolerate_vulnerable_model" ,
1328
1327
"tolerate_deprecated_model" ,
1329
1328
"region" ,
@@ -1337,7 +1336,6 @@ def __init__(
1337
1336
model_version : Optional [str ] = None ,
1338
1337
hub_arn : Optional [str ] = None ,
1339
1338
model_type : Optional [JumpStartModelType ] = JumpStartModelType .OPEN_WEIGHTS ,
1340
- hub_arn : Optional [str ] = None ,
1341
1339
region : Optional [str ] = None ,
1342
1340
instance_type : Optional [str ] = None ,
1343
1341
image_uri : Optional [Union [str , Any ]] = None ,
@@ -1369,7 +1367,6 @@ def __init__(
1369
1367
self .model_version = model_version
1370
1368
self .hub_arn = hub_arn
1371
1369
self .model_type = model_type
1372
- self .hub_arn = hub_arn
1373
1370
self .instance_type = instance_type
1374
1371
self .region = region
1375
1372
self .image_uri = image_uri
@@ -1404,7 +1401,6 @@ class JumpStartModelDeployKwargs(JumpStartKwargs):
1404
1401
"model_version" ,
1405
1402
"hub_arn" ,
1406
1403
"model_type" ,
1407
- "hub_arn" ,
1408
1404
"initial_instance_count" ,
1409
1405
"instance_type" ,
1410
1406
"region" ,
@@ -1436,7 +1432,6 @@ class JumpStartModelDeployKwargs(JumpStartKwargs):
1436
1432
SERIALIZATION_EXCLUSION_SET = {
1437
1433
"model_id" ,
1438
1434
"model_version" ,
1439
- "hub_arn" ,
1440
1435
"model_type" ,
1441
1436
"hub_arn" ,
1442
1437
"region" ,
@@ -1485,7 +1480,6 @@ def __init__(
1485
1480
self .model_version = model_version
1486
1481
self .hub_arn = hub_arn
1487
1482
self .model_type = model_type
1488
- self .hub_arn = hub_arn
1489
1483
self .initial_instance_count = initial_instance_count
1490
1484
self .instance_type = instance_type
1491
1485
self .region = region
@@ -1522,7 +1516,6 @@ class JumpStartEstimatorInitKwargs(JumpStartKwargs):
1522
1516
"model_version" ,
1523
1517
"hub_arn" ,
1524
1518
"model_type" ,
1525
- "hub_arn" ,
1526
1519
"instance_type" ,
1527
1520
"instance_count" ,
1528
1521
"region" ,
@@ -1584,7 +1577,6 @@ class JumpStartEstimatorInitKwargs(JumpStartKwargs):
1584
1577
"model_version" ,
1585
1578
"hub_arn" ,
1586
1579
"model_type" ,
1587
- "hub_arn" ,
1588
1580
}
1589
1581
1590
1582
def __init__ (
@@ -1714,7 +1706,6 @@ class JumpStartEstimatorFitKwargs(JumpStartKwargs):
1714
1706
"model_version" ,
1715
1707
"hub_arn" ,
1716
1708
"model_type" ,
1717
- "hub_arn" ,
1718
1709
"region" ,
1719
1710
"inputs" ,
1720
1711
"wait" ,
@@ -1731,7 +1722,6 @@ class JumpStartEstimatorFitKwargs(JumpStartKwargs):
1731
1722
"model_version" ,
1732
1723
"hub_arn" ,
1733
1724
"model_type" ,
1734
- "hub_arn" ,
1735
1725
"region" ,
1736
1726
"tolerate_deprecated_model" ,
1737
1727
"tolerate_vulnerable_model" ,
@@ -1760,7 +1750,6 @@ def __init__(
1760
1750
self .model_version = model_version
1761
1751
self .hub_arn = hub_arn
1762
1752
self .model_type = model_type
1763
- self .hub_arn = hub_arn
1764
1753
self .region = region
1765
1754
self .inputs = inputs
1766
1755
self .wait = wait
0 commit comments