Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use specific version of nvidia cuda image
FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04
FROM nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04

# Remove any third-party apt sources to avoid issues with expiring keys.
RUN rm -f /etc/apt/sources.list.d/*.list
Expand Down
2 changes: 1 addition & 1 deletion builder/fetch_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from concurrent.futures import ThreadPoolExecutor
from faster_whisper import WhisperModel

model_names = ["tiny", "base", "small", "medium", "large-v1", "large-v2", "large-v3"]
model_names = ["tiny"] #, "base", "small", "medium", "large-v1", "large-v2", "large-v3"]


def load_model(selected_model):
Expand Down
7 changes: 5 additions & 2 deletions builder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
runpod~=1.7.0
#runpod~=1.7.0
git+https://github.com/nerdylive123/runpod-python.git@fix-validation-bug

faster-whisper==0.10.0
faster-whisper==1.1.1

hf_xet==0.1.4
2 changes: 1 addition & 1 deletion src/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_model(self, model_name):

def setup(self):
"""Load the model into memory to make running multiple predictions efficient"""
model_names = ["tiny", "base", "small", "medium", "large-v1", "large-v2", "large-v3"]
model_names = ["tiny"] # , "base", "small", "medium", "large-v1", "large-v2", "large-v3"]
with ThreadPoolExecutor() as executor:
for model_name, model in executor.map(self.load_model, model_names):
if model_name is not None:
Expand Down
3 changes: 2 additions & 1 deletion src/rp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

from rp_schema import INPUT_VALIDATIONS
from runpod.serverless.utils import download_files_from_urls, rp_cleanup, rp_debugger
from runpod.serverless.utils.rp_validator import validate
from runpod.serverless.utils.rp_validator import validate

import runpod
import predict

Expand Down
Loading