Skip to content

Commit b2ca906

Browse files
author
David Thrower
committed
Added basic Docker build and smoke test
1 parent e1d98e6 commit b2ca906

File tree

3 files changed

+45
-4
lines changed

3 files changed

+45
-4
lines changed

.github/workflows/automerge.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Python application
66
on:
77
push:
88

9-
branches: [ "main", "307-tiny-stories-96-seq-len-hpo-run-from-305" ]
9+
branches: [ "main", "309-from-307-dockerize-the-best-run-from-hpo-study" ]
1010

1111

1212
permissions:
@@ -35,12 +35,17 @@ jobs:
3535
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3636
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3737
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38+
- name: Build Docker Image
39+
run: docker build -t davidt101/cerebros-llm:0001 .
40+
- name: Run Smoke Test
41+
run: docker run --rm davidt101/cerebros-llm:0001
42+
3843
# - name: Train Cerebros Composite LLM
3944
# run: python3 temp-train-a-generative-llm.py
4045
# timeout-minutes: 45
41-
- name: HPO on LLM with Cerebros
42-
run: python3 llm_train_hpo_script.py # python3 train_a_generative_llm.py
43-
timeout-minutes: 120
46+
# - name: HPO on LLM with Cerebros
47+
# run: python3 llm_train_hpo_script.py # python3 train_a_generative_llm.py
48+
# timeout-minutes: 120
4449
# - name: Test distributed random search Ames by running
4550
# run: python3 regression-example-ames-no-preproc.py
4651
# - name: Test distributed random search Ames by running - Val set

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
FROM tensorflow/tensorflow:2.20.0-gpu
3+
4+
# Add a volume to collect artifacts and cp -r [.] [path-to-folder]
5+
6+
WORKDIR /opt
7+
RUN git clone https://github.com/david-thrower/cerebros-core-algorithm-alpha.git
8+
RUN git checkout 309-from-307-dockerize-the-best-run-from-hpo-study
9+
RUN git fetch
10+
RUN git checkout 309-from-307-dockerize-the-best-run-from-hpo-study
11+
RUN git pull origin 309-from-307-dockerize-the-best-run-from-hpo-study
12+
WORKDIR /opt/cerebros-core-algorithm-alpha
13+
RUN pip install -r docker-requirements.txt
14+
RUN python train_a_generative_llm.py

docker-requirements.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# jax==0.5.3
2+
# jaxlib==0.5.3
3+
pendulum==3.0.0
4+
# tensorflow==2.20.0
5+
# numpy==2.3.5
6+
# pandas==2.3.3
7+
# pyvis==0.3.2
8+
# plotly==5.20.0
9+
matplotlib==3.10.7
10+
# imageio==2.37.2
11+
tqdm==4.67.1
12+
13+
## from cicd req
14+
15+
# tensorflow-text==2.19.0
16+
# keras-nlp==0.19.0
17+
scikit-learn==1.4.1.post1
18+
# tensorflow-hub==0.16.1
19+
transformers==4.54.0
20+
datasets==4.5.0
21+
# optuna==4.6.0
22+
mlflow==3.8.1

0 commit comments

Comments
 (0)