Viewing a single comment thread. View all comments

mrpogiface t1_irwjphh wrote

How much effort would it be to get this running in WASM / the browser?

4

ggerganov OP t1_irwlluz wrote

I was thinking about this too.

Compiling the code is easy. The problem is you need to load 75 MB model data (this is the "tiny" model). I guess nobody would want to download 75 MB every time they load a page.

Even if we say you are OK with 75 MB assets, the next problem is WASM not supporting SIMD. So the performance would be much worse compared to native. How much? Not sure.

But nevertheless - it might be fun to try and run it in the browser.

5

mrpogiface t1_irz4hc9 wrote

As a complete WASM novice, I'd appreciate you doing it as a learning exercise for me :) But yeah, everything you outlined makes sense.

1

zzzthelastuser t1_is0oiz5 wrote

I THINK it is possible to keep the file cached. So that if a user returns to the site the model doesn't need to be re-downloaded again.

Alternatively a user could download the model file manually and your website asks the user to drag and drop their model file to launch the service?

1