Skip to content

Commit 76d697c

Browse files
emmanuel-ferdmanpatrick-kidger
authored andcommitted
Update examples
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent d3d4eb9 commit 76d697c

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

docs/examples/bert.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"\n",
1313
"We demonstrate how to train it (to ~60% accuracy), or how to load some pretrained weights (to ~80% accuracy).\n",
1414
"\n",
15-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/bert.ipynb).\n",
15+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/bert.ipynb).\n",
1616
"\n",
1717
"Authors: [Jannis Bulian](mailto:jbulian@google.com), [Jasmijn Bastings](mailto:bastings@google.com)\n",
1818
"\n",
@@ -514,7 +514,7 @@
514514
"\n",
515515
"Here we initialize the model with the official parameters of Tiny-BERT, i.e. a 2-layer BERT model with a hidden size of 128.\n",
516516
"\n",
517-
"In this case, we assume that we've downloaded the [checkpoint](https://github.com/patrick-kidger/equinox/blob/main/examples/bert_checkpoint.eqx) provided in the examples directory. Initializing the model with pretrained weights will give you much better training performance."
517+
"In this case, we assume that we've downloaded the [checkpoint](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/bert_checkpoint.eqx) provided in the examples directory. Initializing the model with pretrained weights will give you much better training performance."
518518
]
519519
},
520520
{
@@ -556,7 +556,7 @@
556556
"outputs": [],
557557
"source": [
558558
"# Download the checkpoint from\n",
559-
"# https://github.com/patrick-kidger/equinox/blob/main/examples/bert_checkpoint.eqx\n",
559+
"# https://github.com/patrick-kidger/equinox/blob/main/docs/examples/bert_checkpoint.eqx\n",
560560
"classifier_chkpt = eqx.tree_deserialise_leaves(\"bert_checkpoint.eqx\", classifier)"
561561
]
562562
},

docs/examples/frozen_layer.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"\n",
1010
"In this example, we demonstrate how to only train some parameters and freeze the rest.\n",
1111
"\n",
12-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/frozen_layer.ipynb)."
12+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/frozen_layer.ipynb)."
1313
]
1414
},
1515
{

docs/examples/init_apply.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"\n",
1414
"Equinox can be made to fit with this style very easily, like so.\n",
1515
"\n",
16-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/init_apply.ipynb)."
16+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/init_apply.ipynb)."
1717
]
1818
},
1919
{

docs/examples/mnist.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"\n",
1616
"The JAX ecosystem is build around a number of libraries, that each do a single thing. So in addition to Equinox (for model building), this example also uses [Optax](https://github.com/deepmind/optax) to train the network, and [jaxtyping](https://github.com/google/jaxtyping) to provide type annotations.\n",
1717
"\n",
18-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/mnist.ipynb).\n",
18+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/mnist.ipynb).\n",
1919
"\n",
2020
"!!! FAQ \"What's the difference between JAX and Equinox?\"\n",
2121
"\n",

docs/examples/score_based_diffusion.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"\n",
2828
"- Uses an [MLP-Mixer](https://arxiv.org/abs/2105.01601) to parameterise the score model $s_\\theta$. ([See here](./unet.ipynb) for a U-Net implementation that could be substituted.)\n",
2929
"\n",
30-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/score_based_diffusion.ipynb).\n",
30+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/score_based_diffusion.ipynb).\n",
3131
"\n",
3232
"!!! warning\n",
3333
"\n",

docs/examples/stateful.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"\n",
1414
"See also the [stateful API reference](../api/nn/stateful.md).\n",
1515
"\n",
16-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/stateful.ipynb)."
16+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/stateful.ipynb)."
1717
]
1818
},
1919
{

docs/examples/train_rnn.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"Here, we'll train an RNN to classify clockwise vs anticlockwise spirals.\n",
1313
"\n",
14-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/train_rnn.ipynb)."
14+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/train_rnn.ipynb)."
1515
]
1616
},
1717
{

docs/examples/unet.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"This version is intended for use in a [score-based diffusion](score_based_diffusion.ipynb), so it accepts a `t` argument.\n",
1313
"\n",
14-
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/examples/unet.ipynb)\n",
14+
"This example is available as a Jupyter notebook [here](https://github.com/patrick-kidger/equinox/blob/main/docs/examples/unet.ipynb)\n",
1515
"\n",
1616
"Author: Ben Walker ([https://github.com/Benjamin-Walker](https://github.com/Benjamin-Walker))"
1717
]

0 commit comments

Comments
 (0)