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

feat: support Llama3 models on Bedrock #7581

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

tstadel
Copy link
Member

@tstadel tstadel commented Apr 23, 2024

Related Issues

  • fixes #issue-number

Proposed Changes:

How did you test it?

Notes for the reviewer

Checklist

@tstadel tstadel requested review from a team as code owners April 23, 2024 15:14
@tstadel tstadel requested review from dfokina and julian-risch and removed request for a team April 23, 2024 15:14
@tstadel tstadel changed the title Feat/support_llama3_on_bedrock feat: support Llama3 models on Bedrock Apr 23, 2024
@tstadel tstadel requested a review from vblagoje April 23, 2024 15:15
@@ -258,7 +258,7 @@ class AmazonBedrockInvocationLayer(AWSBaseInvocationLayer):
r"ai21.j2.*": AI21LabsJurassic2Adapter,
r"cohere.command.*": CohereCommandAdapter,
r"anthropic.claude.*": AnthropicClaudeAdapter,
r"meta.llama2.*": MetaLlama2ChatAdapter,
r"meta.llama.*": MetaLlama2ChatAdapter,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this . here before *?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's a regex match all char. Bit ugly because of the other dots, but we also added tests.

@vblagoje vblagoje self-requested a review April 23, 2024 15:30
@vblagoje vblagoje merged commit 9ea5ee1 into v1.x Apr 23, 2024
54 checks passed
@vblagoje vblagoje deleted the feat/support_llama3_on_bedrock branch April 23, 2024 15:51
vblagoje pushed a commit that referenced this pull request Apr 23, 2024
* feat: support llama3 on bedrock

* add reno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants