Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ os.environ["RWKV_JIT_ON"] = '1'
|
|
14 |
os.environ["RWKV_CUDA_ON"] = '1' # if '1' then use CUDA kernel for seq mode (much faster)
|
15 |
|
16 |
from rwkv.model import RWKV
|
17 |
-
model_path = hf_hub_download(repo_id="BlinkDL/rwkv-4-pile-
|
18 |
model = RWKV(model=model_path, strategy='cuda fp16')
|
19 |
from rwkv.utils import PIPELINE, PIPELINE_ARGS
|
20 |
pipeline = PIPELINE(model, "20B_tokenizer.json")
|
|
|
14 |
os.environ["RWKV_CUDA_ON"] = '1' # if '1' then use CUDA kernel for seq mode (much faster)
|
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")
|