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
3d415d0e
Commit
3d415d0e
authored
Apr 03, 2019
by
Zihang Dai
Browse files
fix tpu lm1b
parent
b2cb2443
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tf/scripts/lm1b_large_tpu.sh
tf/scripts/lm1b_large_tpu.sh
+5
-3
No files found.
tf/scripts/lm1b_large_tpu.sh
View file @
3d415d0e
...
@@ -25,7 +25,9 @@ D_INNER=8192
...
@@ -25,7 +25,9 @@ D_INNER=8192
TGT_LEN
=
32
TGT_LEN
=
32
MEM_LEN
=
32
MEM_LEN
=
32
TRAIN_BSZ
=
512
TRAIN_BSZ
=
512
VLIDA_BSZ
=
512
VALID_BSZ
=
512
TRAIN_BSZ_PER_HOST
=
$((
TRAIN_BSZ
/
NUM_HOST
))
VALID_BSZ_PER_HOST
=
$((
VALID_BSZ
/
NUM_HOST
))
# Testing
# Testing
TEST_TGT_LEN
=
32
TEST_TGT_LEN
=
32
...
@@ -38,8 +40,8 @@ if [[ $1 == 'train_data' ]]; then
...
@@ -38,8 +40,8 @@ if [[ $1 == 'train_data' ]]; then
--data_dir
=
${
LOCAL_DIR
}
/
\
--data_dir
=
${
LOCAL_DIR
}
/
\
--dataset
=
lm1b
\
--dataset
=
lm1b
\
--tgt_len
=
${
TGT_LEN
}
\
--tgt_len
=
${
TGT_LEN
}
\
--per_host_train_bsz
=
${
TRAIN_BSZ
}
\
--per_host_train_bsz
=
${
TRAIN_BSZ
_PER_HOST
}
\
--per_host_valid_bsz
=
${
VLID
A
_BSZ
}
\
--per_host_valid_bsz
=
${
V
A
LID_BSZ
_PER_HOST
}
\
--num_core_per_host
=
${
NUM_CORE
}
\
--num_core_per_host
=
${
NUM_CORE
}
\
--num_passes
=
10
\
--num_passes
=
10
\
--use_tpu
=
True
\
--use_tpu
=
True
\
...
...
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