huggingface/ratchet

Shared Array Buffer 🪄

Aperta

#79 aperta il 13 feb 2024

 (0 commenti) (1 reazione) (0 assegnatari)Rust (44 fork)auto 404
help wanted

Metriche repository

Star
 (768 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor