attentionMask property

List<int>? attentionMask
final

Attention mask aligned 1:1 with ids (1 = real token, 0 = padding). null when the tokenizer's convention has no notion of padding at this stage (e.g. Gemma SentencePiece — the forward pass pads/truncates internally and has no mask to report back either).

Implementation

final List<int>? attentionMask;