Wasabi-30B

English | 日本語

Wasabi-30B transcribes images of Japanese document pages into Markdown:

  • full text in reading order;
  • tables as HTML <table>;
  • math as LaTeX, $...$ inline and $$...$$ for display;
  • ruby (furigana) kept inline as <ruby>base<rt>reading</rt></ruby>.

News

  • 2026-11-26: #1 on MDPBench! Wasabi-30B took first place overall on the official MDPBench leaderboard, out of 43 models, with 89.1 on the public set and 91.7 on the private set. It is also first in Japanese, English, Korean and Thai. See Benchmark for the full results.
  • Official quantized versions are coming soon! We understand that Wasabi-30B is heavy. The BF16 weights alone are about 56 GB, and running it takes around 60 GB of GPU memory. To make it easier to run on smaller GPUs, we're preparing official GGUF builds for llama.cpp, plus FP8 and INT4 builds for vLLM. We'll share the links here as soon as they're ready.

Benchmark

Results on the official MDPBench leaderboard as of 2026-11-26, where Wasabi-30B ranks first overall among 43 models. MDPBench has a public set of 2,720 digital-born and photographed pages in 17 languages, and a private set scored by the benchmark maintainers.

MDPBench Score Rank (of 43)
Overall, public set 89.1 1
Overall, private set 91.7 1
Japanese 81.2 1
English 93.3 1
Korean 95.0 1
Thai 87.4 1
Photographed 88.2 1
Digital-born 91.6 2
Latin scripts 91.0 1
Non-Latin scripts 86.8 2

Wasabi-30B is first in 11 of the 17 languages. These scores come from our MDPBench submission, which adds inference steps not included in the inference/ reader.

Model details

  • Fine-tuned from Muse-Glimmer-30B (revision 97c77dff50b2797bcc558fa2d909761dbc575c59).
  • A LoRA adapter trained for Japanese document transcription, merged into the BF16 weights.

Inference

The inference/ package reads a folder of page images (.jpg, .jpeg, .png) and writes one .md file per page.

pip install -e "./inference[dewarp]"

It needs Python 3.10+ and does not run on Windows. The reader dewarps every page locally with UVDoc on CPU, so torch and OpenCV are needed in every mode, including endpoint mode.

To serve the model locally, build vLLM from commit 6adad08767583f52eb4d2122111af0bf638ed5e6 (version 0.26.1rc1.dev769), which has muse_glimmer support; the released vLLM 0.26.0 cannot serve this model. The source build needs a CUDA toolchain:

pip install "vllm @ git+https://github.com/vllm-project/vllm.git@6adad08767583f52eb4d2122111af0bf638ed5e6" "transformers==5.15.0"

Then apply the processor fix with the Python of that vLLM environment. Without it, this vLLM commit rejects the max_image_tokens setting and the server does not start. Every vLLM server for Wasabi-30B needs it, including ones you start yourself; --revert undoes it.

python inference/patch_vllm_max_image_tokens.py --apply

Tested with Python 3.12, vLLM 0.26.1rc1.dev769 (commit 6adad087), transformers 5.15.0, torch 2.13.0, opencv-python-headless 5.0.0.93, numpy 2.3.5 and Pillow 13.0.0.

Local vLLM. The package starts and stops two servers from the same Wasabi-30B weights, one for the orientation check and one for reading; no other checkpoint is needed. It uses FlashInfer for vision attention, so if your setup cannot use FlashInfer, serve the model yourself and use endpoint mode.

python inference/wasabi_read.py pages/ out/ --engine vllm --model-dir /models/Wasabi-30B --tensor-parallel-size 1

Endpoint mode. To use OpenAI-compatible servers you already run, start both with Wasabi-30B and --reasoning-parser muse_glimmer: the reader with --mm-processor-kwargs '{"max_image_tokens": 8192}' and the orientation check with --mm-processor-kwargs '{"max_image_tokens": 4096}'. The machine running the reader then needs no vLLM. Pass a revision label for each server with --endpoint-revision and --orient-endpoint-revision; to resume into an existing output folder, use the same servers and labels.

