Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 578010249
  • Loading branch information
mlbileschi authored and t5-copybara committed Oct 31, 2023
1 parent 397236e commit df64802
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/usage/eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ cause issues), run the following on commandline:

```sh
EVAL_OUTPUT_DIR="/tmp/model-eval/"
python -m t5x.eval \
python -m t5x.eval_unfragmented \
--gin_file=t5x/google/examples/flaxformer_t5/configs/examples/eval/t5_1_1_small_cbqa_natural_questions.gin \
--gin.EVAL_OUTPUT_DIR=\"${EVAL_OUTPUT_DIR}\" \
--alsologtostderr
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/finetune.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ cause issues), run the following on commandline:

```sh
MODEL_DIR="/tmp/finetune-model/"
python -m t5x.train \
python -m t5x.train_unfragmented \
--gin_file=t5x/examples/t5/t5_1_1/examples/small_wmt_finetune.gin \
--gin.MODEL_DIR=\"${MODEL_DIR}\" \
--alsologtostderr
Expand Down
6 changes: 3 additions & 3 deletions docs/usage/gin.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ and if you are doing finetuning, you can use
We can apply these two files with the following command:

```sh
python -m t5x.train \
python -m t5x.train_unfragmented \
--gin_file=t5x/examples/t5/t5_1_1/small.gin \
--gin_file=t5x/configs/runs/finetune.gin \
--logtostderr
Expand All @@ -354,7 +354,7 @@ you'll see the list of required overrides, which we will populate for finetuning
on WMT in the updated launch command here:

```sh
python -m t5x.train \
python -m t5x.train_unfragmented \
--gin_file=t5x/examples/t5/t5_1_1/small.gin \
--gin_file=t5x/configs/runs/finetune.gin \
--gin.MIXTURE_OR_TASK_NAME=\"wmt_t2t_ende_v003\" \
Expand All @@ -379,7 +379,7 @@ is just such an example that allows you to exactly duplicate the previous launch
command simply by calling:

```sh
python -m t5x.train \
python -m t5x.train_unfragmented \
--gin_file=t5x/examples/t5/t5_1_1/examples/small_wmt_finetune.gin \
--gin.MODEL_DIR=\"/tmp/t5_1_1_small_finetune_gin\" \
--logtostderr
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/infer-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ cause issues), run the following on commandline:

```sh
INFER_OUTPUT_DIR="/tmp/model-infer/"
python -m t5x.infer \
python -m t5x.infer_unfragmented \
--gin_file=t5x/google/examples/flaxformer_t5/configs/examples/inference/t5_1_1_small_cbqa_natural_questions_tfexample.gin \
--gin.INFER_OUTPUT_DIR=\"${INFER_OUTPUT_DIR}\" \
--alsologtostderr
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/infer-seqio.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ cause issues), run the following on commandline:

```sh
INFER_OUTPUT_DIR="/tmp/model-infer/"
python -m t5x.infer \
python -m t5x.infer_unfragmented \
--gin_file=t5x/google/examples/flaxformer_t5/configs/examples/inference/t5_1_1_small_cbqa_natural_questions.gin \
--gin.INFER_OUTPUT_DIR=\"${INFER_OUTPUT_DIR}\" \
--alsologtostderr
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/pretrain.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ cause issues), run the following on commandline:

```sh
MODEL_DIR="/tmp/pretrain-model/"
python -m t5x.train \
python -m t5x.train_unfragmented \
--gin_file=t5x/examples/t5/t5_1_1/c4_pretrain_small.gin \
--gin.MODEL_DIR=\"${MODEL_DIR}\" \
--alsologtostderr
Expand Down
2 changes: 1 addition & 1 deletion t5x/notebooks/evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@
"\n",
"```\n",
"EVAL_OUTPUT_DIR=\"/tmp/eval-model/\"\n",
"python -m t5x.train \\\n",
"python -m t5x.train_unfragmented \\\n",
" --gin_file=${GIN_FILE_PATH} \\\n",
" --gin.EVAL_OUTPUT_DIR=\\\"${EVAL_OUTPUT_DIR}\\\" \\\n",
" --alsologtostderr\n",
Expand Down
2 changes: 1 addition & 1 deletion t5x/notebooks/inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@
"\n",
"```\n",
"INFER_OUTPUT_DIR=\"/tmp/inference-model/\"\n",
"python -m t5x.infer \\\n",
"python -m t5x.infer_unfragmented \\\n",
" --gin_file=${GIN_FILE_PATH} \\\n",
" --gin.INFER_OUTPUT_DIR=\\\"${INFER_OUTPUT_DIR}\\\" \\\n",
" --alsologtostderr\n",
Expand Down
1 change: 1 addition & 0 deletions t5x/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"""


# pylint: disable=g-import-not-at-top

import functools
Expand Down

0 comments on commit df64802

Please sign in to comment.