Elffuss BraidHub

kikocis/mlx-vlm public

Fix image masks and update pointing example (#117)

* loading florence2

* update enc-decoder flow

* fix embeddings and update cache

* working language model florence-2 yay!!!

* Florecen-2 LM complete

* add simpleKVCache

* vision model 90% done

* fix image encoding

* update GELU and format code

* add new grouped conv and numerical close to HF

* fix depthwise conv, and add image encoding

* expand generate to support florence2

* update embeddings to fix quant errors

* fix inference and weight sanitization(vision)

* remove unused

* fix formatting

* loading florence2

* update enc-decoder flow

* fix embeddings and update cache

* working language model florence-2 yay!!!

* Florecen-2 LM complete

* add simpleKVCache

* vision model 90% done

* fix image encoding

* update GELU and format code

* add new grouped conv and numerical close to HF

* fix depthwise conv, and add image encoding

* expand generate to support florence2

* update embeddings to fix quant errors

* fix inference and weight sanitization(vision)

* remove unused

* fix formatting

* fix repetition penalty

* add tests and formatting

* fix missing image masks

* improve object pointing example
Changesetfe5ea2241280a2cb86481469a69c7a9ae7b0c0eae9a73a4aaecdd0a1665d3625
AuthorPrince Canuma <prince.gdt@gmail.com> · 2024-11-22 08:34 +01:00
CommitterGitHub <noreply@github.com> · 2024-11-22 08:34 +01:00
Parentsc4e3842f4fa3

Browse the files at this changeset

2 files changed

modified examples/object_pointing.ipynb +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

modified mlx_vlm/utils.py +1 −0
@@ -829,6 +829,7 @@
829829 aspect_ratio_mask = None
830830 cross_attention_mask = None
831831 image_input_idx = None
832+ image_masks = None
832833
833834 if image_processor is not None:
834835 if not isinstance(prompts, list):