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
OpenDAS
text-generation-inference
Commits
b6bb1d51
Unverified
Commit
b6bb1d51
authored
Aug 12, 2024
by
Wang, Yi
Committed by
GitHub
Aug 12, 2024
Browse files
Cpu dockerimage (#2367)
add intel-cpu docker image Signed-off-by:
Wang, Yi A
<
yi.a.wang@intel.com
>
parent
84bc3d7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
.github/workflows/build.yaml
.github/workflows/build.yaml
+15
-2
.github/workflows/ci_build.yaml
.github/workflows/ci_build.yaml
+1
-1
No files found.
.github/workflows/build.yaml
View file @
b6bb1d51
...
...
@@ -50,6 +50,7 @@ jobs:
export label_extension=""
export docker_devices=""
export runs_on="aws-g6-12xlarge-plus-priv"
export platform=""
;;
rocm)
export dockerfile="Dockerfile_amd"
...
...
@@ -58,12 +59,21 @@ jobs:
# TODO Re-enable when they pass.
# export runs_on="amd-gpu-tgi"
export runs_on="ubuntu-latest"
export platform=""
;;
intel)
intel
-xpu
)
export dockerfile="Dockerfile_intel"
export label_extension="-intel"
export label_extension="-intel
-xpu
"
export docker_devices=""
export runs_on="ubuntu-latest"
export platform="xpu"
;;
intel-cpu)
export dockerfile="Dockerfile_intel"
export label_extension="-intel-cpu"
export docker_devices=""
export runs_on="ubuntu-latest"
export platform="cpu"
;;
esac
echo $dockerfile
...
...
@@ -71,8 +81,10 @@ jobs:
echo $label_extension
echo $docker_devices
echo $runs_on
echo $platform
echo "DOCKERFILE=${dockerfile}" >> $GITHUB_ENV
echo "LABEL=${label_extension}" >> $GITHUB_ENV
echo "PLATFORM=${platform}" >> $GITHUB_ENV
echo "DOCKER_DEVICES=${docker_devices}" >> $GITHUB_ENV
echo "RUNS_ON=${runs_on}" >> $GITHUB_ENV
echo REGISTRY_MIRROR=$REGISTRY_MIRROR >> $GITHUB_ENV
...
...
@@ -139,6 +151,7 @@ jobs:
build-args
:
|
GIT_SHA=${{ env.GITHUB_SHA }}
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
PLATFORM=${{ env.PLATFORM }}
tags
:
${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
cache-from
:
type=s3,region=us-east-1,bucket=ci-docker-buildx-cache,name=text-generation-inference-cache${{ env.LABEL }},mode=min,access_key_id=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_ACCESS_KEY_ID }},secret_access_key=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_SECRET_ACCESS_KEY }},mode=min
...
...
.github/workflows/ci_build.yaml
View file @
b6bb1d51
...
...
@@ -37,7 +37,7 @@ jobs:
# fail-fast is true by default
fail-fast
:
false
matrix
:
hardware
:
[
"
cuda"
,
"
rocm"
,
"
intel"
]
hardware
:
[
"
cuda"
,
"
rocm"
,
"
intel
-xpu"
,
"
intel-cpu
"
]
uses
:
./.github/workflows/build.yaml
# calls the one above ^
with
:
hardware
:
${{ matrix.hardware }}
...
...
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