AI/EXPLORER
OutilsCatégoriesSitesLLMsComparerQuiz IAAlternativesPremium
—Outils IA
—Sites & Blogs
—LLMs & Modèles
—Catégories
AI Explorer

Trouvez et comparez les meilleurs outils d'intelligence artificielle pour vos projets.

Fait avecen France

Explorer

  • ›Tous les outils
  • ›Sites & Blogs
  • ›LLMs & Modèles
  • ›Comparer
  • ›Chatbots
  • ›Images IA
  • ›Code & Dev

Entreprise

  • ›Premium
  • ›À propos
  • ›Contact
  • ›Blog

Légal

  • ›Mentions légales
  • ›Confidentialité
  • ›CGV

© 2026 AI Explorer·Tous droits réservés.

AccueilLLMsh2ovl mississippi 800m

h2ovl mississippi 800m

par h2oai

Open source · 982k downloads · 39 likes

2.0
(39 avis)ChatAPI & Local
À propos

Le modèle H2OVL-Mississippi-800M est un modèle vision-langage compact développé par H2O.ai, doté de 0,8 milliard de paramètres. Malgré sa taille réduite, il surpasse des modèles bien plus grands dans le domaine de la reconnaissance de texte, notamment sur des benchmarks spécialisés comme OCRBench. Entraîné sur 19 millions de paires image-texte, il excelle dans l'OCR, la compréhension de documents, ainsi que l'interprétation de tableaux, graphiques et figures. Son architecture, dérivée des modèles H2O-Danube, combine efficacité et performances, ce qui le rend particulièrement adapté aux tâches de traitement de documents et d'extraction d'informations structurées. Ce qui le distingue, c'est sa capacité à générer des sorties JSON précises à partir d'images, facilitant l'intégration des données extraites dans des applications variées.

Documentation

Model Card

[📜 H2OVL-Mississippi Paper] [🤗 HF Demo] [🚀 Quick Start]

The H2OVL-Mississippi-800M is a compact yet powerful vision-language model from H2O.ai, featuring 0.8 billion parameters. Despite its small size, it delivers state-of-the-art performance in text recognition, excelling in the Text Recognition segment of OCRBench and outperforming much larger models in this domain. Built upon the robust architecture of our H2O-Danube language models, the Mississippi-800M extends their capabilities by seamlessly integrating vision and language tasks.

Mississippi-2B Benchmarks

Key Features:

  • 0.8 Billion Parameters: Balance between performance and efficiency, making it suitable for OCR and document processing.
  • Trained on 19 million image-text pairs, with a focus on OCR, document comprehension, and chart, figure, and table interpretation, the model is optimized for superior OCR performance.
Mississippi-2B Benchmarks

Benchmarks

Performance Comparison of Similar Sized Models Across Multiple Benchmarks - OpenVLM Leaderboard

ModelsParams (B)Avg. ScoreMMBenchMMStarMMMUVALMath VistaHallusionAI2DTESTOCRBenchMMVet
Qwen2-VL-2B2.157.272.247.542.247.842.474.779751.5
H2OVL-Mississippi-2B2.154.464.849.635.256.836.469.978244.7
InternVL2-2B2.153.969.649.836.346.038.074.178139.7
Phi-3-Vision4.253.665.247.746.144.639.078.463744.1
MiniMonkey2.252.768.948.135.745.330.973.779439.8
MiniCPM-V-22.847.965.839.138.239.836.162.960541.0
InternVL2-1B0.848.359.745.636.739.434.363.875531.5
PaliGemma-3B-mix-4482.946.565.648.334.928.732.268.361433.1
H2OVL-Mississippi-0.8B0.843.547.739.134.039.029.653.675130.0
DeepSeek-VL-1.3B2.039.663.839.933.829.827.651.541329.2

Quick Start

Install dependencies:

Bash
pip install transformers torch torchvision einops timm peft sentencepiece flash_attn

Sample demo:

Python
import torch
from transformers import AutoConfig, AutoModel, AutoTokenizer


# Set up the model and tokenizer
model_path = 'h2oai/h2ovl-mississippi-800m'
config = AutoConfig.from_pretrained(model_path, trust_remote_code=True)
config.llm_config._attn_implementation = 'flash_attention_2'
model = AutoModel.from_pretrained(
    model_path,
    torch_dtype=torch.bfloat16,
    config=config,
    low_cpu_mem_usage=True,
    trust_remote_code=True).eval().cuda()
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, use_fast=False)
generation_config = dict(max_new_tokens=2048, do_sample=True)

# pure-text conversation
question = 'Hello, how are you?'
response, history = model.chat(tokenizer, None, question, generation_config, history=None, return_history=True)
print(f'User: {question}\nAssistant: {response}')


# Example for single image
image_file = './examples/image.jpg'
question = '<image>\nRead the text in the image.'
response, history = model.chat(tokenizer, image_file, question, generation_config, history=None, return_history=True)
print(f'User: {question}\nAssistant: {response}')


Prompt Engineering for JSON Extraction

Overview

This guide demonstrates how to create prompts for extracting information and converting it into structured JSON outputs. It starts with basic examples and progresses to more complex JSON structures, including handling data from images of tables and charts. The objective is to help users design effective prompts that can be used in various applications, such as natural language processing, chatbots, or data extraction from visual inputs.

Table of Contents

  1. Getting Started
  2. Extracting Simple Information
  3. Extracting Nested Information
  4. Extracting Lists and Arrays
  5. Extracting Tables
  6. Extracting Charts
  7. Best Practices

Getting Started

To get started with JSON extraction from images, it's essential to have a clear understanding of the visual content you want to extract and the structure of the desired JSON output. The following examples will guide you through crafting prompts to achieve this.

Example 1: Extracting Simple Information from an Image

Hypothetical Scenario: You have an image of a form that contains basic details like "Name," "Date of Birth," and "Address."

Prompt:

CSS
Extract the details from the form image and structure them into JSON format:
{
    "name": "",
    "date_of_birth": "",
    "address": ""
}

Expected Output:

JSON
{
  "name": "John Doe",
  "date_of_birth": "1990-01-01",
  "address": "1234 Elm Street, Springfield"
}

Example 2: Extracting Nested Information from an Image

Hypothetical Scenario: You have an image of a form that contains detailed personal information, including contact details and emergency contacts.

Prompt:

CSS
Extract the information from the form and format it as follows:
{
    "personal_details": {
        "name": "",
        "age": 0,
        "gender": ""
    },
    "contact": {
        "phone": "",
        "email": ""
    },
    "emergency_contact": {
        "name": "",
        "relation": "",
        "phone": ""
    }
}

Expected Output:

JSON
{
  "personal_details": {
    "name": "Sarah Connor",
    "age": 35,
    "gender": "Female"
  },
  "contact": {
    "phone": "555-1234",
    "email": "[email protected]"
  },
  "emergency_contact": {
    "name": "Kyle Reese",
    "relation": "Friend",
    "phone": "555-5678"
  }
}

Example 3: Extracting Lists and Arrays from an Image

Hypothetical Scenario: You have an image of a schedule that lists several events, their times, and locations.

Prompt:

CSS
Extract the event details from the schedule image and structure them into JSON:
{
    "events": [
        {
            "name": "",
            "time": "",
            "location": ""
        }
    ]
}

Expected Output:

JSON
{
  "events": [
    {
      "name": "Morning Meeting",
      "time": "09:00 AM",
      "location": "Conference Room 1"
    },
    {
      "name": "Lunch Break",
      "time": "12:00 PM",
      "location": "Cafeteria"
    },
    {
      "name": "Project Update",
      "time": "02:00 PM",
      "location": "Conference Room 2"
    }
  ]
}

Example 4: Extracting Table Data from an Image

Images of tables often contain structured data that needs to be parsed and converted to JSON. The following example demonstrates how to handle tabular data extraction.

Hypothetical Scenario: You have an image of a table listing product names, prices, and quantities.

Prompt:

