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.
...
@@ -200,11 +208,103 @@ big | 28.9
...
@@ -200,11 +208,103 @@ big | 28.9
*`--translation`: Path to file containing generated translations.
*`--translation`: Path to file containing generated translations.
*`--reference`: Path to file containing reference translations.
*`--reference`: Path to file containing reference translations.
* Use the `--help` or `-h` flag to get a full list of possible arguments.
* Use the `--help` or `-h` flag to get a full list of possible arguments.
5. ### TPU
5. ### TPU
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).