model_arch = gguf.MODEL_ARCH.T5 def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.shared_token_embeddings_found = False def set_vocab(self): # to avoid TypeError: Descriptors cannot be created directly # exception when importing sentencepiece_model_pb2 ...