Skip to content

Commit f4ba167

Browse files
philschmidmxnet-sdk-team-mms
authored andcommitted
Fix documentation (aws#16)
* Fix documentation * removed wrong line * updated versions
1 parent 2b559da commit f4ba167

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
SageMaker Hugging Face Inference Toolkit is an open-source library for serving 🤗 Transformers models on Amazon SageMaker. This library provides default pre-processing, predict and postprocessing for certain 🤗 Transformers models and tasks. It utilizes the [SageMaker Inference Toolkit](https://github.com/aws/sagemaker-inference-toolkit) for starting up the model server, which is responsible for handling inference requests.
1313

14-
For Training, see [Run training on Amazon SageMaker](https://huggingface.co/transformers/sagemaker.html).
14+
For Training, see [Run training on Amazon SageMaker](https://huggingface.co/docs/sagemaker/train).
1515

1616
For the Dockerfiles used for building SageMaker Hugging Face Containers, see [AWS Deep Learning Containers](https://github.com/aws/deep-learning-containers/tree/master/huggingface).
1717

18-
For information on running Hugging Face jobs on Amazon SageMaker, please refer to the [🤗 Transformers documentation](https://huggingface.co/transformers/sagemaker.html).
18+
For information on running Hugging Face jobs on Amazon SageMaker, please refer to the [🤗 Transformers documentation](https://huggingface.co/docs/sagemaker).
1919

2020
For notebook examples: [SageMaker Notebook Examples](https://github.com/huggingface/notebooks/tree/master/sagemaker).
2121

@@ -37,8 +37,9 @@ from sagemaker.huggingface import HuggingFaceModel
3737

3838
# create Hugging Face Model Class
3939
huggingface_model = HuggingFaceModel(
40-
transformers_version='4.4',
41-
pytorch_version='1.6',
40+
transformers_version='4.6',
41+
pytorch_version='1.7',
42+
py_version='py36',
4243
model_data='s3://my-trained-model/artifcats/model.tar.gz',
4344
role=role,
4445
)
@@ -58,11 +59,11 @@ hub = {
5859
}
5960
# create Hugging Face Model Class
6061
huggingface_model = HuggingFaceModel(
61-
transformers_version='4.4',
62-
pytorch_version='1.6',
62+
transformers_version='4.6',
63+
pytorch_version='1.7',
64+
py_version='py36',
6365
env=hub,
6466
role=role,
65-
name=hub['HF_MODEL_ID'],
6667
)
6768
# deploy model to SageMaker Inference
6869
huggingface_model.deploy(initial_instance_count=1,instance_type="ml.m5.xlarge")
@@ -142,4 +143,4 @@ requests to us.
142143
---
143144
## 📜 License
144145

145-
SageMaker Hugging Face Inference Toolkit is licensed under the Apache 2.0 License.
146+
SageMaker Hugging Face Inference Toolkit is licensed under the Apache 2.0 License.

0 commit comments

Comments
 (0)