Spaces:
Sleeping
Sleeping
Enrico Shippole
commited on
Commit
·
7430f91
1
Parent(s):
2ed5632
Add initial gradio setup
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def generate(prompt, seq_len, temperature, filter_thres, model):
|
|
10 |
num_tokens=50304, dim=1024, depth=24, dim_head=128, heads=8, flash_attn=False, qk_rmsnorm = False,
|
11 |
).to(device)
|
12 |
|
13 |
-
model.load('./palm_410m_8k_v0.pt')
|
14 |
|
15 |
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
|
16 |
|
|
|
10 |
num_tokens=50304, dim=1024, depth=24, dim_head=128, heads=8, flash_attn=False, qk_rmsnorm = False,
|
11 |
).to(device)
|
12 |
|
13 |
+
model.load('./palm_410m_8k_v0.pt', map_location=torch.device('cpu'))
|
14 |
|
15 |
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
|
16 |
|