linguicator_predictor/models/en/distilgpt2.py
def __setup(self):
        """
        Setup model for inference tasks.

        :returns: nothing
        """

        # load model tokenizer
        self.__tokenizer = transformers.AutoTokenizer.from_pretrained(
            MODEL_NAME
        )

        # load model weights
        self.__model = transformers.AutoModelWithLMHead.from_pretrained(
            MODEL_NAME
        )

        Setup model for inference tasks.

        :returns: nothing
        
Setup model for inference tasks.
Setup model for inference tasks .
def __setup(self):
        self.__tokenizer = transformers.AutoTokenizer.from_pretrained(
            MODEL_NAME
        )
        self.__model = transformers.AutoModelWithLMHead.from_pretrained(
            MODEL_NAME
        )
def __setup ( self ) : self . __tokenizer = transformers . AutoTokenizer . from_pretrained ( MODEL_NAME ) self . __model = transformers . AutoModelWithLMHead . from_pretrained ( MODEL_NAME )
Setup model for inference tasks.
Setup model for inference tasks .
"""
        Setup model for inference tasks.

        :returns: nothing
        """ # load model tokenizer # load model weights
None
self