Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What’s the limitations? #8

Open
yukiarimo opened this issue Mar 9, 2024 · 1 comment
Open

What’s the limitations? #8

yukiarimo opened this issue Mar 9, 2024 · 1 comment

Comments

@yukiarimo
Copy link

Are there any limitations on LLaMA 2 models I can run in the browser? Like, if I have a ~4 GB model (7B), can I run it on my iPhone/Mac through WASM?

@rahuldshetty
Copy link
Owner

I haven't tested but it might be too buggy (and slow) to run more than 2GB models with llm.js. This directly leverages the CPU w/WASM engine on the browser without any WebGPU acceleration. Also due to 32bit memory address limitations on the browser side, this library will not work (yet).

I'd highly recommend checking out these 2 projects if you are looking to run models over 4GB:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants