src/transformers/models/gpt_sw3/tokenization_gpt_sw3.py/GPTSw3Tokenizer/_convert_token_to_id
class GPTSw3Tokenizer:    def _convert_token_to_id(self, token: str) -> int:
        """Converts a token (str) to an id (int) using the vocab."""
        return self.sp_model.PieceToId(token)