Huggingface model

As we know, we can use BERT as a featurizer in Rasa. Can we use our own custom LLM model as a featurizer in Rasa? It would be helpful if an example could be given.