Skip to content
1 min read · 39 words

Type Alias: TransformersJsGenerationProgressCallback ​

ts
type TransformersJsGenerationProgressCallback = (info: unknown) => void;

Defined in: src/batteries/generation/transformers_js/types.ts:72

Model-load progress callback — locally shaped, structurally compatible with the peer's ProgressCallback.

Parameters ​

ParameterType
infounknown

Returns ​

void