Spaces:
Running
Running
Lev McKinney
commited on
Commit
·
88a44d0
1
Parent(s):
656a2a6
switched to pythia-410m
Browse files
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("
|
| 11 |
model = model.to(device)
|
| 12 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 13 |
-
tuned_lens = TunedLens.load("lens/
|
| 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 = {
|