forked from facebookresearch/music-translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_dist.sh
executable file
·41 lines (38 loc) · 1.07 KB
/
train_dist.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
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#!/bin/bash
set -e -x
CODE=src
DATA=musicnet/preprocessed
EXP=musicnet_dist
MASTER_PORT=29500
python -m torch.distributed.launch \
--nproc_per_node=1 \
--nnodes=$1 \
--node_rank=$2 \
--master_addr=$3 \
--master_port=${MASTER_PORT} \
${CODE}/train.py \
--data ${DATA}/Bach_Solo_Cello \
${DATA}/Beethoven_Solo_Piano \
${DATA}/Cambini_Wind_Quintet \
${DATA}/Bach_Solo_Piano \
${DATA}/Beethoven_Accompanied_Violin \
${DATA}/Beethoven_String_Quartet \
--batch-size 32 \
--lr-decay 0.995 \
--epoch-len 1000 \
--num-workers 5 \
--lr 1e-3 \
--seq-len 12000 \
--d-lambda 1e-2 \
--expName ${EXP} \
--latent-d 64 \
--layers 14 \
--blocks 4 \
--data-aug \
--grad-clip 1