-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[iOS] support for multimodal #524
Conversation
8487d88
to
6e24278
Compare
ed37c7c
to
c5f1116
Compare
cc @MasterJH5574 @yzh119 @cyx-6 , would be great if you can help review |
Just a heads up, I didn't change the |
a2ac87b
to
77c8b47
Compare
I'm planning to introduce chat.generate() python high-level API in a followup PR, because the API might need some further discussions. Let me know if everything is good in this PR. |
@Kathryn-cat when (or where) can we expect to find edit: found this, so I'll keep an eye on it there: #679 |
Hey @dylanbeadle , minigpt4-7b-q3f16_0 is just for testing purpose. You can build minigpt4 with q3f16_0 (might be a slightly outdated quantization method) and test it in iOS. I'll work on testing the image-multimodal part on iOS soon too. |
Hi @Kathryn-cat , I tried to build minigpt4 from https://huggingface.co/wangrongsheng/MiniGPT-4-LLaMA-7B using |
Great work! 🎉 |
Hi @Kathryn-cat, I tried to build miniGPT-4 from https://huggingface.co/wangrongsheng/MiniGPT-4-LLaMA-7B but getting error as attached screenshot. Any suggestions or pointers to resolving this please. |
Hey @Kathryn-cat, I tried building MiniGPT-4 using the below URLs: Url1 - https://huggingface.co/Vision-CAIR/MiniGPT-4 I'm getting below errors while doing this process. Any suggestions or pointers to resolving this please.
|
@amol-prakash seems you have an extra starting “/“ in your |
This PR introduces multimodality for iOS. Specifically, below is a demo of running MiniGPT on iOS.
minigpt_ios.mov
Changes:
image_embed.cc
andimage_module.py
for image-module-related functionalitiesprefillImage
function inLLMChat.mm
handling conversion from UIImage* to void* to tvm::runtime::NDArrayrelax_model
Update:
app-config.json
file cuz it would affect users. let's add it in a followup pr after we upload the tuned minigpt model to HF