인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
문서 및 사무 · SKILL.md

donut

donut

Use Donut for OCR-free document understanding, checkpoint inference, fine-tuning, evaluation, and SynthDoG synthetic document generation.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: donut description: "Use Donut for OCR-free document understanding, checkpoint inference, fine-tuning, evaluation, and SynthDoG synthetic document generation." disable-model-invocation: true metadata: disco-role: operating license: MIT

Donut

Use this repo skill when the task involves NAVER/ClovaAI Donut: OCR-free document understanding with a Swin encoder and BART-like decoder, plus SynthDoG synthetic document generation. This skill is self-contained; do not reopen the original checkout for routine Donut usage.

Route by task

User intentRead or run
Load a Donut checkpoint, run one-image prediction, compare prompts, or start the Gradio demosub-skills/inference/SKILL.md
Fine-tune, validate dataset JSONL, evaluate a checkpoint, read metrics, or debug configs/checkpointssub-skills/training/SKILL.md
Generate synthetic document images, render SynthDoG configs, or adapt resources/fonts/corporasub-skills/synthdog/SKILL.md
Inspect public package APIs, signatures, token helpers, and object relationshipsreferences/api-reference.md
Decide which bundled workflow helper or sub-skill owns a requestreferences/workflow-map.md
Diagnose install/import, Hugging Face, CUDA, Gradio, dataset, or SynthDoG dependency failuresreferences/troubleshooting.md
Check source baseline, commit, version, and refresh triggersreferences/repo-provenance.md

Fast start

  1. Install a Donut-capable Python environment. For inference only, pip install donut-python plus a compatible PyTorch build is the starting point. Training needs CUDA-capable PyTorch. SynthDoG generation also needs synthtiger and its image/text dependencies.
  2. Smoke-check the environment without the source repo:
    python scripts/runtime_smoke.py
    python scripts/runtime_smoke.py --check all --require-cuda  # when training and SynthDoG are in scope
    
  3. Route to a sub-skill before giving detailed commands. Each sub-skill owns its own scripts and troubleshooting notes.

Core facts to preserve

  • Package distribution: donut-python; import module: donut.
  • Public exports include DonutConfig, DonutModel, DonutDataset, JSONParseEvaluator, load_json, and save_json.
  • DonutModel.from_pretrained(...) loads local or Hugging Face checkpoints and requests the Donut repositories' official revision.
  • DonutModel.inference(...) returns a dictionary with a predictions list; parsed JSON is the default output.
  • Dataset rows use file_name plus a JSON-encoded ground_truth string containing either gt_parse or gt_parses.
  • Training is GPU-oriented in the original scripts; do not promise CPU training equivalence.
  • No model weights, datasets, or large SynthDoG assets are bundled in this skill. Users must provide checkpoints, images, datasets, and SynthDoG resources.

Bundled helpers

Boundaries

Use Donut for OCR-free document-image understanding, classification, extraction, visual QA, and synthetic-document pretraining data generation. Do not use this skill for generic PDF parsing, OCR engines, RAG chunking, non-document computer vision models, or unrelated Transformers training unless Donut APIs, checkpoints, config files, errors, or data formats are central to the request.

저장한 Skills