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
feature: network isolation mode in training (aws#791)
* feature: network isolation mode in training
* feature: network isolation mode in tar support training
* change: documentation and check describe training job network isolation
* doc update
* doc update, remove inference section
* sourcedir
* type error fix
You can enable network isolation mode when running training and inference on Amazon SageMaker.
565
+
566
+
For more information about Amazon SageMaker network isolation mode, see the `SageMaker documentation on network isolation or internet-free mode <https://docs.aws.amazon.com/sagemaker/latest/dg/mkt-algo-model-internet-free.html>`__.
567
+
568
+
To train a model in network isolation mode, set the optional parameter ``enable_network_isolation`` to ``True``inany network isolation supported Framework Estimator.
569
+
570
+
.. code:: python
571
+
572
+
# set the enable_network_isolation parameter to True
When this training job is created, the SageMaker Python SDK will upload the files in ``entry_point``, ``source_dir``, and ``dependencies`` to S3 as a compressed ``sourcedir.tar.gz`` file (``'s3://mybucket/sourcedir.tar.gz'``).
584
+
585
+
A new training job channel, named ``code``, will be added with that S3 URI. Before the training docker container is initialized, the ``sourcedir.tar.gz`` will be downloaded from S3 to the ML storage volume like any other offline input channel.
586
+
587
+
Once the training job begins, the training container will look at the offline input``code`` channel to install dependencies and run the entry script. This isolates the training container, so no inbound or outbound network calls can be made.
0 commit comments