Skip to content

Commit

Permalink
reverse order of import and backend steps (google#306)
Browse files Browse the repository at this point in the history
* reverse order of import and backend steps

* formattted notebook
  • Loading branch information
pcoet authored Mar 18, 2024
1 parent 634fe4b commit 0ee1ffe
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions site/en/gemma/docs/get_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -148,48 +148,48 @@
{
"cell_type": "markdown",
"metadata": {
"id": "FX47AUYrXwLK"
"id": "Pm5cVOFt5YvZ"
},
"source": [
"### Import packages\n",
"### Select a backend\n",
"\n",
"Import Keras and KerasNLP."
"Keras is a high-level, multi-framework deep learning API designed for simplicity and ease of use. [Keras 3](https://keras.io/keras_3) lets you choose the backend: TensorFlow, JAX, or PyTorch. All three will work for this tutorial."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "ww83zI9ToPso"
"id": "7rS7ryTs5wjf"
},
"outputs": [],
"source": [
"import keras\n",
"import keras_nlp"
"import os\n",
"\n",
"os.environ[\"KERAS_BACKEND\"] = \"jax\" # Or \"tensorflow\" or \"torch\"."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "Pm5cVOFt5YvZ"
"id": "599765c72722"
},
"source": [
"### Select a backend\n",
"### Import packages\n",
"\n",
"Keras is a high-level, multi-framework deep learning API designed for simplicity and ease of use. [Keras 3](https://keras.io/keras_3) lets you choose the backend: TensorFlow, JAX, or PyTorch. All three will work for this tutorial."
"Import Keras and KerasNLP."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "7rS7ryTs5wjf"
"id": "f2fa267d75bc"
},
"outputs": [],
"source": [
"import os\n",
"\n",
"os.environ[\"KERAS_BACKEND\"] = \"jax\" # Or \"tensorflow\" or \"torch\"."
"import keras\n",
"import keras_nlp"
]
},
{
Expand Down

0 comments on commit 0ee1ffe

Please sign in to comment.