unum-cloud / uform-gen2-qwen-500m

huggingface.co
Total runs: 1.6K
24-hour runs: -17
7-day runs: -53
30-day runs: 972
Model's Last Updated: April 25 2024
image-to-text

Introduction of uform-gen2-qwen-500m

Model Details of uform-gen2-qwen-500m

UForm

Pocket-Sized Multimodal AI
For Content Understanding and Generation
Description

UForm-Gen is a small generative vision-language model primarily designed for Image Captioning and Visual Question Answering. The model consists of two parts:

  1. CLIP-like ViT-H/14
  2. Qwen1.5-0.5B-Chat

The model was pre-trained on the internal image captioning dataset and fine-tuned on public instructions datasets: SVIT, LVIS, VQAs datasets. The model took one day to train on a DGX-H100 with 8x H100 GPUs. Thanks to Nebius.ai for providing the compute 🤗

Usage

The generative model can be used to caption images, answer questions about them. Also it is suitable for a multimodal chat.

from transformers import AutoModel, AutoProcessor

model = AutoModel.from_pretrained("unum-cloud/uform-gen2-qwen-500m", trust_remote_code=True)
processor = AutoProcessor.from_pretrained("unum-cloud/uform-gen2-qwen-500m", trust_remote_code=True)

prompt = "Question or Instruction"
image = Image.open("image.jpg")

inputs = processor(text=[prompt], images=[image], return_tensors="pt")
with torch.inference_mode():
     output = model.generate(
        **inputs,
        do_sample=False,
        use_cache=True,
        max_new_tokens=256,
        eos_token_id=151645,
        pad_token_id=processor.tokenizer.pad_token_id
    )

prompt_len = inputs["input_ids"].shape[1]
decoded_text = processor.batch_decode(output[:, prompt_len:])[0]

You can check examples of different prompts in our demo space.

Evaluation
Model LLM Size SQA MME MMBench Average¹
UForm-Gen2-Qwen-500m 0.5B 45.5 880.1 42.0 29.31
MobileVLM v2 1.4B 52.1 1302.8 57.7 36.81
LLaVA-Phi 2.7B 68.4 1335.1 59.8 42.95

¹MME scores were divided by 2000 before averaging.

Runs of unum-cloud uform-gen2-qwen-500m on huggingface.co

1.6K
Total runs
-17
24-hour runs
17
3-day runs
-53
7-day runs
972
30-day runs

More Information About uform-gen2-qwen-500m huggingface.co Model

More uform-gen2-qwen-500m license Visit here:

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

uform-gen2-qwen-500m huggingface.co

uform-gen2-qwen-500m huggingface.co is an AI model on huggingface.co that provides uform-gen2-qwen-500m's model effect (), which can be used instantly with this unum-cloud uform-gen2-qwen-500m model. huggingface.co supports a free trial of the uform-gen2-qwen-500m model, and also provides paid use of the uform-gen2-qwen-500m. Support call uform-gen2-qwen-500m model through api, including Node.js, Python, http.

uform-gen2-qwen-500m huggingface.co Url

https://huggingface.co/unum-cloud/uform-gen2-qwen-500m

unum-cloud uform-gen2-qwen-500m online free

uform-gen2-qwen-500m huggingface.co is an online trial and call api platform, which integrates uform-gen2-qwen-500m's modeling effects, including api services, and provides a free online trial of uform-gen2-qwen-500m, you can try uform-gen2-qwen-500m online for free by clicking the link below.

unum-cloud uform-gen2-qwen-500m online free url in huggingface.co:

https://huggingface.co/unum-cloud/uform-gen2-qwen-500m

uform-gen2-qwen-500m install

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

uform-gen2-qwen-500m install url in huggingface.co:

https://huggingface.co/unum-cloud/uform-gen2-qwen-500m

Url of uform-gen2-qwen-500m

uform-gen2-qwen-500m huggingface.co Url

Provider of uform-gen2-qwen-500m huggingface.co

unum-cloud
ORGANIZATIONS

Other API from unum-cloud

huggingface.co

Total runs: 27
Run Growth: -10
Growth Rate: -31.25%
Updated:December 31 2023