-
Notifications
You must be signed in to change notification settings - Fork 32
/
cmd.sh
executable file
·28 lines (25 loc) · 1.44 KB
/
cmd.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
#!/usr/bin/env bash
# you can change cmd.sh depending on what type of queue you are using.
# If you have no queueing system and want to run on a local machine, you
# can change all instances 'queue.pl' to run.pl (but be careful and run
# commands one by one: most recipes will exhaust the memory on your
# machine). queue.pl works with GridEngine (qsub). slurm.pl works
# with slurm. Different queues are configured differently, with different
# queue names and different ways of specifying things like memory;
# to account for these differences you can create and edit the file
# conf/queue.conf to match your queue's configuration. Search for
# conf/queue.conf in http://kaldi-asr.org/doc/queue.html for more information,
# or search for the string 'default_config' in utils/queue.pl or utils/slurm.pl.
export train_cmd="queue.pl --mem 1G"
export decode_cmd="queue.pl --mem 2G"
export cuda_cmd="queue.pl --gpu 1 --mem 20G"
export extract_cmd="queue.pl --mem 6G"
export feats_cmd="queue.pl --mem 2G"
if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then
queue_conf=$HOME/queue_conf/default.conf
export train_cmd="queue.pl --config $queue_conf --mem 6G"
export extract_cmd="queue.pl --config $queue_conf --mem 6G --scratch 0.05"
export decode_cmd="queue.pl --config $queue_conf --mem 6G --matylda 0.1"
export cuda_cmd="queue.pl --config $queue_conf --gpu 1 --long 1 --mem 10G --tmp 40G"
export feats_cmd="queue.pl --config $queue_conf --mem 2G --matylda 1.0"
fi