Lfm3VlConfig class final

Validated configuration for the LFM3 vision encoder and projector. Parsing this metadata does not load weights or enable image inference.

Constructors

Lfm3VlConfig.fromJson(Map<String, Object?> json)
factory
Lfm3VlConfig.fromOmniJson(Map<String, Object?> json, {required int visionStartTokenId, required int visionEndTokenId})
LFM3-Omni's config.json carries the same text, vision and projector sections, but not the span marker IDs: the tokenizer defines those. Audio sections are validated by the audio loaders, not here.
factory
Lfm3VlConfig.load(String modelDir)
factory

Properties

downsampleFactor → int
final
hashCode → int
The hash code for this object.
no setterinherited
imageTokenId → int
final
projectorHiddenSize → int
final
projectorInputSize → int
no setter
projectorNormEps → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → Lfm3Config
final
videoTokenId → int
final
vision → Lfm3VisionConfig
final
visionEndTokenId → int
final
visionStartTokenId → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

languageTensorName(String name) → String
Maps an engine language tensor name to the original VL checkpoint name. Never accepts a vision/projector tensor as a language tensor.

Constants

languagePrefix → const String
Checkpoint names differ from standalone text checkpoints.
projectorPrefix → const String
visionPrefix → const String