Qwen/Qwen2.5-1.5B-Instruct on an NVIDIA L4, served by the
official vLLM OpenAI server. A volume keeps the downloaded model files, so a
replacement container reuses them instead of downloading again.
app.py in the downloaded project defines the pod and its resources.
The CLI installs once with uv tool install lazycloud-client. The commands
below download a standalone project and install its dependencies, with no
repository checkout. The rest of the guide runs from that directory through
uv run, which uses the project’s pinned SDK.
Prerequisites
- Check that your account can run an L4 and has credit. The pod holds a GPU for as long as it runs. Stop it after your requests if you do not need a server.
- Create an access token in the dashboard to call the service, and export it:
The pod
The pod runs the pinnedvllm/vllm-openai:v0.23.0 image. vLLM, PyTorch, and
CUDA stay in that image. Nothing installs on your machine.
authorized=True makes LazyCloud require a bearer token before a request
reaches vLLM. The example sets no separate vLLM API key.
volumes=[model_cache] creates or reuses vllm-model-cache in your workspace
when the pod starts. The volume name and mount path live in this definition,
with no separate storage setup.
Deploy
uv run lazycloud logs --deployment openai-server -n 50, then check health
again.
Use it
choices[0].message.content. For an OpenAI-compatible
client, use $VLLM_URL/v1 as the base URL, your LazyCloud token as the API
key, and qwen-1.5b as the model.
Troubleshoot a request
Cost and licensing
The pod holds an L4 while it runs and bills GPU, CPU, and memory time until you stop or delete the deployment. Check the Usage page before leaving it up. The 1.5B model fits on one L4, but concurrency and context length still affect GPU memory.- vLLM publishes the server image and its Docker instructions.
- The Hugging Face model card
lists
Qwen/Qwen2.5-1.5B-Instructunder the Apache 2.0 license. Read the card before using the weights in a product.
Clean up
To stop GPU charges while keeping the deployment and cache:uv run lazycloud deployment start openai-server. To remove it entirely,
delete the deployment first. Delete the cache only if this example created it
and you no longer need the model files:
