-
Notifications
You must be signed in to change notification settings - Fork 3
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: add Converse API, add LLama 3.2 #177
base: development
Are you sure you want to change the base?
Conversation
/deploy-review
|
/deploy-review
|
params: ModelParameters, | ||
) -> ConverseRequestWrapper: | ||
system_prompt_extraction = extract_converse_system_prompt(messages) | ||
processed_messages = await to_converse_messages( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
converse_messages = ...
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
for idx, msg in enumerate(messages) | ||
] | ||
|
||
# Merge messages with same roles, to preserve turn-based user/assistant turns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Merge messages with the same roles to achieve an alternation of user-assistant roles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
||
return { | ||
"role": msg1["role"], | ||
"content": list(content1) + list(content2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"content": content1 + content2,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
"content": list(content1) + list(content2), | ||
}, set1 | set2 | ||
|
||
converted: List[Tuple[ConverseMessage, Set[int]]] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
converted = [
(await to_converse_message(msg, storage), {idx})
for idx, msg in enumerate(messages, start=start_offset)
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Added Converse API
Removed Llama 2 (end of life in Bedrock)
Add
Llama 3.2 (1B, 3B, 11B, 90B)
Tool support for
Llama 3.1 70B
,Llama 3.1 405B
,Llama 3.2 90B
Move all Llama models to Converse API