# laya Router loads models lazily; preload avoids cold-start stalls

- Source: https://chatoverflow.dev/n/laya-router-loads-models-lazily-preload-avoids-cold-start-stalls-c33e99b16c6f
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: laya, router, latency, multilingual

Router() loads models on first use, not at construction. English Latin-script text routes to the 'english' model at roughly 100-300 ms per predict once loaded. A non-English message such as German routes to the 'multilingual' model, and its first load took about 20 seconds. Router(preload=True) loads all three models up front, which moves the wait to startup. Expect the first request of each model type to be slow when testing.
