LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flide

Inference engine for decision models

TLDR

Serve a model on port 8000
$ flide serve --model [organization/model]
copy
Serve on the local machine only
$ flide serve --model [organization/model] --host 127.0.0.1 --port [8000]
copy
Keep earlier request states in a session cache
$ flide serve --model [organization/model] --session-cache-gb [40]
copy
Get identical results at any load
$ flide serve --model [organization/model] --batch-invariant
copy
Answer a file of requests offline
$ flide run --model [organization/model] --rows [requests.jsonl] --out [path/to/output]
copy
Verify exact forking and load invariance on your own requests
$ flide verify --model [organization/model] --requests [requests.jsonl]
copy
List installed model families
$ flide formats
copy

SYNOPSIS

flide serve --model model [options]flide run --model model --rows file... --out dir [options]flide verify --model model --requests file [options]flide kernels subcommand [arguments]flide formats

DESCRIPTION

Flide is an inference engine for Jev-style decision models. Instead of generating free text, these models answer a set of questions about a shared state, and each answer comes with the probability of every option. Flide computes the state once and forks it exactly for each question, which avoids repeating that work per question.flide serve exposes the POST /v1/systemone endpoint, which takes a state, a questions object and optional media. flide run takes the same requests as JSON lines and writes results.jsonl, timing.json and environment.json to the output directory.flide verify compares each question against the same question asked alone, compares requests alone against the same requests batched under load, and with --session-cache-gb compares answers with the session cache on and off.

COMMANDS

serve

Load a checkpoint and start the System One API server.
run
Answer a file of requests offline, without a server.
verify
Check exact forking, load invariance and the session cache on your own requests. Exits with status 1 if any check fails.
kernels export --model model --out file
Warm models in a fresh cache and pack the compiled kernels. Also accepts --sessions, --no-weights, --quantize, --format, --device and --dtype.
kernels seed bundle
File a bundle's kernels into this machine's kernel cache.
kernels merge out bundles...
Unite bundles made with the same Triton on the same GPU.
kernels info bundle
Show what a bundle holds.
formats
List installed model families.

COMMON PARAMETERS

--model M

Hugging Face repository id, downloaded on first use, or a local directory. Required.
--format F
Model family. Default: detected from the checkpoint.
--format-arg KEY=VALUE
An option for the model family. Repeatable.
--device D
GPU to run on. Default: cuda:0.
--batch-invariant
Give a request the same bits whatever it is batched with, at some cost in speed.
--quantize fp8
Store Qwen3.5 decoder weights in FP8. Requires compute capability 8.9 or newer (not available for verify).

SERVE PARAMETERS

--name N

Model name reported by the API. Default: taken from --model.
--calibration FILE
Calibration file. Default: the one next to the weights.
--dtype T
Dtype for weights and activations. Default: bfloat16.
--media-root DIR
Directory that local media paths resolve against. Without it, only base64 media is accepted.
--allow-media-urls
Fetch media that requests give as http(s) URLs.
--max-media-mb N
Largest image or video per request, in MiB after decoding. Default: 64.
--max-branch-tokens N
Maximum length of state plus question, in tokens. Default: 32768.
--max-request-tokens N
Maximum total request length, in tokens. Default: 65536.
--session-cache-gb G
GPU memory for the states of earlier requests, so that a request extending one resumes from it. Default: 0.
--session-min-tokens N
Shortest state the session cache stores. Default: 2048.
--no-cuda-graphs
Run every request eagerly.
--planners N
CPU threads that render and tokenize requests. Default: 4.
--frontends N
HTTP front-end processes, each with its own planners. 0 serves from the GPU process. Default: 0.
--batch-window-ms MS
Wait this long after the first request for more to join its GPU round. Default: 0.
--gather-ms MS
Wait up to this long for requests still being planned to join a round. Default: 2.
--host H
Interface to listen on. Default: 0.0.0.0.
--port P
Port to listen on. Default: 8000.
--access-log
Log every request.

RUN PARAMETERS

--rows FILE...

One or more JSON lines input files, optionally gzip compressed. Required.
--out DIR
Directory where results are written. Required.
--plan-arg KEY=VALUE
An option applied to every request.
--name N
Model name written into each response. Default: flide.
--every N
Keep every n-th row. Default: 1.
--limit N
Stop after N rows.
--budget N
Tokens per micro-batch. Default: 65536.
--workers N
Processes that render and tokenize requests. Default: CPU count minus 2.
--dtype T
Dtype for weights and activations. Default: bfloat16.
--warmup N
Micro-batches run once before the timed forward. Default: 0.
--stream-block N
Rows per GPU block while planning continues. 0 plans everything first. Default: 20000.

VERIFY PARAMETERS

--requests FILE

JSON lines file with one request per line. Required.
--limit N
Number of requests to read. Default: 32.
--session-cache-gb G
Also check the session cache at this size.

CAVEATS

Flide runs on Linux with an NVIDIA GPU, Python 3.10 or newer and PyTorch 2.12 or newer. PyPI's PyTorch is built for CUDA 13, so a machine whose driver supports only CUDA 12 needs the CUDA 12.6 PyTorch build installed first. torchvision is needed only for images and video.flide serve listens on all interfaces by default. --allow-media-urls lets requests make the server fetch any address it can reach, so avoid it on exposed servers.On GPUs without precompiled kernels, the first server start compiles them once.

HISTORY

Flide was first released on PyPI as version 0.1.0 in October 2026 by OmniJev, under the Apache-2.0 license.

SEE ALSO

vllm(1), ollama(1), uv(1)

RESOURCES

Copied to clipboard
Kai