Prevent Chrome from Automatically Downloading Gemini Nano on Windows

Prevent Chrome from Automatically Downloading Gemini Nano on Windows

If you’ve noticed a significant increase in the size of the Google Chrome folder, there’s no need to panic. This surge in storage is attributed to Chrome’s automatic download of a substantial file named “weights.bin, ” which is essential for the Gemini Nano on-device artificial intelligence (AI).In this article, we’ll explore how this file affects your browser’s performance and how to prevent Chrome from downloading it.

Understanding Chrome’s Download of Gemini Nano

Google has incorporated several innovative on-device AI features within Chrome, including Help Me Write, AI History Search, and Tab Organizer. These functionalities do not rely on the traditional Google Gemini API; instead, they utilize the lightweight on-device Gemini Nano model. This design ensures your data remains offline during usage, resulting in instantaneous responses without needing to communicate with remote servers.

When engaging with these AI-driven features, Chrome will automatically download the “weights.bin” file in the background, facilitating offline access to Gemini Nano. The file ranges in size from approximately 1.5GB to 4GB, depending on your computer’s specifications. To locate this file, you can use the following path in File Explorer’s address bar in Windows:

%LOCALAPPDATA%\Google\Chrome\User Data\OptGuideOnDeviceModel

While Gemini Nano is critical for the functionality of Chrome’s AI features, the potential download size of 4GB may pose a problem, particularly for users with limited storage space.

How to Delete the weights.bin File

If you either don’t use Chrome’s AI features or prefer to disable unnecessary bloatware, you might be curious about safely removing the weights.bin file. Although you can delete this file to temporarily free up space, it’s important to note that this is not a sustainable solution. Chrome has an integrated Component Updater service, which will automatically redownload the file whenever Chrome starts or when you utilize any AI feature.

Even if you make the file read-only or remove its contents, Chrome will restore it during the next update or when new data becomes available. To effectively prevent the weights.bin file from downloading altogether, you have two options: disabling the corresponding Chrome flags or implementing a policy change through the Windows Registry.

Disabling Gemini Nano Download via Chrome Flags

The most straightforward way to stop the automatic download of Gemini Nano is by disabling specific Chrome flags. However, keep in mind that these flags may change over time, and this solution might not be permanent. To quickly halt downloads for now, follow these steps:

Enter chrome://flags in the Chrome address bar, and press Enter. In the flags menu, search for “optimization guide on device” and select Disabled next to the Enables optimization guide on device option.

Disabling Optimize Guide On Device flag in Chrome

Next, locate the “prompt API for gemini nano” option and also set Prompt API for Gemini Nano to Disabled. Don’t forget to restart Chrome for the adjustments to take effect.

Disabling Gemini Nano

After completing these steps, you’ll need to manually delete the weights.bin file from “%LOCALAPPDATA%\Google\Chrome\User Data\OptGuideOnDeviceModel” to reclaim the previously occupied storage space.

Modifying Windows Registry to Stop Downloads

For those seeking a more permanent solution, an enterprise-level policy exists that can effectively prevent Chrome from downloading Gemini Nano altogether. This method is particularly robust, as Chrome adheres to enterprise policies, ensuring it does not override this configuration with future updates.

Warning:

To implement this change, open the Windows Registry Editor and navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies

Right-click on the Policies folder, select NewKey, and name it Google. Under this new folder, create another key and name it Chrome.

Creating a New Folder in Windows Registry

While the Chrome folder is highlighted, right-click in the right panel, choose NewDWORD (32-bit) Value, and label it GenAILocalFoundationalModelSettings. Double-click on this new entry and change its value to 1.

Disabling Gemini Nano Download from Registry

A system restart will be required for the changes to take effect. Afterward, remember to delete the weights.bin file to regain storage space.

By following these steps to prevent the download of Gemini Nano, you will only lose the AI features directly dependent on it. Other functionalities that rely on cloud versions, such as AI Mode or the Gemini interface in the side panel, will continue to operate without issues. If your goal is to enhance Chrome’s performance, there are additional methods available that can yield better results.

Source & Images

Leave a Reply

Your email address will not be published. Required fields are marked *