Content-Length: 220594 | pFad | http://github.com/postgresml/postgresml/issues/1616

A4 OSX Segmentation fault 11 with every command that tries to load a model · Issue #1616 · postgresml/postgresml · GitHub
Skip to content

OSX Segmentation fault 11 with every command that tries to load a model #1616

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

Open
stuta opened this issue Sep 1, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@stuta
Copy link

stuta commented Sep 1, 2024

Hello.

Postgres crashes in my MacBook Pro M3.

I tried Python 3.11, a clean install of postgresql@15 and I got a crash with every pgml command that tries to load a model. I also tried with Postgres.app with postgresql 16.

Then I copied changes from requirements.py312.txt to requirements.macos.txt to get a working version with python@3.12.

So I tried Python 3.11 with pyarrow==11.0.0 and pyarrow-hotfix==0.6. I also tried Python 3.12 with pyarrow==16.1.0. Finally I tried with a requirements file that has no version numbers.

I tried with Rust nightly-aarch64-apple-darwin, stable-aarch64-apple-darwin, and 1.79-aarch64-apple-darwin.

All of them work with non-model commands and with the command SELECT * FROM pgml.load_dataset('fka/awesome-chatgpt-prompts', 'default');. But with every command that tries to load a model, Postgres crashes.

Python crash should not crash Postgres.

Here is a server log of SELECT pgml.embed('Alibaba-NLP/gte-base-en-v1.5', 'passage: hi mom', '{"trust_remote_code": true}'::JSONB);:

A new version of the following files was downloaded from https://huggingface.co/Alibaba-NLP/new-impl:
- modeling.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
loading weights file model.safetensors from cache at /Users/test/.cache/huggingface/hub/models--Alibaba-NLP--gte-base-en-v1.5/snapshots/a8e4f3e0ee719c75bc30d12b8eae0f8440502718/model.safetensors
2024-09-01 10:26:21.478 GMT [44810] LOG:  server process (PID 45076) was terminated by signal 11: Segmentation fault: 11
2024-09-01 10:26:21.478 GMT [44810] DETAIL:  Failed process was running: SELECT pgml.embed('Alibaba-NLP/gte-base-en-v1.5', 'passage: hi mom', '{"trust_remote_code": true}'::JSONB);
	
2024-09-01 10:26:21.478 GMT [44810] LOG:  terminating any other active server processes
2024-09-01 10:26:21.481 GMT [44810] LOG:  all server processes terminated; reinitializing
2024-09-01 10:26:21.503 GMT [44810] FATAL:  Can't attach, lock is not in an empty state: PgLwLockInner
2024-09-01 10:26:21.504 GMT [44810] LOG:  database system is shut down
@SilasMarvin SilasMarvin added the bug Something isn't working label Jan 14, 2025
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

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/issues/1616

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy