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

Receiving error when "Launching PrivateGPT" #16

Open
shak4031 opened this issue Aug 28, 2023 · 2 comments
Open

Receiving error when "Launching PrivateGPT" #16

shak4031 opened this issue Aug 28, 2023 · 2 comments

Comments

@shak4031
Copy link

Launching privateGPT...
llama.cpp: loading model from models/ggml-vic7b-q4_0.bin
error loading model: unexpectedly reached end of file
llama_load_model_from_file: failed to load model
Traceback (most recent call last):
File "C:\TCHT\privateGPT\privateGPT.py", line 83, in
main()
File "C:\TCHT\privateGPT\privateGPT.py", line 36, in main
llm = LlamaCpp(model_path=model_path, max_tokens=model_n_ctx, n_batch=model_n_batch, callbacks=callbacks, verbose=False)
File "C:\ProgramData\miniconda3\envs\pgpt\lib\site-packages\langchain\load\serializable.py", line 74, in init
super().init(**kwargs)
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LlamaCpp
root
Could not load Llama model from path: models/ggml-vic7b-q4_0.bin. Received error (type=value_error)
Exception ignored in: <function Llama.del at 0x000001A4A7009B40>
Traceback (most recent call last):
File "C:\ProgramData\miniconda3\envs\pgpt\lib\site-packages\llama_cpp\llama.py", line 1445, in del
if self.ctx is not None:
AttributeError: 'Llama' object has no attribute 'ctx'

@shak4031
Copy link
Author

I used the powershell script: privategpt.ps1

@shak4031
Copy link
Author

I did receive this error also during the installation:

Use Conda (y/n) [Default: y]:
C:\Users\ashak\Documents\WindowsPowerShell\profile.ps1 : The term
'C:\Users\ashak\Documents\WindowsPowerShell\profile.ps1' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1

  • C:\Users\ashak\Documents\WindowsPowerShell\profile.ps1
  •   + CategoryInfo          : ObjectNotFound: (C:\Users\ashak\...ell\profile.ps1:String) [], CommandNotFoundEx
     ception
      + FullyQualifiedErrorId : CommandNotFoundException
    

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

1 participant