Skip to content

Commit

Permalink
reverse order of import and backend steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pcoet committed Mar 17, 2024
1 parent 8347e6f commit b1cfa24
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions site/en/gemma/docs/get_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -148,48 +148,44 @@
{
"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"
},
"metadata": {},
"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"
},
"metadata": {},
"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 b1cfa24

Please sign in to comment.