Quickstart
Launch LLaDA2.0-mini and send a chat completion request. Complete the Docker installation first; the commands below run inside that environment.
Launch the server
Section titled “Launch the server”CUDA_VISIBLE_DEVICES=0 fluxserve serve \ --model inclusionAI/LLaDA2.0-mini \ --host 127.0.0.1 \ --port 8000 \ --tp-size 1 --dp-size 1 --ep-size 1 \ --attention-backend flashinfer \ --kv-cache-layout paged \ --scheduler-policy pagedThe checkpoint is downloaded on first use. Wait for model initialization before sending a request. Keep this process running.
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 }'Read the generated text in the response’s choices field. The exact output varies with the checkpoint and decoding configuration.
Go further
Section titled “Go further”Source revision: 7183e38.
