DD3412 chain of verification reproduction
1.0.0
まず、Python仮想環境を作成し、要件をインストールします。
conda create -n CoVe python=3.10
conda activate CoVe
要件をインストールするには:
pip install -r requirements.txt
次に、OpenAIやHuggingface APIキーなどの機密データを保存するために、 .configuration
という名前のファイルを作成します。このファイルは次のように見えます。
OPENAI_API_KEY=sk-abc.....
HF_API_KEY=hf_abc.......
Coveを実行するには、以下のコマンドを使用してください。
>> bash scripts/wikidata.sh # for wikidata task, and Llama2-70b model
llama2
、 llama2_70b
、 llama-65b
、 gpt3
joint
、 two_step
、 factored
ですwikidata
、 wikidata_category
、 multispanqa
です次の手順でApptainerを使用して実験を実行できます。
my_apptainer.def
ファイルを使用して、 Apptainerコンテナを構築します。 # Build the Apptainer container
apptainer build my_container.sif my_apptainer.def
apptainer_job
を実行して、 Apptainerコンテナ内で入り江の実験を実行します。 SBATCH apptainer_job.sh
または、次のコマンドを使用できます。
apptainer exec --nv my_apptainer.sif ./scripts/wikidata.sh # for Wikidata task and Llama2-70b