Spaces:
Running
Running
Update app.py
Browse files
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 |
|