Chrome 偷偷塞了一个 4GB AI 模型!附删除脚本

4 阅读 0 评论 0 点赞

Chrome 浏览器干了这么一件事。

它在你不知道的时候,偷偷往你电脑里塞了一个 4GB 大小的 AI 模型。没有通知,没有弹窗,也没问你要不要。

文件名叫 weights.bin,隐藏在 Chrome 配置目录深处一个叫 OptGuideOnDeviceModel 的文件夹里。

更离谱的是,你就算找到了这个文件,手动删掉,Chrome 会重新下载一份,放回去。

用下面的脚本删除本地模型,并设置策略禁止使用Chrome的本地AI功能。

# Disable Chrome local GenAI model download and remove downloaded model data.
# Run in elevated PowerShell.

$ErrorActionPreference = "Stop"

Write-Host "Closing Chrome..."
Get-Process chrome -ErrorAction SilentlyContinue | Stop-Process -Force
Start-Sleep -Seconds 2

$policyPath = "HKLM:\SOFTWARE\Policies\Google\Chrome"
if (-not (Test-Path $policyPath)) {
    New-Item -Path $policyPath -Force | Out-Null
}

New-ItemProperty `
    -Path $policyPath `
    -Name "GenAILocalFoundationalModelSettings" `
    -PropertyType DWord `
    -Value 1 `
    -Force | Out-Null

$userData = Join-Path $env:LOCALAPPDATA "Google\Chrome\User Data"
$targets = @(
    "OptGuideOnDeviceModel",
    "OptGuideOnDeviceClassifierModel",
    "optimization_guide_model_store"
)

foreach ($target in $targets) {
    $path = Join-Path $userData $target
    if (Test-Path $path) {
        Write-Host "Removing $path"
        Remove-Item $path -Recurse -Force
    }
}

Write-Host "Done. Open chrome://policy, click Reload policies, and confirm GenAILocalFoundationalModelSettings = 1."

将上面代码保存为remove_chrome_AI.ps1文件,然后使用管理员权限运行就可以更Chrome本地AI模型Say Byebye了。

评论

0 条

暂无评论,快来抢沙发吧!