BlinkDL commited on
Commit
1c3978c
1 Parent(s): 9b37a2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ os.environ["RWKV_CUDA_ON"] = '1' # if '1' then use CUDA kernel for seq mode (muc
15
 
16
  from rwkv.model import RWKV
17
  model_path = hf_hub_download(repo_id="BlinkDL/rwkv-4-pile-14b", filename="RWKV-4-Pile-14B-20230227-ctx4096-test503.pth")
18
- model = RWKV(model=model_path, strategy='cuda fp16')
19
  from rwkv.utils import PIPELINE, PIPELINE_ARGS
20
  pipeline = PIPELINE(model, "20B_tokenizer.json")
21
 
 
15
 
16
  from rwkv.model import RWKV
17
  model_path = hf_hub_download(repo_id="BlinkDL/rwkv-4-pile-14b", filename="RWKV-4-Pile-14B-20230227-ctx4096-test503.pth")
18
+ model = RWKV(model=model_path, strategy='cuda fp16 *32 -> cpu fp32')
19
  from rwkv.utils import PIPELINE, PIPELINE_ARGS
20
  pipeline = PIPELINE(model, "20B_tokenizer.json")
21