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