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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,10 @@ Before sending us a pull request, please ensure that:
61
61
1. Follow the instructions at [Modifying an EBS Volume Using Elastic Volumes (Console)](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/requesting-ebs-volume-modifications.html#modify-ebs-volume) to increase the EBS volume size associated with the newly created EC2 instance.
62
62
1. Wait 5-10min for the new EBS volume increase to finalize.
63
63
1. Allow EC2 to claim the additional space by stopping and then starting your EC2 host.
64
+
2. Set up a venv to manage dependencies:
65
+
1.`python -m venv ~/.venv/myproject-env` to create the venv
66
+
2.`source ~/.venv/myproject-env/bin/activate` to activate the venv
67
+
3.`deactivate` to exit the venv
64
68
65
69
66
70
### Pull Down the Code
@@ -74,8 +78,8 @@ Before sending us a pull request, please ensure that:
74
78
### Run the Unit Tests
75
79
76
80
1. Install tox using `pip install tox`
77
-
1.Install coverage using `pip install .[test]`
78
-
1.cd into the sagemaker-python-sdk folder: `cd sagemaker-python-sdk` or `cd /environment/sagemaker-python-sdk`
81
+
1.cd into the github project sagemaker-python-sdk folder: `cd sagemaker-python-sdk` or `cd /environment/sagemaker-python-sdk`
82
+
1.Install coverage using `pip install '.[test]'`
79
83
1. Run the following tox command and verify that all code checks and unit tests pass: `tox tests/unit`
80
84
1. You can also run a single test with the following command: `tox -e py310 -- -s -vv <path_to_file><file_name>::<test_function_name>`
81
85
1. You can run coverage via runcvoerage env : `tox -e runcoverage -- tests/unit` or `tox -e py310 -- tests/unit --cov=sagemaker --cov-append --cov-report xml`
@@ -767,7 +767,8 @@ This customized Python code must be named ``inference.py`` and is specified thro
767
767
768
768
model = TensorFlowModel(entry_point='inference.py',
769
769
model_data='s3://mybucket/model.tar.gz',
770
-
role='MySageMakerRole')
770
+
role='MySageMakerRole',
771
+
framework_version='x.x.x')
771
772
772
773
In the example above, ``inference.py`` is assumed to be a file inside ``model.tar.gz``. If you want to use a local file instead, you must add the ``source_dir`` argument. See the documentation on `TensorFlowModel <https://sagemaker.readthedocs.io/en/stable/frameworks/tensorflow/sagemaker.tensorflow.html#sagemaker.tensorflow.model.TensorFlowModel>`_.
773
774
@@ -923,7 +924,8 @@ processing. There are 2 ways to do this:
923
924
model = TensorFlowModel(entry_point='inference.py',
924
925
dependencies=['requirements.txt'],
925
926
model_data='s3://mybucket/model.tar.gz',
926
-
role='MySageMakerRole')
927
+
role='MySageMakerRole',
928
+
framework_version='x.x.x')
927
929
928
930
929
931
2. If you are working in a network-isolation situation or if you don't
@@ -941,7 +943,8 @@ processing. There are 2 ways to do this:
941
943
model = TensorFlowModel(entry_point='inference.py',
942
944
dependencies=['/path/to/folder/named/lib'],
943
945
model_data='s3://mybucket/model.tar.gz',
944
-
role='MySageMakerRole')
946
+
role='MySageMakerRole',
947
+
framework_version='x.x.x')
945
948
946
949
For more information, see: https://github.com/aws/sagemaker-tensorflow-serving-container#prepost-processing
Copy file name to clipboardExpand all lines: doc/overview.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1958,15 +1958,15 @@ Make sure to have a Compose Version compatible with your Docker Engine installat
1958
1958
Local mode configuration
1959
1959
========================
1960
1960
1961
-
The local mode uses a YAML configuration file located at ``~/.sagemaker/config.yaml`` to define the default values that are automatically passed to the ``config`` attribute of ``LocalSession``. This is an example of the configuration, for the full schema, see `sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_LOCAL_MODE_CONFIG_SCHEMA <https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/config/config_schema.py>`_.
1961
+
The local mode uses a YAML configuration file located at ``${user_config_directory}/sagemaker/config.yaml`` to define the default values that are automatically passed to the ``config`` attribute of ``LocalSession``. This is an example of the configuration, for the full schema, see `sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_LOCAL_MODE_CONFIG_SCHEMA <https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/config/config_schema.py>`_.
0 commit comments