-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate GPU-accelerated steps to GPU the workload image.
- Loading branch information
Showing
32 changed files
with
539 additions
and
719 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
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,32 @@ | ||
name: EasyVideoTrans Workloads Docker Image Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ "Pytvzhen-web application test" ] | ||
branches: [ "master" ] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
tags: hanfa/easyvideotrans-workloads:latest |
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 |
---|---|---|
|
@@ -27,3 +27,5 @@ output/ | |
!celery_results/* | ||
|
||
.DS_Store | ||
|
||
.pytest_cache |
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,30 @@ | ||
FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime AS base | ||
|
||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# Disable interactive debian | ||
ENV TZ=America/New_York \ | ||
DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
ffmpeg \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
COPY workloads/requirements.txt /app/ | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY workloads /app/workloads/ | ||
COPY src /app/src/ | ||
COPY inference.py /app | ||
|
||
ENV LD_LIBRARY_PATH /opt/conda/lib/python3.11/site-packages/nvidia/cudnn/lib | ||
|
||
EXPOSE 8188 | ||
|
||
CMD ["python", "inference.py"] |
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,6 @@ | ||
{ | ||
"OUTPUT_PATH": "./output", | ||
"VIDEO_MAX_DURATION": 3610, | ||
"VOICE_BACKGROUND_SEPARATION_ENDPOINT": "http://localhost:8199/audio-sep", | ||
"AUDIO_TRANSCRIBE_ENDPOINT": "http://localhost:8199/audio-transcribe" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.