Repository navigation
0.13.0
The first release with image, speech and bare-ONNX support, plus a fix for loading from sites that serve a 503 for the optional model manifest.
New
- Image tasks in
LLM.pipeline(): image inputs (bytes, URL, file path, NumPy array, PIL image) for vision tasks, and pipelines that return images (background removal, depth estimation, image segmentation, image to image) as PNG bytes or, withas_array=True, NumPy arrays (#23, #42). - Text to speech:
LLM.pipeline("text-to-speech")returns aSpeechobject withsamples,sampling_rate,durationandto_wav(), and shows an audio player in a notebook. Tested withXenova/mms-tts-eng(CC-BY-NC-4.0, non-commercial use only) (#34, #44). OnnxModel: run a single.onnxfile with NumPy in and NumPy out, with caching, hosted models, a sha256 check and float16 support.OnnxModel.map()adds progress, error handling and cancel (#28, #30, #47).Pipeline.map(): batched calls with progress (#31).- Microphone widget: an
anywidgetrecorder for notebooks, with a message that names the system input level when a recording is silent (#35, #38, #43). Install with the newaudioextra. - Extras:
images(NumPy, Pillow 10.1 or later) andaudio(anywidget). - Text to image: a recipe notebook (SD-Turbo on WebGPU, with prompt widgets) and the decision to keep it out of the pipeline tasks, with measurements in
docs/MODELS.md(#48). SD-Turbo is under a non-commercial research licence, so do not bundle it into a published site.
Fixed
- A load no longer fails when the site's optional hosted-model manifest returns a 503: the request is retried, then the model loads from the Hub (#51). A 404 still means "no manifest".
- xeus-python: the bridge imports
pyjs, notpjs, and raises when there is no bridge (#22). - The segmentation example returned wrong masks with the quantized model; it now uses
fp32and the tests check the pixels (#50).
Notes
lmliteloads in xeus-python on WebAssembly and WebGPU, and the notebooks run in the real JupyterLab UI in Chromium and Firefox (#50). Real Safari is not tested.- The JupyterLite sites are built with jl-forge 0.8 (#41). If you self-host, rebuild with
scripts/lite-build.sh. - macOS: the pixi environments need macOS 14 or later on arm64 (#27).