Skip to content
Draft
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
13 changes: 3 additions & 10 deletions gfmstudio/fine_tuning/deployment/k8-hpo-tuning-jobs.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@ spec:
initContainers:
- name: copy-config
image: busybox
command:
- sh
- -c
- |
set -e
cp /config/config-train.yaml /app/config/
mkdir -p /data/output
chmod -R g+rwX /data/output
command: ['sh', 'c', 'cp /config/config-train.yaml /app/config/']
volumeMounts:
- name: config-volume
mountPath: /config
Expand Down Expand Up @@ -90,7 +83,7 @@ spec:
mountPath: /ftuning
- name: dshm
mountPath: /dev/shm
command: ["/bin/sh"]
command: ["/bin/bash"]
args: ["-c", "/ftuning/ftuning.sh"]
env:
- name: HF_HOME
Expand Down Expand Up @@ -135,7 +128,7 @@ metadata:
app: ${FTUNE_NAME}
data:
ftuning.sh: |
#!/bin/sh
#!/bin/bash
set -e

# Function to handle errors
Expand Down
6 changes: 5 additions & 1 deletion pipelines/Dockerfile.terratorch
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ WORKDIR /terratorch
RUN pip install --upgrade pip && \
pip install --timeout=7200 \
git+https://github.com/terrastackai/terratorch.git@v1.2.3pre1 \
terratorch-iterate \
'mlflow>=1.0.0' \
'diffusers<=0.34.0' \
ipython \
Expand All @@ -68,7 +69,8 @@ RUN pip install --upgrade pip && \
tenacity \
pyyaml \
opentelemetry-distro \
opentelemetry-exporter-otlp
opentelemetry-exporter-otlp \
ray

# ################################################################################
# # Stage 3: Final Production Image
Expand All @@ -90,6 +92,8 @@ RUN mkdir -p \
/.local \
/.jupyter \
/geotunes/tune-tasks \
# Required by terratorch-iterate
/geotunes/tune-tasks/job_logs \
/data/output \
/opt/app-root/src \
/opt/app-root/src/lightning_logs \
Expand Down
Loading