CSS
Extract the data from the table image and format it as JSON:
{
    "products": [
        {
            "product_name": "",
            "price": "",
            "quantity": 0
        }
    ]
}

Expected Output:

JSON
{
  "products": [
    {
      "product_name": "Apples",
      "price": "$2",
      "quantity": 10
    },
    {
      "product_name": "Bananas",
      "price": "$1",
      "quantity": 20
    },
    {
      "product_name": "Oranges",
      "price": "$3",
      "quantity": 15
    }
  ]
}

Example 5: Extracting Chart Data from an Image

Charts include metadata and data points that need to be accurately extracted. Here's how to structure prompts to extract chart data from images.

Hypothetical Scenario: You have an image of a bar chart that shows monthly sales figures.

Prompt:

CSS
Extract the details of the bar chart from the image, including the title, axis labels, and data points and format it as JSON:
{
    "chart": {
        "title": "",
        "x_axis": "",
        "y_axis": "",
        "data_points": [
            {
                "label": "",
                "value": 0
            }
        ]
    }
}

Expected Output:

JSON
{
  "chart": {
    "title": "Monthly Sales Report",
    "x_axis": "Months",
    "y_axis": "Sales (in $)",
    "data_points": [
      {
        "label": "January",
        "value": 500
      },
      {
        "label": "February",
        "value": 600
      },
      {
        "label": "March",
        "value": 700
      }
    ]
  }
}

Best Practices

  1. Be Explicit: Clearly define the desired keys and structure in your prompt to avoid ambiguity.
  2. Use Examples: Provide sample outputs so that the system can understand the expected format.
  3. Anticipate Variations: Consider possible variations in the visual data and ensure the prompt can accommodate them.
  4. Start Simple: Begin with simple structures, and progressively increase complexity as needed.
  5. Test and Iterate: Refine your prompts through testing to ensure accuracy and consistency in outputs.

Acknowledgments

We would like to express our gratitude to the InternVL team at OpenGVLab for their research and codebases, upon which we have built and expanded. We also acknowledge the work of the LLaVA team and the Monkey team for their insights and techniques used in improving multimodal models.

Disclaimer

Please read this disclaimer carefully before using the large language model provided in this repository. Your use of the model signifies your agreement to the following terms and conditions.

  • Biases and Offensiveness: The large language model is trained on a diverse range of internet text data, which may contain biased, racist, offensive, or otherwise inappropriate content. By using this model, you acknowledge and accept that the generated content may sometimes exhibit biases or produce content that is offensive or inappropriate. The developers of this repository do not endorse, support, or promote any such content or viewpoints.
  • Limitations: The large language model is an AI-based tool and not a human. It may produce incorrect, nonsensical, or irrelevant responses. It is the user's responsibility to critically evaluate the generated content and use it at their discretion.
  • Use at Your Own Risk: Users of this large language model must assume full responsibility for any consequences that may arise from their use of the tool. The developers and contributors of this repository shall not be held liable for any damages, losses, or harm resulting from the use or misuse of the provided model.
  • Ethical Considerations: Users are encouraged to use the large language model responsibly and ethically. By using this model, you agree not to use it for purposes that promote hate speech, discrimination, harassment, or any form of illegal or harmful activities.
  • Reporting Issues: If you encounter any biased, offensive, or otherwise inappropriate content generated by the large language model, please report it to the repository maintainers through the provided channels. Your feedback will help improve the model and mitigate potential issues.
  • Changes to this Disclaimer: The developers of this repository reserve the right to modify or update this disclaimer at any time without prior notice. It is the user's responsibility to periodically review the disclaimer to stay informed about any changes.

By using the large language model provided in this repository, you agree to accept and comply with the terms and conditions outlined in this disclaimer. If you do not agree with any part of this disclaimer, you should refrain from using the model and any content generated by it.

Liens & Ressources
Spécifications
CatégorieChat
AccèsAPI & Local
LicenceOpen Source
TarificationOpen Source
Note
2.0

Essayer h2ovl mississippi 800m

Accédez directement au modèle