2 features hooked up to check out Gemma 4 1. does ...
# ml-and-mlops-questions
f
2 features hooked up to check out Gemma 4 1. does vision powered photo search and describes images 2. you can put in search criteria , it will scan the folder , and provide the images that match How we connect to Gemma 4: 1. GCP Project — created
gemma4-smart-gallery
on Google Cloud 2. Vertex AI MaaS — Gemma 4 26B A4B IT is hosted by Google as a managed API service, confirmed in Model Garden 3. Auth —
gcloud auth application-default login
provides credentials locally via Application Default Credentials (ADC) 4. SDK —
google-genai
(Google's modern Python SDK), initialized with: 5. 6.
genai.Client(vertexai=True, project=GCP_PROJECT, location="global")
7. Model ID —
google/gemma-4-26b-a4b-it-maas
8. Vision call — image bytes encoded via
Part.from_bytes()
, sent alongside a text prompt in a single
generate_content()
call
🦜 1