Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

feat: Zarf deploy-time GPU configuration #28

Merged
merged 41 commits into from
Feb 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
53a4cd2
GPU switch, single docker file
justinthelaw Jan 31, 2024
18834d8
workflow fix, GPU config
justinthelaw Jan 31, 2024
a6a4e26
Zarf package fixed for GPU
justinthelaw Jan 31, 2024
064a929
Merge branch 'main' into 23-deploy-time-gpu-configurability
justinthelaw Feb 1, 2024
8929e33
organize pyproject toml, py version
justinthelaw Feb 1, 2024
b4f378c
remove remaining -gpu traces
justinthelaw Feb 1, 2024
b434eba
added standardized workflows, for now
justinthelaw Feb 1, 2024
68cdb93
testing multi-platform workflow
justinthelaw Feb 1, 2024
a507753
cleaner workflow, phony makefile
justinthelaw Feb 1, 2024
7200293
dispatch added back in
justinthelaw Feb 1, 2024
4ad71a4
fix config, workflow; better Dockerfile and README
justinthelaw Feb 1, 2024
f44d186
better Dockerfile
justinthelaw Feb 1, 2024
7444b95
new simplified workflow file
justinthelaw Feb 1, 2024
318e4c9
better docker-publish make
justinthelaw Feb 1, 2024
a9c6e5c
restore workflows
justinthelaw Feb 1, 2024
51b3965
restore docker-push cmds
justinthelaw Feb 1, 2024
350da45
docker-run command
justinthelaw Feb 1, 2024
5f84196
gpus picks 1st device
justinthelaw Feb 1, 2024
b4c0735
missing GPU flag
justinthelaw Feb 1, 2024
3a0077e
missing cuda path
justinthelaw Feb 1, 2024
69db218
corrected cuda11.8 path
justinthelaw Feb 1, 2024
a2c424b
fixed env variables to link cudnn
gphorvath Feb 1, 2024
9001ffb
bumped the version of transformers
gphorvath Feb 1, 2024
814c2b9
new make cmds
justinthelaw Feb 1, 2024
23b69b7
removed .python-version
justinthelaw Feb 1, 2024
880e0ee
remove docker-publish
justinthelaw Feb 1, 2024
853e03d
remove REGISTRY from makefile
justinthelaw Feb 1, 2024
b3a3e33
remove patch
justinthelaw Feb 1, 2024
db857ee
remove GPU variable
justinthelaw Feb 1, 2024
1afd3ef
point to new skeleton
justinthelaw Feb 2, 2024
fe5ce9b
removed un-used script, zarf configs
justinthelaw Feb 2, 2024
451ffe0
corrected import-model url
justinthelaw Feb 2, 2024
81ebafb
resolved merge conflicts
justinthelaw Feb 2, 2024
aacf66d
better .gitignore
justinthelaw Feb 5, 2024
79e4d29
better README
justinthelaw Feb 5, 2024
1b5d1b9
removed unused make cmds
justinthelaw Feb 6, 2024
1f1019c
VERSION script change
justinthelaw Feb 6, 2024
8c65550
remove unused VARs
justinthelaw Feb 7, 2024
faef54f
python pin, .gitignore clean
justinthelaw Feb 7, 2024
94e90cc
make dev
justinthelaw Feb 8, 2024
39c8c30
new skeleton, tested
justinthelaw Feb 9, 2024
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
Prev Previous commit
Next Next commit
restore docker-push cmds
justinthelaw committed Feb 1, 2024
commit 51b39659beb16de35a26edce2975cafef02a1220
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MODEL_NAME ?= openai/whisper-base
REGISTRY ?= ghcr.io/defenseunicorns/leapfrogai/whisper
VERSION ?= $(shell git fetch --tags && git tag -l "*.*.*" | sort -V | tail -n 1 | sed -e 's/^v//')
ARCH ?= $(shell uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)

.PHONY: all

@@ -28,6 +29,12 @@ test:
dev:
python main.py

make docker-build:
docker build -t ghcr.io/defenseunicorns/leapfrogai/whisper:${VERSION}-${ARCH} --build-arg ARCH=${ARCH} .

make docker-push:
docker push ghcr.io/defenseunicorns/leapfrogai/whisper:${VERSION}-${ARCH}

docker-publish:
docker buildx install && \
if docker buildx ls | grep -q 'whisper'; then \