unum-cloud / uform-gen2-dpo

huggingface.co
Total runs: 4.2K
24-hour runs: -69
7-day runs: 204
30-day runs: -82
Model's Last Updated: April 25 2024
image-to-text

Introduction of uform-gen2-dpo

Model Details of uform-gen2-dpo

Description

UForm-Gen2-dpo is a small generative vision-language model alined for Image Captioning and Visual Question Answering on preference datasets VLFeedback and LLaVA-Human-Preference-10K using Direct Preference Optimization (DPO).

The model consists of two parts:

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

The model took less than 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-dpo", trust_remote_code=True)
processor = AutoProcessor.from_pretrained("unum-cloud/uform-gen2-dpo", 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

perception reasoning OCR artwork celebrity code_reasoning color commonsense_reasoning count existence landmark numerical_calculation position posters scene text_translation

MME Benchmark

Model perception reasoning OCR artwork celebrity code_reasoning color commonsense_reasoning count existence landmark numerical_calculation position posters scene text_translation
uform-gen2-dpo 1,048.75 224.64 72.50 97.25 62.65 67.50 123.33 57.14 136.67 195.00 104.00 50.00 51.67 59.18 146.50 50.00
uform-gen2-qwen-500m 863.40 236.43 57.50 93.00 67.06 57.50 78.33 81.43 53.33 150.00 98.00 50.00 50.00 62.93 153.25 47.50

Runs of unum-cloud uform-gen2-dpo on huggingface.co

4.2K
Total runs
-69
24-hour runs
35
3-day runs
204
7-day runs
-82
30-day runs

More Information About uform-gen2-dpo huggingface.co Model

More uform-gen2-dpo license Visit here:

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

uform-gen2-dpo huggingface.co

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

unum-cloud uform-gen2-dpo online free

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

unum-cloud uform-gen2-dpo online free url in huggingface.co:

https://huggingface.co/unum-cloud/uform-gen2-dpo

uform-gen2-dpo install

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

uform-gen2-dpo install url in huggingface.co:

https://huggingface.co/unum-cloud/uform-gen2-dpo

Url of uform-gen2-dpo

uform-gen2-dpo huggingface.co Url

Provider of uform-gen2-dpo huggingface.co

unum-cloud
ORGANIZATIONS

Other API from unum-cloud

huggingface.co

Total runs: 35
Run Growth: -2
Growth Rate: -5.71%
Updated:December 31 2023