python inference/wasabi_read.py pages/ out/ --engine endpoint --endpoint-url http://gpu-host:8000 --endpoint-revision wasabi-30b-v1.0 --orient-endpoint-url http://gpu-host:8001 --orient-endpoint-revision wasabi-30b-v1.0

--plan prints the processing steps and exits without loading a model. The API key, the UVDoc cache location and offline UVDoc use are described under Configuration.

What the reader does

For each page:

  1. Orientation check: Wasabi-30B checks whether the page is upright and rotates it if needed.
  2. Dewarping with UVDoc on CPU. The UVDoc code and weights are downloaded at first use.
  3. A whole-page read at 8,192 image tokens with greedy decoding.
  4. If the output is unusable (for example, it loops), retries at temperatures 0.1, 0.3, 0.5 and 0.8.
  5. Each page is written as <stem>.md. Rerunning the same command resumes and skips finished pages. Pages with no usable output are listed in out/.wasabi-read/run-report.json.

Direct model use

To call the model without the reader, use the vLLM build and processor fix above and send the page image as is (no orientation check, dewarping, upscaling or retries).

pip install openai
vllm serve /models/Wasabi-30B --served-model-name wasabi --max-model-len 36864 \
    --mm-processor-kwargs '{"max_image_tokens": 8192}' --reasoning-parser muse_glimmer

Then send one page through the OpenAI-compatible API with the recommended decoding (greedy, repetition penalty 1.10, seed 42, up to 24,576 new tokens, low reasoning strength):

import base64
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
png = base64.b64encode(open("page.png", "rb").read()).decode()
prompt = open("inference/wasabi_read/prompts/draft.txt", encoding="utf-8").read()
r = client.chat.completions.create(
    model="wasabi",
    messages=[{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": "data:image/png;base64," + png}},
        {"type": "text", "text": prompt}]}],
    temperature=0.0,
    seed=42,
    max_tokens=24576,
    extra_body={"repetition_penalty": 1.10,
                "repetition_detection": {"max_pattern_size": 512, "min_pattern_size": 4, "min_count": 16},
                "chat_template_kwargs": {"reasoning_strength": "low", "current_date": "2026-10-16"}},
)
print(r.choices[0].message.content)

Like the reader, the example pins current_date so the prompt does not change with the day you run it, and repetition_detection stops a looping answer early. generation_config.json keeps the base model's sampling defaults, so pass temperature=0 as above for greedy decoding.

Files in this repository

path what it is
model-00001-of-00002.safetensors, model-00002-of-00002.safetensors, model.safetensors.index.json merged BF16 weights
config.json, generation_config.json, processor_config.json model and processor configuration
tokenizer.json, tokenizer_config.json, chat_template.jinja tokenizer and chat template
inference/ the page reader package (wasabi_read, AGPL-3.0) and its two prompts
prompt.txt the transcription prompt, the same file as inference/wasabi_read/prompts/draft.txt
.eval_results/mdpbench.yaml the MDPBench results in Hugging Face's eval-results format
LICENSE, NOTICE, notices/ license texts: this model (AGPL-3.0), the base model (Apache-2.0) and its usage policy
README.md, README_ja.md this model card, in English and Japanese
SHA256SUMS checksums of every file

Limitations

  • Wasabi-30B was fine-tuned for Japanese documents only; the other MDPBench languages were not part of the fine-tuning.

License

  • This model and the reader package: GNU Affero General Public License v3.0 (LICENSE).
  • Base model Muse-Glimmer-30B: Apache License 2.0 (notices/Muse-Glimmer-30B-LICENSE.txt), together with its publisher's usage policy (notices/Muse-Glimmer-30B-USAGE_POLICY.md).
  • UVDoc code (commit 4c9b82b5): MIT License, Copyright (c) 2023 Tanguy MAGNE. The reader downloads the UVDoc code and its pretrained weights at first use and does not redistribute them. The weights have no separate license statement and stay under the terms of their original publisher.

Copyright 2026 Sionic AI Inc.

Downloads last month
131
Safetensors
Model size
30B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for sionic-ai/Wasabi-30B

Finetuned
(83)
this model
Quantizations
1 model