Translating the file takes around 15 minutes on a GTX1080, or 5 minutes on a P100.
Translating the file takes around 15 minutes on a GTX1080, or 5 minutes on a P100.
...
@@ -205,6 +213,98 @@ big | 28.9
...
@@ -205,6 +213,98 @@ big | 28.9
TPU support for this version of Transformer is experimental. Currently it is present for
TPU support for this version of Transformer is experimental. Currently it is present for
demonstration purposes only, but will be optimized in the coming weeks.
demonstration purposes only, but will be optimized in the coming weeks.
## Export trained model
To export the model as a Tensorflow [SavedModel](https://www.tensorflow.org/programmers_guide/saved_model) format, use the argument `--export_dir` when running `transformer_main.py`. A folder will be created in the directory with the name as the timestamp (e.g. $EXPORT_DIR/1526427396).