Marker
Local document converter with Markdown, JSON and optional hybrid LLM processing.
What is known from testing
On 2026-10-14, the headlesson operator ran all 4 steps of this lesson with Marker 2.0.0 (macOS 26.5.2 arm64; Python 3.11.13 isolated venv; pinned wheel-only installation; preloaded official font and models; CPU with two owned localhost model servers; one authored English digital PDF; default autospawn not tested; no optional remote LLM processing), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim.
- Test record: test:lq2atao — 2026-10-11, 2.0.0, partial
- Test record: test:48hvric — 2026-10-14, 2.0.0, passed
Independent check
Independent check: not yet reviewed. (Whether an independent check exists has not been looked up for this record.)
Description
Marker converts documents through a local model pipeline. It can emit Markdown, JSON or HTML and optionally use selected external LLM providers. A Streamlit interface and a FastAPI server are separate usage surfaces.
Current lesson
Goal: Convert an owner-chosen local PDF without enabling optional remote LLM processing.
This is the current lesson. The test record above was run on the lesson as it was at its own revision; they can differ.
- 1. pip install marker-pdf
- 2. marker_single --help
- 3. marker_single ./sample.pdf
- 4. Inspect the generated output against the source PDF.
Next (advice, not tested): Next: Select the real PDF and destination, run marker_single <confirmed-PDF-path>, and compare text, tables and equations with the original. Choose --output_format json for structured output; only enable --use_llm after agreeing on provider, data transfer, cost and model-weight terms.
Cautions recorded with the lesson
These notes come from the lesson. Some describe failures seen in tests; others are general cautions. Each one is not a separately tested result.
- Python 3.10 or newer, PyTorch and an owner-provided local sample are prerequisites.
- Apache-2.0 and free code use do not establish unconditional rights to model weights. Modified model-weight terms and paid commercial licensing may apply.
- The optional --use_llm path can incur provider costs; the initial conversion steps do not enable it. Next treats LLM use as optional and requires the user's data-transfer, cost and model-term decision.
- The bundled REST server supports fewer flags than CLI/SDK and omits --use_llm and --disable_ocr.
- Conversion output is not independent evidence of transcription accuracy.
- The 2.0.0 trial needed official font, layout and OCR-error model assets even for a digital PDF. These were preloaded and two owned localhost model servers were used through supported settings; automatic download and autospawn were not tested. The source code's default batch-service autospawn can keep a server running and write shared home-cache logs, so account for cleanup.
- Confirm: Check output location, recognition quality on this document, provider credentials/costs and applicable model-weight terms; optional LLM use is not an accuracy guarantee.
How to start
- cli Marker CLI: install
pip install marker-pdf; checkmarker_single --help; auth: unknown; docs: https://github.com/datalab-to/marker/blob/master/README.md - rest Marker local HTTP API server (small-scale): install
pip install marker-pdf pip install -U uvicorn fastapi python-multipart; checkunknown; auth: unknown; docs: https://github.com/datalab-to/marker/blob/master/README.md
Where each of these values comes from is listed per field under Sources (/interfaces/N/field).
Compared facts
Values are shown as recorded; the source, check date and certainty of each value are under Sources. unknown means not confirmed, not "no".
- license: Apache-2.0
- open_source: true
- pricing: free
- has_human_gui: optional
- non_interactive: unknown (not confirmed)
- machine_output: true
- local_mcp: unknown (not confirmed)
- remote_mcp: unknown (not confirmed)
- cli: true
- rest_api: true
- auth: unknown (not confirmed)
- self_hostable: true
- embeds_llm: yes
- refusal_contract: unknown (not confirmed)
- audit_log: unknown (not confirmed)
- last_release: 2026-07-20
- ja_support: unknown (not confirmed)
Sources: 37 fields from 9 sources (JSON pointers into the .json version)
Each line names fields of this page (as JSON pointers into the .json version) and where they come from. Labels without a link are non-public sources. Fields not listed (such as test results) are the headlesson operator's own observations.
- /name, /one_liner, /lesson/cautions/items/1, /lesson/cautions/items/3, /interfaces/0/kind, /interfaces/0/name, /interfaces/0/install, /interfaces/0/verify, /interfaces/0/docs, /axes/license, /axes/open_source, /axes/pricing, /axes/machine_output, /axes/cli, /axes/rest_api, /axes/self_hostable, /axes/embeds_llm, /relations/0: https://github.com/datalab-to/marker/blob/master/README.md (checked 2026-10-09, primary, official)
- /description, /lesson/steps/0, /lesson/steps/1, /lesson/steps/2, /interfaces/1/name, /interfaces/1/install, /interfaces/1/docs: https://github.com/datalab-to/marker/blob/master/README.md (checked 2026-10-09, primary, editorial)
- /lesson/goal, /lesson/steps/3, /lesson/cautions/items/0, /lesson/cautions/items/4: headlesson editorial judgement (checked 2026-10-09, inferred, editorial)
- /lesson/next_advice, /lesson/cautions/items/6: https://raw.githubusercontent.com/datalab-to/marker/master/README.md (checked 2026-10-10, inferred, editorial)
- /lesson/cautions/items/2: https://github.com/datalab-to/marker/blob/master/README.md (checked 2026-10-10, inferred, editorial)
- /lesson/cautions/items/5: headlesson editorial judgement (checked 2026-10-14, primary, editorial)
- /interfaces/1/kind, /axes/has_human_gui: https://github.com/datalab-to/marker/blob/master/README.md (checked 2026-10-09, inferred, editorial)
- /axes/last_release: https://pypi.org/pypi/marker-pdf/json (checked 2026-10-09, primary, official)
- /relations/1: headlesson editorial judgement (checked 2026-10-13, inferred, editorial)
Primary record
Test results here are the operator's own past lesson trials (legacy). They are not claimed to meet level L1 of run-task-contract/0.1.0.
What "legacy" and L1 mean, and why this record does not claim L1: Record levels and labels.
Relations
- used-for: usecase:parse-documents-for-llm
- alternative-to: app:docling (usecase:parse-documents-for-llm)
2 other relations point to records that are not published yet.
Retrieve over MCP
headlesson_get id="app:marker" sections ["lesson","gotchas"] on https://mcp.headlesson.com/mcp
Cite
headlesson app:marker: see test record test:48hvric (https://headlesson.com/tests/48hvric).