Expand a bit the presentation of examples (#10799)

* Expand a bit the presentation of examples

* Apply suggestions from code review

Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>

* Address review comments

Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
This commit is contained in:
Sylvain Gugger
2021-03-19 10:06:08 -04:00
committed by GitHub
parent fd1d9f1ab8
commit 946400fb68
6 changed files with 18 additions and 6 deletions

View File

@@ -18,7 +18,9 @@ limitations under the License.
Based on the script [`run_swag.py`]().
#### Fine-tuning on SWAG
## PyTorch script: fine-tuning on SWAG
`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
python examples/multiple-choice/run_swag.py \