Install DeepSeek-OCR
mainTo install DeepSeek-OCR, ensure your environment uses cuda11.8 and torch2.6.0.
- Clone the repository:
git clone https://github.com/deepseek-ai/DeepSeek-OCR.git- Create and activate a Conda environment:
conda create -n deepseek-ocr python=3.12.9 -y
conda activate deepseek-ocr- Install dependencies. Note that you may need to download the
vllm-0.8.5wheel manually as specified in the installation steps.
pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu118
pip install vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl
pip install -r requirements.txt
pip install flash-attn==2.7.3 --no-build-isolationgit clone https://github.com/deepseek-ai/DeepSeek-OCR.git
conda create -n deepseek-ocr python=3.12.9 -y
conda activate deepseek-ocr
pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu118
pip install vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl
pip install -r requirements.txt
pip install flash-attn==2.7.3 --no-build-isolation