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

AnthropicSolver #1498

Merged
merged 1 commit into from
Mar 21, 2024
Merged

AnthropicSolver #1498

merged 1 commit into from
Mar 21, 2024

Conversation

thesofakillers
Copy link
Contributor

This PR contributes an AnthropicSolver class, a solver for using models served by the Anthropic Claude API, such as claude 3.

Besides basic functionality, the solver provides the following features

  • Handles backoff
  • Handles CoT and other solvers with non-alternating roles
  • token usage estimate

Notes:

  • logit biasing not supported by the anthropic API
  • checking for context length limits not supported; anthropic have not released a tokenizer yet (like tiktoken from openai)
  • supports chat models only. if anthropic releases base models at some point, we will address that when it arises

Copy link
Collaborator

@JunShern JunShern left a comment

Choose a reason for hiding this comment

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

Thanks for adding this! Great that we can start comparing eval results across different model providers.

@JunShern JunShern merged commit e30e141 into openai:main Mar 21, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants