erudito icon indicating copy to clipboard operation
erudito copied to clipboard

'Llama' object has no attribute 'n_embd'

Open louisdeb opened this issue 1 year ago • 0 comments

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.

louisdeb avatar Oct 24 '23 13:10 louisdeb