Please install Anaconda to create a conda environment as follows:
# preparing environment
conda create -n biogen2025 python=3.10
conda activate biogen2025
pip install -r requirements.txtwget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1+12/OpenJDK21U-jdk_x64_linux_hotspot_21.0.1_12.tar.gz
mkdir -p $HOME/jdk
tar -xzf OpenJDK21U-jdk_x64_linux_hotspot_21.0.1_12.tar.gz -C $HOME/jdk
export JAVA_HOME="$HOME/jdk/jdk-21.0.1+12"
export PATH="$JAVA_HOME/bin:$PATH"conda install -c pytorch faiss-cpu -y./build_index.shIt will index 26,805,982 PubMed documents.
Before downloading, you need to agree to Meta's license terms by visiting here: https://huggingface.co/meta-llama/Llama-2-7b-chat-hf
You may need to fill out the form to agree to the license terms. Once your request approved, run the following:
pip install huggingface_hub
huggingface-cli login
huggingface-cli download meta-llama/Llama-2-7b-chat-hf --local-dir llama-2-7b-chat-hf
Get tasks datasets from https://trec.nist.gov/act_part/act_part.html and place them in data directory.
cd src/
python task_a.py
The submission ready file will be saved in data directory. You need to change the metadata in the src/task_a.py to add your organization and run name.
cd src/
python task_b.py
The submission ready file will be saved in data directory. You need to change the metadata in the src/task_b.py to add your organization and run name.