Skip to content

Best practices for prompting for Meta's Llama2 Large Language Model using Amazon Sagemaker

License

Notifications You must be signed in to change notification settings

aws-samples/amazon-sagemaker-llama2-prompting-best-practices

Amazon SageMaker Llama2 Prompting Best Practices

This repository contains the accompanying notebook and data required to demonstrate prompting best practices with Llama2 using SageMaker Jumpstart. Notebook uses Llama2 Chat 13B paramater model.

Using this code

Clone this repository in your SageMaker Studio notebook and run the notebook. Please note this notebook will deploy Llama2-13B model to g5.12xlarge instance. You will need to update Service Quota to be able to deploy the instance in the region as an endpoint.

This notebook can be run on a simple t3.medium instance using the Data Science 3.0 kernel. Both the endpoints and the studio notebook will incur costs. Please delete the endpoints and stop the notebook instances if they're not being used to avoid getting charged.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Best practices for prompting for Meta's Llama2 Large Language Model using Amazon Sagemaker

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published