Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin模型无法加载 #366

Open
yuelangjun opened this issue Jul 29, 2024 · 2 comments
Open

bin模型无法加载 #366

yuelangjun opened this issue Jul 29, 2024 · 2 comments

Comments

@yuelangjun
Copy link

D:\a\rwkv.cpp\rwkv.cpp\rwkv.cpp:65: rwkv_load_model_from_file(file_path, *ctx->model)
rwkv_init_from_file failed, check stderr
Traceback (most recent call last):
File "D:\桌面\RWKV\backend-python\routes\config.py", line 73, in switch_model
RWKV(model=body.model, strategy=body.strategy, tokenizer=body.tokenizer),
File "D:\桌面\RWKV\backend-python\utils\rwkv.py", line 644, in RWKV
model = Model(model_path, strategy)
File "D:\桌面\RWKV\backend-python\rwkv_pip\cpp\model.py", line 9, in init
self.model = rwkv_cpp_model.RWKVModel(self.library, model_path)
File "D:\桌面\RWKV\backend-python\rwkv_pip\cpp\rwkv_cpp_model.py", line 66, in init
self._ctx: rwkv_cpp_shared_library.RWKVContext = self._library.rwkv_init_from_file(model_path, thread_count)
File "D:\桌面\RWKV\backend-python\rwkv_pip\cpp\rwkv_cpp_shared_library.py", line 146, in rwkv_init_from_file
raise ValueError("rwkv_init_from_file failed, check stderr")
ValueError: rwkv_init_from_file failed, check stderr

INFO: 127.0.0.1:51884 - "POST /switch-model HTTP/1.1" 500 Internal Server Error

@josStorer
Copy link
Owner

重新转换一下模型试试

@shoumenchougou
Copy link

从 1.8.5 版本开始,RWKV Runner 的 rwkv.cpp 模式才支持 RWKV-6 架构模型,你可以检查一下是不是还没升级 RWKV Runner 的版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants