Spaces:
Runtime error
Runtime error
Commit
·
cf1cc65
1
Parent(s):
0abab0b
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ HAS_GPU = False
|
|
10 |
# Model title and context size limit
|
11 |
ctx_limit = 2000
|
12 |
title = "RWKV-5-World-1B5-v2-20231025-ctx4096"
|
13 |
-
model_file = "rwkv-5-h-world-1b5
|
14 |
|
15 |
# Get the GPU count
|
16 |
try:
|
@@ -36,7 +36,7 @@ if HAS_GPU == True :
|
|
36 |
|
37 |
# Load the model accordingly
|
38 |
from rwkv.model import RWKV
|
39 |
-
model_path = hf_hub_download(repo_id="a686d380/rwkv-h-world
|
40 |
model = RWKV(model=model_path, strategy=MODEL_STRAT)
|
41 |
from rwkv.utils import PIPELINE, PIPELINE_ARGS
|
42 |
pipeline = PIPELINE(model, "rwkv_vocab_v20230424")
|
|
|
10 |
# Model title and context size limit
|
11 |
ctx_limit = 2000
|
12 |
title = "RWKV-5-World-1B5-v2-20231025-ctx4096"
|
13 |
+
model_file = "rwkv-5-h-world-1b5"
|
14 |
|
15 |
# Get the GPU count
|
16 |
try:
|
|
|
36 |
|
37 |
# Load the model accordingly
|
38 |
from rwkv.model import RWKV
|
39 |
+
model_path = hf_hub_download(repo_id="a686d380/rwkv-5-h-world", filename=f"{model_file}.pth")
|
40 |
model = RWKV(model=model_path, strategy=MODEL_STRAT)
|
41 |
from rwkv.utils import PIPELINE, PIPELINE_ARGS
|
42 |
pipeline = PIPELINE(model, "rwkv_vocab_v20230424")
|