huggingface/ratchet

Shared Array Buffer 🪄

Aberta

#79 aberto em 13 de fev. de 2024

 (0 comentário) (1 reação) (0 responsável)Rust (44 forks)auto 404
help wanted

Métricas do repositório

Stars
 (768 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador