Skip to content

Commit f23a72e

Browse files
author
mo
committed
k8s: use local image cerebros-runner:pi (IfNotPresent); prepare max_len=1536, drop missing /data/train.jsonl input.
1 parent 077c29d commit f23a72e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

k8s-prepare-job.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ spec:
1111
spec:
1212
containers:
1313
- name: cerebros-prepare
14-
image: tensorflow/tensorflow:2.19.0-gpu
14+
image: cerebros-runner:pi
15+
imagePullPolicy: IfNotPresent
1516
command: ["/bin/sh"]
1617
args:
1718
- -c
@@ -28,7 +29,7 @@ spec:
2829
PIP_BREAK_SYSTEM_PACKAGES=1 python -m pip install --no-cache-dir --break-system-packages --ignore-installed blinker
2930
PIP_BREAK_SYSTEM_PACKAGES=1 python -m pip install --no-cache-dir --break-system-packages mlflow transformers
3031
python tokenize_first_runner.py --mode prepare \
31-
--input /data/train.jsonl --output /data/train_tokens.npz --max_len 128 \
32+
--output /data/train_tokens.npz --max_len 1536 \
3233
--tokenizer_checkpoint HuggingFaceTB/SmolLM3-3B
3334
env:
3435
- name: MLFLOW_TRACKING_URI

k8s-train-job.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ spec:
1111
spec:
1212
containers:
1313
- name: cerebros-train
14-
image: tensorflow/tensorflow:2.19.0-gpu
14+
image: cerebros-runner:pi
15+
imagePullPolicy: IfNotPresent
1516
command: ["/bin/sh"]
1617
args:
1718
- -c

0 commit comments

Comments
 (0)