OSError: exception: access violation reading 0x0000000000000000
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
The issue shows a workaround: importing llama_cpp before pandas avoids an access violation on Windows. Start by reproducing the error with the given code snippet, then examine the import order in the llama-cpp-python and pandas initialization code. Look for shared libraries or memory conflicts. Verify the fix by running the corrected import order and checking that the Llama model loads without error.
Written by the indexing model from the issue text.
Description
OS: Windows 10 x64
Python 3.11 x64
pandas 2.2.3
llama-cpp-python 0.3.6
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
Solution: Load pandas after llama_cpp:
from llama_cpp import Llama
import pandas as pd
Llama(model_path='models/user-bge-m3-q4_k_m.gguf')
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 1.5k
- Avg merge
- 23m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from abetlen/llama-cpp-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2352 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2211 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2210 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2145 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
abetlen/llama-cpp-python#2135 · 4 reactions ·
All issues in abetlen/llama-cpp-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100