Skip to content

Replace Llama with Gemma 4 maas - #171

Merged
NardinNakhla merged 6 commits into
mainfrom
dev/gemma-4-maas
Oct 19, 2026
Merged

NardinNakhla merged 6 commits into
mainfrom
dev/gemma-4-maas

Conversation

@Param-Raval

Copy link
Copy Markdown
Collaborator

Replace the Llama model with Gemma 4 26B A4B IT to ensure compatibility after Oct 21st. Changed variables, fixed Llama guard incompatibility, and added a statement to the prompt to ensure web searching.

Environment variable changes:
LLAMA_MODEL_NAME=google/gemma-4-26b-a4b-it-maas
VERTEX_AI_LOCATION=global

Param Raval and others added 4 commits October 16, 2026 11:47
Gemma 4 on Vertex MaaS is served only from the global location, whose
endpoint host has no region prefix, so build the base URL accordingly.
Only send the Llama Guard safety settings to Llama models; Gemma rejects
the field with a 400 INVALID_ARGUMENT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gemma 4 answered READY on the first turn without ever invoking search, so
every analysis ran with zero sources. With this instruction it searches on
every claim (English and French); Llama 3.3 behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
deploy.sh had drifted from how production is actually deployed:
- push to the regional Artifact Registry the cluster pulls from, not gcr.io
- pass the commit-tagged image to Terraform via TF_VAR_image_uri
- refuse to deploy uncommitted or unpushed commits (tag must match code)
- show the Terraform plan and ask before applying, instead of -auto-approve
- only log in when not already authenticated; fail fast on missing vars
- wait for rollout with a timeout and check /v1/health afterwards

Terraform rewrote two resources on every apply:
- Cloud SQL: declare edition = ENTERPRISE so it stops sending an update
- Ingress: ignore the pre-shared-cert annotation GKE manages itself

Keep env, .env*, service-account.json and saved plans out of the image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NardinNakhla NardinNakhla self-assigned this Oct 19, 2026
Param Raval and others added 2 commits October 19, 2026 11:55
…check

- DEPLOY_TAG=<sha> redeploys an existing image with the current Terraform
  config instead of checking out (and running) an old copy of this script
- skip the build when the commit's image already exists
- refuse to build from a checkout whose shell scripts have CRLF endings
- warn before deploying a commit that is not on origin/main
- fix the plan-file cleanup path after leaving the Terraform directory

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NardinNakhla
NardinNakhla merged commit 609131b into main Oct 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants