yosider/llm-summer-2023-competition

Python

2

4 commits

updated Oct 27, 2023

See the code

README

松尾研究室主催の公開講座「サマースクール 2023 大規模言語モデル」最終課題のコンペティション参加時のコードです。
内容の詳細についてはreport.mdも参照ください。
実行するには講座で配布されたjsonデータが必要です。

Installation

Python 3.10.13, CUDA 11.8で動作確認済み

  • Pythonパッケージインストール
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt
pip install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
  • SerperのAPI keyを取得し、.envファイルに記述
SERPER_API_KEY=xxx
  • (任意)環境変数HF_HOMEを設定
export HF_HOME=/mnt/ms-nas-2/yoshida/huggingface/
  • (fine-tuningする場合)wandbにログイン
    (現状、openorca-stxのJCommonsenseQAによるfine-tuningのみ対応しています)
wandb login

Run

data/以下にデータを配置し、main.py内でファイル名を指定した後、実行してください。

python main.py

yosider/llm-summer-2023-competition

Python

2

4 commits

updated Oct 27, 2023

See the code

README

松尾研究室主催の公開講座「サマースクール 2023 大規模言語モデル」最終課題のコンペティション参加時のコードです。
内容の詳細についてはreport.mdも参照ください。
実行するには講座で配布されたjsonデータが必要です。

Installation

Python 3.10.13, CUDA 11.8で動作確認済み

  • Pythonパッケージインストール
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt
pip install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
  • SerperのAPI keyを取得し、.envファイルに記述
SERPER_API_KEY=xxx
  • (任意)環境変数HF_HOMEを設定
export HF_HOME=/mnt/ms-nas-2/yoshida/huggingface/
  • (fine-tuningする場合)wandbにログイン
    (現状、openorca-stxのJCommonsenseQAによるfine-tuningのみ対応しています)
wandb login

Run

data/以下にデータを配置し、main.py内でファイル名を指定した後、実行してください。

python main.py