Last active
December 4, 2018 18:22
-
-
Save aleksas/baf7b65d17b5e056c32048fd33cabeb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROBLEM=sentiment_imdb_characters | |
MODEL=transformer_encoder | |
HPARAMS=transformer_base | |
DATA_DIR=$HOME/t2t_data | |
TMP_DIR=/tmp/t2t_datagen | |
TRAIN_DIR=$HOME/t2t_train/$PROBLEM/$MODEL-$HPARAMS | |
BATCH_SIZE=2048 | |
WORKER_GPU=2 | |
TRAIN_STEPS=500000 | |
mkdir -p $DATA_DIR $TMP_DIR | |
tensorboard --logdir $TRAIN_DIR & | |
t2t-datagen \ | |
--data_dir=$DATA_DIR \ | |
--tmp_dir=$TMP_DIR \ | |
--problem=$PROBLEM | |
t2t-trainer \ | |
--data_dir=$DATA_DIR \ | |
--problem=$PROBLEM \ | |
--model=$MODEL \ | |
--hparams_set=$HPARAMS \ | |
--output_dir=$TRAIN_DIR \ | |
--tmp_dir=$TMP_DIR \ | |
--batch_size=$BATCH_SIZE \ | |
--worker_gpu=$WORKER_GPU \ | |
--train_steps=$TRAIN_STEPS \ | |
--hparams=eval_drop_long_sequences=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/tensorflow/tensor2tensor/issues/266 | |
--local_eval_frequency=0 | |
@martinpopel I solved it by upgrading to TF 1.5.0 (cuda 9.0, cuDNN 7.0). Before that I had TF 1.4.1. Now the regular continuous_train_and_eval process with --worker_gpu=8 works out of the box. | |
charlevel MultiLabelModality ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment