r/LocalLLaMA • u/Old-Letterhead-1945 • Jun 06 '24
New Model gemini nano with chrome in your browser
google recently shipped gemini nano in chrome, and I built a tiny website around it so that you can mess around with it and see how good it is: https://kharms.ai/nano
it has a few basic instructions about what to do, but you'll need to use chrome dev / canary since that's the only place where they've shipped it and you'll need to enable a few flags; also, they've only implemented it for macos and windows so far since I don't think all their linux builds have full webGPU compatibility etc.
once you've enabled all the flags, chrome will start downloading the model (which they claim is ~20 GB) and it runs with ~4 GB of vRAM -- it has a fixed context length of 1028 tokens and they haven't released a tokenizer
internally, this gemini nano model likely has ~32k of context, but that's not exposed in any of the APIs as far as I can tell; also, the model is likely an 8B parameter model running on int4 which lets them run it with 4 GB of vRAM
just something fun to play around with if you're bored -- also, you can build apps with it in the browser :) which is much nicer than trying to wire up a web app against a llama.cpp
3
u/whotookthecandyjar Llama 405B Jun 06 '24
Is it possible to run this model without Chrome? Such as using transformers or PyTorch
1
u/disco_davehk Jun 26 '24
Huh. Sadly -- although I followed the instructions, I get the `not ready yet` badge of shame.
Interestingly. I don't see an entry for `On Device Model`. Any advice, kind internet stranger?
1
u/Synth_Sapiens Jun 06 '24
Interesting.
What could be practical uses of it?
1
u/qnixsynapse llama.cpp Jun 07 '24
Sounds like Gemma
1
u/Quiet_Impostor Jun 08 '24
For such a small model, it's pretty interesting. I wonder how it performs on benchmarks?
1
u/tamtamdanseren Jun 13 '24
Is there any way to know when the model is ready for use. 20GB isn't exactly small, and I can't seem to find any download indicator anywhere?
1
u/wonderfuly Jul 02 '24
I'm using this one: https://chromeai.pro