promptLossWeight property

  1. @JsonKey(name: 'prompt_loss_weight')
double? get promptLossWeight
inherited

The weight to use for loss on the prompt tokens. This controls how much the model tries to learn to generate the prompt (as compared to the completion which always has a weight of 1.0), and can add a stabilizing effect to training when completions are short.

If prompts are extremely long (relative to completions), it may make sense to reduce this weight so as to avoid over-prioritizing learning the prompt.

Implementation

@JsonKey(name: 'prompt_loss_weight')
double? get promptLossWeight => throw _privateConstructorUsedError;