SUPERFIRE777 commited on
Commit
2f657d8
1 Parent(s): f8e14c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,8 +4,9 @@ def func(query):
4
  try:
5
  os.system("pip install rwkvstic inquirer transformers torch")
6
  from rwkvstic.load import RWKV
 
7
  model = RWKV("https://huggingface.co/BlinkDL/rwkv-4-pile-3b/resolve/main/RWKV-4-Pile-3B-Instruct-test1-20230124.pth",
8
- useGpu=False)
9
 
10
  def generate(query):
11
  model.loadContext(newctx=query)
 
4
  try:
5
  os.system("pip install rwkvstic inquirer transformers torch")
6
  from rwkvstic.load import RWKV
7
+ from rwkvstic.agnostic.backends import JAX
8
  model = RWKV("https://huggingface.co/BlinkDL/rwkv-4-pile-3b/resolve/main/RWKV-4-Pile-3B-Instruct-test1-20230124.pth",
9
+ mode=JAX)
10
 
11
  def generate(query):
12
  model.loadContext(newctx=query)