Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions functions/compose-model-cache/function/fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ def _namespace(meta: metav1.ObjectMeta | None) -> str:
# name is a cross-function contract with it.
_NS_PREFIX = "mp"

# Hydration container. python:3.11-slim has pip; we install huggingface_hub
# at runtime. A Modelplane-owned image with the tool preinstalled is a
# follow-up (#115).
HYDRATION_IMAGE = "python:3.11-slim"
# Hydration container. It has pip; we install huggingface_hub at runtime. A
# Modelplane-owned image with the tool preinstalled is a follow-up (#115).
#
# Pinned by digest to an image whose pip (26.2.2) distrusts the compromised
# eMudhra intermediate CAs. Under a bare tag, a node that had already pulled an
# older image would keep running it.
HYDRATION_IMAGE = "python:3.13-slim@sha256:57b29a7c050c4e679e4bea572e14b3965cf4b5839de2da49d55e49ffc4024f39"
HYDRATION_MOUNT = "/mnt/artifact"

# ttlSecondsAfterFinished governs how long the completed Job (and its
Expand Down
2 changes: 1 addition & 1 deletion functions/compose-model-cache/tests/test_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _job_object(*, provider_config: str, command: str, env: list[dict]) -> fnv1.
"containers": [
{
"name": "hydrate",
"image": "python:3.11-slim",
"image": "python:3.13-slim@sha256:57b29a7c050c4e679e4bea572e14b3965cf4b5839de2da49d55e49ffc4024f39",
"command": ["/bin/sh", "-c", command],
"env": env,
"volumeMounts": [{"name": "artifact", "mountPath": "/mnt/artifact"}],
Expand Down
Loading