-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from Wordcab/308-remove-hatch-dependency
Updated TensorRT-LLM version to latest, enabled dual-channel for tensorrt-llm backend
- Loading branch information
Showing
8 changed files
with
220 additions
and
96 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ __pycache__/ | |
.coverage.* | ||
.DS_Store | ||
.env_dev | ||
.env_* | ||
.nox/ | ||
.pytest_cache/ | ||
.python-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04 AS runtime | ||
|
||
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:-compute,utility} | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV MPI4PY_VERSION="3.1.5" | ||
ENV RELEASE_URL="https://github.com/mpi4py/mpi4py/archive/refs/tags/${MPI4PY_VERSION}.tar.gz" | ||
|
||
RUN apt update && apt install -y \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libsndfile1 \ | ||
software-properties-common \ | ||
ffmpeg \ | ||
|
@@ -28,9 +28,6 @@ RUN apt update && apt install -y \ | |
python3-dev \ | ||
liblzma-dev \ | ||
libsqlite3-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt update && apt install -y \ | ||
libtiff-tools=4.3.0-6ubuntu0.8 \ | ||
libtiff5=4.3.0-6ubuntu0.8 \ | ||
libgnutls30=3.7.3-4ubuntu1.5 \ | ||
|
@@ -42,7 +39,8 @@ RUN apt update && apt install -y \ | |
login=1:4.8.1-2ubuntu2.2 \ | ||
passwd=1:4.8.1-2ubuntu2.2 \ | ||
uidmap=1:4.8.1-2ubuntu2.2 \ | ||
binutils=2.38-4ubuntu2.6 | ||
binutils=2.38-4ubuntu2.6 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN cd /tmp && \ | ||
wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \ | ||
|
@@ -57,20 +55,30 @@ RUN cd /tmp && \ | |
RUN export CUDNN_PATH=$(python -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__))') && \ | ||
echo 'export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:'${CUDNN_PATH} >> ~/.bashrc | ||
|
||
ENV MPI4PY_VERSION="3.1.5" | ||
ENV RELEASE_URL="https://github.com/mpi4py/mpi4py/archive/refs/tags/${MPI4PY_VERSION}.tar.gz" | ||
|
||
RUN curl -L ${RELEASE_URL} | tar -zx -C /tmp \ | ||
&& sed -i 's/>= 40\\.9\\.0/>= 40.9.0, < 69/g' /tmp/mpi4py-${MPI4PY_VERSION}/pyproject.toml \ | ||
&& pip install /tmp/mpi4py-${MPI4PY_VERSION} \ | ||
&& rm -rf /tmp/mpi4py* | ||
|
||
RUN python -m pip install pip --upgrade | ||
|
||
COPY pre_requirements.txt . | ||
COPY requirements.txt . | ||
|
||
RUN pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com -r pre_requirements.txt -r requirements.txt | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
RUN git clone https://github.com/NVIDIA/NeMo.git ./nemo_local && \ | ||
cd ./nemo_local && \ | ||
git config --global user.email "[email protected]" && \ | ||
git config --global user.name "Your Name" && \ | ||
git fetch origin pull/9114/head:pr9114 && \ | ||
git merge pr9114 && \ | ||
pip install -e ".[asr]" | ||
|
||
ENV PYTHONPATH="/app/src" | ||
|
||
RUN pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com .[runtime] | ||
COPY . . | ||
|
||
CMD ["uvicorn", "--host=0.0.0.0", "--port=5001", "src.wordcab_transcribe.main:app"] |
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 @@ | ||
argon2-cffi==23.1.0 | ||
fastapi==0.110.0 | ||
python-jose[cryptography]==3.3.0 | ||
python-multipart==0.0.9 | ||
shortuuid==1.0.13 | ||
svix==1.21.0 | ||
uvicorn==0.29.0 | ||
websockets==12.0 | ||
tensorrt_llm==0.11.0.dev2024052100 | ||
Cython==3.0.10 | ||
youtokentome @ git+https://github.com/gburlet/YouTokenToMe.git@dependencies | ||
deepmultilingualpunctuation==1.0.1 | ||
pyannote.audio==3.2.0 |
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,27 @@ | ||
aiohttp==3.9.3 | ||
aiofiles==23.2.1 | ||
boto3 | ||
faster-whisper @ https://github.com/SYSTRAN/faster-whisper/archive/refs/heads/master.tar.gz | ||
ffmpeg-python==0.2.0 | ||
transformers==4.38.2 | ||
librosa==0.10.1 | ||
loguru==0.7.2 | ||
nltk==3.8.1 | ||
numpy==1.26.4 | ||
onnxruntime==1.17.1 | ||
pandas==2.2.1 | ||
pydantic==2.6.4 | ||
python-dotenv==1.0.1 | ||
tensorshare==0.1.1 | ||
torch==2.2.2 | ||
torchaudio==2.2.2 | ||
wget==3.2.0 | ||
yt-dlp==2024.3.10 | ||
tiktoken==0.6.0 | ||
datasets==2.18.0 | ||
kaldialign==0.9.0 | ||
openai-whisper==v20231117 | ||
soundfile==0.12.1 | ||
safetensors==0.4.2 | ||
janus==1.0.0 | ||
backports.lzma==0.0.14 |
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
Oops, something went wrong.