June 26th, 2024

Show HN: Code to run Gemini (Nano) locally on desktop/Chrome

The GitHub guide explains running Google Nano on desktop with Chrome Canary. It includes setup steps, testing guidance, and a demo link for practical exploration. Find detailed instructions on the GitHub page.

Read original articleLink Icon
Show HN: Code to run Gemini (Nano) locally on desktop/Chrome

The GitHub guide details the process of running Google Nano on a desktop using Chrome Canary. It offers steps to set up Chrome Canary and guidance on testing the feature. A demo link is available for practical exploration. For comprehensive instructions, visit the GitHub page.

Link Icon 2 comments
By @samspenc - 4 months
Huh, looking at the code, it's simpler than I thought, basically these are the 2 lines that enable the request-response functionality:

  const session = await window.ai.createTextSession();
  const response = await session.prompt(prompt);
By @DownrightNifty - 4 months
Instructions didn't work for me. Tried on Windows 10 and macOS 14.3 (x86) with Chrome Canary. The "On Device Model" component doesn't show up.