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

bug: Cannot read properties of undefined (reading 'inference') #453

Closed
linonetwo opened this issue Jul 19, 2023 · 0 comments
Closed

bug: Cannot read properties of undefined (reading 'inference') #453

linonetwo opened this issue Jul 19, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@linonetwo
Copy link
Contributor

Environment 环境信息

Version v0.8.1-prerelease5

Electron Version: 25.2.0
Node Version: 18.15.0
Chromium Version: 114.0.5735.134

$:/plugins/linonetwo/tidgi-language-model 0.1.1

Description 描述

{"function":"LanguageModel.runLanguageModel$","id":"1689734493543","level":"error","message":"Cannot read properties of undefined (reading 'inference') TypeError: Cannot read properties of undefined (reading 'inference')\n at C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.1-prerelease5\resources\node_modules\llama-node\src\llm\llama-cpp.ts:34:45\n at new Promise ()\n at LLamaCpp. (C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.1-prerelease5\resources\node_modules\llama-node\src\llm\llama-cpp.ts:32:16)\n at Generator.next ()\n at C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.1-prerelease5\resources\node_modules\llama-node\dist\llm\llama-cpp.cjs:50:61\n at new Promise ()\n at __async (C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.1-prerelease5\resources\node_modules\llama-node\dist\llm\llama-cpp.cjs:34:10)\n at LLamaCpp.createCompletion (C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.1-prerelease5\resources\node_modules\llama-node\src\llm\llama-cpp.ts:28:27)\n at LLM. (C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.1-prerelease5\resources\node_modules\llama-node\src\index.ts:40:25)\n at Generator.next ()","timestamp":"2023-07-19T02:41:33.553Z"}

Steps to Reproduce 复现方式

New-Item -force C:\Users\linonetwo\AppData\Roaming\TidGi\language-model\llama.bin -ItemType SymbolicLink -Target C:\Users\linonetwo\Documents\model\LanguageModel\openllama-7b-v5-q5_K.bin

New-Item -force C:\Users\linonetwo\AppData\Roaming\TidGi\language-model\llama.bin -ItemType SymbolicLink -Target C:\Users\linonetwo\Documents\model\LanguageModel\vicuna-ggml\ggml-vic7b-q5_1.bin

Windows 上软链接添加模型,然后尝试使用插件

Additional Context 额外上下文

No response

@linonetwo linonetwo added the bug Something isn't working label Jul 19, 2023
@linonetwo linonetwo self-assigned this Jul 19, 2023
@linonetwo linonetwo changed the title bug: bug: Cannot read properties of undefined (reading 'inference') Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant