[Docs] Add language identifiers to fenced code blocks (#28955)

Add language identifiers to code blocks
This commit is contained in:
Klaus Hipp
2024-02-12 19:48:31 +01:00
committed by GitHub
parent c617f988f8
commit fe3df9d5b3
66 changed files with 137 additions and 137 deletions

View File

@@ -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 \

View File

@@ -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 \

View File

@@ -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 \