Repository navigation
Commit 06e06d7
Eli Davidson
refactor(core): apply accept_eula to additional sources in container_def
Move the additional-model-data-source EULA handling out of the
JumpStart-specific block in _build_for_jumpstart and into
_apply_accept_eula_to_additional_model_data_sources next to
container_def, the single place the primary model's accept_eula
already becomes ModelAccessConfig. Both the primary model and the
additional sources are now driven by the same accept_eula flag in
adjacent code, and every container-assembly call site (including the
deployment-config path that never passes through _build_for_jumpstart)
gets the gated-source enforcement. _build_for_jumpstart is reduced to
pure propagation. No behavior change on the JumpStart path: all 63
serve tests pass unchanged, plus 103 core session_helper tests.1 parent c852786 commit 06e06d7
2 files changed
Lines changed: 56 additions & 32 deletions
File tree
- sagemaker-core/src/sagemaker/core/helper
- sagemaker-serve/src/sagemaker/serve
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3072 | 3072 | | |
3073 | 3073 | | |
3074 | 3074 | | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
3075 | 3116 | | |
3076 | 3117 | | |
3077 | 3118 | | |
| |||
3115 | 3156 | | |
3116 | 3157 | | |
3117 | 3158 | | |
3118 | | - | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
3119 | 3166 | | |
3120 | 3167 | | |
3121 | 3168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1034 | 1027 | | |
1035 | 1028 | | |
1036 | 1029 | | |
1037 | 1030 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
| 1031 | + | |
1055 | 1032 | | |
1056 | 1033 | | |
1057 | 1034 | | |
| |||
0 commit comments