This PR introduces changes to the sample notebook, demonstrating the deployment of a fine-tuned HuggingFace Command-R model using Amazon SageMaker. The modifications primarily involve updating the notebook's code and structure to ensure compatibility with the latest Cohere library and Amazon SageMaker functionalities.
Changes:
The notebook's title is now formatted as a level 2 heading, ensuring consistency with Markdown standards.
The metadata field in the notebook's cell structure is updated to include the jp-MarkdownHeadingCollapsed property, set to true.
The installation command for the Python package has been modified from cohere-aws to cohere, reflecting the updated library name.
The import statement now includes the cohere library, ensuring its availability for subsequent usage.
The Client object instantiation has been replaced with SagemakerClient, a more specific class from the cohere library. This change enhances code clarity and leverages the specialized functionality of the SagemakerClient class.
The export_finetune, create_endpoint, connect_to_endpoint, chat, delete_endpoint, and close methods are now accessed through the sagemaker_finetuning attribute of the co object. This modification aligns with the updated library structure and ensures that the code continues to function as expected.
This PR introduces changes to the sample notebook, demonstrating the deployment of a fine-tuned HuggingFace Command-R model using Amazon SageMaker. The modifications primarily involve updating the notebook's code and structure to ensure compatibility with the latest Cohere library and Amazon SageMaker functionalities.
Changes:
metadata
field in the notebook's cell structure is updated to include thejp-MarkdownHeadingCollapsed
property, set totrue
.cohere-aws
tocohere
, reflecting the updated library name.cohere
library, ensuring its availability for subsequent usage.Client
object instantiation has been replaced withSagemakerClient
, a more specific class from thecohere
library. This change enhances code clarity and leverages the specialized functionality of theSagemakerClient
class.export_finetune
,create_endpoint
,connect_to_endpoint
,chat
,delete_endpoint
, andclose
methods are now accessed through thesagemaker_finetuning
attribute of theco
object. This modification aligns with the updated library structure and ensures that the code continues to function as expected.