Skip to content

🎥 Make videos programmatically with React

Clarify Whisper model hosting

JonnyBurger33c9fb9a0046
diff --git a/packages/docs/docs/whisper-webgpu/get-available-models.mdx b/packages/docs/docs/whisper-webgpu/get-available-models.mdx
index 5e1748350c..9afdbe5331 100644
--- a/packages/docs/docs/whisper-webgpu/get-available-models.mdx
+++ b/packages/docs/docs/whisper-webgpu/get-available-models.mdx
@@ -17,8 +17,6 @@ console.log(models);
Each item contains the short `name`, upstream Hugging Face `modelId`, parameter count, whether the model is multilingual, whether it supports translation, and the estimated WebGPU download size.
-The `modelId` identifies the upstream model repository for provenance. Model files are served from `remotion.media`; `modelId` is not the download location.
-
### supportsTranslation<AvailableFrom v="4.0.522" />
Whether the model supports `task: 'translate'` in [`transcribe()`](/docs/whisper-webgpu/transcribe). Translation converts speech into English. It is supported by multilingual non-turbo models only.
@@ -29,6 +27,10 @@ The set of available models may change between versions as faster variants of th
The estimates cover model weights. Browser caches and supporting model files may add a small amount.
+## Model hosting
+
+We noticed that hosting the models on R2 leads to faster downloading than through Hugging Face. Therefore, we mirrored the models to `remotion.media`, keeping them byte-identical.
+
## Compatibility
<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering={false} serverSideRendering player studio hideServers />
diff --git a/packages/docs/docs/whisper-webgpu/index.mdx b/packages/docs/docs/whisper-webgpu/index.mdx
index 8754df166f..66ab2c90bf 100644
--- a/packages/docs/docs/whisper-webgpu/index.mdx
+++ b/packages/docs/docs/whisper-webgpu/index.mdx
@@ -38,13 +38,9 @@ console.log(captions);
The model is downloaded on the first call and cached by the browser. Call [`loadWhisperModel()`](/docs/whisper-webgpu/load-whisper-model) first to display model download progress.
-## Model downloads<AvailableFrom v="4.0.522" />
+## Model hosting
-Model files are downloaded from `remotion.media`.
-
-`@remotion/whisper-webgpu` temporarily sets `env.remoteHost` while loading a model and restores it afterwards. This keeps the shared Transformers.js runtime available to other AI workflows. If your site uses a Content Security Policy, allow `https://remotion.media` in `connect-src`.
-
-Versions before 4.0.522 downloaded models from Hugging Face. After upgrading, the browser downloads a previously cached model once more because the download URL, and therefore its cache key, has changed. Call [`clearStaleModels()`](/docs/whisper-webgpu/clear-stale-models) to remove the old Hugging Face cache entries. With the default Transformers.js cache settings, subsequent loads use the new cached copy.
+We noticed that hosting the models on R2 leads to faster downloading than through Hugging Face. Therefore, we mirrored the models to `remotion.media`, keeping them byte-identical.
## APIs