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] Invalid buffer size #2082

Open
5 of 9 tasks
fred-gb opened this issue Sep 11, 2024 · 0 comments
Open
5 of 9 tasks

[BUG] Invalid buffer size #2082

fred-gb opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fred-gb
Copy link

fred-gb commented Sep 11, 2024

Pre-check

  • I have searched the existing issues and none cover this bug.

Description

Bonjour 👋🏻

When I try to ingest folder, I have this error:

RuntimeError: Invalid buffer size: 12.17 GB
Generating embeddings:  96%|███████████▌              | 49/51 [00:05<00:00,  8.67it/s]
make: *** [ingest] Error 1

Folder can have 2 documents or many, same error.

I tried with mock for llm in settings, not working.

Where come from this error?
Thanks

Steps to Reproduce

Install:

git clone https://github.com/zylon-ai/private-gpt.git
cd private-gpt

brew install make peotry

poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant llms-llama-cpp embeddings-huggingface"

poetry run python scripts/setup

CMAKE_ARGS="-DLLAMA_METAL=on" pip install --force-reinstall --no-cache-dir llama-cpp-python numpy==1.26.0

And ingest:

make ingest /Users/fred/privategpt -- --watch --log-file privategpt.log

14:57:06.984 [INFO    ] private_gpt.components.embedding.embedding_component - Initializing the embedding model in mode=huggingface
14:57:07.330 [INFO    ] sentence_transformers.SentenceTransformer - Load pretrained SentenceTransformer: nomic-ai/nomic-embed-text-v1.5
14:57:12.632 [WARNING ] transformers_modules.nomic-ai.nomic-bert-2048.4bb68f63016e88e53e48df904c6ab4e6f718e198.modeling_hf_nomic_bert - <All keys matched successfully>
14:57:13.945 [INFO    ] sentence_transformers.SentenceTransformer - 2 prompts are loaded, with the keys: ['query', 'text']
14:57:14.060 [INFO    ] llama_index.core.indices.loading - Loading all indices.
[...]
RuntimeError: Invalid buffer size: 12.17 GB
Generating embeddings:  96%|███████████▌              | 49/51 [00:05<00:00,  8.67it/s]
make: *** [ingest] Error 1

Expected Behavior

Ingest my folder

Actual Behavior

Not ingest all files and get error code 1

Environment

macOS 14.6.1, MacBook M1 16Go

Additional Information

No response

Version

main branch (v0.6.2)

Setup Checklist

  • Confirm that you have followed the installation instructions in the project’s documentation.
  • Check that you are using the latest version of the project.
  • Verify disk space availability for model storage and data processing.
  • Ensure that you have the necessary permissions to run the project.

NVIDIA GPU Setup Checklist

  • Check that the all CUDA dependencies are installed and are compatible with your GPU (refer to CUDA's documentation)
  • Ensure an NVIDIA GPU is installed and recognized by the system (run nvidia-smi to verify).
  • Ensure proper permissions are set for accessing GPU resources.
  • Docker users - Verify that the NVIDIA Container Toolkit is configured correctly (e.g. run sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi)
@fred-gb fred-gb added the bug Something isn't working label Sep 11, 2024
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