[Tune] Transformer blog example (#9789)

Co-authored-by: Kai Fricke <kai@anyscale.com>
This commit is contained in:
Amog Kamsetty
2020-08-04 22:05:01 -07:00
committed by GitHub
co-authored by Kai Fricke
parent ead8b86372
commit 5af7d24f66
15 changed files with 443 additions and 0 deletions
+1
View File
@@ -67,6 +67,7 @@ extensions = [
'sphinx_tabs.tabs',
'sphinx-jsonschema',
'sphinx_gallery.gen_gallery',
'sphinxemoji.sphinxemoji',
'sphinx_copybutton',
'versionwarning.extension',
]
+5
View File
@@ -56,6 +56,11 @@ LightGBM Example
- :doc:`/tune/examples/lightgbm_example`: Trains a basic LightGBM model with Tune with the function-based API and a LightGBM callback.
|:hugging_face:| Huggingface Transformers Example
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :doc:`/tune/examples/pbt_transformers`: Fine-tunes a Huggingface transformer with Tune Population Based Training.
Contributed Examples
~~~~~~~~~~~~~~~~~~~~
@@ -0,0 +1,8 @@
:orphan:
pbt_transformers_example
~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: /../../python/ray/tune/examples/pbt_transformers/pbt_transformers.py
.. literalinclude:: /../../python/ray/tune/examples/pbt_transformers/trainer.py
.. literalinclude:: /../../python/ray/tune/examples/pbt_transformers/utils.py