plugins/mock/x64-cpu/README.md 1.8 KiB 48 lines Raw

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:

capabilitywhat it does
chatechoes the user turn, one chunk per word
embedone 8-element vector per text part, from a hash
rerankone score per document, from a hash
decidechooses the first option, with a uniform probability
extractone empty string per field
ttsone second of silence, in 100 ms slices
stta fixed transcript, as text and as tokens
musicsilence for duration_s seconds
image-genthe smallest PNG, 1x1 pixel
image-editthe smallest PNG, after reading the source
t2v-genan mp4 ftyp box
i2v-genan 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.

view raw