Skip to content

Commit 5331b8a

Browse files
author
Judy Heflin
committed
Low-code deployment doc formatting
1 parent 80f3d2b commit 5331b8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/overview.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -730,19 +730,21 @@ You can deploy a built-in algorithm or pretrained model to a SageMaker endpoint
730730

731731
First, find the model ID for the model of your choice in the :doc:`Built-in Algorithms with pre-trained Model Table<./doc_utils/pretrainedmodels>`.
732732

733-
Then, using the model ID, define your model as a JumpStart model. Use the `deploy` method to automatically deploy your model for inference.
733+
Then, using the model ID, define your model as a JumpStart model. Use the ``deploy`` method to automatically deploy your model for inference.
734734
In this example, we use the EQA (extractive question answering) BERT base model (cased) from HuggingFace.
735735

736736
.. code:: python
737737
738738
from sagemaker.jumpstart.model import JumpStartModel
739+
739740
model_id = "huggingface-eqa-bert-base-cased"
740741
my_model = JumpStartModel(model_id=model_id)
741742
predictor = my_model.deploy()
742743
743-
You can then run inference with the deployed model using the `predict` method.
744+
You can then run inference with the deployed model using the ``predict`` method.
745+
744746
.. code:: python
745-
747+
746748
question = "What is Southern California often abbreviated as?"
747749
response = predictor.predict(question)
748750
print(response)

0 commit comments

Comments
 (0)