You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1b86252
Browse filesBrowse the repository at this point in the historyBrowse files
* fix: apply JumpStart model spec enable_network_isolation in ModelBuilder
In v2, JumpStart models deployed with EnableNetworkIsolation=True because
the JumpStartModel class read inference_enable_network_isolation from the
model spec JSON. In v3's ModelBuilder, this field was never extracted from
the JumpStart init_kwargs or deploy_kwargs, causing all JumpStart models
to deploy without network isolation (defaulting to False).
This fix applies enable_network_isolation from the JumpStart model spec
in both code paths:
1. _build_for_jumpstart() - regular build path via get_init_kwargs()
2. from_jumpstart_config() - classmethod path via _retrieve_model_deploy_kwargs()
The user-provided value (via network= param) takes precedence.
* test: add unit tests for JumpStart network isolation fix
Tests both code paths:
1. _build_for_jumpstart() - verifies enable_network_isolation is applied
from init_kwargs and that user-set values are not overridden
2. from_jumpstart_config() - verifies enable_network_isolation is
extracted from deploy_kwargs
* test: add unit tests for JumpStart network isolation fix
Tests both code paths:
1. _build_for_jumpstart() - verifies enable_network_isolation is applied
from init_kwargs and that user-set values are not overridden
2. from_jumpstart_config() - verifies enable_network_isolation is
extracted from deploy_kwargs
* fix: add _enable_network_isolation to MockModelBuilderServers test fixture
The mock directly inherits _ModelBuilderServers without going through
ModelBuilder.__post_init__ which initializes this attribute.
* test: add integ test for JumpStart network isolation + fix mock fixture
Integration test builds a real SageMaker Model (falcon-7b) and verifies
EnableNetworkIsolation=True via describe_model API. No endpoint deployed.
Also adds _enable_network_isolation to MockModelBuilderServers fixture
to fix 7 pre-existing unit test failures.
---------
Co-authored-by: Liam Neal Reilly <lnealrei@amazon.com>
0 commit comments