Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add to the gallery an example on a small language model #866

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def new_process_docstring(app, what, name, obj, options, lines):
nb_execution_allow_errors = False
nb_execution_excludepatterns = [
# slow examples
'nanolm.ipynb',
'cifar10_resnet.ipynb',
'adversarial_training.ipynb',
'reduce_on_plateau.ipynb',
Expand Down Expand Up @@ -296,6 +297,7 @@ def linkcode_resolve(domain, info):

intersphinx_mapping = {
'jax': ('https://jax.readthedocs.io/en/latest/', None),
'flax': ('https://flax.readthedocs.io/en/latest/', None),
}

source_suffix = ['.rst', '.md', '.ipynb']
17 changes: 17 additions & 0 deletions docs/gallery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,23 @@
<div class="sphx-glr-thumbnail-title">Adversarial training of CNN on MNIST.</div>
</div>


.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Character-level Transformer on Tiny Shakespeare.">

.. only:: html

.. image:: /images/examples/tiny_shakespeare.png
:alt: Character-level Transformer on Tiny Shakespeare

:doc:`_collections/examples/nanolm`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Character-level Transformer on Tiny Shakespeare.</div>
</div>

.. raw:: html

</div>
Expand Down
Binary file added docs/images/examples/tiny_shakespeare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading