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

Bedrock optimizer model? #11

Open
austinmw opened this issue Dec 11, 2024 · 1 comment
Open

Bedrock optimizer model? #11

austinmw opened this issue Dec 11, 2024 · 1 comment

Comments

@austinmw
Copy link

Can I use a Bedrock LLM for the optimizer?

@austinmw
Copy link
Author

Update:

I was almost able to use the library as-is by setting optimizer like this:

  "optimizer": {
    "model": {
      "model_provider": "bedrock_converse",
      "model": "anthropic.claude-3-sonnet-20240229-v1:0",
      "max_tokens": 4096
    }

However, the _ensure_stricty seems to break Bedrock functionality by attempting to pass strict parameter to Bedrock, where this parameter doesn't exist? I'm using a StructuredPrompt. Commenting out this function allowed Bedrock models to work successfully for me.

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

No branches or pull requests

1 participant