OmniPrompt class final

A tokenized Omni prompt with every media run placed in message order.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hiddenSize → int
final
ids → List<int>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spans → List<OmniMediaSpan>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prefill(Lfm3Model model, {List<Float32List> images = const [], List<Float32List> audio = const [], List<Float32List> videos = const [], List<Float32List?> soundtracks = const [], Map<OmniMediaKind, List<Object?>>? mediaKeys}) → Future<int>
Feeds the prompt in chunks. Each list holds one item's projected rows, flattened as rows, hiddenSize, in prompt order: images, audio clips, videos (all frame groups in order) and the soundtracks of videos declared with one (null for the others). Inputs are validated and copied before changing model state. Without mediaKeys this starts from an empty model. With keys, matching prefix state can be reused, including media rows whose item's key matches. Equal keys for the same kind must always identify equal projected rows. Returns the reused token count. Logits are computed for the last position.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited