vllm on cpu
as per 2025-09-05:
Follow official doc
Changing the following command only: uv pip install -r requirements/cpu.txt --torch-backend cpu --index-strategy unsafe-best-match vllm serve nanonets/Nanonets-OCR-s --max-model-len=116480
#!/bin/bashSCRIPTDIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"cd $SCRIPTDIR
source .venv/bin/activatevllm serve nanonets/Nanonets-OCR-s --max-model-len=116480 --host 127.0.0.1 --port 8000[Unit]Description=vLLM for Nanonets OCRAfter=multi-user.target
[Service]User=ubuntuGroup=ubuntuType=simpleExecStart=/opt/vllm/start.shRestart=on-failureRestartSec=2
[Install]WantedBy=multi-user.targetsudo cp *.service /etc/systemd/systemsudo systemctl enable vllm_ocrsudo systemctl start vllm_ocrsudo systemctl status vllm_ocrsudo ss -tulnp | grep 8000