Compare commits

..
Author SHA1 Message Date
shinyobjectz 1d9ffd825d raea-words back to 2 containers each: the workspace has 10 GPUs in all
12 each took every GPU raea's Modal workspace has (Starter, 10 at once): the render farm's jobs queued, and StreetTalk
round 4's renders and transcriptions both timed out. Deployed.
2026-12-03 22:54:45 -08:00
shinyobjectz a57e6d0e50 raea-words: 12 containers each for hearing and timing words, not 2
12-03: three StreetTalk runs' prep sent 8 takes at once each, and 24 queued on two GPUs took 35 s a take against 1.3 s
of hearing it (Body Shop: 50 takes in 3.6 minutes, its agent waiting on transcripts.md). Both still scale to zero
after a minute. Deployed (modal deploy deploy/modal/words.py, profile raea).
2026-12-03 22:25:56 -08:00
2 changed files with 10 additions and 9 deletions

No files matched your search

+8 -9
View File
@@ -710,17 +710,16 @@ def api():
except urllib.error.HTTPError as e:
return e.code, {"error": e.read()[:500].decode("utf8", "replace")}
# Whisper on Groq first (12-03, Shane: "make that the primary"): no GPU of the workspace's 10, so a run's prep
# hears all its takes at once instead of queuing on two, and renders never wait behind it. Parakeet on a GPU
# (raea-words, words.py) only when Groq and OpenRouter both fail
# raea-words first (words.py, 12-03): Parakeet on a GPU, each word's edges on its sound, as raea hears on a Mac.
# Whisper's word times are guessed (StreetTalk's out points sat on them, mid-word); it stays as the fallback
if not req.query_params.get("language") or req.query_params["language"] in WORDS_LANGUAGES:
try:
hear = modal.Cls.from_name(WORDS_APP, "Hear")
return await hear().words.remote.aio(mp3)
except Exception as e:
print(f"words: {WORDS_APP} failed, so Whisper hears it: {str(e)[-300:]}", flush=True)
code, got = await asyncio.to_thread(ask)
if code != 200:
if not req.query_params.get("language") or req.query_params["language"] in WORDS_LANGUAGES:
try:
hear = modal.Cls.from_name(WORDS_APP, "Hear")
return await hear().words.remote.aio(mp3)
except Exception as e:
print(f"words: Whisper said {code} and {WORDS_APP} failed too: {str(e)[-300:]}", flush=True)
raise HTTPException(502, f"Whisper said {code}: {got.get('error', '')}")
ws = [{"text": w.get("word", "").strip(), "start": float(w.get("start", 0)), "end": float(w.get("end", w.get("start", 0)))} for w in got.get("words") or [] if w.get("word", "").strip()]
return {"model": got.get("_model", "openai/whisper-large-v3"), "duration": got.get("duration"), "text": got.get("text", ""), "words": ws}
+2
View File
@@ -38,6 +38,8 @@ align_image = (
ALIGNS = {"en": "English", "zh": "Chinese", "yue": "Cantonese", "fr": "French", "de": "German", "it": "Italian", "ja": "Japanese", "ko": "Korean", "pt": "Portuguese", "ru": "Russian", "es": "Spanish"}
# 2 containers each (12-03): raea's Modal workspace runs 10 GPUs at once in all, and 12 each here took every one of them:
# the render farm's jobs queued and StreetTalk's renders and these both timed out (round 4). The farm keeps the rest
@app.cls(gpu="L4", image=align_image, volumes={"/models": models}, timeout=900, max_containers=2, scaledown_window=60)
class Align:
@modal.enter()