Better HN
topnewbestaskshowjobs
Log inSign up

xenova

668 karma · joined Mar 17, 2023 (3y ago) · 56 submissions

Submissions

1.

Bonsai 27B: A 27B-Class model that runs on a phone(prismml.com ↗)

706 points · by xenova · 4mo ago · 250 comments

2.

1-Bit and Ternary Bonsai Image 4B: Image Generation for Local Devices(prismml.com ↗)

3 points · by xenova · 6mo ago · discuss

comment 7mo ago · link · parent

yep! :) https://huggingface.co/spaces/webml-community/bonsai-ternary...

4.

ML-intern: open-source ML engineer that reads papers, trains and ships models(github.com ↗)

3 points · by xenova · 7mo ago · discuss

comment 1y ago · link · parent

This demo runs Voxtral-Mini-3B, a new audio language model from Mistral, enabling state-of-the-art audio transcription directly in your browser. Everything runs locally, meaning none of your data is sent to a server (and your transcripts are stored on-device).

comment 1y ago · link · parent

We have released a bunch of speech recognition demos (using whisper, moonshine, and others). For example:

- https://huggingface.co/spaces/Xenova/whisper-web

- https://huggingface.co/spaces/Xenova/whisper-webgpu

- https://huggingface.co/spaces/Xenova/realtime-whisper-webgpu

- https://huggingface.co/spaces/webml-community/moonshine-web

comment 1y ago · link · parent

It took some time, but we finally got Kokoro TTS (v1.0) running in-browser w/ WebGPU acceleration! This enables real-time text-to-speech without the need for a server. Looking forward to your feedback!

8.

Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser(huggingface.co ↗)

227 points · by xenova · 1y ago · 53 comments

comment 1y ago · link · parent

NPM package: https://www.npmjs.com/package/kokoro-js GitHub: https://github.com/hexgrad/kokoro

comment 1y ago · link · parent

For those interested in learning more, the source code is available on GitHub: https://github.com/huggingface/transformers.js-examples/tree...

11.

Transformers.js v3: WebGPU Support, New Models and Tasks, and More(huggingface.co ↗)

1 points · by xenova · 2y ago · discuss

12.

SAM 2: Segment Anything in Images and Videos(github.com ↗)

824 points · by xenova · 2y ago · 147 comments

comment 2y ago · link · parent

It uses OpenAI's set of whisper models, which support multilingual transcription and translation across 100 languages. Since the models run entirely locally in your browser (thanks to Transformers.js), no data leaves your device! Huge for privacy!

Source code: https://github.com/xenova/whisper-web/tree/experimental-webg...

comment 2y ago · link · parent

We have some other WebGPU demos, including:

- WebGPU embedding benchmark: https://huggingface.co/spaces/Xenova/webgpu-embedding-benchm...

- Real-time object detection: https://huggingface.co/spaces/Xenova/webgpu-video-object-det...

- Real-time background removal: https://huggingface.co/spaces/Xenova/webgpu-video-background...

- WebGPU depth estimation: https://huggingface.co/spaces/Xenova/webgpu-depth-anything

- Image background removal: https://huggingface.co/spaces/Xenova/remove-background-webgp...

You can follow the progress for full WebGPU support in the v3 development branch (https://github.com/xenova/transformers.js/pull/545).

To answer your question, while there are certain ops missing, the main limitation at the moment is for models with decoders... which are not very fast (yet) due to inefficient buffer reuse and many redundant copies between CPU and GPU. We're working closely with the ORT team to fix these issues though!

comment 2y ago · link · parent

Odd, the links seem to work for me. What error do you see? Can you try on a different network (e.g., mobile)?

comment 2y ago · link · parent

We’ve put out a ton of demos that use much smaller models (10-60 MB), including:

- (44MB) In-browser background removal: https://huggingface.co/spaces/Xenova/remove-background-web. (We also put out a WebGPU version: https://huggingface.co/spaces/Xenova/remove-background-webgp...).

- (51MB) Whisper Web for automatic speech recognition: https://huggingface.co/spaces/Xenova/whisper-web (just select the quantized version in settings).

- (28MB) Depth Anything Web for monocular depth estimation: https://huggingface.co/spaces/Xenova/depth-anything-web

- (14MB) Segment Anything Web for image segmentation: https://huggingface.co/spaces/Xenova/segment-anything-web

- (20MB) Doodle Dash, an ML-powered sketch detection game: https://huggingface.co/spaces/Xenova/doodle-dash

… and many many more! Check out the Transformers.js demos collection for some others: https://huggingface.co/collections/Xenova/transformersjs-dem....

Models are cached on a per-domain basis (using the Web Cache API), meaning you don’t need to re-download the model on every page load. If you would like to persist the model across domains, you can create browser extensions with the library! :)

As for your last point, there are efforts underway, but nothing I can speak about yet!

12