Lev McKinney commited on
Commit
88a44d0
1 Parent(s): 656a2a6

switched to pythia-410m

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,10 +7,10 @@ from plotly import graph_objects as go
7
 
8
  device = torch.device("cpu")
9
  print(f"Using device {device} for inference")
10
- model = AutoModelForCausalLM.from_pretrained("gpt2")
11
  model = model.to(device)
12
- tokenizer = AutoTokenizer.from_pretrained("gpt2")
13
- tuned_lens = TunedLens.load("lens/gpt2", map_location=device)
14
  logit_lens = LogitLens(model)
15
 
16
  lens_options_dict = {
 
7
 
8
  device = torch.device("cpu")
9
  print(f"Using device {device} for inference")
10
+ model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m-deduped")
11
  model = model.to(device)
12
+ tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-410m-deduped")
13
+ tuned_lens = TunedLens.load("lens/pythia-410m-deduped", map_location=device)
14
  logit_lens = LogitLens(model)
15
 
16
  lens_options_dict = {