-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ac00113
Showing
431 changed files
with
59,846 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Image Build | ||
|
||
on: | ||
push: | ||
env: | ||
REGISTRY: quay.io | ||
REGISTRY_NAMESPACE: supiedt | ||
|
||
jobs: | ||
code-action: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker BuildX | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Registry Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
password: ${{ secrets.REGISTRY_PASSWD }} | ||
|
||
- name: Get Meta | ||
id: meta | ||
run: | | ||
echo IMAGE_NAME=$(cat ./ImageName) | tee -a $GITHUB_OUTPUT | ||
echo IMAGE_VERSION=$(cat ./Version) | tee -a $GITHUB_OUTPUT | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./${{ steps.meta.outputs.IMAGE_NAME }}/Dockerfile | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64/v8 | ||
push: true | ||
pull: true | ||
no-cache: true | ||
tags: | | ||
${{ env.REGISTRY }}/${{ env.REGISTRY_NAMESPACE }}/${{ steps.meta.outputs.IMAGE_NAME }}:${{ steps.meta.outputs.IMAGE_VERSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lmd-train |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Copyright 1989, 1990 Advanced Micro Devices, Inc. | ||
|
||
This software is the property of Advanced Micro Devices, Inc (AMD) which | ||
specifically grants the user the right to modify, use and distribute this | ||
software provided this notice is not removed or altered. All other rights | ||
are reserved by AMD. | ||
|
||
AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS | ||
SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL | ||
DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR | ||
USE OF THIS SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# imagesBuild | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
C8.R3.A1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM quay.io/supiedt/npu-driver:C8.R3.A1 | ||
|
||
RUN pip3 config set global.index-url "$PIP_INDEX" \ | ||
&& pip3 config set global.extra-index-url "$TORCH_INDEX" \ | ||
&& pip3 install --no-cache-dir --upgrade --quiet --default-timeout=1000 pip setuptools wheel \ | ||
&& pip3 install --no-cache-dir --quiet --default-timeout=1000 -e ".[model_worker]" \ | ||
&& pip3 cache purge && rm -rf /tmp/* /root/.cache/* \ | ||
&& chmod +x /usr/bin/start-modelwork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
source /usr/local/Ascend/ascend-toolkit/set_env.sh | ||
export HCCL_CONNECT_TIMEOUT=7200 | ||
export ASCEND_RT_VISIBLE_DEVICES=${DEVICES_NUMS_IDS} | ||
|
||
# set work path | ||
|
||
|
||
python3 -m fastchat.serve.model_worker --model-names {FASTCHAT_WORKER_MODEL_NAMES:-lmd-model} \ | ||
--model-path ./models --worker-address http://fastchat-model-worker:21002 \ | ||
--controller-address http://fastchat-controller:21001 --device npu --num-gpus ${NUM_GPUS} \ | ||
--max-gpu-memory ${MAX_GPU_MEMORY} --host 0.0.0.0 --port 21002 |
Oops, something went wrong.