Spaces:
Sleeping
Sleeping
Hazzzardous
commited on
Commit
·
2432281
1
Parent(s):
71942c1
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
from rwkvstic.load import RWKV
|
2 |
import torch
|
3 |
model = RWKV(
|
4 |
-
"https://huggingface.co/BlinkDL/rwkv-4-pile-
|
5 |
"pytorch(cpu/gpu)",
|
6 |
runtimedtype=torch.bfloat16,
|
7 |
-
useGPU=
|
8 |
dtype=torch.bfloat16
|
9 |
)
|
10 |
import gradio as gr
|
|
|
1 |
from rwkvstic.load import RWKV
|
2 |
import torch
|
3 |
model = RWKV(
|
4 |
+
"https://huggingface.co/BlinkDL/rwkv-4-pile-1b5/resolve/main/RWKV-4-Pile-1B5-Instruct-test1-20230124.pth",
|
5 |
"pytorch(cpu/gpu)",
|
6 |
runtimedtype=torch.bfloat16,
|
7 |
+
useGPU=torch.cuda.is_available(),
|
8 |
dtype=torch.bfloat16
|
9 |
)
|
10 |
import gradio as gr
|