A quick demo of lmlite, which bridges Transformers.js to Python in JupyterLite.
The goal is to make the JavaScript ML ecosystem available naturally from Python, while keeping model inference entirely client-side in the browser.
I’ll show how the bridge works, a few examples of what it enables, and I’d particularly like your feedback on whether this abstraction is useful, what use cases you see for it, and what you would expect from the Python API.
lmlite on GitHub
A few concrete examples of what lmlite enables are available in the orchestration.ipynb notebook:
- A simple RAG workflow using a small collection of documents.
- A multi-turn chat with conversation memory.
Both examples use SmolLM2-360M-Instruct, running entirely in the browser with WASM and q4 quantization.
I’d be interested in hearing about other use cases, particularly where access to browser-based ML models from Python could be useful in JupyterLite.