rukopys-workshop-subset
收藏资源简介:
RUKOPYS workshop 子集(school + university)是一个小型的微调数据集,专为夏季学校 LLM 微调工作坊设计,旨在训练 Qwen3-VL 模型检测和转录乌克兰语手写文档页面。该子集源自乌克兰天主教大学发布的 RUKOPYS 数据集(CC BY 4.0),仅包含原始训练集中的 school 和 university 来源图像。数据集包含 844 张 JPEG 图像(已缩放至 ≤1.5 Mpx,质量因子 87),以及 760 条训练记录和 84 条验证记录(按来源分层划分,种子 3407)。每条记录包含图像路径、来源、图像尺寸以及目标标注(JSON 格式,包含区域边界框、类型和文本)。区域类型包括:handwritten(手写)、printed(印刷)、formula(公式)、table(表格)、annotation(注释)、image(图像)、graph(图形)。边界框坐标采用 0-1000 的相对尺度,与图像尺寸无关。文本中可包含特殊标记:~~strikethrough~~(删除线)、~~old~~{new}(替换)、[illegible](无法辨认)。数据集还提供了 Unsloth QLoRA 微调脚本、评估工具和 Colab 笔记本,便于在 T4 GPU 上进行单次会话训练。适用于手写文本识别(HTR)、对象检测和 OCR 相关任务。
The RUKOPYS workshop subset (school + university) is a small fine-tuning dataset designed for the summer school LLM fine-tuning workshop, aimed at training the Qwen3-VL model to detect and transcribe Ukrainian handwritten document pages. This subset is derived from the RUKOPYS dataset released by the Ukrainian Catholic University (CC BY 4.0), containing only the school and university source images from the original training set. The dataset includes 844 JPEG images (resized to ≤1.5 Mpx, quality factor 87), with 760 training records and 84 validation records (stratified by source, seed 3407). Each record contains an image path, source, image dimensions, and target annotations (JSON format with region bounding boxes, types, and text). Region types include: handwritten, printed, formula, table, annotation, image, and graph. Bounding box coordinates are in relative scale 0-1000, independent of image dimensions. Text may contain special markers: ~~strikethrough~~, ~~old~~{new} (replacement), [illegible] (illegible). The dataset also provides Unsloth QLoRA fine-tuning scripts, evaluation tools, and a Colab notebook, facilitating single-session training on a T4 GPU. It is suitable for handwritten text recognition (HTR), object detection, and OCR-related tasks.
数据集概述
基本信息
- 数据集名称:RUKOPYS workshop subset (school + university)
- 许可证:CC BY 4.0
- 语言:乌克兰语
- 任务类别:图像到文本、目标检测
- 标签:手写识别、HTR、OCR、乌克兰语、工作坊
- 数据规模:少于 1K 条记录
- 创建机构:基于乌克兰天主教大学的 RUKOPYS 数据集(v2.2)筛选而得
数据集内容
该子集为暑期学校 LLM 微调工作坊设计,目标是在单次 Google Colab 会话(T4 GPU)中训练 Qwen3-VL 模型完成乌克兰手写文档页面的检测与转录。数据来源于 RUKOPYS 数据集的 train 分割,仅保留 school(学校)和 university(大学)两个来源。
文件结构
| 文件 | 说明 |
|---|---|
images.tar |
844 张 JPEG 图像(最大尺寸降至 ≤1.5 Mpx,质量 q87),打包为单压缩包约 190 MB |
train.jsonl |
760 条训练记录(school 614 条 + university 146 条) |
val.jsonl |
84 条验证记录(school 68 条 + university 16 条) |
code/ft_qwen_unsloth.py |
Unsloth QLoRA 训练脚本 |
code/kaggle_metric.py |
官方竞赛评分器(类型感知文本归一化) |
code/workshop_utils.py |
笔记本辅助工具函数 |
rukopys_ft_workshop.ipynb |
工作坊笔记本(下载 → 数据查看 → QLoRA 微调 → CER 对比 → Gemini 比较) |
训练/验证分割按来源分层,随机种子为 3407。
记录格式(Schema)
每条记录包含:
uuid:唯一标识符image_path:指向images/<uuid>.jpg的相对路径source:来源(school 或 university)image_w、image_h:图像宽高target:JSON 字符串,包含区域列表,按自上而下阅读顺序排列,每个区域包含bbox(0-1000 归一化坐标,与图像缩放无关)、type和text字段
区域类型包括:handwritten(手写)、printed(印刷)、formula(公式)、table(表格)、annotation(注释)、image(图像)、graph(图形)。其中 image 和 graph 类型的 text 字段为空。
文本中的特殊标记包括:~~删除线~~、~~旧文本~~{新文本}、[illegible](不可辨认)。
使用方式
通过 Hugging Face snapshot_download 下载数据集并解压 images.tar,然后以包根目录为当前工作目录运行训练脚本。image_path 字段相对于包根目录。
引用与版权
图像和标注版权归 RUKOPYS 项目所有(作者:Dmytro Voitekh, Volodymyr Zmiivskyi, Oleksii Molchanovskyi;乌克兰天主教大学,2026;CC BY 4.0)。本子集仅对原数据集进行来源筛选、图像降尺度及标注重序列化,未修改原始内容。




