Skip to content

0.13.0

Choose a tag to compare

@decitre decitre released this 22 Nov 19:54
· 58 commits to main since this release

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, with as_array=True, NumPy arrays (#23, #42).
  • Text to speech: LLM.pipeline("text-to-speech") returns a Speech object with samples, sampling_rate, duration and to_wav(), and shows an audio player in a notebook. Tested with Xenova/mms-tts-eng (CC-BY-NC-4.0, non-commercial use only) (#34, #44).
  • OnnxModel: run a single .onnx file 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 anywidget recorder for notebooks, with a message that names the system input level when a recording is silent (#35, #38, #43). Install with the new audio extra.
  • Extras: images (NumPy, Pillow 10.1 or later) and audio (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, not pjs, and raises when there is no bridge (#22).
  • The segmentation example returned wrong masks with the quantized model; it now uses fp32 and the tests check the pixels (#50).

Notes

  • lmlite loads 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).