Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
bedrock_runner.py
generate_prompt.py
to take in json files, where we have a list of messages withrole
andcontent
. This returns a list of messages (dict) for themessages
parameter in the openai create chat completions api.table_aliases
in the main dataframe, ascot_instructions
is a more general and experimental field (e.g. for reasoning etc). We getprompt_together.json
to read off thetable_aliases
field instead of usingcot_instructions
.Testing
Ran the full evaluation over
meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
as follows:python3 main.py \ -db postgres \ -q data/instruct_basic_postgres.csv data/instruct_advanced_postgres.csv data/questions_gen_postgres.csv \ -o results/together_llama_70b_basic.csv results/together_llama_70b_advanced.csv results/together_llama_70b_v1.csv \ -g together \ -f prompts/prompt_together.json \ --cot_table_alias prealias \ -m "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo" \ -c 0 \ -p 10
Got the following results:
The results are slightly better than the previous evaluation on bedrock, see #116.
Sppedwise it was extremely fast (at 10 concurrent requests):