Commit 3f9acac
JumpStart CuratedHub Launch (#4748)
* Implement CuratedHub APIs (#1449)
* Implement CuratedHub Admin APIs
* making some parameters optional in create_hub_content_reference as per the API design
* add describe_hub and list_hubs APIs
* implement delete_hub API
* Implement list_hub_contents API
* create CuratedHub class and supported utils
* implement list_models and address comments
* Add unit tests
* add describe_model function
* cache retrieval for describeHubContent changes
* fix curated hub class unit tests
* add utils needed for curatedHub
* Cache retrieval
* implement get_hub_model_reference()
* cleanup HUB type datatype
* cleanup constants
* rename list_public_models to list_jumpstart_service_hub_models
* implement describe_model_reference
* Rename CuratedHub to Hub
* address nit
* address nits and fix failing tests
---------
Co-authored-by: Malav Shastri <malavhs@amazon.com>
* feat: implement list_jumpstart_service_hub_models function to fetch JumpStart public hub models (#1456)
* Implement CuratedHub Admin APIs
* making some parameters optional in create_hub_content_reference as per the API design
* add describe_hub and list_hubs APIs
* implement delete_hub API
* Implement list_hub_contents API
* create CuratedHub class and supported utils
* implement list_models and address comments
* Add unit tests
* add describe_model function
* cache retrieval for describeHubContent changes
* fix curated hub class unit tests
* add utils needed for curatedHub
* Cache retrieval
* implement get_hub_model_reference()
* cleanup HUB type datatype
* cleanup constants
* rename list_public_models to list_jumpstart_service_hub_models
* implement describe_model_reference
* Rename CuratedHub to Hub
* address nit
* address nits and fix failing tests
* implement list_jumpstart_service_hub_models function
---------
Co-authored-by: Malav Shastri <malavhs@amazon.com>
* Feat/Curated Hub hub_arn and hub_content_type support (#1453)
* get_model_spec() changes to support hub_arn and hub_content_type
* implement get_hub_model_reference()
* support hub_arn and hub_content_type for specs retrieval
* add support for hub_arn and hub_content_type for serializers, deserializers, estimators, models, predictors and various spec retrieval functionalities
* address nits and test failures
* remove hub_content_type support
---------
Co-authored-by: Malav Shastri <malavhs@amazon.com>
* feat: implement curated hub parser and bug bash fixes (#1457)
* implement HubContentDocument parser
* modify the parser to remove aliases for hubcontent documents
* bug fix
* update boto3
* Bug Fix in the parser
* Improve Hub Class and related functionalities
* Bug Fix and parser updates
* add missing hub_arn support
* Add model reference deployment support and other minor bug fixes
* fix: retrieve correct image_uri (parser update)
* fix: retrieve correct model URI and model data path from HubContentDocument (parser update)
* Add model reference deployment support
* Model accessor and cache retrival bug fixes
* fix: curated hub model training workflow
* fix: pass sagemaker sessions object to retrieve model specs from describe_hub_content call
* fix: fix payload retrieval for curated hub models
* modify constants, enums
* fix: update parser
* Address nits in the parser
* Add unit tests for parser
* implement pagination for list_models utility
* feat: support wildcard chars for model versions
* Address nits and comments
* Add Hub Content Arn Tag to training and hosting
* Add Hub Content Arn Tag to training and hosting
* fix: HubContentDocument schema version
* fix broken unit tests
* fix prepare_container_def unit tests to include ModelReferenceArn
* fix unit tests for test_session.py
* revert boto version changes
* Fix unit tests
* support wildcard model versions for training workflow
* Add test cases for get_model_versions
* Add/fix unit tests
---------
Co-authored-by: Malav Shastri <malavhs@amazon.com>
* address unit tests failures in codebuild
* change list_jumpstart_service_hub_models to list_sagemaker_public_hub_models()
* fix: Changing list input output shapes
* fix: gated model training bug
* run black -l 100
* flake 8
* address formatting issues
* black -l
* DocStyle issues
* address flake8, pylint
* blake -l
* pass model type down
* disabling pylint for release
* disable pylint
---------
Co-authored-by: Malav Shastri <malavhs@amazon.com>
Co-authored-by: chrstfu <chrstfu@amazon.com>
Co-authored-by: Erick Benitez-Ramos <141277478+benieric@users.noreply.github.com>1 parent 701954f commit 3f9acac
File tree
87 files changed
+7300
-716
lines changed- src/sagemaker
- chainer
- djl_inference
- huggingface
- jumpstart
- artifacts
- factory
- hub
- mxnet
- pytorch
- sklearn
- tensorflow
- xgboost
- tests/unit
- sagemaker
- accept_types/jumpstart
- content_types/jumpstart
- deserializers/jumpstart
- environment_variables/jumpstart
- hyperparameters/jumpstart
- image_uris/jumpstart
- instance_types/jumpstart
- jumpstart
- estimator
- hub
- model
- metric_definitions/jumpstart
- model_uris/jumpstart
- model
- resource_requirements/jumpstart
- script_uris/jumpstart
- serializers/jumpstart
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
87 files changed
+7300
-716
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| |||
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| |||
533 | 534 | | |
534 | 535 | | |
535 | 536 | | |
| 537 | + | |
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| |||
148 | 155 | | |
149 | 156 | | |
150 | 157 | | |
| 158 | + | |
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
0 commit comments