Skip to page content
SAVRN
Search Plan a project

Open-weight model · Image and text to text

Peppercorn-0.3b

by Ta Khanh Duy DuyTa/Peppercorn-0.3b

Peppercorn-0.3b is an open-weight model for image and text to text from Ta Khanh Duy. It has 328M parameters and a 16,384-token context. At 16-bit it needs about 0.8 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

Peppercorn is a compact vision-language model for Vietnamese and English document OCR, with 328M parameters. It takes a document page as input and produces structured Markdown, including HTML tables and LaTeX mathematical expressions.

Parameters328M
Context16,384
Weights655.7 MB
License—
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve Peppercorn-0.3b (328M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.7 GB 0.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.3 GB 0.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.2 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 18, 2026.

Peppercorn-0.3b on every accelerator the SAVRN Index prices, at every precision

Model Card

Peppercorn is a compact vision-language model for Vietnamese and English document OCR, with 328M parameters. It takes a document page as input and produces structured Markdown, including HTML tables and LaTeX mathematical expressions. Its name comes from the Vietnamese saying nhỏ nhưng có võ — small, but mighty: compact in size, yet capable. Compared with original design, Peppercorn uses approximately 4× fewer image tokens per page (~900 vs. ~3,600) and achieves higher throughput under our tested serving configuration. It performs particularly well on Vietnamese administrative documents and synthetic tables, while English OCR, mathematical expressions, and some real-world financial tables…

Excerpt from the card by Ta Khanh Duy.

Configuration

Architecture
PeppercornForConditionalGeneration
Context length (tokens)
16,384
Layers
12
Hidden size
1,024
Feed-forward size
3,072
Attention heads
16
Key/value heads
2
Head dimension
128
Vocabulary size
32,960
Model type
idefics3

Identity and Version

Repository
DuyTa/Peppercorn-0.3b
Publisher
Ta Khanh Duy
Task
Image and text to text
Modality
Image and text
Library
transformers
Parameters
328M parameters
Languages
vi, en
Revision
68682505169c4ea5611334620cdf02047340e187
First published
2026-10-08
Last updated
2026-10-09

Files and Weights

17 files, 658.3 MB in total. The weights are 1 file totalling 655.7 MB in safetensors.

Weights1 file · 655.7 MB
Configuration9 files · 245.2 KB
Tokenizer2 files · 2.3 MB
Documentation1 file · 13.3 KB
Other3 files · 2.6 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights655.7 MB c0a198b18c81
config.jsonConfiguration2.0 KB —
examples/client.pyConfiguration5.3 KB —
examples/loop_guard.pyConfiguration3.7 KB —
examples/offline_infer.pyConfiguration2.2 KB —
generation_config.jsonConfiguration172 B —
processor_config.jsonConfiguration586 B —
student_meta.jsonConfiguration375 B —
vllm_plugin/peppercorn_vllm/__init__.pyConfiguration4.5 KB —
vocab_map.jsonConfiguration226.3 KB —
README.mdDocumentation13.3 KB —
chat_template.jinjaOther318 B —
examples/serve.shOther1.7 KB —
vllm_plugin/pyproject.tomlOther617 B —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer2.3 MB —
tokenizer_config.jsonTokenizer490 B —

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
655.7 MB
Download from Ta Khanh Duy

Released by Ta Khanh Duy through its official repository on Hugging Face.

Memory Requirements

PrecisionWeights in memory
As published655.7 MB
16-bit0.7 GB
8-bit0.3 GB
4-bit0.2 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Peppercorn-0.3b

How much GPU memory does Peppercorn-0.3b need?

About 0.8 GB at 16-bit and 0.2 GB at 4-bit: the weights (328M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Peppercorn-0.3b on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What is Peppercorn-0.3b's context length?

16,384 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Image and text to text

Florence-2-base

Microsoft

This Hub repository contains a HuggingFace's transformers implementation of Florence-2 model from Microsoft. Florence-2 is an advanced vision foundation model that uses a prompt-based approach to handle a wide range of vision and vision-language tasks. Florence-2 can interpret simple text prompts to perform tasks like captioning, object detection, and segmentation. It leverages our FLD-5B dataset, containing 5.4 billion annotations across 126 million images, to master multi-task learning. The model's sequence-to-sequence architecture enables it to excel in both zero-shot and fine-tuned settings, proving to be a competitive vision foundation model. Use the code below to get started with the…

Open weights mit 232M parameters 1,024 tokens transformers

SmolVLM2-500M-Video is a lightweight multimodal model designed to analyze video content. The model processes videos, images, and text inputs to generate text outputs - whether answering questions about media files, comparing visual content, or transcribing text from images. Despite its compact size, requiring only 1.8GB of GPU RAM for video inference, it delivers robust performance on complex multimodal tasks. This efficiency makes it particularly well-suited for on-device applications where computational resources may be limited. SmolVLM2 can be used for inference on multimodal (video / image / text) tasks where the input consists of text queries along with video or one or more images.…

Open weights apache-2.0 507M parameters 8,192 tokens transformers

Model · Image and text to text

FinSeer

The Fin AI

This is our first dedicated retriever for financial time-series forecasting, Financial TimeSeries Retriever (FinSeer). Paper or resources for more information: https://arxiv.org/pdf/2502.05878 The primary use of FinSeer is research on financial time-series forecasting using retrieval-augmented generation (RAG) framework. Install Package pip install InstructorEmbedding pip install -U FlagEmbedding pip install sentence-transformers==2.2.2 pip install protobuf==3.20.0 pip install yahoo-finance python -m pip install -U angle-emb pip install transformers==4.33.2 # UAE This repository and its contents are provided for academic and educational purposes only. None of the material constitutes…

Access requested at publisher 109M parameters transformers

Model · Image and text to text

TerminalHorizon-35B-A3B

Zoushun

Scaling Agentic Data for Long-Horizon Terminal Intelligence TerminalHorizon is a fully automated data synthesis engine for long-horizon terminal agents. Grounded in real-world professional work, it constructs executable environments and generates training trajectories that connect agentic behavioral patterns across stages toward a shared goal. This repository releases TerminalHorizon-35B-A3B, obtained by supervised fine-tuning Qwen3.5-35B-A3B on The terminal is a shared interaction interface, not a restriction to software tasks. The training environments span 25 professional domains and 463 subdomains, including software engineering, machine learning, education, agriculture, healthcare…

Open weights apache-2.0 6M parameters 262,144 tokens transformers

Model · Image and text to text

TerminalHorizon-27B

Zoushun

Scaling Agentic Data for Long-Horizon Terminal Intelligence TerminalHorizon is a fully automated data synthesis engine for long-horizon terminal agents. Grounded in real-world professional work, it constructs executable environments and generates training trajectories that connect agentic behavioral patterns across stages toward a shared goal. This repository releases TerminalHorizon-27B, obtained by supervised fine-tuning Qwen3.5-27B on The terminal is a shared interaction interface, not a restriction to software tasks. The training environments span 25 professional domains and 463 subdomains, including software engineering, machine learning, education, agriculture, healthcare, finance…

Open weights apache-2.0 3M parameters 262,144 tokens transformers

Model · Image and text to text

Omni-Edu-27B

Hao Liang

This model is a fine-tuned version of Qwen/Qwen3.8-27B on the on the Omni-Edu-70K dataset. The following hyperparameters were used during training: - learningrate: 5e-06 - trainbatchsize: 1 - evalbatchsize: 8 - distributedtype: multi-GPU - numdevices: 16 - gradientaccumulationsteps: 8 - totaltrainbatchsize: 128 - totalevalbatchsize: 128 - lrschedulertype: cosine - lrschedulerwarmupsteps: 0.1 - numepochs: 3.0 - Transformers 5.2.0 - Pytorch 2.10.0 - Datasets 4.0.0 - Tokenizers 0.22.2

Open weights other 3M parameters 262,144 tokens transformers