Type Alias: DiffusionBackendSpawner
ts
type DiffusionBackendSpawner = (context: {
args: string[];
command: string;
model: string;
}) => DiffusionBackendProcess | Promise<DiffusionBackendProcess>;Defined in: src/batteries/generation/local_diffusion/types.ts:48
Factory seam for starting one backend process.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | { args: string[]; command: string; model: string; } | - |
context.args | string[] | Executable arguments. |
context.command | string | Executable to start. |
context.model | string | Configured checkpoint. |
Returns
| DiffusionBackendProcess | Promise<DiffusionBackendProcess>