-
-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Probably an MLX bug or bugs in the recent versions of mlx, but you may be better placed to give them a pointer as to where the problem lines:
python check_models.py -v --debug
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
MLX version: 0.24.0
MLX-VLM version: 0.1.21
Processing file: /Users/jrp/Pictures/Processed/20250315-163157_DSC02909_openWith-1 copy.jpg
Image dimensions: 7992x5853 (46.8 MPixels)
Lat & Longitude: Unknown location
Date: 2025-03-15 16:31:57
Description: Castle Shopping Centre, Banbury, England, United Kingdom, UK
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Processing HuggingFaceTB/SmolVLM-Instruct
Fetching 12 files: 100%|█████████████████████████████████████████████████████████████| 12/12 [00:00<00:00, 17829.13it/s]
Fetching 12 files: 100%|█████████████████████████████████████████████████████████████| 12/12 [00:00<00:00, 23899.17it/s]
==========
Files: ['/Users/jrp/Pictures/Processed/20250315-163157_DSC02909_openWith-1 copy.jpg']
Prompt: <|im_start|>User:<image>Provide a factual caption, description and comma-separated keywords or tags for this image so that it can be catalogued and searched for easily. The picture was taken in Castle Shopping Centre, Banbury, England, United Kingdom, UK on 2025-03-15 16:31:57<end_of_utterance>
Assistant:
Castle Shopping Centre, Banbury, England, United Kingdom, UK, 2025-03-15 16:31:57
==========
Prompt: 1259 tokens, 1080.214 tokens-per-sec
Generation: 35 tokens, 120.016 tokens-per-sec
Peak memory: 5.443 GB
╔═══════════════════╦═══════════╦═══════════╗
║ Memory usage (MB) ║ Pre ║ Post ║
╠═══════════════════╬═══════════╬═══════════╣
║ MLX Active ║ 0 ║ 4,358 ║
║ MLX Cache ║ 0 ║ 2,473 ║
║ MLX Total ║ 0 ║ 6,830 ║
╠═══════════════════╬═══════════╬═══════════╣
║ MLX Peak ║ ║ 5,191 ║
╠═══════════════════╩═══════════╬═══════════╣
║ Time elapsed ║ 2.6s ║
╚═══════════════════════════════╩═══════════╝
Castle Shopping Centre, Banbury, England, United Kingdom, UK, 2025-03-15 16:31:57
Generation time: 2.0s
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Processing meta-llama/Llama-3.2-11B-Vision-Instruct
Fetching 15 files: 100%|█████████████████████████████████████████████████████████████| 15/15 [00:00<00:00, 38574.22it/s]
Fetching 15 files: 100%|█████████████████████████████████████████████████████████████| 15/15 [00:00<00:00, 18401.45it/s]
==========
Files: ['/Users/jrp/Pictures/Processed/20250315-163157_DSC02909_openWith-1 copy.jpg']
Prompt: <|begin_of_text|><|start_header_id|>user<|end_header_id|>
Provide a factual caption, description and comma-separated keywords or tags for this image so that it can be catalogued and searched for easily. The picture was taken in Castle Shopping Centre, Banbury, England, United Kingdom, UK on 2025-03-15 16:31:57<|image|><|eot_id|><|start_header_id|>assistant<|end_header_id|>
╔═══════════════════╦═══════════╦═══════════╗
║ Memory usage (MB) ║ Pre ║ Post ║
╠═══════════════════╬═══════════╬═══════════╣
║ MLX Active ║ 0 ║ 22,444 ║
║ MLX Cache ║ 324 ║ 772 ║
║ MLX Total ║ 324 ║ 23,216 ║
╠═══════════════════╬═══════════╬═══════════╣
║ MLX Peak ║ ║ 22,866 ║
╠═══════════════════╩═══════════╬═══════════╣
║ Time elapsed ║ 3.5s ║
╚═══════════════════════════════╩═══════════╝
Model processing error: [metal::Device] Unable to load function steel_attention_bfloat16_bq32_bk16_bd128_wm4_wn1_maskint32
Function steel_attention_bfloat16_bq32_bk16_bd128_wm4_wn1_maskint32 was not found in the library
Traceback (most recent call last):
File "/Users/jrp/Documents/AI/mlx/scripts/vlm/check_models.py", line 348, in process_model
output: str = generate(
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.12/site-packages/mlx_vlm/utils.py", line 1145, in generate
for response in stream_generate(model, processor, prompt, image, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.12/site-packages/mlx_vlm/utils.py", line 1066, in stream_generate
for n, (token, logprobs) in enumerate(
^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.12/site-packages/mlx_vlm/utils.py", line 983, in generate_step
mx.async_eval(y)
RuntimeError: [metal::Device] Unable to load function steel_attention_bfloat16_bq32_bk16_bd128_wm4_wn1_maskint32
Function steel_attention_bfloat16_bq32_bk16_bd128_wm4_wn1_maskint32 was not found in the library
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Processing microsoft/Phi-3.5-vision-instruct
Fetching 14 files: 100%|█████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 23889.45it/s]
libc++abi: terminating due to uncaught exception of type std::runtime_error: [METAL] Command buffer execution failed: Invalid Resource (00000009:kIOGPUCommandBufferCallbackErrorInvalidResource)
zsh: abort python check_models.py -v --debug
/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.12/multiprocessing/resource_tracker.py:255: 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 '
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working