记录用 PaddleOCR 官方 Docker 镜像快速启动 vLLM 推理服务、部署 PaddleOCR-VL-0.9B 的过程,包含 GPU 与网络参数配置、服务启动命令,以及官方流水线用法的参考链接。
https://www.paddleocr.ai/latest/version3.x/pipeline_usage/PaddleOCR-VL.html#31-vlm
模型部署
PaddleOCR 提供了 Docker 镜像,用于快速启动 vLLM 推理服务。可使用以下命令启动服务:
1 | docker run \ |
本地环境安装
1 | wget https://files.pythonhosted.org/packages/32/68/fb93a38c567291c3d8a336d3fdf8306a5d378dec3deeb23f2d732a71cf81/paddlepaddle-3.2.1-cp312-cp312-win_amd64.whl |
Python API 调用
1 | from pathlib import Path |
参数调优
使用支持进程替换(process substitution)的 shell(如 Bash)
1 | paddleocr genai_server --model_name PaddleOCR-VL-0.9B --backend vllm --backend_config <(echo -e 'gpu-memory-utilization: 0.3\nmax-num-seqs: 128') |

