abetlen / abetlen/llama-cpp-python

OSError: exception: access violation reading 0x0000000000000000

Open
#1,903 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10.6k
Forks
1.4k
PR merge metrics
PR metrics pending

Description

OS: Windows 10 x64
Python 3.11 x64
pandas 2.2.3
llama-cpp-python 0.3.6

```python
import pandas as pd

from llama_cpp import Llama

Llama(model_path='models/user-bge-m3-q4_k_m.gguf')
```

OSError: exception: access violation reading 0x0000000000000000

![Image](https://github.com/user-attachments/assets/ee466188-574b-4253-925b-833abea8b732)

Solution: Load pandas after llama_cpp:
```python
from llama_cpp import Llama
import pandas as pd

Llama(model_path='models/user-bge-m3-q4_k_m.gguf')
```

![Image](https://github.com/user-attachments/assets/cad42566-13a8-4e01-b3d9-4c9e22376dba)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.