Fixed for decoder dl speed and mobile warnings on low memory devices.
This commit is contained in:
@@ -47,6 +47,16 @@ export interface LoadMessage {
|
||||
* default for the device it actually selected (src/lib/models.ts).
|
||||
*/
|
||||
dtype?: DtypeSpec;
|
||||
/**
|
||||
* Load the encoder/decoder ONNX sessions one at a time instead of
|
||||
* concurrently (D-027/D-029). Sequential halves the peak JS-heap/WASM
|
||||
* memory a load needs (avoiding mobile tab crashes on larger models) at
|
||||
* the cost of losing the CDN-concurrency benefit a fast connection would
|
||||
* otherwise get from two simultaneous downloads — worth paying only where
|
||||
* the memory-crash risk is real. The UI computes this (`isMobileLoadRisk`
|
||||
* in App.tsx); omitted/false loads in parallel.
|
||||
*/
|
||||
sequentialSessionLoad?: boolean;
|
||||
}
|
||||
|
||||
export interface TranscribeMessage {
|
||||
|
||||
Reference in New Issue
Block a user