Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
80a862b4
Commit
80a862b4
authored
Jan 12, 2021
by
Jiezhong Qiu
Browse files
update
parent
ef83c893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
pytorch/run_enwik8_base_gshard.sh
pytorch/run_enwik8_base_gshard.sh
+43
-0
No files found.
pytorch/run_enwik8_base_gshard.sh
0 → 100644
View file @
80a862b4
#!/bin/bash
export
LD_LIBRARY_PATH
=
/home/jiezhong/miniconda3/lib:/usr/local/cuda/lib64:
$LD_LIBRARY_PATH
if
[[
$1
==
'train'
]]
;
then
echo
'Run training...'
python train.py
\
--cuda
\
--data
../data/enwik8/
\
--dataset
enwik8
\
--n_layer
12
\
--d_model
512
\
--n_head
8
\
--d_head
64
\
--d_inner
1024
\
--dropout
0.1
\
--dropatt
0.0
\
--optim
adam
\
--lr
0.00025
\
--warmup_step
0
\
--max_step
400000
\
--tgt_len
512
\
--mem_len
512
\
--eval_tgt_len
128
\
--batch_size
22
\
--multi_gpu
\
--gpu0_bsz
4
\
${
@
:2
}
elif
[[
$1
==
'eval'
]]
;
then
echo
'Run evaluation...'
python eval.py
\
--cuda
\
--data
../data/enwik8/
\
--dataset
enwik8
\
--tgt_len
80
\
--mem_len
2100
\
--clamp_len
820
\
--same_length
\
--split
test
\
${
@
:2
}
else
echo
'unknown argment 1'
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment