Getting Started
Prerequisites
Section titled “Prerequisites”- A Linux host with NVIDIA GPUs of compute capability 9.0 or newer.
- An NVIDIA driver compatible with CUDA 12.9+, Docker, and NVIDIA Container Toolkit configured for GPU access.
Build the docker
Section titled “Build the docker”docker pull flxoss/fluxserve:v0.1-cu130-fa4Start the workspace
Section titled “Start the workspace”docker run -itd \ --shm-size 32g \ --gpus all \ --ipc=host \ --network=host \ --pid=host \ --privileged \ --name flux_workspace \ fluxserve:v0.1-cu130-fa4 \ /bin/bash
docker exec -it flux_workspace /bin/bashInstall FluxServe inside the container
Section titled “Install FluxServe inside the container”The image provides the CUDA and Python dependencies. Clone the source inside the container and install the kernel, scheduler, and runtime in that order:
git clone https://github.com/FLX-OSS/FluxServecd FluxServeexport PIP_BREAK_SYSTEM_PACKAGES=1pip install -e flux-kernel/python/ --no-build-isolationpip install -e flux-schedulerpip install -e .Verify Installation
Section titled “Verify Installation”fluxserve envfluxserve launch --helpLaunch
Section titled “Launch”fluxserve launch \ --model inclusionAI/LLaDA2.1-mini \ --host 127.0.0.1 \ --port 8000 \ --tp-size 1 \ --dp-size 1 \ --ep-size 1For model-specific examples, follow Model Recipes.
Check readiness
Section titled “Check readiness”In another shell in the same environment:
curl -fsS http://127.0.0.1:8000/healthSend a request
Section titled “Send a request”curl http://127.0.0.1:8000/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{ "model": "inclusionAI/LLaDA2.0-mini", "messages": [{"role": "user", "content": "Explain diffusion language models in a few sentences."}], "max_tokens": 128, "temperature": 0, "stream": false }'