We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ab4dd commit 55cb441Copy full SHA for 55cb441
inference/core/interfaces/webrtc_worker/modal.py
@@ -227,6 +227,9 @@ def send_answer(obj: WebRTCWorkerResult):
227
def start(self):
228
# TODO: pre-load models
229
logger.info("Starting container")
230
+ if PRELOAD_HF_IDS:
231
+ # Kick off pre-loading of models (owlv2 preloading is based on module-level singleton)
232
+ import inference.models.owlv2.owlv2
233
234
@modal.exit()
235
def stop(self):
0 commit comments