JavaScript

UForm for JavaScript

npm install @unum-cloud/uform 4.0.0-rc.1 · 3ee5e534

The WebAssembly build is how the smallest models sit inside a page, computing on the visitor’s CPU with no server round trip.

Topics

Installation1The package carries prebuilt addons under prebuilds/, and the uform.mjs and uform.wasm pair for browsers under javascript/dist/wasm/.
QuickstartModels are tokenizer-free: text arrives as UTF-8 and every byte is a token.
Receivers and Deferred Calls26
Executors23
Arenas6Every output whose length scales with the call lands in an arena, and the verb answers views into it rather than copies.
Encoding30Every verb keeps the pooled embeddings by default.
Choices8
Models20
Training21Training runs on GPUs through the Node addon.
Errors2
DesignThe SDK is a thin layer over the C interface, one module per header: types, model, encode and train.