Skip to content

Commit

Permalink
deps: update ctranslate2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi committed Nov 1, 2024
1 parent 3f2aa6d commit d984a83
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 132 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM ubuntu:24.04
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server"
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files
# hadolint ignore=DL3008,DL3015,DL4006
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y ffmpeg software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.12 python3.12-distutils && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg python3.12 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
Expand Down
8 changes: 3 additions & 5 deletions Dockerfile.cuda
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
FROM nvidia/cuda:12.6.2-cudnn-runtime-ubuntu24.04
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server"
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files
# hadolint ignore=DL3008,DL3015,DL4006
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y ffmpeg software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.12 python3.12-distutils && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg python3.12 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
Expand Down
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
rsync
websocat
uv
cudaPackages_12.cudnn_8_9
cudaPackages_12.cudnn
cudaPackages_12.libcublas
];

# https://github.com/NixOS/nixpkgs/issues/278976#issuecomment-1879685177
Expand All @@ -39,7 +40,8 @@
# NOTE: sometimes it still doesn't work but rebooting the system fixes it
LD_LIBRARY_PATH = "/run/opengl-driver/lib:${
pkgs.lib.makeLibraryPath [
pkgs.cudaPackages_12.cudnn_8_9
pkgs.cudaPackages_12.cudnn
pkgs.cudaPackages_12.libcublas
pkgs.zlib
pkgs.stdenv.cc.cc
pkgs.openssl
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
requires-python = ">=3.12,<3.13"
# https://packaging.python.org/en/latest/specifications/version-specifiers/#id5
dependencies = [
"ctranslate2>=4.5.0",
"fastapi>=0.115.0",
"faster-whisper>=1.0.3",
"huggingface-hub>=0.25.1",
Expand Down
Loading

0 comments on commit d984a83

Please sign in to comment.