Skip to main content

Module server

Module server 

Source
Expand description

Server startup and shared job ownership. One worker owns the loaded GPU.

Modulesยง

failure ๐Ÿ”’
HTTP status for expected lifecycle failures; validation defaults to 400.
http ๐Ÿ”’
Bounded HTTP input and JSON/SSE wire framing.
output ๐Ÿ”’
Slow clients consume bounded writer queues, never the GPU worker thread.
pacer ๐Ÿ”’
Wall-time pacing within the prefill capacity reserved at load.
registry ๐Ÿ”’
Bounded request registration and cancellation, independent of the GPU worker.
request ๐Ÿ”’
Completion options, chat rendering, tokenization and context policy.
response ๐Ÿ”’
Endpoint-specific JSON and SSE framing, independent of token generation.
routes ๐Ÿ”’
HTTP endpoints and admission into the generation queue.
sessions ๐Ÿ”’
Bounded conversation history, committed at the final-response publication boundary.
stats ๐Ÿ”’
Generation work, shared by active-request and committed-session snapshots.
tool_call ๐Ÿ”’
Qwen tool-call output parsing.
worker ๐Ÿ”’
Round-robin GPU scheduling. Each active request owns its decoding state.

Structsยง

Job ๐Ÿ”’
UsageStats

Enumsยง

ApiKind ๐Ÿ”’

Constantsยง

MODEL ๐Ÿ”’

Functionsยง

serve