Spaces:
Sleeping
Sleeping
nickgardner
commited on
Commit
•
bf67bcc
1
Parent(s):
6144666
change weights
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ src_vocab = len(vocab)
|
|
30 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
31 |
model = Transformer(len(vocab), len(vocab), d_model, N, heads).to(device)
|
32 |
model.load_state_dict(torch.load(hf_hub_download(repo_id="nickgardner/chatbot",
|
33 |
-
filename="
|
34 |
model.eval()
|
35 |
|
36 |
def respond(search_type, input):
|
|
|
30 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
31 |
model = Transformer(len(vocab), len(vocab), d_model, N, heads).to(device)
|
32 |
model.load_state_dict(torch.load(hf_hub_download(repo_id="nickgardner/chatbot",
|
33 |
+
filename="alpaca_train_440_epoch.pt"), map_location=device))
|
34 |
model.eval()
|
35 |
|
36 |
def respond(search_type, input):
|