Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Llama 3.2 models to Amazon Bedrock Chat #1014

Closed
wants to merge 3 commits into from

Conversation

srdas
Copy link
Collaborator

@srdas srdas commented Sep 25, 2024

Meta released Llama 3.2 models : https://aws.amazon.com/bedrock/llama/
These are included in Bedrock : https://aws.amazon.com/blogs/aws/introducing-llama-3-2-models-from-meta-in-amazon-bedrock-a-new-generation-of-multimodal-vision-and-lightweight-models/

These models are added:

Meta Llama 3.2 1B Instruct 1.x meta.llama3-2-1b-instruct-v1:0
Meta Llama 3.2 3B Instruct 1.x meta.llama3-2-3b-instruct-v1:0
Meta Llama 3.2 11B Instruct 1.x meta.llama3-2-11b-instruct-v1:0
Meta Llama 3.2 90B Instruct 1.x meta.llama3-2-90b-instruct-v1:0

Note: These models need "cross region inference" and tests are needed to see if additional changes are needed for access. https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html

This PR is a work in progress. we have to investigate whether the new handling of cross-region inference which requires passing an "inference profile" when calling the model. This means adding the new models may need updates to langchain and/or langchain-aws to handle these models.

It turns out that we can use this in Jupyter AI by prefixing the model id with region as shown here where the model is is prefixed by .us:
image
And then we can ask:
image
The fix would be to take the prefix from the region name field and apply it to the model id, though it seems like a lot of special handling for one model. A second approach is to add model ids for all regions.

@srdas srdas added the enhancement New feature or request label Sep 25, 2024
@srdas srdas marked this pull request as draft September 25, 2024 20:31
@srdas srdas changed the title Add Llama 3.2 models Add Llama 3.2 models to Amazon Bedrock Chat Sep 25, 2024
@alxyok
Copy link

alxyok commented Nov 4, 2024

I'm also interested in this addition, any news from validators? I think you've gotta remove the draft before it's even considered

@srdas
Copy link
Collaborator Author

srdas commented Nov 4, 2024

I'm also interested in this addition, any news from validators? I think you've gotta remove the draft before it's even considered

Will try and return to this soon. Meanwhile, if you are interested in using Llama3.2 models, they can also be used with Ollama as shown, see: https://ollama.com/library/llama3.2
image

@srdas
Copy link
Collaborator Author

srdas commented Nov 20, 2024

Closed via new PR #1114 , which supersedes this one.

@srdas srdas closed this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants