README says --disable_multiprocessing runs everything in one process, but it only sets pdftext_workers=1
The README's batch section says:
--disable_multiprocessingruns everything in one process.
In marker 2.0.0 (and on master), the option only sets pdftext_workers:
# marker/config/parser.py
help="Run pdftext extraction single-process (sets pdftext_workers=1).",
...
case "disable_multiprocessing":
if v:
config["pdftext_workers"] = 1marker/scripts/convert.py also sets kwargs["disable_multiprocessing"] = True for every batch run, so passing the flag to marker changes nothing. With it, a batch over four PDFs still logged "Converting 4 pdfs in chunk 1/1 with 4 processes", and the pool size came from get_worker_count().
I followed the README's troubleshooting advice for out-of-memory errors and used this flag to reduce memory. Each worker on a long scanned book held about 11 GB on a 32 GB machine, and the run exhausted memory again.
Suggested fix: describe the flag the way the CLI help does. For a batch run in one process, point to --workers 1 or to marker_single.
Source: datalab-to/marker