-
Notifications
You must be signed in to change notification settings - Fork 5
/
run.sh
executable file
·54 lines (36 loc) · 1.33 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh
#SBATCH --job-name=ir2
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=3
#SBATCH --ntasks-per-node=1
#SBATCH --time=12:00:00
#SBATCH --mem=12000M
#SBATCH --partition=gpu_shared_course
#SBATCH --gres=gpu:2
module purge
module load 2019
module load eb
module load Python/3.6.6-foss-2018b
module load CUDA/10.0.130
module load cuDNN/7.6.3-CUDA-10.0.130
# Mail
mail_template "IR2" $SLURM_JOBID "STARTED" "$1"
pip3 install virtualenv
python3 -m virtualenv ir2
. ir2/bin/activate
pip3 install -r requirements.txt
### DOWNLOAD DATA ###
sh download_data.sh
### PREPROCESSING ###
# AMAZON BOOKS
# python3 preprocess.py --raw_dataset data/reviews_Books_5.json.gz --type amazon --output data/Books.txt
# AMAZON BEAUTY
python3 preprocess.py --raw_dataset data/reviews_Beauty.json.gz --type amazon --output data/Beauty.txt
# MOVIELENS 1-M
python3 preprocess.py --raw_dataset data/ml-1m/ratings.dat --type movielens --output data/ml-1m.txt
### PROGRAM ###
# Movielens
# python3 main.py --dataset data/ml-1m.txt --model cast_1 --train_dir sandbox --maxlen 200 --bin_in_hours 48 --dropout_rate 0.2 --num_blocks 2 --seed 42
# Beauty
# python3 main.py --dataset data/Beauty.txt --model sasrec_static --train_dir sasrec_static_baseline --maxlen 50 --bin_in_hours 48 --dropout_rate 0.5 --num_blocks 2 --seed 42
mail_template "IR2" $SLURM_JOBID "FINISHED" "$1"