Skip to content

Commit 190d722

Browse files
authored
Sync docs from Google3 to GitHub (google#278)
* Sync docs from Google3 to GitHub * Sync to cl/611157361
1 parent eab34f3 commit 190d722

File tree

4 files changed

+121
-63
lines changed

4 files changed

+121
-63
lines changed

site/en/gemma/docs/agile_classifiers.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
},
132132
"outputs": [],
133133
"source": [
134-
"!pip install keras keras-nlp"
134+
"!pip install -q -U keras-nlp\n",
135+
"!pip install -q -U keras"
135136
]
136137
},
137138
{
@@ -1089,7 +1090,7 @@
10891090
},
10901091
{
10911092
"cell_type": "code",
1092-
"execution_count": 1,
1093+
"execution_count": null,
10931094
"metadata": {
10941095
"id": "fMSDQtyTgeP0"
10951096
},

site/en/gemma/docs/distributed_tuning.ipynb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
" <a target=\"_blank\" href=\"https://www.kaggle.com/code/nilaychauhan/keras-gemma-distributed-finetuning-and-inference\"><img src=\"https://www.kaggle.com/static/images/logos/kaggle-logo-transparent-300.png\" height=\"32\" width=\"70\"/>Run in Kaggle</a>\n",
4545
" </td>\n",
4646
" <td>\n",
47-
" <a target=\"_blank\" href=\"https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/335\"><img src=\"https://ai.google.dev/images/cloud-icon.svg\" width=\"40\" />Open in Vertex AI</a>\n",
47+
" <a target=\"_blank\" href=\"https://console.cloud.google.com/vertex-ai/workbench/deploy-notebook?download_url=https://raw.githubusercontent.com/google/generative-ai-docs/main/site/en/gemma/docs/distributed_tuning.ipynb\"><img src=\"https://ai.google.dev/images/cloud-icon.svg\" width=\"40\" />Open in Vertex AI</a>\n",
4848
" </td>\n",
4949
" <td>\n",
5050
" <a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/gemma/docs/distributed_tuning.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
@@ -252,10 +252,13 @@
252252
}
253253
],
254254
"source": [
255-
"# Install Keras 3 last. See https://keras.io/getting_started/ for more details.\n",
256-
"!pip install -q tensorflow-cpu\n",
257-
"!pip install -q -U keras-nlp tensorflow-hub\n",
258-
"!pip install -q -U keras>=3"
255+
"!pip install -q -U keras-nlp\n",
256+
"# Work around an import error with tensorflow-hub. The library is not used.\n",
257+
"!pip install -q -U tensorflow-hub\n",
258+
"# Install tensorflow-cpu so tensorflow does not attempt to access the TPU.\n",
259+
"!pip install -q -U tensorflow-cpu\n",
260+
"# Install keras 3 last. See https://keras.io/getting_started for details.\n",
261+
"!pip install -q -U keras"
259262
]
260263
},
261264
{

site/en/gemma/docs/get_started.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/gemma/docs/get_started.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
4646
" </td>\n",
4747
" <td>\n",
48-
" <a target=\"_blank\" href=\"https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/335\"><img src=\"https://ai.google.dev/images/cloud-icon.svg\" width=\"40\" />Open in Vertex AI</a>\n",
48+
" <a target=\"_blank\" href=\"https://console.cloud.google.com/vertex-ai/workbench/deploy-notebook?download_url=https://raw.githubusercontent.com/google/generative-ai-docs/main/site/en/gemma/docs/get_started.ipynb\"><img src=\"https://ai.google.dev/images/cloud-icon.svg\" width=\"40\" />Open in Vertex AI</a>\n",
4949
" </td>\n",
5050
" <td>\n",
5151
" <a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/gemma/docs/get_started.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",

0 commit comments

Comments
 (0)