Skip to content

chore(deps): update ollama to 0.40.12 #2395

Closed

Description

@dan-petty

Problem or Motivation

Every Ollama tier in k8s/llm/profiles/ollama-profiles.yaml runs ollama/ollama:0.34.4, in its ollama container and in its own-model-directory init container. Ollama 0.34.4 cannot run embeddinggemma-2 on Linux. Ollama 0.40.0 added that model for Apple MLX only, and 0.40.4 added multimodal embedding models through llama-server, which is the Linux path. The current release is 0.40.12 (2026-10-27). An evaluation of embeddinggemma-2 as the RAG embedding model needs a tier that can run it.

Proposed Solution & Architectural Design

  • Set the image of each ollama container and each own-model-directory init container to ollama/ollama:0.40.12.
  • Add a spec and an invariant test: every Ollama tier runs one Ollama release, and that release is 0.40.4 or later.
  • Update the knowledge-base fact that cites the 0.34.4 scheduler source.

Checked on 2026-10-28 with temporary pods of ollama/ollama:0.40.12 (same security context, models read-only or in an emptyDir) on the Quadro P6000 (compute 6.1) and Tesla PG500-216 (compute 7.0) nodes:

  • Both GPUs are found through the cuda_v12 libraries. cuda_v13 skips compute 6.1, and the driver (580) meets the 570 minimum that 0.34.4 also had.
  • /api/tags lists the same models as the live 0.34.4 tier. With the same OLLAMA_KV_CACHE_TYPE, qwen3-embedding:0.6b vectors from 0.40.12 have a cosine of 0.9995 to 0.9997 against 0.34.4, so the Qdrant index stays valid.
  • embeddinggemma-2:270m and :740m pull and run on both GPUs: 768 dimensions, no NaN values, GPU against CPU cosine 0.9999. The text vectors of the two tags are identical.
  • Source of v0.40.12: the background model migration of 0.40.2 stays disabled (server/routes.go, PR server: skip local model compatibility migration ollama/ollama#18908), so no model is copied on disk. Every OLLAMA_* variable that the tiers set is still read. llama-server gets the environment of Ollama, so LLAMA_ARG_CACHE_RAM still applies. OLLAMA_NO_CLOUD stops the new model-recommendations request before it is sent.
  • Rollback: 0.40.12 reads the existing manifests directory and writes new pulls to manifests-v2. A return to 0.34.4 keeps every current model, but 0.34.4 does not see a model pulled under 0.40.12.

Target Subsystem

Kubernetes manifests (k8s/llm/profiles/).

Existing Tool Considered

The upstream Ollama release and its official image cover the need. The change builds no code. Renovate's kubernetes manager matches k8s/ (#2323), but it has opened no pull request for ollama/ollama.

Activity

  1. added
    source/agent
    type/chore
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/chore. The title uses the chore(deps) prefix and the change is a dependency version bump in manifests.
    • Priority: P2-Medium. It unblocks a planned embedding model evaluation but the current setup still works.
    • Value: Medium. It enables embeddinggemma-2 evaluation and keeps the image current, but does not fix a broken path.
    • Effort: Low. The change is a tag update in YAML, one invariant test, and one doc line, all verified in the body.
    • Related: fix(llm): the embedding runner on ollama-48gib-slow loads with the context 32768, not the 8192 that the gateway sends #2089, which asks for a different change. Both touch the Ollama tiers and embedding models, but #2089 fixes a context-size bug while this candidate bumps the image version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/chore

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions