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

'Llama' object has no attribute 'n_embd' #5

Open
louisdeb opened this issue Oct 24, 2023 · 0 comments
Open

'Llama' object has no attribute 'n_embd' #5

louisdeb opened this issue Oct 24, 2023 · 0 comments

Comments

@louisdeb
Copy link

Running python -m src.ingest hit an error on ingest.py:

39: embeddings = np.empty((len(chunks), llama.n_embd()))
AttributeError: 'Llama' object has no attribute 'n_embd'

I'm not sure why, because this shows the definition of n_embd. However, updating to llama-cpp-python==0.2.11 in requirements.lock resolved the problem.

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