from google.colab import drive from transformers import AutoTokenizer, AutoModelForSeq2SeqLM # Mount Google Drive drive.mount('/content/drive') # Path to the saved model on Google Drive model_path = '/content/drive/My Drive/T5_samsum' # Load the tokenizer and model from the specified path tokenizer = AutoTokenizer.from_pretrained(model_path) model = AutoModelForSeq2SeqLM.from_pretrained(model_path)