JosephH commited on
Commit
c5e548a
·
1 Parent(s): 0afd1d2

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -43,7 +43,7 @@ np.random.seed(0)
43
 
44
  # find a better way to abstract the class
45
  class GPT2PPLV2:
46
- def __init__(self, device="cpu", model_id="gpt2-medium"):
47
  self.device = device
48
  self.model_id = model_id
49
  self.model = GPT2LMHeadModel.from_pretrained(model_id).to(device)
 
43
 
44
  # find a better way to abstract the class
45
  class GPT2PPLV2:
46
+ def __init__(self, device="cpu", model_id="gpt2"):
47
  self.device = device
48
  self.model_id = model_id
49
  self.model = GPT2LMHeadModel.from_pretrained(model_id).to(device)