iambestfeed / imp-v1-3b-mrope

huggingface.co
Total runs: 22
24-hour runs: 0
7-day runs: 3
30-day runs: 9
Model's Last Updated: Mars 16 2025
text-generation

Introduction of imp-v1-3b-mrope

Model Details of imp-v1-3b-mrope

😈 Imp

A very small man can cast a very large shadow.

—— George R.R. Martin, A Clash of Kings

[Technical report (coming soon)]  [ Demo ]  [ Github ]

Introduction

The Imp project aims to provide a family of a strong multimodal small language models (MSLMs). Our imp-v1-3b is a strong MSLM with only 3B parameters, which is build upon a small yet powerful SLM Phi-2 (2.7B) and a powerful visual encoder SigLIP (0.4B), and trained on the LLaVA-v1.5 training set.

As shown in the image below, imp-v1-3b significantly outperforms the counterparts of similar model sizes, and even achieves slightly better performance than the strong LLaVA-7B model on various multimodal benchmarks.

evaluation

We release our model weights and provide an example below to run our model . Detailed technical report and corresponding training/evaluation code will be released soon on our GitHub repo . We will persistently improve our model and release the next versions to further improve model performance :)

How to use

Install dependencies

pip install transformers # latest version is ok, but we recommend v4.39.2
pip install -q pillow accelerate einops

You can use the following code for model inference. The format of text instruction is similar to LLaVA . A Colab page to run this example is provided here . Note that the example can only be run on GPUs currently.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from PIL import Image

torch.set_default_device("cuda")

#Create model
model = AutoModelForCausalLM.from_pretrained(
    "MILVLG/imp-v1-3b", 
    torch_dtype=torch.float16, 
    device_map="auto",
    trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("MILVLG/imp-v1-3b", trust_remote_code=True)

#Set inputs
text = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: <image>\nWhat are the colors of the bus in the image? ASSISTANT:"
image = Image.open("images/bus.jpg")

input_ids = tokenizer(text, return_tensors='pt').input_ids
image_tensor = model.image_preprocess(image)

#Generate the answer
output_ids = model.generate(
    input_ids,
    max_new_tokens=100,
    images=image_tensor,
    use_cache=True)[0]
print(tokenizer.decode(output_ids[input_ids.shape[1]:], skip_special_tokens=True).strip())
Model evaluation

We conduct evaluation on 9 commonly-used benchmarks, including 5 academic VQA benchmarks and 4 popular MLLM benchmarks, to compare our Imp model with LLaVA (7B) and existing MSLMs of similar model sizes.

Models Size VQAv2 GQA SQA(IMG) TextVQA POPE MME(P) MMB MM-Vet
LLaVA-v1.5-lora 7B 79.10 63.00 68.40 58.20 86.40 1476.9 66.10 30.2
TinyGPT-V 3B - 33.60 - - - - - -
LLaVA-Phi 3B 71.40 - 68.40 48.60 85.00 1335.1 59.80 28.9
MobileVLM 3B - 59.00 61.00 47.50 84.90 1288.9 59.60 -
MC-LLaVA-3b 3B 64.24 49.60 - 38.59 80.59 - - -
Imp-v1 (ours) 3B 81.42 64.40 69.26 59.34 87.85 1502.8 67.69 33.6
Examples

example1

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About us

This project is maintained by the MILVLG @Hangzhou Dianzi University (HDU) led by Prof. Zhou Yu and Jun Yu, and is mainly developed by Zhenwei Shao and Xuecheng Ouyang. We hope our model may serve as a strong baseline to inspire future research on MSLM, as well as its derivative applications on mobile devices and robots.

Citation

If you use our model or refer our work in your studies, please cite:

@article{imp2024,
  title={Imp: Highly Capable Large Multimodal Models for Mobile Devices},
  author={Shao, Zhenwei and Yu, Zhou and Yu, Jun and Ouyang, Xuecheng and Zheng, Lihao and Gai, Zhenbiao and Wang, Mingyang and Ding, Jiajun},
  journal={arXiv preprint arXiv:2405.12107},
  year={2024}
}

Runs of iambestfeed imp-v1-3b-mrope on huggingface.co

22
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
9
30-day runs

More Information About imp-v1-3b-mrope huggingface.co Model

More imp-v1-3b-mrope license Visit here:

https://choosealicense.com/licenses/apache-2.0

imp-v1-3b-mrope huggingface.co

imp-v1-3b-mrope huggingface.co is an AI model on huggingface.co that provides imp-v1-3b-mrope's model effect (), which can be used instantly with this iambestfeed imp-v1-3b-mrope model. huggingface.co supports a free trial of the imp-v1-3b-mrope model, and also provides paid use of the imp-v1-3b-mrope. Support call imp-v1-3b-mrope model through api, including Node.js, Python, http.

iambestfeed imp-v1-3b-mrope online free

imp-v1-3b-mrope huggingface.co is an online trial and call api platform, which integrates imp-v1-3b-mrope's modeling effects, including api services, and provides a free online trial of imp-v1-3b-mrope, you can try imp-v1-3b-mrope online for free by clicking the link below.

iambestfeed imp-v1-3b-mrope online free url in huggingface.co:

https://huggingface.co/iambestfeed/imp-v1-3b-mrope

imp-v1-3b-mrope install

imp-v1-3b-mrope is an open source model from GitHub that offers a free installation service, and any user can find imp-v1-3b-mrope on GitHub to install. At the same time, huggingface.co provides the effect of imp-v1-3b-mrope install, users can directly use imp-v1-3b-mrope installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

imp-v1-3b-mrope install url in huggingface.co:

https://huggingface.co/iambestfeed/imp-v1-3b-mrope

Url of imp-v1-3b-mrope

imp-v1-3b-mrope huggingface.co Url

Provider of imp-v1-3b-mrope huggingface.co

iambestfeed
ORGANIZATIONS

Other API from iambestfeed