-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
libc++abi: terminating due to uncaught exception of type std::runtime_error: Attempting to allocate too much memory #121
Comments
Could you share the specs of your machine? |
And the dimension of the image. |
It's a 128Gb M4 Max. The image is 5825 × 8753 pixels. |
That's a really large image my friend. Please use resize-shape to at least 1K to 2k |
Well, it is the size that comes out of cameras these days! Where does resize-shape come from? (ie, how do I use it? Is it a Pillow thing, or a vlm thing, or ...?) I don't really want to edit the original jpeg., and generate only takes the file path. And a good few of the other models accept this size of picture. (I think that I submitted some transcripts last week.) |
It's a mlx-vlm thing that uses pillow to resize your image while maintaining the aspect ratio. The problem here is that the image processing operation is very taxing on your resources and some models are built in a way that makes things worst for on-device inference. If you want to maintain original image size you either will run out memory or will have slow inference. Nevertheless, I'm working on improving this as we speak. |
I got a similar error with
Qwen/Qwen2-VL-7B-Instruct
The text was updated successfully, but these errors were encountered: