Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
aa17cf98
Unverified
Commit
aa17cf98
authored
Mar 22, 2024
by
Ilyas Moutawwakil
Committed by
GitHub
Mar 22, 2024
Browse files
Enable AMD docker build CI (#29803)
* enable amd ci * remove unnecessary clean up
parent
34791613
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
70 deletions
+76
-70
.github/workflows/build-docker-images.yml
.github/workflows/build-docker-images.yml
+76
-70
No files found.
.github/workflows/build-docker-images.yml
View file @
aa17cf98
...
...
@@ -198,41 +198,44 @@ jobs:
push
:
true
tags
:
huggingface/transformers-pytorch-gpu
# Need to be fixed with the help from Guillaume.
# latest-pytorch-amd:
# name: "Latest PyTorch (AMD) [dev]"
# runs-on: [self-hosted, docker-gpu, amd-gpu, single-gpu, mi210]
# steps:
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Check out code
# uses: actions/checkout@v3
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: ./docker/transformers-pytorch-amd-gpu
# build-args: |
# REF=main
# push: true
# tags: huggingface/transformers-pytorch-amd-gpu${{ inputs.image_postfix }}
# # Push CI images still need to be re-built daily
# -
# name: Build and push (for Push CI) in a daily basis
# # This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
# # The later case is useful for manual image building for debugging purpose. Use another tag in this case!
# if: inputs.image_postfix != '-push-ci'
# uses: docker/build-push-action@v5
# with:
# context: ./docker/transformers-pytorch-amd-gpu
# build-args: |
# REF=main
# push: true
# tags: huggingface/transformers-pytorch-amd-gpu-push-ci
latest-pytorch-amd
:
name
:
"
Latest
PyTorch
(AMD)
[dev]"
runs-on
:
[
intel-cpu
,
8-cpu
,
ci
]
steps
:
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
-
name
:
Check out code
uses
:
actions/checkout@v3
-
name
:
Login to DockerHub
uses
:
docker/login-action@v3
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_PASSWORD }}
-
name
:
Build and push
uses
:
docker/build-push-action@v5
with
:
context
:
./docker/transformers-pytorch-amd-gpu
build-args
:
|
REF=main
push
:
true
tags
:
huggingface/transformers-pytorch-amd-gpu${{ inputs.image_postfix }}
# Push CI images still need to be re-built daily
-
name
:
Build and push (for Push CI) in a daily basis
# This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
# The later case is useful for manual image building for debugging purpose. Use another tag in this case!
if
:
inputs.image_postfix != '-push-ci'
uses
:
docker/build-push-action@v5
with
:
context
:
./docker/transformers-pytorch-amd-gpu
build-args
:
|
REF=main
push
:
true
tags
:
huggingface/transformers-pytorch-amd-gpu-push-ci
latest-tensorflow
:
name
:
"
Latest
TensorFlow
[dev]"
...
...
@@ -262,41 +265,44 @@ jobs:
push
:
true
tags
:
huggingface/transformers-tensorflow-gpu
# latest-pytorch-deepspeed-amd:
# name: "PyTorch + DeepSpeed (AMD) [dev]"
# runs-on: [self-hosted, docker-gpu, amd-gpu, single-gpu, mi210]
# steps:
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Check out code
# uses: actions/checkout@v3
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: ./docker/transformers-pytorch-deepspeed-amd-gpu
# build-args: |
# REF=main
# push: true
# tags: huggingface/transformers-pytorch-deepspeed-amd-gpu${{ inputs.image_postfix }}
# # Push CI images still need to be re-built daily
# -
# name: Build and push (for Push CI) in a daily basis
# # This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
# # The later case is useful for manual image building for debugging purpose. Use another tag in this case!
# if: inputs.image_postfix != '-push-ci'
# uses: docker/build-push-action@v5
# with:
# context: ./docker/transformers-pytorch-deepspeed-amd-gpu
# build-args: |
# REF=main
# push: true
# tags: huggingface/transformers-pytorch-deepspeed-amd-gpu-push-ci
latest-pytorch-deepspeed-amd
:
name
:
"
PyTorch
+
DeepSpeed
(AMD)
[dev]"
runs-on
:
[
intel-cpu
,
8-cpu
,
ci
]
steps
:
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
-
name
:
Check out code
uses
:
actions/checkout@v3
-
name
:
Login to DockerHub
uses
:
docker/login-action@v3
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_PASSWORD }}
-
name
:
Build and push
uses
:
docker/build-push-action@v5
with
:
context
:
./docker/transformers-pytorch-deepspeed-amd-gpu
build-args
:
|
REF=main
push
:
true
tags
:
huggingface/transformers-pytorch-deepspeed-amd-gpu${{ inputs.image_postfix }}
# Push CI images still need to be re-built daily
-
name
:
Build and push (for Push CI) in a daily basis
# This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
# The later case is useful for manual image building for debugging purpose. Use another tag in this case!
if
:
inputs.image_postfix != '-push-ci'
uses
:
docker/build-push-action@v5
with
:
context
:
./docker/transformers-pytorch-deepspeed-amd-gpu
build-args
:
|
REF=main
push
:
true
tags
:
huggingface/transformers-pytorch-deepspeed-amd-gpu-push-ci
latest-quantization-torch-docker
:
name
:
"
Latest
Pytorch
+
Quantization
[dev]"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment