Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d3c20e

Browse filesBrowse files
committed
Add CUDA docker image build to github actions
1 parent a02aa12 commit 6d3c20e
Copy full SHA for 6d3c20e

File tree

Expand file treeCollapse file tree

1 file changed

+38
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+38
-0
lines changed

‎.github/workflows/build-docker.yaml

Copy file name to clipboardExpand all lines: .github/workflows/build-docker.yaml
+38Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,41 @@ jobs:
3737
pull: true # always fetch the latest base images
3838
platforms: linux/amd64,linux/arm64 # build for both amd64 and arm64
3939
tags: ghcr.io/abetlen/llama-cpp-python:latest
40+
41+
docker-cuda:
42+
name: Build and push Docker CUDA image
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v3
47+
with:
48+
submodules: "true"
49+
50+
- name: Setup CUDA 12.1
51+
uses: Jimver/cuda-toolkit@v0.2.10
52+
id: cuda-toolkit
53+
with:
54+
cuda: '12.1.0'
55+
56+
- name: Set up QEMU
57+
uses: docker/setup-qemu-action@v2
58+
59+
- name: Set up Docker Buildx
60+
uses: docker/setup-buildx-action@v2
61+
62+
- name: Login to GitHub Container Registry
63+
uses: docker/login-action@v2
64+
with:
65+
registry: ghcr.io
66+
username: ${{ github.repository_owner }}
67+
password: ${{ secrets.GITHUB_TOKEN }}
68+
69+
- name: Build and push
70+
uses: docker/build-push-action@v4
71+
with:
72+
file: Dockerfile.cuda
73+
context: .
74+
push: true # push to registry
75+
pull: true # always fetch the latest base images
76+
platforms: linux/amd64,linux/arm64 # build for both amd64 and arm64
77+
tags: ghcr.io/abetlen/llama-cpp-python-cuda:latest

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.