    def _convert_token_to_id(self, token):
        """Converts a token (str) in an id using the vocab."""
        return self.sp_model.piece_to_id(token)
Converts a token (str) in an id using the vocab.
projects/llava_sam2/hf/models/tokenization_internlm2.py