[docs] minor doc fix (#36127)

fix
This commit is contained in:
Fanli Lin
2025-02-12 02:31:12 +08:00
committed by GitHub
parent 1b57de8dcf
commit 9b69986e8a

View File

@@ -21,7 +21,7 @@ limitations under the License.
`run_swag` allows you to fine-tune any model from our [hub](https://huggingface.co/models) (as long as its architecture as a `ForMultipleChoice` version in the library) on the SWAG dataset or your own csv/jsonlines files as long as they are structured the same way. To make it works on another dataset, you will need to tweak the `preprocess_function` inside the script. `run_swag` allows you to fine-tune any model from our [hub](https://huggingface.co/models) (as long as its architecture as a `ForMultipleChoice` version in the library) on the SWAG dataset or your own csv/jsonlines files as long as they are structured the same way. To make it works on another dataset, you will need to tweak the `preprocess_function` inside the script.
```bash ```bash
python examples/multiple-choice/run_swag.py \ python examples/pytorch/multiple-choice/run_swag.py \
--model_name_or_path FacebookAI/roberta-base \ --model_name_or_path FacebookAI/roberta-base \
--do_train \ --do_train \
--do_eval \ --do_eval \