## Tools

nvidia-smi
nvidia-smi pmon

sudo systemctl daemon-reload
sudo systemctl enable vllm-heretic-06b
sudo systemctl start vllm-heretic-06b
sudo systemctl stop vllm-heretic-06b
sudo systemctl status vllm-heretic-06b
sudo systemctl disable vllm-heretic-06b
journalctl -u vllm-heretic-06b -f

sudo nano /etc/systemd/system/vllm-heretic-06b.service

##SERVICE ENTRY

[Unit]
Description=vLLM Qwen3-0.6B Heretic Abliterated (tiny, experimental)
After=network.target

[Service]
User=jpatterson
WorkingDirectory=/home/jpatterson
Environment="PATH=/home/jpatterson/.venv/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/bin/python -m vllm.entrypoints.openai.api_server \
  --model DavidAU/Qwen3-0.6B-heretic-abliterated-uncensored \
  --port 5008 \
  --kv-cache-dtype fp8 \
  --max-model-len 32768 \
  --compilation-config '{"cudagraph_capture_sizes": [1, 2, 4, 8]}' \
  --gpu-memory-utilization 0.15
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
