Xkev/Llama-3.2V-11B-cot

By Xkev

🎯 Task: Image Text To Text⚖️ apache-2.0📦 transformers

Model Card

Model Card for Model ID

Llama-3.2V-11B-cot is a visual language model capable of spontaneous, systematic reasoning.

The model was proposed in LLaVA-CoT: Let Vision Language Models Reason Step-by-Step.

Our model is built upon meta-llama/Llama-3.2-11B-Vision-Instruct. Llama 3.2 is licensed under the LLaMA 3.2 Community License, Copyright © Meta Platforms, Inc. The use of our model must comply with Meta’s Acceptable Use Policy.

Model Details

  • License: apache-2.0
  • Finetuned from model: meta-llama/Llama-3.2-11B-Vision-Instruct

Code: https://github.com/PKU-YuanGroup/LLaVA-CoT

Benchmark Results

MMStarMMBenchMMVetMathVistaAI2DHallusionAverage
57.675.060.354.885.747.863.5

Reproduction

To reproduce our results, you should use VLMEvalKit and the following settings.

ParameterValue
do_sampleTrue
temperature0.6
top_p0.9
max_new_tokens2048

You may change them in this file, line 80-83, and modify the max_new_tokens throughout the file.

Note: We follow the same settings as Llama-3.2-11B-Vision-Instruct, except that we extend the max_new_tokens to 2048.

After you get the results, you should filter the model output and only keep the outputs between <CONCLUSION> and </CONCLUSION>.

This shouldn't have any difference in theory, but empirically we observe some performance difference because the jugder GPT-4o can be inaccurate sometimes.

By keeping the outputs between <CONCLUSION> and </CONCLUSION>, most answers can be direclty extracted using VLMEvalKit system, which can be much less biased.

How to Get Started with the Model

You can use the inference code for Llama-3.2-11B-Vision-Instruct.

Training Details

Training Data

The model is trained on the LLaVA-CoT-100k dataset.

Training Procedure

The model is finetuned on llama-recipes with the following settings. Using the same setting should accurately reproduce our results.

ParameterValue
FSDPenabled
lr1e-5
num_epochs3
batch_size_training4
use_fast_kernelsTrue
run_validationFalse
batching_strategypadding
context_length4096
gradient_accumulation_steps1
gradient_clippingFalse
gradient_clipping_threshold1.0
weight_decay0.0
gamma0.85
seed42
use_fp16False
mixed_precisionTrue

Bias, Risks, and Limitations

The model may generate biased or offensive content, similar to other VLMs, due to limitations in the training data. Technically, the model's performance in aspects like instruction following still falls short of leading industry models.

Architecture & Tags

transformerssafetensorsmllamaimage-text-to-textconversationalenbase_model:meta-llama/Llama-3.2-11B-Vision-Instructbase_model:finetune:meta-llama/Llama-3.2-11B-Vision-Instructtext-generation-inferenceendpoints_compatibleregion:us