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] Segmentation Fault during NexaVLMInference Initialization on macOS Ventura #34

Open
Ysf101 opened this issue Nov 4, 2024 · 0 comments

Comments

@Ysf101
Copy link

Ysf101 commented Nov 4, 2024

Issue Description

I'm encountering a segmentation fault when initializing NexaVLMInference using the nexa.gguf package on macOS Ventura.

Steps to Reproduce

  1. Create a virtual environment with Python 3.12 (architecture: x86_64).
  2. Install nexaai via pip install nexaai.
  3. Download the required models.
  4. Run the following script:
from nexa.gguf import NexaVLMInference

image_inference = NexaVLMInference(
    model_path="llava-v1.6-vicuna-7b:q4_0",
    local_path=None,
    stop_words=[],
    temperature=0.3,
    max_new_tokens=3000,
    top_k=3,
    top_p=0.2,
    profiling=False
)

print("NexaVLMInference initialized successfully.")

Environment Details:
macOS Ventura version: [e.g., 13.0]
Python version: 3.12.0
nexaaiversion: [0.0.9.0]
Architecture: x86_64


* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x48)
  * frame #0: 0x000000010885dcc4 libggml_llama.dylib`ggml_backend_buffer_is_host + 4
    frame #1: 0x0000000107f547e1 libllava.dylib`clip_model_load + 11969
    frame #2: 0x0000000105464972 libffi.8.dylib`ffi_call_unix64 + 82
    ...

OS

macOS ventura

Python Version

3.12.0

Nexa SDK Version

0.0.9.0

GPU (if using one)

No response

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