print(f"Loading model from Hugging Face repository: {model_path_or_repo}") model = GPT2LMHeadModel.from_pretrained(model_path_or_repo) tokenizer = GPT2Tokenizer.from_pretrained(model_path_or_repo) ...
MODEL_REPO = "kmcowan/rockymtn_gpt2" # Replace with your model repository ID # Step 1: Load the model and tokenizer from Hugging Face print("Loading model and ...