## Tools

nvidia-smi
nvidia-smi pmon

sudo systemctl daemon-reload
sudo systemctl enable vllm-27b-int4
sudo systemctl start vllm-27b-int4
sudo systemctl stop vllm-27b-int4
sudo systemctl status vllm-27b-int4
sudo systemctl disable vllm-27b-int4
journalctl -u vllm-27b-int4 -f

sudo nano /etc/systemd/system/vllm-27b-int4.service

##SERVICE ENTRY

[Unit]
Description=vLLM Qwen3.8-27B-INT4
After=network.target

[Service]
User=jpatterson
WorkingDirectory=/home/jpatterson
Environment="PATH=/home/jpatterson/.venv-0.29.0/bin:/usr/local/cuda/bin:/usr/bin:/usr/local/bin:/bin"
Environment="CUDA_HOME=/usr/local/cuda"
Environment="LD_LIBRARY_PATH=/usr/local/cuda/lib64"
Environment="CUDA_DEVICE_ORDER=PCI_BUS_ID"
Environment="CUDA_VISIBLE_DEVICES=1"
Environment="HF_TOKEN=YOUR_TOKEN"
ExecStart=/home/jpatterson/.venv-0.29.0/bin/python -m vllm.entrypoints.openai.api_server \
  --model RedHatAI/Qwen3.8-27B-INT4 \
  --port 5002 \
  --served-model-name Stratum-27B \
  --enable-chunked-prefill \
  --limit-mm-per-prompt '{"image":0,"video":0}' \
  --kv-cache-dtype fp8 \
  --enable-prefix-caching \
  --max-model-len 24576 \
  --max-num-seqs 2 \
  --async-scheduling \
  --max-num-batched-tokens 2048 \
  --gpu-memory-utilization 0.94 \
  --compilation-config '{"cudagraph_capture_sizes": [1, 2]}' \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_xml \
  --reasoning-parser qwen3 \
  --chat-template /home/jpatterson/chat-templates/qwen-fixed.jinja
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target


