huggingface/ratchet

Shared Array Buffer 馃獎

Open

#79 opened on Feb 13, 2024

聽(0 comments)聽(1 reaction)聽(0 assignees)Rust聽(44 forks)auto 404
help wanted

Repository metrics

Stars
聽(768 stars)
PR merge metrics
聽(PR metrics pending)

Description

When we pull the model from the wire, we should write it into a shared array buffer: https://rustwasm.github.io/wasm-bindgen/examples/raytrace.html

This will reduce memory usage, ideally peak memory usage should be ~model size. Loading will require some magic.

Contributor guide