Download code/slurm/make_env.sh from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/make_env.sh
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/slurm/make_env.sh
-
curl -L -o make_env.sh https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/make_env.sh
1.13 kB
| #SBATCH -p gpu | |
| #SBATCH --gpus=1 | |
| #SBATCH -c 4 | |
| #SBATCH --mem=24G | |
| #SBATCH -t 02:00:00 | |
| #SBATCH -J lp_env | |
| #SBATCH -o /home/bjc75/other/finetuning/logs/%x_%j.out | |
| # MIT License, Bryan Cheng, 2026. Build the project environment. | |
| set -e | |
| module load miniconda | |
| ENV=/nfs/roberts/project/pi_skr2/bjc75/conda_envs/lorapop | |
| [ -d $ENV ] || conda create -y -p $ENV python=3.12 -c conda-forge | |
| source activate $ENV || conda activate $ENV | |
| export PIP_CACHE_DIR=/nfs/roberts/scratch/pi_skr2/bjc75/finetuning/cache/pip | |
| pip install torch==2.7.1 --index-url https://download.pytorch.org/whl/cu128 | |
| pip install "transformers>=4.46,<4.57" peft accelerate safetensors huggingface_hub hf_transfer hf_xet datasets \ | |
| numpy scipy pandas scikit-learn statsmodels matplotlib seaborn tqdm pyarrow pytest \ | |
| sentencepiece protobuf langdetect nltk immutabledict lm_eval | |
| python -c "import torch,transformers,peft,numpy,scipy,sklearn,statsmodels; print('torch',torch.__version__,'cuda',torch.version.cuda,'tf',transformers.__version__,'peft',peft.__version__,'np',numpy.__version__)" | |
| pip freeze > /home/bjc75/other/finetuning/logs/env_freeze.txt | |
| echo ENVDONE | |