Fix AWS Sagemaker indentation, typo and header level

This commit is contained in:
Alvaro Bartolome 2024-10-05 13:26:25 +02:00
parent 2358c2bb54
commit 47c01cb048
No known key found for this signature in database
1 changed files with 16 additions and 16 deletions

View File

@ -139,11 +139,11 @@ for message in chat_completion:
TGI can be deployed on various cloud providers for scalable and robust text generation. One such provider is Amazon SageMaker, which has recently added support for TGI. Here's how you can deploy TGI on Amazon SageMaker:
## Amazon SageMaker
### Amazon SageMaker
To enable the Messages API in Amazon SageMaker you need to set the environment variable `MESSAGES_API_ENABLED=true`.
This will modify the `/invocations` route to accept Messages dictonaries consisting out of role and content. See the example below on how to deploy Llama with the new Messages API.
This will modify the `/invocations` route to accept Messages dictionaries consisting out of role and content. See the example below on how to deploy Llama with the new Messages API.
```python
import json