Skip to content

Commit 0ae96ff

Browse files
authored
BIG Reorganize examples (#4213)
* Created using Colaboratory * [examples] reorganize files * remove run_tpu_glue.py as superseded by TPU support in Trainer * Bugfix: int, not tuple * move files around
1 parent cafa6a9 commit 0ae96ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1355
-1308
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ proc_data
132132
runs
133133
/runs_old
134134
/wandb
135-
examples/runs
135+
/examples/runs
136+
/examples/**/*.args
136137

137138
# data
138139
/data

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ pip install -r ./examples/requirements.txt
331331
export GLUE_DIR=/path/to/glue
332332
export TASK_NAME=MRPC
333333

334-
python ./examples/run_glue.py \
334+
python ./examples/text-classification/run_glue.py \
335335
--model_name_or_path bert-base-uncased \
336336
--task_name $TASK_NAME \
337337
--do_train \
@@ -357,7 +357,7 @@ Parallel training is a simple way to use several GPUs (but is slower and less fl
357357
```shell
358358
export GLUE_DIR=/path/to/glue
359359

360-
python ./examples/run_glue.py \
360+
python ./examples/text-classification/run_glue.py \
361361
--model_name_or_path xlnet-large-cased \
362362
--do_train \
363363
--do_eval \
@@ -382,7 +382,7 @@ On this machine we thus have a batch size of 32, please increase `gradient_accum
382382
This example code fine-tunes the Bert Whole Word Masking model on the Microsoft Research Paraphrase Corpus (MRPC) corpus using distributed training on 8 V100 GPUs to reach a F1 > 92.
383383

384384
```bash
385-
python -m torch.distributed.launch --nproc_per_node 8 ./examples/run_glue.py \
385+
python -m torch.distributed.launch --nproc_per_node 8 ./examples/text-classification/run_glue.py \
386386
--model_name_or_path bert-large-uncased-whole-word-masking \
387387
--task_name MRPC \
388388
--do_train \

docs/source/examples.md

-1
This file was deleted.

0 commit comments

Comments
 (0)