Skip to content

Commit e8dc8c5

Browse files
PaliGemma model Code Correction: Model Name & Documentation Link (#544)
* PaliGemma Code Correction: Model Name & Documentation Link Typo: Fixed the model name in the code - `paligemma = keras_hub.models.PaliGemmaCausalLM.from_preset("paligemma_3b_mix_224")` from "paligemma_3b_mix_224" to "pali_gemma_3b_mix_224" to correctly laod the model. Broken Link: Updated the URL for "PaliGemma prompt and system instructions" by replacing the existing URL with the https://ai.google.dev/gemma/docs/paligemma/prompt-system-instructions/##prompt_task_syntax. * Update inference-with-keras.ipynb Fixed problem with "View on" button from lint report --------- Co-authored-by: Joe Fernandez <[email protected]>
1 parent e94e728 commit e8dc8c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/en/gemma/docs/paligemma/inference-with-keras.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"\n",
5252
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
5353
"<td>\n",
54-
"<a target=\"_blank\" href=\"https://ai.google.dev/gemma/docs/paligemma/fine-tuning-paligemma\"><img src=\"https://ai.google.dev/static/site-assets/images/docs/notebook-site-button.png\" height=\"32\" width=\"32\" />View on ai.google.dev</a>\n",
54+
"<a target=\"_blank\" href=\"https://ai.google.dev/gemma/docs/paligemma/inference-with-keras\"><img src=\"https://ai.google.dev/static/site-assets/images/docs/notebook-site-button.png\" height=\"32\" width=\"32\" />View on ai.google.dev</a>\n",
5555
"</td>\n",
5656
"<td>\n",
5757
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/gemma/docs/paligemma/inference-with-keras.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
@@ -260,7 +260,7 @@
260260
},
261261
"outputs": [],
262262
"source": [
263-
"paligemma = keras_hub.models.PaliGemmaCausalLM.from_preset(\"paligemma_3b_mix_224\")\n",
263+
"paligemma = keras_hub.models.PaliGemmaCausalLM.from_preset(\"pali_gemma_3b_mix_224\")\n",
264264
"paligemma.summary()"
265265
]
266266
},
@@ -393,7 +393,7 @@
393393
"source": [
394394
"## Generate output\n",
395395
"\n",
396-
"After loading the model and creating utility methods, you can prompt the model with image and text data to generate a responses. PaliGemma models are trained with specific prompt syntax for specific tasks, such as `answer`, `caption`, and `detect`. For more information about PaliGemma prompt task syntax, see [PaliGemma prompt and system instructions](https://ai.google.com/gemma/docs/paligemma/prompt-system-instructions##prompt_task_syntax).\n",
396+
"After loading the model and creating utility methods, you can prompt the model with image and text data to generate a responses. PaliGemma models are trained with specific prompt syntax for specific tasks, such as `answer`, `caption`, and `detect`. For more information about PaliGemma prompt task syntax, see [PaliGemma prompt and system instructions](https://ai.google.dev/gemma/docs/paligemma/prompt-system-instructions##prompt_task_syntax).\n",
397397
"\n",
398398
"Prepare an image for use in a generation prompt by using the following code to load a test image into an object:"
399399
]

0 commit comments

Comments
 (0)