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

Python crashing bus error #876

Open
khanakia opened this issue Apr 7, 2025 · 0 comments
Open

Python crashing bus error #876

khanakia opened this issue Apr 7, 2025 · 0 comments

Comments

@khanakia
Copy link

khanakia commented Apr 7, 2025

I am following this tutorial https://huggingface.co/learn/llm-course/en/chapter2/5?fw=pt
and when I run it it's crashing as below

(.venv) ➜  huggingface-course git:(main) ✗ python 5.py    
tokenizer_config.json: 100%|██████████████████████████████████████████| 48.0/48.0 [00:00<00:00, 101kB/s]
config.json: 100%|█████████████████████████████████████████████████████| 629/629 [00:00<00:00, 1.71MB/s]
vocab.txt: 100%|██████████████████████████████████████████████████████| 232k/232k [00:00<00:00, 623kB/s]
model.safetensors: 100%|█████████████████████████████████████████████| 268M/268M [00:12<00:00, 20.7MB/s]
Input IDs: tensor([[ 1045,  1005,  2310,  2042,  3403,  2005,  1037, 17662, 12172,  2607,
          2026,  2878,  2166,  1012]])
[1]    49958 bus error  python3 5.py
/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/resource_tracker.py:277: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown: {'/mp-klmkpo9x'}
  warnings.warn(


(.venv) ➜  huggingface-course git:(main) ✗ python 5.py
Input IDs: tensor([[ 1045,  1005,  2310,  2042,  3403,  2005,  1037, 17662, 12172,  2607,
          2026,  2878,  2166,  1012]])
[1]    52005 bus error  python3 5.py
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