update to new model
Browse files
app.py
CHANGED
@@ -12,11 +12,12 @@ desc = f'''链接:<a href='https://colab.research.google.com/drive/1J1gLMMMA8G
|
|
12 |
|
13 |
parser = argparse.ArgumentParser(prog = 'ChatGal RWKV')
|
14 |
parser.add_argument('--share',action='store_true')
|
|
|
15 |
args = parser.parse_args()
|
16 |
os.environ["RWKV_JIT_ON"] = '1'
|
17 |
|
18 |
from rwkv.model import RWKV
|
19 |
-
model_path = hf_hub_download(repo_id="Synthia/ChatGalRWKV", filename=
|
20 |
if 'ON_COLAB' in os.environ and os.environ['ON_COLAB'] == '1':
|
21 |
os.environ["RWKV_JIT_ON"] = '0'
|
22 |
os.environ["RWKV_CUDA_ON"] = '0' # if '1' then use CUDA kernel for seq mode (much faster)
|
|
|
12 |
|
13 |
parser = argparse.ArgumentParser(prog = 'ChatGal RWKV')
|
14 |
parser.add_argument('--share',action='store_true')
|
15 |
+
parser.add_argument('--ckpt',type=str,default="rwkv-chatgal-v1-3B-ctx4096-epoch10.pth")
|
16 |
args = parser.parse_args()
|
17 |
os.environ["RWKV_JIT_ON"] = '1'
|
18 |
|
19 |
from rwkv.model import RWKV
|
20 |
+
model_path = hf_hub_download(repo_id="Synthia/ChatGalRWKV", filename=args.ckpt)
|
21 |
if 'ON_COLAB' in os.environ and os.environ['ON_COLAB'] == '1':
|
22 |
os.environ["RWKV_JIT_ON"] = '0'
|
23 |
os.environ["RWKV_CUDA_ON"] = '0' # if '1' then use CUDA kernel for seq mode (much faster)
|