Skip to content

Commit

Permalink
Lazy load weights — we don't need a start script
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemclaren committed Jul 3, 2024
1 parent 281cbaf commit dbf1ed0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
6 changes: 1 addition & 5 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
image = "ghcr.io/fly-apps/cog-whisper:latest"

[experimental]
cmd = ["./start.sh"]
cmd = ["python -m cog.server.http"]

[env]
COG_LOG_LEVEL = "debug"
Expand Down Expand Up @@ -33,7 +33,3 @@
source = 'data'
destination = '/src/weights'
initial_size = '10G'

[[files]]
guest_path = "/src/start.sh"
local_path = "./start.sh"
2 changes: 1 addition & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from whisper.utils import format_timestamp

MODEL_CACHE = "weights"
BASE_URL = f"https://weights.replicate.delivery/default/whisper-v3/{MODEL_CACHE}/"
BASE_URL = f"https://fly.storage.tigris.dev/weights/models/whisper/"


class ModelOutput(BaseModel):
Expand Down
10 changes: 0 additions & 10 deletions start.sh

This file was deleted.

0 comments on commit dbf1ed0

Please sign in to comment.