mock / cpu
The conformance plugin. It has no model, no device, and no dependency, so it runs on any machine and it makes every rule of the engine testable without a GPU.
It serves all twelve capabilities of spec section 7:
| capability | what it does |
|---|---|
chat | echoes the user turn, one chunk per word |
embed | one 8-element vector per text part, from a hash |
rerank | one score per document, from a hash |
decide | chooses the first option, with a uniform probability |
extract | one empty string per field |
tts | one second of silence, in 100 ms slices |
stt | a fixed transcript, as text and as tokens |
music | silence for duration_s seconds |
image-gen | the smallest PNG, 1x1 pixel |
image-edit | the smallest PNG, after reading the source |
t2v-gen | an mp4 ftyp box |
i2v-gen | an mp4 ftyp box, after reading the frame |
Every output is a function of the input, so a golden recorded today still matches tomorrow.
Run it by hand:
From this directory:
cargo run -- --describe
The bundle is its own cargo workspace (D19), so the root cargo commands do
not build it. ops/build.sh builds it into the root target.
The core starts it with --socket <private-path>. The arguments are in
inf3r-plugin-sdk::launch.
A bundle is one directory for one model on one target (spec section 5).
bundle.toml names the engine, the binary, the manifests, and the digest of the
binary and the manifests. model/ holds weights and stays out of git;
engine/ is where a bound runtime would go, and this bundle authors its engine
in src/ instead. A bundle package installs the directory below a bundle
directory; the core finds it through bundle_dirs. In a source checkout the
binary is a launcher of the same name, and a release package replaces it with
the compiled file.