Skip to content

DocumentSourceConfig

Module: fast_llm.data.preparation.gpt_memmap.config

Variant of: LanguageModelSourceConfig — select with type: document

Inherits from: LanguageModelSourceConfig

Fields

advantagesoptional

Type: str or None    Default: None

Field containing advantaged for policy optimization. Mainly for debugging purposed as advantages are typically generated at runtime.

chosen_spanoptional

Type: str or None    Default: None

Field containing chosen text for preference optimization.

image_positionsoptional

Type: str or None    Default: None

Field containing image positions in the text.

imagesoptional

Type: str or None    Default: None

Field containing images.

loss_masking_spansoptional

Type: str or None    Default: None

Field containing character spans to mask for loss computation.

rejected_spanoptional

Type: str or None    Default: None

Field containing rejected text for preference optimization.

textoptional

Type: str    Default: "text"

Field containing the document text.