Spaces:
Sleeping
Sleeping
Enrico Shippole
commited on
Commit
·
b54a00d
1
Parent(s):
90eb053
Add initial gradio setup
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
def generate(prompt, seq_len, temperature, filter_thres, model):
|
7 |
device = torch.device("cpu")
|
8 |
|
9 |
-
model = torch.hub.load("conceptofmind/PaLM", "palm_1b_8k_v0").to(device).eval()
|
10 |
|
11 |
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
|
12 |
|
|
|
6 |
def generate(prompt, seq_len, temperature, filter_thres, model):
|
7 |
device = torch.device("cpu")
|
8 |
|
9 |
+
model = torch.hub.load("conceptofmind/PaLM", "palm_1b_8k_v0", map_location=device).to(device).eval()
|
10 |
|
11 |
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
|
12 |
|