Interface: TransformersJsGenerationModel
Defined in: src/batteries/generation/transformers_js/types.ts:93
Structural duck-type of MultiModalityCausalLM — exactly the one method this battery drives. Verified against the installed @huggingface/transformers source (src/models/multi_modality/modeling_multi_modality.js): generate_images(options) runs a normal causal-LM generate() internally, then decodes the newly generated image tokens into RawImage[] via the model's image_decode session.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
generate_images | (options: Record<string, unknown>) => Promise<TransformersJsRawImageLike[]> | Runs a normal causal-LM generate() internally, then decodes the newly generated image tokens into RawImage[] via the model's image_decode session. options is the merged processor-inputs + sampling-knobs bag this battery builds per call (see the adapter's generate). | src/batteries/generation/transformers_js/types.ts:99 |