Skip to content

Latest commit

 

History

History

gpt3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Querying GPT-3

To follow our experiments which use GPT-3, you must have access to the OpenAI API (at cost). Please retrieve your organization and API keys and set them in your environment variables.

export OPENAI_ORG=....
export OPENAI_API_KEY=...

For producing predictions for both DA and MC settings, run:

python gpt3/query_gpt3.py --aokvqa-dir ${AOKVQA_DIR} --split val --out ${PREDS_DIR}/gpt3_val-da.json
python remap_predictions.py --aokvqa-dir ${AOKVQA_DIR} --split val --pred ${PREDS_DIR}/gpt3_val-da.json --out ${PREDS_DIR}/gpt3_val-mc.json