[docs] refine the doc for train with a script (#33423)

* add xpu note

* add one more case

* add more

* Update docs/source/en/run_scripts.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
This commit is contained in:
Fanli Lin
2024-09-13 01:16:12 +08:00
committed by GitHub
parent 5c6257d1fc
commit a05ce550bf
3 changed files with 6 additions and 6 deletions

View File

@@ -205,7 +205,7 @@ At this point, only three steps remain:
... save_total_limit=3,
... num_train_epochs=4,
... predict_with_generate=True,
... fp16=True,
... fp16=True, #change to bf16=True for XPU
... push_to_hub=True,
... )

View File

@@ -212,7 +212,7 @@ At this point, only three steps remain:
... save_total_limit=3,
... num_train_epochs=2,
... predict_with_generate=True,
... fp16=True,
... fp16=True, #change to bf16=True for XPU
... push_to_hub=True,
... )