Skip to content
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

add:Idefics3 image model support #162

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shuhongwu
Copy link

@shuhongwu shuhongwu commented Dec 13, 2024

add Idefics3 support, the model address is : https://huggingface.co/mlx-community/SmolVLM-Instruct-4bit

command has been tested:

`
➜ mlx-swift-examples git:(add_Idefics3_support) ✗ ./mlx-run llm-tool --model mlx-community/SmolVLM-Instruct-4bit --prompt "Describe this image in detail" --image WechatIMG4754.jpg
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006001-001439D81E69401E, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006001-001439D81E69401E, name:My Mac }
{ platform:macOS, name:Any Mac }
Model loaded -> id("mlx-community/SmolVLM-Instruct-4bit")
Starting generation ...
Describe this image in detail by describing the objects in the image and their arrangement.

The image shows a child sitting on a couch. The child is wearing a blue shirt and a diaper and has a finger in his mouth. He is sitting on a pink and green pillow. The couch is covered in a white blanket and there are some other pillows and a toy on the couch. The child is looking to the right side of the frame.

The image is taken indoors, and the background is a wall with a------
Prompt: 6 tokens, 25.81322 tokens/s
Generation: 100 tokens, 179.972341 tokens/s, 0.555641s

`

Copy link
Collaborator

@davidkoski davidkoski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fantastic! Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants