everything-webgpu / types /engine /constants.d.ts
nyaaorick's picture
feat: publish everything-webgpu package, engine source and documentation
1944112 verified
Raw History Blame Contribute Delete
701 Bytes
export namespace PRIORITY {
let INTERACTIVE: string;
let NORMAL: string;
let BACKGROUND: string;
}
export const PRIORITY_ORDER: string[];
export namespace UNLOAD_LEVEL {
let VRAM: string;
let CACHE: string;
}
export namespace JOB_KIND {
let CHAT: string;
let EMBEDDING: string;
}
export namespace ENGINE_STATE {
let IDLE: string;
let LOADING: string;
let READY: string;
let ERROR: string;
}
/**
* Out-of-band message kind for configuring an engine worker before WebLLM's own
* handshake starts. Distinct from every WebLLM `kind`, so the worker can route
* on it without parsing the rest.
*/
export const WORKER_CONFIGURE: "everything-webgpu/configure";