Installation¶
Setup¶
Clone Repository¶
git clone https://github.com/project-etalon/etalon.git
Create Conda Environment¶
conda create -n etalon python=3.10
conda activate etalon
Install etalon¶
cd etalon
pip install -e .
Setup Hugging Face¶
First create and setup your account at https://huggingface.co/ and obtain API key. Then run the following command and enter API key linked to your hugging face account:
huggingface-cli login
Custom tokenizer corresponding to the model is fetched from Hugging Face hub. Make sure you have access to the model and are logged in to Hugging Face though command line.
Setup Wandb [Optional]¶
First create and setup your account at https://<your-org>.wandb.io/ or public Wandb and obtain API key. Then run the following command and enter API key linked to your wandb account:
wandb login --host https://<your-org>.wandb.io
Disabling Wandb¶
To opt out of wandb, do any of the following:
Don’t pass any wandb related args like
--wandb-project,--wandb-groupandwandb-run-namewhen running python scripts. Alternatively, pass in--no-should-write-metricsinstead of--should-write-metricsboolean flag.Run
export WANDB_MODE=disabledin your shell or add this to~/.zshrcor~/.bashrc. Remember to reload your shell usingsource ~/.zshrcorsource ~/.bashrc.