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

privateGPT.py "Using embedded DuckDB with persistence: data will be stored in: db" #295

Closed
Naxica opened this issue May 18, 2023 · 7 comments

Comments

@Naxica
Copy link

Naxica commented May 18, 2023

When running privateGPT.py after all other steps I get the message "Using embedded DuckDB with persistence: data will be stored in: db" just like I did with injest.py, then it exits without asking for a query.

Any ideas?

@imartinez
Copy link
Collaborator

The message is ok as the initial message, but it should not just exit after that.

This is how it should look like:

Using embedded DuckDB with persistence: data will be stored in: db
gptj_model_load: loading model from 'models/ggml-gpt4all-j-v1.3-groovy.bin' - please wait ...
gptj_model_load: n_vocab = 50400
gptj_model_load: n_ctx   = 2048
gptj_model_load: n_embd  = 4096
gptj_model_load: n_head  = 16
gptj_model_load: n_layer = 28
gptj_model_load: n_rot   = 64
gptj_model_load: f16     = 2
gptj_model_load: ggml ctx size = 4505.45 MB
gptj_model_load: memory_size =   896.00 MB, n_mem = 57344
gptj_model_load: ................................... done
gptj_model_load: model size =  3609.38 MB / num tensors = 285

Enter a query:

Do you get any kind of error?

@Naxica
Copy link
Author

Naxica commented May 18, 2023

Thanks for the reply! No it doesn't give an error, just closes for some reason...

@Naxica
Copy link
Author

Naxica commented May 18, 2023

I've tried deleting everything and starting from scratch. No errors, ingest goes fine, DB folder is created with index files and chroma

@PulpCattel
Copy link

Is it the same as #281?

@Naxica
Copy link
Author

Naxica commented May 18, 2023

Yes it is the same as #281. Got the same error value returned as mentioned there. Guess I'm just out of luck for using this? Thank you for the link and help PulpCattel!

@Naxica
Copy link
Author

Naxica commented May 18, 2023

Although my CPU does support AVX...

@mdeweerd mdeweerd mentioned this issue May 18, 2023
@ubuntinux
Copy link

Although my CPU does support AVX...

Your CPU needs to support avx2 instructions, otherwise executing privateGPT script will give you the error: "Illegal instruction (core dumped)". Tested on two of my computers where one has an AMD CPU with avx instruction set (Illegal instruction (core dumped)), and on another INTEL CPU with avx and avx2 instruction set. (it worked).
Solutions: https://tech.amikelive.com/node-887/how-to-resolve-error-illegal-instruction-core-dumped-when-running-import-tensorflow-in-a-python-program/

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

4 participants