Model reference · open weights

h2ovl-mississippi

LLMs h2oai Text gen 2 builds Open weights 47k dl/mo

h2ovl-mississippi is an open-weight language model from h2oai. h2ovl-mississippi-2b (BF16) weighs 4.3 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • H2OVL-Mississippi is a vision-language model developed by H2O.ai for text generation tasks, specifically optimized for OCR, document comprehension, and chart interpretation.
  • The model features 826M parameters and supports the English language.
  • It is trained on 19 million image-text pairs and is released under the apache-2.0 licence.

Summary of the h2oai/h2ovl-mississippi-800m model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byh2oai
Released2024-10-16
Parameters826M
VRAM4.3 GB for the weights

What it runs on

Memory and cards for h2ovl-mississippi-2b (BF16)

4.3 GBweights, file size
61 MBcache per 1K tokens
1.8 GBruntime overhead, at least
8,192 tokenscontext max
CardRequests at onceContext maxMemory
8K each
RTX 3060 12 GB10all 8K11.6 GB
RTX 4060 Ti 16 GB18all 8K15.4 GB
RTX 3090 24 GB34all 8K23.4 GB
RTX 4090 24 GB34all 8K23.4 GB
RTX 5090 32 GB49all 8K31.0 GB
L40S 48 GB75all 8K44.0 GB
A100 80 GB143all 8K78.2 GB
H100 80 GB137all 8K78.1 GB
RTX PRO 6000 Blackwell 96 GB168all 8K93.8 GB
DGX Spark (GB10) 128 GB unified195all 8K107 GB
H200 141 GB256all 8K138 GB
B200 180 GB331all 8K176 GB
Memory needed at each load
Requests at once8K tokens each
16.7 GB
58.7 GB
810.2 GB
1614.2 GB
3222.3 GB
6438.4 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
h2ovl-mississippi-800m ↗ 826MBF16 1.7 GBRTX 3060 12 GB
h2ovl-mississippi-2b (above) ↗ 2.2BBF16 4.3 GBRTX 3060 12 GB

From the model card

What h2oai says about h2ovl-mississippi

Read the 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

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:

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 = '\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

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms