Notebooks
C
Cohere
Command Models

Command Models

notebookscohere-developer-experiencesagemaker

Cohere Command Models in SageMaker

In this notebook, we demonstrate how to use the SageMaker Python SDK to deploy and run inference on Command models from Cohere.

Setup

First, upgrade to the latest Sagemaker, Boto and Cohere SDKs to be able to deploy and invoke Cohere models.

[ ]

Deploy

Latest Models

Model NameGPU TypeModel ID
Command R+ (08-2024)h100cohere-command-r-plus-08-2024-h100
Command R (08-2024)h100cohere-command-r-08-2024-h100

Older Models

Model NameGPU TypeModel ID
Command R+ (04-2024)h100cohere-command-r-plus-h100
Command R+ (04-2024)a100cohere-command-r-plus-a100
Command R (03-2024)h100cohere-command-r-h100
Command R (03-2024)a100cohere-command-r-a100

Specify the model ID to deploy one of the models from the above list.

[ ]

Use the Sagemaker Jumpstart SDK to deploy the model.

[ ]

Use the model

[ ]

More API Features

To learn more about API features such as token streaming and tool use, please see the documentation in the Cohere Chat API Reference.

Clean Up

After using the resource, you can delete the model and the endpoint.

[ ]