Reproducing In-Context Learning Creates Task Vectors by Roee Hendel, Mor Geva and Amir Globerson (2023).
poetry install
Before running the script, get access to the huggingface/llama models.
You'll have to request access here.
Make sure to add an affiliation to your request as your request might be denied without it.
You can then download the models after huggingface-cli login and providing a read access token (not a fine-grained one).
Then, reproduce the results with this command:
bash bash_scripts/main.sh