AI SeedbankHelp preserve open and free AI for humanity's future

← All models

h2oai_h2ovl-mississippi-800m

h2oai · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language:

  • en library_name: transformers license: apache-2.0 tags:
  • gpt
  • llm
  • multimodal large language model
  • ocr thumbnail: >- https://h2o.ai/etc.clientlibs/h2o/clientlibs/clientlib-site/resources/images/favicon.ico pipeline_tag: text-generation

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.

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.

Benchmarks

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

Models Params (B) Avg. Score MMBench MMStar MMMUVAL Math Vista Hallusion AI2DTEST OCRBench MMVet
Qwen2-VL-2B 2.1 57.2 72.2 47.5 42.2 47.8 42.4 74.7 797 51.5
H2OVL-Mississippi-2B 2.1 54.4 64.8 49.6 35.2 56.8 36.4 69.9 782 44.7
InternVL2-2B 2.1 53.9 69.6 49.8 36.3 46.0 38.0 74.1 781 39.7
Phi-3-Vision 4.2 53.6 65.2 47.7 46.1 44.6 39.0 78.4 637 44.1
MiniMonkey 2.2 52.7 68.9 48.1 35.7 45.3 30.9 73.7 794 39.8
MiniCPM-V-2 2.8 47.9 65.8 39.1 38.2 39.8 36.1 62.9 605 41.0
InternVL2-1B 0.8 48.3 59.7 45.6 36.7 39.4 34.3 63.8 755 31.5
PaliGemma-3B-mix-448 2.9 46.5 65.6 48.3 34.9 28.7 32.2 68.3 614 33.1
H2OVL-Mississippi-0.8B 0.8 43.5 47.7 39.1 34.0 39.0 29.6 53.6 751 30.0
DeepSeek-VL-1.3B 2.0 39.6 63.8 39.9 33.8 29.8 27.6 51.5 413 29.2

Quick Start

Install dependencies:

pip install transformers torch torchvision einops timm peft sentencepiece flash_attn

Sample demo:

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:

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

Expected Output:

{
  "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:

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:

{
  "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:

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

Expected Output:

{
  "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:

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

Expected Output:

{
  "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:

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:

{
  "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.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:2b2053ddb9f55064a9d00e366bb36be2eb580880&dn=h2oai_h2ovl-mississippi-800m

Open magnet in torrent client · infohash 2b2053ddb9f55064a9d00e366bb36be2eb580880

Files & hashes

PathSizesha1sha256
README.md13.6 KB (13,976 B)81093a1718f265519da9b8774b39d9594a05ab98b0d68cf1032e64f182ddc3446c8eff05809cc83c1abae491ec7de92dfef2483e
added_tokens.json199 B (199 B)b9d8a5058841a102a697fcb791c4162d051b8e7044d68e7e3d38d220485a60936ab3e70206e2261f4ca36d1bb00053814463fa35
assets/perf_size.png199.5 KB (204,318 B)234606fe90073c4d5928c45ded155f7c5478bce438abcba9f0499a69524908e6beb46ce3a4c41bb0498895426bd3daf80fba0fa1
assets/text_recognition.png398.2 KB (407,756 B)9168e6d71642291fc46c12351cdb9b4a133afb1992f31269e2e1aa5744962e70a498f280d207494343dbc3ccbd1bc4e9a3961347
config.json4.0 KB (4,088 B)1e98e68b5eb8a3b3da0be1c29f0885639b1425cfd8d28ba0f126065475355f9df5d376e8f8e9b90665a1a603fd24c2a72b2cc137
configuration_h2ovl_chat.py5.0 KB (5,091 B)74f72caa209aa6d2742ec4b3de3dcea13380b2e380afffa303dbde7156d26cf32b42a0be6986a9592d1c1a59855c9763d5d7665b
configuration_intern_vit.py5.4 KB (5,547 B)ac60112c79abc35627a5b6b58e760c2f78e71839f9b42f449b004284e8290b590ce3878322ec94b50b407083f1e3819b21544ee7
conversation.py5.0 KB (5,155 B)b72edb95cb0a5f1cff462c2014415143d6f0336f55fe4d37d0690b896a769ffcb3f44394e1785242855dc2403727631a4827bfdb
generation_config.json214 B (214 B)834f1d0041becc45495d00465bea633d6c3953d387a710b888f3bb905b7f1b80ac4c83c1e1cca88dac957c3778b7b4ba0d637b90
image_process.py6.8 KB (6,923 B)b63883bf8082c9beebb4a49a653db558ab1ecb81ecf09e7d6812d0a9d430f4aace8cc30f0d59c6d16426ad5acf2aee29c1e0efe5
model.safetensors1.54 GB (1,652,650,984 B)ca7dc481036473f1bc0c9526323fc4627d0d7055260fd8e6c1e92c974fd4fa1a8be5d26330e570c9e09281dd9abd1108b66514d2
modeling_intern_vit.py18.7 KB (19,110 B)8ba8bba0a240f1c14b00b8c21476fa3756cc4f196dec8271e3dfaf5dfd76b5507a3313488be46f449b95610aa3582cef71e6ecd9
modelling_h2ovl_chat.py20.8 KB (21,297 B)2ff14f674ba6fd03cce8386d501e53b837e1722774e26d2d346acec5cd02332be532e788c7a6cc7a35f6b3fb6ee81ffd9a68bff0
special_tokens_map.json1009 B (1,009 B)153727fa2053bb7e6ea5fd349aad09fd318ade61af67c49592f1e5334c5d69bb43464a0fe559ba0e1b0512aecac163a540540132
tokenizer.model481.9 KB (493,443 B)4b7582bd37540a3bfba772bb3569e06c82834018dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
tokenizer_config.json3.5 KB (3,551 B)acca7aa0837080eb9b12d012e06a61ede1364f6579eae210a58d77ad4c42cae521af29a76b5e22568945719776bc36acf06f3d68

Cite this release

Canonical URL
https://aiseedbank.org/models/h2oai_h2ovl-mississippi-800m/
Slug
h2oai_h2ovl-mississippi-800m
Infohash
2b2053ddb9f55064a9d00e366bb36be2eb580880
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: h2oai_h2ovl-mississippi-800m.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryh2oai/h2ovl-mississippi-800m
Revision (pinned)18069f53fd288fdf96b4e15df15afa68d7996fb8
Fetched at2026-09-04T00:33:44Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T00:34:02Z

apache-2.01.54 GB (1,653,842,661 bytes)transformerssafetensorsh2ovl_chatfeature-extractiongptllmmultimodal large language modelocrtext-generationconversationalcustom_code1 language (en)paper: 2410.13611