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: doc/frameworks/mxnet/using_mxnet.rst
+4-3
Original file line number
Diff line number
Diff line change
@@ -321,13 +321,14 @@ If there are other packages you want to use with your script, you can include a
321
321
Both ``requirements.txt`` and your training script should be put in the same folder.
322
322
You must specify this folder in ``source_dir`` argument when creating an MXNet estimator.
323
323
324
-
The function of installing packages using ``requirements.txt`` is supported for all MXNet versions during training.
324
+
The function of installing packages using ``requirements.txt`` is supported for MXNet versions 1.3.0 and higher during training.
325
+
325
326
When serving an MXNet model, support for this function varies with MXNet versions.
326
327
For MXNet 1.6.0 or newer, ``requirements.txt`` must be under folder ``code``.
327
328
The SageMaker MXNet Estimator automatically saves ``code`` in ``model.tar.gz`` after training (assuming you set up your script and ``requirements.txt`` correctly as stipulated in the previous paragraph).
328
329
In the case of bringing your own trained model for deployment, you must save ``requirements.txt`` under folder ``code`` in ``model.tar.gz`` yourself or specify it through ``dependencies``.
329
-
For MXNet 1.4.1, ``requirements.txt`` is not supported for inference.
330
-
For MXNet 0.12.1-1.3.0, ``requirements.txt`` must be in ``source_dir``.
330
+
For MXNet 0.12.1-1.2.1, 1.4.0-1.4.1, ``requirements.txt`` is not supported for inference.
331
+
For MXNet 1.3.0, ``requirements.txt`` must be in ``source_dir``.
331
332
332
333
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``.
333
334
You can also specify the version of an item to install.
Copy file name to clipboardExpand all lines: doc/frameworks/xgboost/using_xgboost.rst
+216-13
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ and a dictionary of the hyperparameters to pass to the training script.
161
161
role=role,
162
162
train_instance_count=1,
163
163
train_instance_type="ml.m5.2xlarge",
164
-
framework_version="0.90-1",
164
+
framework_version="1.0-1",
165
165
)
166
166
167
167
@@ -179,24 +179,227 @@ After you create an estimator, call the ``fit`` method to run the training job.
179
179
Deploy Open Source XGBoost Models
180
180
=================================
181
181
182
-
After the training job finishes, call the ``deploy`` method of the estimator to create a predictor that you can use to get inferences from your trained model.
182
+
After you fit an XGBoost Estimator, you can host the newly created model in SageMaker.
183
+
184
+
After you call ``fit``, you can call ``deploy`` on an ``XGBoost`` estimator to create a SageMaker endpoint.
185
+
The endpoint runs a SageMaker-provided XGBoost model server and hosts the model produced by your training script,
186
+
which was run when you called ``fit``. This was the model you saved to ``model_dir``.
187
+
188
+
``deploy`` returns a ``Predictor`` object, which you can use to do inference on the Endpoint hosting your XGBoost model.
189
+
Each ``Predictor`` provides a ``predict`` method which can do inference with numpy arrays, Python lists, or strings.
190
+
After inference arrays or lists are serialized and sent to the XGBoost model server, ``predict`` returns the result of
The Processing component enables you to submit processing jobs to Amazon SageMaker directly from a Kubeflow Pipelines workflow. For more information, see \ `SageMaker Processing Kubeflow Pipeline component <https://github.com/kubeflow/pipelines/tree/master/components/aws/sagemaker/process>`__.
0 commit comments