Constructs attention masks based on the provided input_key in the datadict. The mask is constructed based on the presence of pad_id and eos_id.
previous
cerebras.modelzoo.data_preparation.data_preprocessing.tokenflow.utils
next
cerebras.modelzoo.data_preparation.data_preprocessing.utils