You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR contributes a `TogetherSolver` class, a solver for using models
served by the [Together AI
API](https://docs.together.ai/docs/quickstart)
Because [Together supports the OpenAI python
sdk](https://docs.together.ai/docs/openai-api-compatibility), we simply
create a subclass of the `OpenAISolver`, overriding some functionality.
There is therefore some refactoring of the `OpenAISolver` included in
this PR to facilitate this code sharing.
At the moment, we support the models specified in
`evals/registry/solvers/together.yaml`, but in principle most models
offered from the Together AI API can easily be added
Notes:
- logit biasing not supported by the Together API due to a lack of a
unified tokenizer a la [tiktoken](https://github.com/openai/tiktoken)
from openai
- For the same reason, checking for context length limits not supported
Co-authored-by: Chan Jun Shern <[email protected]>
Co-authored-by: Ian McKenzie <[email protected]>
0 commit comments