elapt1c commited on
Commit
05989de
·
verified ·
1 Parent(s): 49331fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")
9
 
10
  # Load the saved GPT Neo model from the local checkpoint (adjust the path)
11
  model_path = "elapt1c/ElapticAI-1a" # Replace with your desired GPT Neo model path
12
- model = GPTNeoForCausalLM.from_pretrained(model_path)
13
 
14
  # Move model to appropriate device (GPU if available, otherwise CPU)
15
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
9
 
10
  # Load the saved GPT Neo model from the local checkpoint (adjust the path)
11
  model_path = "elapt1c/ElapticAI-1a" # Replace with your desired GPT Neo model path
12
+ model = GPTNeoForCausalLM.from_pretrained(model_path, ignore_mismatched_sizes=True)
13
 
14
  # Move model to appropriate device (GPU if available, otherwise CPU)
15
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")