Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <chanjunshern@gmail.com> Co-authored-by: Ian McKenzie <ian.mckenzie@c-openai.com>
- Loading branch information