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¶
JupyterLite and jupyterlite-xeus: the browser-based Jupyter environment.
xeus-python and pyjs, with the packages from emscripten-forge: the xeus-python kernel and its bridge to JavaScript.
Pyodide: the other kernel, with
pyodide.ffias its bridge.jl-forge: builds the JupyterLite sites from this repository.
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
imagesextra.
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¶
Sphinx, MyST and Furo: the documentation site. Its layout (tutorials, guides, reference, explanation) follows here-search-demo.
Playwright: the real-browser tests.