-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Tool calling on Llama 3.2 not working with system prompt + image + zero temperature #4374
Comments
For now, they don't support tool calling in vision models. https://www.llama.com/docs/model-cards-and-prompt-formats/llama3_2/ |
Thanks for reaching out. The Boto3 converse command makes a request to the underlying Converse API, so the issue here involves the API rather than Boto3 directly. And it sounds like this may currently be a limitation with Llama as suggested in the comment above. If there's feedback you'd like us to forward to the Bedrock team regarding this please let us know — maybe some clarification could be added the API documentation or here in their User Guide: https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-runtime_example_bedrock-runtime_Converse_MetaLlama_section.htm (in which case you can also use the Provide feedback link at the bottom of that page to send feedback.) |
If you look at my example, you can see that it actually works for text+image, the problem is that it doesn't work for some of the images. I believe that this could be an issue with Bedrock, rather than the model itself. |
Thanks for following up @p0deje — we can try reaching out to the Bedrock team for clarification on the expected behavior here. |
Weird, that llama team would explicitly write that vision models don't support tool calling (maybe that's the reason for erratic occasional tool calling response) Or Maybe bedrock is calling the vision model with just the text input - can be tested by asking something about the image along with tool calling. |
Describe the bug
When using Llama 3.2 on AWS Bedrock with the following combination of inputs, the tools are not respected and the response is plain text. It only happens when:
Changing any of these (e.g. increasing temperature to 1) fixes the problem and
toolUse
is returned.Regression Issue
Expected Behavior
toolsUse
contains the tools from the model.Current Behavior
toolsUse
is empty.Reproduction Steps
Run the following script - https://gist.github.com/p0deje/82a09ddadf7c39c1b11f322f7de9dfb1
Possible Solution
No response
Additional Information/Context
Originally reported to langchain-ai/langchain-aws#285
SDK version used
1.35.64
Environment details (OS name and version, etc.)
macOS 15.1.1
The text was updated successfully, but these errors were encountered: