python3 -m pip install -r requirements.txt
(Windows needs the CUDA wheels explicitly.)
pip install torch==2.2.2+cu121 torchvision==0.17.2+cu121 torchaudio==2.2.2+cu121 -f https://download.pytorch.org/whl/cu121pip install -r requirements-windows.txt- verify cuda is active:
python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))"; expect something like:True NVIDIA GeForce RTX 3080 - edit config based on gpu, for 3080:
"batch_size": 8, "epochs": 3
python -m src.prepare_multi_eurlexpython -m src.train_classifier enpython -m src.infer_classifier
module load Python/3.13.1-GCCcore-14.2.0
nohup python3 -m src.train_reranker > train.log 2>&1 &
tmux new -s reranker
tmux -S ~/.tmux/reranker new -s reranker
tmux -S ~/.tmux/reranker attach -t reranker
tmux -S ~/.tmux/reranker ls
Detach: Ctrl+B then D