[Docs] Add language identifiers to fenced code blocks (#28955)
Add language identifiers to code blocks
This commit is contained in:
@@ -41,7 +41,7 @@ can also be used by passing the name of the TPU resource with the `--tpu` argume
|
||||
This script trains a masked language model.
|
||||
|
||||
### Example command
|
||||
```
|
||||
```bash
|
||||
python run_mlm.py \
|
||||
--model_name_or_path distilbert-base-cased \
|
||||
--output_dir output \
|
||||
@@ -50,7 +50,7 @@ python run_mlm.py \
|
||||
```
|
||||
|
||||
When using a custom dataset, the validation file can be separately passed as an input argument. Otherwise some split (customizable) of training data is used as validation.
|
||||
```
|
||||
```bash
|
||||
python run_mlm.py \
|
||||
--model_name_or_path distilbert-base-cased \
|
||||
--output_dir output \
|
||||
@@ -62,7 +62,7 @@ python run_mlm.py \
|
||||
This script trains a causal language model.
|
||||
|
||||
### Example command
|
||||
```
|
||||
```bash
|
||||
python run_clm.py \
|
||||
--model_name_or_path distilgpt2 \
|
||||
--output_dir output \
|
||||
@@ -72,7 +72,7 @@ python run_clm.py \
|
||||
|
||||
When using a custom dataset, the validation file can be separately passed as an input argument. Otherwise some split (customizable) of training data is used as validation.
|
||||
|
||||
```
|
||||
```bash
|
||||
python run_clm.py \
|
||||
--model_name_or_path distilgpt2 \
|
||||
--output_dir output \
|
||||
|
||||
@@ -45,7 +45,7 @@ README, but for more information you can see the 'Input Datasets' section of
|
||||
[this document](https://www.tensorflow.org/guide/tpu).
|
||||
|
||||
### Example command
|
||||
```
|
||||
```bash
|
||||
python run_qa.py \
|
||||
--model_name_or_path distilbert-base-cased \
|
||||
--output_dir output \
|
||||
|
||||
@@ -36,7 +36,7 @@ may not always be what you want, especially if you have more than two fields!
|
||||
|
||||
Here is a snippet of a valid input JSON file, though note that your texts can be much longer than these, and are not constrained
|
||||
(despite the field name) to being single grammatical sentences:
|
||||
```
|
||||
```json
|
||||
{"sentence1": "COVID-19 vaccine updates: How is the rollout proceeding?", "label": "news"}
|
||||
{"sentence1": "Manchester United celebrates Europa League success", "label": "sports"}
|
||||
```
|
||||
@@ -69,7 +69,7 @@ README, but for more information you can see the 'Input Datasets' section of
|
||||
[this document](https://www.tensorflow.org/guide/tpu).
|
||||
|
||||
### Example command
|
||||
```
|
||||
```bash
|
||||
python run_text_classification.py \
|
||||
--model_name_or_path distilbert-base-cased \
|
||||
--train_file training_data.json \
|
||||
@@ -101,7 +101,7 @@ README, but for more information you can see the 'Input Datasets' section of
|
||||
[this document](https://www.tensorflow.org/guide/tpu).
|
||||
|
||||
### Example command
|
||||
```
|
||||
```bash
|
||||
python run_glue.py \
|
||||
--model_name_or_path distilbert-base-cased \
|
||||
--task_name mnli \
|
||||
|
||||
Reference in New Issue
Block a user