Transformers How to use akshat57/custom-gpt2-model with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("akshat57/custom-gpt2-model")
model = AutoModel.from_pretrained("akshat57/custom-gpt2-model")