plugins/toy/x64-cpu/README.md 1.2 KiB 29 lines Raw

toy / cpu

A real bundle over a generated model. It serves one model, toy, with one capability, chat, and it has no weights of its own. The five parts of a bundle are here: bundle.toml, BUNDLE.md, target.toml, model/, and engine/. The engine is authored in src/.

The test writes a GGUF file with one embed tensor of shape [vocab, 8] f32, the vocabulary under toy.vocab, and the stop string under toy.stop. load duplicates the descriptor from its grant, streams the header, and reads the one tensor through a bounded window at its offset. It does not read the whole file. The decoder scores every vocabulary token by a fixed linear map of the last eight input ids, takes the argmax, and emits the token text. A stop is stripped through inf3r-text's StopSet, so one that spans two tokens is held back.

Run the tests:

From the repository root:

cargo test --manifest-path plugins/toy/x64-cpu/Cargo.toml

A bundle is its own cargo workspace (D19), so cargo test --workspace does not reach it. Run cargo test in this directory for the same result.

The binary is started with --socket <private-path>; --describe prints the catalogue. Both arguments are in inf3r-plugin-sdk::launch.

view raw