chore: Also add datapaths to job
This commit is contained in:
parent
81c767371e
commit
b74ae7083a
2 changed files with 86 additions and 45 deletions
8
job.pbs
8
job.pbs
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
CACHE_DIR="${VSC_SCRATCH}/.cache" # Directory to use as cache
|
||||
UV_DIR="${VSC_SCRATCH}/uv" # Directory to install packages
|
||||
#HF_DIR="${CACHE_DIR}/huggingface" # Directory to save models
|
||||
|
||||
DATA_DIR="${VSC_DATA}/datasets"
|
||||
RESULTS_DIR="${VSC_DATA}/neural-compression/$( date +%Y%m%d-%H%M-%S%N)-results"
|
||||
|
||||
module purge
|
||||
module load PyTorch-bundle/2.1.2-foss-2023a-CUDA-12.1.1
|
||||
|
|
@ -28,4 +30,6 @@ UV_PYTHON_INSTALL_DIR="${UV_DIR}/python" UV_PYTHON_INSTALL_DIR="${UV_DIR}/python
|
|||
|
||||
cd "${PBS_O_WORKDIR}/CNN-model"
|
||||
|
||||
python main_cnn.py --method train
|
||||
python main_cnn.py train \
|
||||
--dataset=enwik9 --data-root="${DATA_DIR}" \
|
||||
--model-path="${RESULTS_DIR}/model.pt"
|
||||
|
|
|
|||
Reference in a new issue