Skip to content

Commit 1c4ca32

Browse files
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.
1 parent 87e7cde commit 1c4ca32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)