{"repo":"leoneversberg/pdf2md_llm","free":true,"listed":false,"github":"https://github.com/leoneversberg/pdf2md_llm","clone":"git clone https://github.com/leoneversberg/pdf2md_llm.git","description":"Use a local LLM to convert PDF to Markdown","language":"Python","stars":35,"topics":["conversion","llm","markdown","parser","pdf"],"license":"MIT","category":"ai-agents","readme_excerpt":"pdf2md llm pdf2md llm is a Python package that converts PDF files to Markdown using a local Large Language Model (LLM). The package leverages the pdf2image library to convert PDF pages to images and a vision language model to generate Markdown text from these images. Features - Convert PDF files to images. - Generate Markdown text from images using a local LLM. - Keep your data private. No third-party file uploads. Installation You need a CUDA compatible GPU to run local LLMs with vLLM. You can use pip to install the package: Usage CLI You can use the pdf2md llm package via the command line interface (CLI) . To convert a PDF file to Markdown, run the following command: Options pdf file : Path to the PDF file to convert. --model : Name of the model to use (default: Qwen/Qwen2.5-VL-3B-Instruct-AWQ ). --dtype : Data type for the model weights and activations (default: None ). --max model len : Max model context length (default: 7000 ). --prompt : Custom prompt for the LLM. (default: None ). --size : Image size as a tuple (default: (700, None) ). --dpi : DPI of the images (default: 200 ). --fmt : Image format (default: jpeg ). --output folder : Folder to save the output Markdown file (default: ./out ). Example Model Support: Currently the following Qwen2.5-VL models are supported: Qwen/Qwen2.5-VL-3B-Instruct Qwen/Qwen2.5-VL-3B-Instruct-AWQ Qwen/Qwen2.5-VL-7B-Instruct Qwen/Qwen2.5-VL-7B-Instruct-AWQ Qwen/Qwen2.5-VL-72B-Instruct Qwen/Qwen2.5-VL-72B-Instruct-AWQ If you want to use a","default_branch":null,"files":null,"tree":[],"storefront":"/r/leoneversberg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leoneversberg/pdf2md_llm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}