Credits

lmLite is a thin layer over other people’s work. This is what it uses, by what it does for the project.

Inference

  • Transformers.js: the browser runtime for the task pipelines, tokenizers and model loading. The version is pinned in lmlite.js.

  • ONNX Runtime: runs every model, on WebAssembly and WebGPU in the browser (onnxruntime-web, the build Transformers.js uses) and natively with the lmlite[native] extra.

  • tokenizers and huggingface_hub: the native backend’s tokenizer and model download.

Python in the browser

Notebooks and widgets

  • ipywidgets and tqdm: progress bars and the cache manager.

  • anywidget: the microphone and camera widgets.

  • NumPy and Pillow: arrays and images, in the optional images extra.

Models

Every demo downloads its models from the Hugging Face Hub. They are the work of their authors, and the browser-ready ONNX versions are mostly the work of the Xenova and onnx-community accounts. The model guide names each tested model with its page and licence; several are non-commercial.

Two exports deserve their own mention. The text-to-image notebook downloads its SD-Turbo files from schmuell/sd-turbo-ort-web. The instrument classifier, onnx-community/Musical-Instrument-Classification-ONNX, is an ONNX version of Bhaveen/Musical-Instrument-Classification.

Documentation and tests