{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "Self-host vLLM on Edge | OpenAI-compatible LLM serving",
  "headline": "Self-host vLLM on Edge | OpenAI-compatible LLM serving",
  "description": "Run vLLM's CPU backend on Edge VMs for small models and staging, with weights cached in storage and an OpenAI-compatible API. GPU instances coming soon.",
  "url": "https://edge.network/solutions/vllm",
  "image": "https://edge.network/og/solutions__vllm.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Solutions",
        "item": "https://edge.network/solutions"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Vllm",
        "item": "https://edge.network/solutions/vllm"
      }
    ]
  },
  "section": "solutions",
  "articleBody": "For vLLM\n\n vLLM on Edge: build the serving stack now\n\n Run vllm serve on an Edge CPU VM for small models, staging and evals, with weights cached in your bucket and the OpenAI-compatible API behind TLS. Take the same setup to a GPU instance when they launch. Deploy a VM See AI infrastructure vLLM&#x27;s CPU backend works today. GPU instances are coming soon, and the waitlist is open.\n\n Why vLLM on Edge\n\n The production serving stack, ready before the GPUs are \n\n vLLM is built for GPUs, and Edge GPU instances are on the way. Its CPU backend lets you stand up the real server, API and weight pipeline today, then scale the hardware later. GPU instances are coming soon vLLM is designed for GPUs, and Edge GPU instances aren&#x27;t available yet. Its CPU backend runs today for small models and staging. For CPU-only production, llama.cpp or Ollama is usually faster; for large models and real throughput, join the waitlist. Join the GPU waitlist \n\n The real vllm serve\n\n Same CLI, same OpenAI-compatible server. What you build on CPU carries over to a GPU machine with few changes. \n CPU backend for small models\n\n Practical for models of roughly 0.5B–3B parameters: staging, evals, embeddings and light internal traffic. \n OpenAI-compatible server\n\n Chat, completions and embeddings endpoints. Existing SDKs work with a new base URL and the --api-key you set. \n Weights in object storage\n\n Keep safetensors in an Edge Storage bucket and sync at boot. No repeated Hugging Face downloads, and zero egress. \n Continuous batching\n\n vLLM batches concurrent requests as they arrive. It&#x27;s the reason teams choose it, and it pays off most on GPUs. \n Private by default\n\n Prompts and outputs stay on your VM. The API key and the CDN&#x27;s TLS are the only way in. \n Reference architecture\n\n vllm serve on CPU, weights synced from a bucket \n\n One VM runs vllm serve with the CPU backend. Weights sync from a bucket at boot, and the CDN puts TLS in front of an endpoint that already speaks the OpenAI API. AI agent RAG service\n\n OpenAI SDK, new base URL\n\n CI / Git Eval suite in CI\n\n nightly runs against /v1\n\n HTTPS Edge CDN inference.acme.com\n\n TLS; /v1/* bypasses cache\n\n DDoS --api-key Edge Compute vllm serve :8000\n\n CPU backend, s-8vcpu-16gb\n\n bf16 8k ctx sync at boot Edge Storage llm-weights\n\n safetensors, one prefix per model\n\n qwen2.5-1.5b/ Compute Runs vLLM&#x27;s CPU backend on 8 vCPU and 16 GiB for small models, staging and evals.\n\n GPU Compute Coming soon. GPU instances for production vLLM throughput; join the waitlist.\n\n Storage Keeps model weights in a bucket so a new VM starts from your copy, egress-free.\n\n CDN TLS and DDoS protection in front of the API; inference paths bypass the cache.\n\n DNS Anycast DNS for inference.acme.com.\n\n Deploy\n\n vLLM on CPU in five steps \n\n Follows vLLM&#x27;s build-from-source steps for x86 CPUs. Check docs.vllm.ai for the current release before you pin a version. ~/inference $ edge compute create --name inference \\ \n\n --size s-8vcpu-16gb --disk 160 \\\n\n --image ubuntu-24 --region london \\\n\n --script vllm-cpu\n\n ✓ vm-1f6c3a running, vLLM CPU build ready\n\n $ vllm serve Qwen/Qwen2.5-1.5B-Instruct \\ \n\n --port 8000 --api-key $VLLM_KEY \\\n\n --max-model-len 8192\n\n ✓ Application startup complete.\n\n ✓ OpenAI-compatible, /v1/chat/completions\n\n Egress on weight pulls $0 inference.acme.com Healthy Server vllm serve :8000 Model Qwen2.5-1.5B, bf16 01 Write a bootstrap script\n\n Builds vLLM with the CPU backend into a virtual environment, and installs the Edge CLI for weight syncs.\n\n vllm-cpu.sh Copy #!/bin/bash\nset -e\napt-get update\napt-get install -y build-essential libnuma-dev python3-dev git\ncurl -fsSL https://edge.network/install.sh | sh\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n. $HOME/.local/bin/env\nuv venv /opt/vllm --python 3.12 && . /opt/vllm/bin/activate\ngit clone https://github.com/vllm-project/vllm.git /opt/vllm-src\ncd /opt/vllm-src\nuv pip install -r requirements/cpu-build.txt --torch-backend cpu\nuv pip install -r requirements/cpu.txt --torch-backend cpu\nVLLM_TARGET_DEVICE=cpu uv pip install . --no-build-isolation \n 02 Create the VM and mirror the model\n\n Upload weights to your bucket once. For multi-gigabyte files the docs recommend an S3 tool with multipart uploads.\n\n shell Copy $ edge compute scripts create --name vllm-cpu --file vllm-cpu.sh\n$ edge compute create --name inference --size s-8vcpu-16gb \\\n --disk 160 --image ubuntu-24 --region london --script vllm-cpu\n\n$ hf download Qwen/Qwen2.5-1.5B-Instruct --local-dir qwen2.5-1.5b\n$ aws s3 sync qwen2.5-1.5b s3://llm-weights/qwen2.5-1.5b \\\n --endpoint-url https://storage.edge.network \n 03 Run it as a service\n\n Weights sync from the bucket before each start. VLLM_CPU_KVCACHE_SPACE sets the KV cache size in GiB.\n\n /etc/systemd/system/vllm.service Copy [Unit]\nDescription=vLLM OpenAI-compatible server\nAfter=network-online.target\n\n[Service]\nEnvironmentFile=/etc/vllm.env # EDGE_API_KEY, VLLM_API_KEY\nEnvironment=VLLM_CPU_KVCACHE_SPACE=4\nExecStartPre=/usr/local/bin/edge storage sync \\\n llm-weights/qwen2.5-1.5b/ /opt/models/qwen2.5-1.5b/\nExecStart=/opt/vllm/bin/vllm serve /opt/models/qwen2.5-1.5b \\\n --served-model-name qwen2.5-1.5b \\\n --host 127.0.0.1 --port 8000 \\\n --api-key ${VLLM_API_KEY} --max-model-len 8192\nRestart=always\n\n[Install]\nWantedBy=multi-user.target \n 04 Put the endpoint behind the CDN\n\n Proxy :443 on the VM to port 8000, and add a bypassCache rule for /v1/** in the deployment&#x27;s configuration.\n\n shell Copy $ edge cdn create --name inference\n$ edge cdn domains add cdn-a1b2c3 \\\n --domain inference.acme.com \\\n --origin https://<vm-ip> \n 05 Call it from your app\n\n Any OpenAI SDK works. The same client code will point at a GPU-backed server later.\n\n client.ts Copy import OpenAI from &#x27;openai&#x27;\n\nconst client = new OpenAI({\n baseURL: &#x27;https://inference.acme.com/v1&#x27;,\n apiKey: process.env.VLLM_API_KEY,\n})\n\nconst res = await client.chat.completions.create({\n model: &#x27;qwen2.5-1.5b&#x27;,\n messages: [{ role: &#x27;user&#x27;, content: &#x27;Summarise this ticket…&#x27; }],\n}) \n Prefer to hand it off? Give the job to your AI agent or have our engineers do it .\n\n What it costs\n\n Staging for your inference stack, at a fixed price \n\n No GPU instance is priced here because none is available yet. This is an 8 vCPU VM from the published per-resource rates, plus the weights bucket. The same OpenAI-compatible API you&#x27;ll run on GPUs \n Weights served from your bucket with zero egress \n No per-token charges at any volume \n See compute pricing Estimated monthly bill on Edge\n\n Staging and evals, Qwen2.5-1.5B on 8 vCPU\n\n USD Compute (vCPU) $23.36 8 vCPU × $0.004/hr × 730 hrs \n Compute (memory) $29.90 16 GiB × $0.00256/GiB-hr × 730 hrs \n Compute (disk) $11.84 160 GiB NVMe × $0.074/GiB-mo \n Storage $0.15 15 GB of weights, first 5 GB free \n CDN $0.00 API traffic, inside the 500k free requests \n Egress $0.00 \n Total $65.25 FAQ\n\n CPU today, GPUs next \n\n Something else? Ask an engineer . Can vLLM run without a GPU? Yes. vLLM has a CPU backend for x86, built from source as in step one. It runs noticeably faster on CPUs with AVX-512; check lscpu on your VM. It&#x27;s best suited to small models. vLLM, Ollama or llama.cpp on CPU? On CPU alone, llama.cpp or Ollama with a Q4 GGUF model is usually faster and lighter. Choose vLLM on CPU when you&#x27;re building towards GPU serving and want the same server, flags and API from day one. When will GPU instances be available? GPU instances are coming soon. Join the waitlist at /compute/gpus to hear first. If you need GPU capacity now, contact us: we may be able to arrange early access or an interim option. Which models fit on 16 GiB? Models of roughly 0.5B–3B parameters in bf16 fit with room for the KV cache, which VLLM_CPU_KVCACHE_SPACE controls. A 7B model in bf16 needs around 15 GB for weights alone, so it won&#x27;t fit comfortably. How do I scale it? Add VMs from the same bootstrap script and balance across them. For real throughput and large...",
  "headings": [
    {
      "level": 1,
      "text": "vLLM on Edge: build the serving stack now"
    },
    {
      "level": 3,
      "text": "The real vllm serve"
    },
    {
      "level": 3,
      "text": "CPU backend for small models"
    },
    {
      "level": 3,
      "text": "OpenAI-compatible server"
    },
    {
      "level": 3,
      "text": "Weights in object storage"
    },
    {
      "level": 3,
      "text": "Continuous batching"
    },
    {
      "level": 3,
      "text": "Private by default"
    },
    {
      "level": 3,
      "text": "Write a bootstrap script"
    },
    {
      "level": 3,
      "text": "Create the VM and mirror the model"
    },
    {
      "level": 3,
      "text": "Run it as a service"
    },
    {
      "level": 3,
      "text": "Put the endpoint behind the CDN"
    },
    {
      "level": 3,
      "text": "Call it from your app"
    },
    {
      "level": 2,
      "text": "Build your serving stack now"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Solutions",
      "url": "https://edge.network/solutions"
    },
    {
      "@type": "WebPage",
      "name": "Stacks",
      "url": "https://edge.network/solutions/stacks"
    },
    {
      "@type": "WebPage",
      "name": "See AI infrastructure",
      "url": "https://edge.network/solutions/ai"
    },
    {
      "@type": "WebPage",
      "name": "Join the GPU waitlist",
      "url": "https://edge.network/compute/gpus"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/compute"
    },
    {
      "@type": "WebPage",
      "name": "Storage",
      "url": "https://edge.network/storage"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/cdn"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/dns"
    },
    {
      "@type": "WebPage",
      "name": "Give the job to your AI agent",
      "url": "https://edge.network/solutions/agentic-development"
    },
    {
      "@type": "WebPage",
      "name": "have our engineers do it",
      "url": "https://edge.network/solutions/expert-services"
    },
    {
      "@type": "WebPage",
      "name": "See compute pricing",
      "url": "https://edge.network/compute/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Ask an engineer",
      "url": "https://edge.network/contact"
    },
    {
      "@type": "WebPage",
      "name": "Shield",
      "url": "https://edge.network/shield"
    },
    {
      "@type": "WebPage",
      "name": "Assist",
      "url": "https://edge.network/assist"
    },
    {
      "@type": "WebPage",
      "name": "Pulse",
      "url": "https://edge.network/pulse"
    },
    {
      "@type": "WebPage",
      "name": "Agent API &amp; MCP",
      "url": "https://edge.network/docs/agent"
    },
    {
      "@type": "WebPage",
      "name": "Academy",
      "url": "https://edge.network/academy"
    },
    {
      "@type": "WebPage",
      "name": "Case Studies",
      "url": "https://edge.network/case-studies"
    },
    {
      "@type": "WebPage",
      "name": "Releases",
      "url": "https://edge.network/releases"
    },
    {
      "@type": "WebPage",
      "name": "Roadmap",
      "url": "https://edge.network/roadmap"
    },
    {
      "@type": "WebPage",
      "name": "Status",
      "url": "https://edge.network/status"
    },
    {
      "@type": "WebPage",
      "name": "About",
      "url": "https://edge.network/about"
    },
    {
      "@type": "WebPage",
      "name": "Environment",
      "url": "https://edge.network/environment"
    },
    {
      "@type": "WebPage",
      "name": "Latest",
      "url": "https://edge.network/latest"
    },
    {
      "@type": "WebPage",
      "name": "Blog",
      "url": "https://edge.network/blog"
    },
    {
      "@type": "WebPage",
      "name": "Careers",
      "url": "https://edge.network/careers"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/solutions/vllm",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T02:00:49.447Z"
}