unum-cloud / uform

Pocket-Sized Multimodal AI for content understanding and generation across multilingual texts, images, and 🔜 video, up to 5x faster than OpenAI CLIP and LLaVA 🖼️ & 🖋️
https://unum-cloud.github.io/uform/
Apache License 2.0
983 stars 56 forks source link

python crashes when loading model under macOS (by uform.get_model) #70

Closed Antonoko closed 3 months ago

Antonoko commented 4 months ago

minimal reproducible code:

import uform

model = uform.get_model("unum-cloud/uform-vl-multilingual-v2")

execution result:

python main.py
Fetching 5 files: 100%|████████████████████████████████████████████████████| 5/5 [00:00<00:00, 14009.03it/s]
Segmentation fault: 11
(test-py3.11) bash-3.2$ /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

other infomation:

crash_report.txt

ashvardanian commented 4 months ago

Hi @Antonoko! From the logs you’ve provided it seems like the issue is coming from inside PyTorch, their CPU backend to be precise.