def _finalize(self) -> None:
        """Abstract method implementation
        
        Load or build/cache the document, sample, and shuffle indices
        """
        assert isinstance(self.config, GPTDatasetConfig)

        (
            self.document_index,
            self.sample_index,
            self.shuffle_index,
        ) = self._build_document_sample_shuffle_indices()
Abstract method implementation
        
        Load or build/cache the document, sample, and shuffle indices
        
finetune/core/datasets/gpt_dataset.py