KOSMOS2Options

Options & Configuration · AiDotNet.VisionLanguage.Generative

Options for KOSMOS-2 (grounded multimodal with text spans linked to bounding boxes; Peng et al. 2023).

Inheritance: ModelOptions → GenerativeVLMOptions → KosmosOptions → KOSMOS2Options

How It Works

The defaults follow the released model (microsoft/kosmos-2-patch14-224):

  • A vocabulary of 65037, including the grounding tokens.
  • Sinusoidal positions.
  • 64 latent queries.
  • A 32 x 32 grid of location bins.

Constructors

Constructor Summary
KOSMOS2Options() Initializes the options with the released model’s values.
KOSMOS2Options(KOSMOS2Options other) Initializes a new instance by copying from another instance.

Properties

Property Summary
bool EnableGroundingTokens { get; set; } Gets or sets whether location tokens for grounding are enabled.
int NumLocationBins { get; set; } Gets or sets the number of location token bins.