Elastic
Jina AI
模型
API
keyboard_arrow_down
Reader
把任意 URL 轉成 Markdown,為大模型提供更好的事實依據。
向量模型
多模態多語言向量模型。
重排模型
讓搜尋相關性最大化的重排模型。
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

選擇要比較的模型
論文 (1)
ICLR 2025
三月 04, 2025
ReaderLM-v2: Small Language Model for HTML to Markdown and JSON

概述

ReaderLM-v2 是一個 1.54B 參數的小型語言模型,能以高準確率將雜亂的 HTML 轉換為乾淨的 Markdown 或 JSON,可處理長達 512K token 的文件。它是為大型語言模型提供接地(grounding)的理想工具:將網頁內容轉換為 LLM 可高效消費的格式。該模型在 HTML 轉 Markdown 任務上表現優於 Qwen2.5-32B-Instruct 和 Gemini2-flash-expr,而運行成本僅為其一小部分。

方法

該模型的有效性來自兩項關鍵創新。首先,三階段資料合成流水線透過反覆起草、精煉和批評網頁內容擷取來產生高品質、多樣的訓練資料——這種合成資料方法確保模型無需人工標註即可見多樣的 HTML 結構。其次,統一的訓練框架將連續預訓練與多目標最佳化相結合,使模型能夠同時學習 HTML 轉 Markdown 和 HTML 轉 JSON 轉換。'淺而寬'(shallow-but-wide)的解碼器專屬架構(28 層、1536 隱藏維度、12 個查詢頭、2 個 KV 頭)針對選擇性複製操作進行了最佳化。512K token 上下文透過 zigzag-ring-attention 實現。對比損失訓練顯著減少了退化問題。

效能

在 HTML 轉 Markdown 任務上,該模型取得 ROUGE-L 0.84、Jaro-Winkler 0.82、Levenshtein 距離 0.22,超過 Qwen2.5-32B-Instruct 和 Gemini2-flash-expr。在 HTML 轉 JSON 任務上,它以 F1 分數 0.81、98% 通過率保持有競爭力的表現。在 T4 GPU 上,該模型以輸入 67 tokens/s、輸出 36 tokens/s 的速度處理。退化問題(token 循環、重複輸出)透過對比損失訓練顯著減少。512K token 上下文視窗消除了大多數實際文件的分塊需求。

最佳實踐

該模型可透過 Google Colab 筆記本存取,其中示範了 HTML 轉 Markdown、JSON 提取和指令遵循。對於 HTML 轉 Markdown 任務,直接輸入原始 HTML,無需前置指令。對於 JSON 提取,在提示中指定目標結構。create_prompt 輔助函數便於為兩種任務建立提示。該模型可在 Colab 免費 T4 GPU 層級運行(需要 vllm 和 triton),但不支援 bfloat16 或 Flash Attention 2 時存在限制;生產環境建議使用 RTX 3090/4090。可透過 AWS SageMaker、Azure 和 GCP 市場取得。以 CC BY-NC 4.0 授權用於非商業用途。將此模型作為 RAG 流水線中的預處理步驟,在使用 jina-embeddings-v5-text-small 嵌入之前將網頁內容轉換為乾淨的 Markdown。

提及此模型的部落格
五月 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請勿出售或分享我的個人資訊
本網站及其所有相關內容、軟體、產品和服務僅供專業使用,不面向消費者。