-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload vertexai multimodal example notebook
- Loading branch information
Showing
11 changed files
with
424 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
examples/vertexai/data/input/vertexai-multimodal-example.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"id": 0, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": ["describe what is happening in this image", {"type": "image", "media": "pantani_giro.jpg"}]}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}} | ||
{"id": 1, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": [{"type": "image", "media": "mortadella.jpg"}, "what is this?"]}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}} | ||
{"id": 2, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": ["what is in this image?", {"type": "image", "media": "pantani_giro.jpg"}]}, {"role": "model", "parts": "This is image shows a group of cyclists."}, {"role": "user", "parts": "are there any notable cyclists in this image? what are their names?"}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...rtexai-multimodal-example/21-10-2024-11-56-49-completed-vertexai-multimodal-example.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"id": 1, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": [{"type": "image", "media": "mortadella.jpg"}, "what is this?"]}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}, "timestamp_sent": "21-10-2024-11-56-54", "response": "That's **Mortadella**. Specifically, the image shows whole and sliced mortadella, a large Italian sausage known for its distinctive marbling of fat throughout the meat. The string tied around it is a common presentation.\n", "safety_attributes": {"HARM_CATEGORY_HATE_SPEECH": "1", "HARM_CATEGORY_DANGEROUS_CONTENT": "1", "HARM_CATEGORY_HARASSMENT": "1", "HARM_CATEGORY_SEXUALLY_EXPLICIT": "1", "blocked": "[False, False, False, False]", "finish_reason": "STOP"}} | ||
{"id": 0, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": ["describe what is happening in this image", {"type": "image", "media": "pantani_giro.jpg"}]}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}, "timestamp_sent": "21-10-2024-11-56-51", "response": "Here's a description of the image:\n\nThe photo depicts a group of professional cyclists in a road race, riding closely together in a peloton.\u00a0\n\n\nHere's a breakdown of the scene:\n\n* **The Setting:** The cyclists are riding alongside a low stone wall, with a metal fence visible behind it. There's some greenery beyond the fence, suggesting a roadside or urban setting.\n\n* **The Cyclists:** The cyclists are wearing brightly colored, highly visible cycling jerseys representing different teams. One cyclist is easily identifiable by his pink jersey, possibly indicating a leader's position or stage win. The others are in various colors, including yellow, red, green, and blue. Their concentration is evident in their postures.\n\n* **The Bicycles:** The bicycles are sleek racing bikes with thin tires. The bikes all appear to be high-end racing models.\n\n* **The Action:** The cyclists are clearly in the middle of a race, riding at a high pace. Their close proximity and intense focus suggests a competitive moment in the race. There's a sense of urgency and speed in the image.\n\n\nThe overall impression is one of intense athletic competition and the energy of a cycling road race. The colors of the jerseys and the setting are vivid and sharp.\n", "safety_attributes": {"HARM_CATEGORY_HATE_SPEECH": "1", "HARM_CATEGORY_DANGEROUS_CONTENT": "1", "HARM_CATEGORY_HARASSMENT": "1", "HARM_CATEGORY_SEXUALLY_EXPLICIT": "1", "blocked": "[False, False, False, False]", "finish_reason": "STOP"}} | ||
{"id": 2, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": ["what is in this image?", {"type": "image", "media": "pantani_giro.jpg"}]}, {"role": "model", "parts": "This is image shows a group of cyclists."}, {"role": "user", "parts": "are there any notable cyclists in this image? what are their names?"}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}, "timestamp_sent": "21-10-2024-11-56-56", "response": "That's a photo from the 1992 Giro d'Italia. The most prominent cyclist in the image is **Claudio Chiappucci** in the pink jersey. He's leading the pack.\n\nWhile it's difficult to definitively identify all the other riders with certainty from this angle and image quality, identifying other notable cyclists in this particular snapshot would require more information or a higher-resolution image.\n", "safety_attributes": {"HARM_CATEGORY_HATE_SPEECH": "1", "HARM_CATEGORY_DANGEROUS_CONTENT": "1", "HARM_CATEGORY_HARASSMENT": "1", "HARM_CATEGORY_SEXUALLY_EXPLICIT": "1", "blocked": "[False, False, False, False]", "finish_reason": "STOP"}} |
3 changes: 3 additions & 0 deletions
3
...t/vertexai-multimodal-example/21-10-2024-11-56-49-input-vertexai-multimodal-example.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"id": 0, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": ["describe what is happening in this image", {"type": "image", "media": "pantani_giro.jpg"}]}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}} | ||
{"id": 1, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": [{"type": "image", "media": "mortadella.jpg"}, "what is this?"]}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}} | ||
{"id": 2, "api": "vertexai", "model_name": "gemini-1.5-flash-002", "prompt": [{"role": "user", "parts": ["what is in this image?", {"type": "image", "media": "pantani_giro.jpg"}]}, {"role": "model", "parts": "This is image shows a group of cyclists."}, {"role": "user", "parts": "are there any notable cyclists in this image? what are their names?"}], "parameters": {"candidate_count": 1, "temperature": 1, "max_output_tokens": 1000}} |
1 change: 1 addition & 0 deletions
1
...utput/vertexai-multimodal-example/21-10-2024-11-56-49-log-vertexai-multimodal-example.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
21-10-2024, 11:57: Completed experiment: vertexai-multimodal-example.jsonl! Experiment processing time: 11.011 seconds, Average time per query: 3.67 seconds |
Oops, something went wrong.