Elastic
Jina AI
模型
API
keyboard_arrow_down
Reader
把任意 URL 轉成 Markdown,為大模型提供更好的事實依據。
向量模型
多模態多語言向量模型。
重排模型
讓搜尋相關性最大化的重排模型。
Elastic Inference Service
在 Elasticsearch 中原生執行 Jina 模型。
MCP
terminal
命令列
article
llms.txt
smart_toy
智慧體
data_object
Schema
menu_book
文件
登入
login
Reader
copyright CC BY-NC 4.0
open_in_new 釋出部落格

ReaderLM-v2

將原始 HTML 轉換為 markdown 或 JSON 的前沿小型語言模型
許可證
copyright CC-BY-NC-4.0
釋出日期
calendar_month
2025-01-16
輸入
abc
文字(HTML)
arrow_forward
輸出
abc
文字(Markdown)
abc
文字(JSON)
模型詳情
引數: 1.54B
輸入詞元長度: 512K
底座模型 help_outline
open_in_new
Qwen2.5-1.5B-Instruct
已訓練語言 help_outline
14 種語言
支援的語言 help_outline
29 種語言
相關模型
link
reader-lm-1.5b
可透過以下方式獲取
Jina API
AWS SageMaker
Microsoft Azure
谷歌雲
Hugging Face
物理隔離
I/O 圖 1

HTML

ReaderLM-v2

Markdown

I/O 圖 2

HTML

ReaderLM-v2

指令

JSON

I/O 圖 3

HTML

ReaderLM-v2

指令

Markdown

Pareto fronthelp_outline
ReaderLM-v2 HTML-to-Markdown · html2mdmain
ReaderLM-v2 HTML-to-Markdown · html2mdmain · ins
chevron_leftchevron_right
3.0B10B30B13001400150016001700Qwen2.5-32B-Instructreader-lm-1.5bReaderLM-v2Parameters (log)Damerau
This model
On the front
Jina AI
Other
ReaderLM-v2 HTML-to-Markdown · html2mdmain
1262.75
Parameters
1.5B
Rank by score
1 / 3
Pareto front
On it
選擇要比較的模型
論文 (1)
ICLR 2025
三月 04, 2025
ReaderLM-v2: Small Language Model for HTML to Markdown and JSON

概述

ReaderLM-v2 是一款 15 億參數的語言模型,可把原始 HTML 轉換為 Markdown 或 JSON,輸入輸出合計長度最高支援 512K 詞元,覆蓋 29 種語言。上一代把 HTML 轉 Markdown 當作「選擇性複製」任務,而 v2 把它視為一種翻譯過程,因此能更好地處理程式碼圍欄、巢狀列表、表格和 LaTeX 公式等複雜元素。該模型在不同上下文長度下表現穩定,並新增了按預定義 schema 直接生成 JSON 的能力。

方法

ReaderLM-v2 基於 Qwen2.5-1.5B-Instruction 構建,訓練使用了包含上千萬篇 HTML 文件的 html-markdown-1m 資料集,每篇平均 56,000 詞元。訓練流程包括:1) 採用 ring-zag 注意力和 RoPE 做長上下文預訓練,把上下文從 32K 詞元擴充套件到 256K 詞元;2) 用精修資料集做監督微調;3) 用直接偏好最佳化對齊輸出;4) 自博弈強化調優。資料準備遵循由 Qwen2.5-32B-Instruction 驅動的三步流程(起草-精修-評審),先為各項任務訓練專用模型,再透過線性引數插值合併。

效能

在綜合基準測試中,ReaderLM-v2 在 HTML 轉 Markdown 任務上的表現優於 Qwen2.5-32B-Instruct、Gemini2-flash-expr 等更大的模型。正文提取方面,ROUGE-L 達 0.84,Jaro-Winkler 達 0.82,Levenshtein 距離僅 0.22,明顯低於同類。HTML 轉 JSON 任務上同樣表現不俗,F1 為 0.81,透過率達 98%。在 T4 GPU 上,輸入處理速度為每秒 67 詞元,輸出為每秒 36 詞元;藉助對比損失訓練,退化問題也大幅減少。

最佳實踐

模型配有 Google Colab notebook,演示了 HTML 轉 Markdown、JSON 提取和指令跟隨。HTML 轉 Markdown 任務可直接輸入原始 HTML,無需字首指令;JSON 提取則需要指定 schema 格式。輔助函式 create_prompt 可幫您快速為這兩類任務構造提示詞。模型能在 Colab 的免費 T4 GPU 上執行(需要 vllm 和 triton),但缺少 bfloat16 和 Flash Attention 2 支援時會有所受限。生產環境建議使用 RTX 3090/4090。該模型將上架 AWS SageMaker、Azure 和 GCP 市場,以 CC BY-NC 4.0 協議授權,僅限非商業用途。
提及此模型的部落格
五月 25, 2025 • 21 分鐘閱讀
What We Learned at ICLR2025
We collect some most interesting papers in ICLR 2025, featuring TIPS, FlexPrefill, Zero-Shot Rerankers, SVD-LLM, Hymba etc.
Jina AI
Three people smiling on a stage at a conference with an ICLR banner visible, suggesting a warm and lively event atmosphere.
五月 07, 2025 • 9 分鐘閱讀
Model Soup’s Recipe for Embeddings
Boost robustness and performance with model soups: averaging weights. No extra cost, better results.
Bo Wang
Scott Martens
Still life drawing of a purple bowl filled with apples and oranges on a white table. The scene features rich colors against a
四月 08, 2025 • 21 分鐘閱讀
jina-reranker-m0: Multilingual Multimodal Document Reranker
Introducing jina-reranker-m0, our new multilingual multimodal reranker for retrieving visual documents, with SOTA performance on multilingual long documents and code searching tasks.
Jina AI
Modern dot matrix text display on a dark blue background, conveying a digital feel.
一月 31, 2025 • 14 分鐘閱讀
A Practical Guide to Deploying Search Foundation Models in Production
We offer detailed cost and performance breakdowns for three deployment strategies: Jina API, self-hosted K8s, and AWS SageMaker, to help you make the right decision.
Saahil Ognawala
Scott Martens
Abstract cityscape illustration with orange, grey and white buildings, featuring visible balconies with a potted plant.
一月 15, 2025 • 17 分鐘閱讀
ReaderLM v2: Frontier Small Language Model for HTML to Markdown and JSON
ReaderLM-v2 is a 1.5B small language model for HTML-to-Markdown conversion and HTML-to-JSON extraction with exceptional quality.
Jina AI
Orange text "ReaderLM-u2" on a vibrant dark red digital screen.
當前語言 / 主題
搜尋底座
Reader
向量模型
重排模型
獲取 Jina API 金鑰
速率限制
關於我們
新聞
下載 Jina 徽標
open_in_new
下載 Elastic 徽標
open_in_new
API 狀態
Elastic © 2026.安全條款及條件隱私管理 Cookie請勿出售或分享我的個人資訊
本網站及其所有相關內容、軟體、產品和服務僅供專業人士使用。不面向任何消費者,也不鼓勵任何消費者使用。