You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"<a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/gemma/docs/paligemma/fine-tuning-paligemma.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
61
61
"</td>\n",
62
-
"</table>\n"
63
-
]
64
-
},
65
-
{
66
-
"cell_type": "markdown",
67
-
"metadata": {
68
-
"id": "wR53lePHuiP-"
69
-
},
70
-
"source": [
62
+
"</table>\n",
63
+
"\n",
71
64
"This notebook shows how to fine-tune [PaliGemma](https://ai.google.dev/gemma/docs/paligemma) on a vision-language task with [JAX](https://jax.readthedocs.io/en/latest/index.html). *Fine-tuning* is a process that can improve your model's performance on specific tasks or help the model adhere to specific output requirements when instructions aren't sufficient and you have a set of examples that demonstrate the outputs you want. Gemma-based models like PaliGemma require fine-tuning to produce expected results.\n",
72
65
"\n",
73
66
"### What's in this notebook\n",
@@ -128,7 +121,8 @@
128
121
"\n",
129
122
"To generate a Kaggle API key, open your [**Settings** page in Kaggle](https://www.kaggle.com/settings) and click **Create New Token**. This triggers the download of a `kaggle.json` file containing your API credentials.\n",
130
123
"\n",
131
-
"Then, in Colab, select **Secrets** (🔑) in the left pane and add your Kaggle username and Kaggle API key. Store your username under the name `KAGGLE_USERNAME` and your API key under the name `KAGGLE_KEY`.\n"
124
+
"Then, in Colab, select **Secrets** (🔑) in the left pane and add your Kaggle username and Kaggle API key. Store your username under the name `KAGGLE_USERNAME` and your API key under the name `KAGGLE_KEY`.\n",
125
+
"\n"
132
126
]
133
127
},
134
128
{
@@ -172,7 +166,11 @@
172
166
"# vars as appropriate or make your credentials available in ~/.kaggle/kaggle.json\n",
"PaliGemma includes several model variations. For this tutorial, you'll use the base [JAX/FLAX PaliGemma 3B weight model](https://www.kaggle.com/models/google/paligemma/jax/paligemma-3b-pt-224).\n",
294
292
"\n",
295
-
"Download the `float16` version of the model checkpoint from Kaggle by running the following code. This process takes several minutes to complete."
293
+
"Download the model checkpoint from Kaggle by running the following code. This process takes several minutes to complete."
0 commit comments