
{"id":8121,"date":"2026-05-12T00:32:50","date_gmt":"2026-05-11T16:32:50","guid":{"rendered":"https:\/\/infernews.com\/blog\/?p=8121"},"modified":"2026-05-12T00:42:44","modified_gmt":"2026-05-11T16:42:44","slug":"local-ai-chat-coding-agent-for-apple-silicon-powered-by-gemma-4-via-mlx-supports","status":"publish","type":"post","link":"https:\/\/infernews.com\/blog\/local-ai-chat-coding-agent-for-apple-silicon-powered-by-gemma-4-via-mlx-supports\/","title":{"rendered":"gemma-chat\uff1a\u96e2\u7dda\u5bebCode\u52a9\u624b\uff1aMac\u672c\u6a5fAI\u5be6\u6e2c"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img data-dominant-color=\"ded8c8\" data-has-transparency=\"false\" style=\"--dominant-color: #ded8c8;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"497\" src=\"https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/05\/Gemma4Fesktop.jpg\" alt=\"\" class=\"wp-image-8123 not-transparent\" srcset=\"https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/05\/Gemma4Fesktop.jpg 1024w, https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/05\/Gemma4Fesktop-300x146.jpg 300w, https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/05\/Gemma4Fesktop-768x373.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Gemma 4 Desktop<\/figcaption><\/figure>\n\n\n\n<p>\u5c0d\u65bc\u91cd\u8996\u79c1\u96b1\uff0c\u6216\u8005\u7d93\u5e38\u8655\u65bc\u7121\u7db2\u7d61\u74b0\u5883\u7684\u4eba\u4f86\u8aaa\uff0c\u9019\u500b\u5c08\u6848\u6700\u5438\u5f15\u7684\u5730\u65b9\uff0c\u662f\u628a AI \u7de8\u7a0b\u52a9\u624b\u5b8c\u5168\u653e\u5230 Mac \u672c\u6a5f\u57f7\u884c\u3002\u5b83\u5c6c\u65bc Electron \u61c9\u7528\u7a0b\u5f0f\uff0c\u900f\u904e Apple \u7684 MLX \u6846\u67b6\u5728 Apple Silicon \u88dd\u7f6e\u4e0a\u904b\u884c\uff0c\u9996\u6b21\u4e0b\u8f09\u6a21\u578b\u5f8c\uff0c\u5c31\u7b97\u5187 Wi-Fi \u4ea6\u53ef\u7e7c\u7e8c\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u5be6\u969b\u4f7f\u7528\u4e0a\uff0c\u4f60\u53ea\u8981\u7528\u81ea\u7136\u8a9e\u8a00\u63cf\u8ff0\u60f3\u505a\u7684\u5167\u5bb9\uff0c\u4f8b\u5982\u7c21\u55ae\u7db2\u9801\u3001\u8a08\u7b97\u6a5f\u4ecb\u9762\u6216\u591a\u6a94\u6848\u5c0f\u5c08\u6848\uff0c\u7cfb\u7d71\u5c31\u6703\u5728\u6c99\u76d2\u5de5\u4f5c\u5340\u5167\u81ea\u52d5\u7522\u751f\u7a0b\u5f0f\u78bc\uff0c\u4e26\u63d0\u4f9b\u5373\u6642\u9810\u89bd\u3002\u9019\u7a2e\u908a\u751f\u6210\u3001\u908a\u67e5\u770b\u6548\u679c\u7684\u65b9\u5f0f\uff0c\u5c0d\u975e\u5c08\u696d\u958b\u767c\u8005\u7279\u5225\u53cb\u5584\uff0c\u56e0\u70ba\u53ef\u4ee5\u76f4\u63a5\u7528\u756b\u9762\u7406\u89e3\u6539\u52d5\u3002<\/p>\n\n\n\n<p>\u5b83\u7684\u5275\u65b0\u4e0d\u53ea\u5728\u300c\u672c\u5730\u5316\u300d\uff0c\u800c\u662f\u5728\u672c\u6a5f\u74b0\u5883\u4e2d\u540c\u6642\u6574\u5408\u4e86\u804a\u5929\u3001\u5de5\u5177\u4f7f\u7528\u8207\u5efa\u69cb\u6a21\u5f0f\u3002\u9664\u4e86\u53ef\u4f5c\u4e00\u822c\u5c0d\u8a71\uff0c\u9084\u652f\u63f4\u8a9e\u97f3\u8f38\u5165\uff0c\u4ee5\u53ca\u5728\u4e0d\u540c Gemma 4 \u8b8a\u9ad4\u4e4b\u9593\u5207\u63db\uff1b\u5982\u679c\u4f60\u9700\u8981\u66f4\u5e73\u8861\u7684\u901f\u5ea6\u8207\u80fd\u529b\uff0cREADME \u660e\u78ba\u63a8\u85a6 Gemma 4 E4B\uff0c\u800c\u8f03\u5927\u578b\u7248\u672c\u5247\u5c0d\u8a18\u61b6\u9ad4\u8981\u6c42\u66f4\u9ad8\u3002<\/p>\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"lyte-wrapper\" title=\"Gemma 4 Desktop Coder by Google: 100% Free &amp;amp; Local, Build Apps OFFLINE on Your Mac\" style=\"width:853px;max-width:100%;margin:5px auto;\"><div class=\"lyMe\" id=\"WYL_2ZMbW3Qiv6U\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"https:\/\/infernews.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2ZMbW3Qiv6U%2Fhqdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/2ZMbW3Qiv6U\" \/><meta itemprop=\"duration\" content=\"PT9M41S\" \/><meta itemprop=\"uploadDate\" content=\"2026-05-11T08:58:49Z\" \/><\/div><div id=\"lyte_2ZMbW3Qiv6U\" data-src=\"https:\/\/infernews.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2ZMbW3Qiv6U%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Gemma 4 Desktop Coder by Google: 100% Free &amp; Local, Build Apps OFFLINE on Your Mac<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/2ZMbW3Qiv6U\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/infernews.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2ZMbW3Qiv6U%2F0.jpg\" alt=\"Gemma 4 Desktop Coder by Google: 100% Free &amp;amp; Local, Build Apps OFFLINE on Your Mac\" width=\"853\" height=\"460\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"A practical look at Gemma Chat, an open source Electron app that runs Gemma 4 locally on Apple Silicon Macs through the MLX framework. We cover the idea, the available models, install steps, a quick demo, and how the agent loop works under the hood. GitHub repo: https:\/\/github.com\/ammaarreshi\/gemma-chat Gemma by Google: https:\/\/ai.google.dev\/gemma Apple MLX: https:\/\/github.com\/ml-explore\/mlx #GemmaChat #Gemma4 #LocalAI #VibeCoding #AppleSilicon #MLX #OpenSource #GoogleAI #OfflineAI #CodingAgent\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:853px;margin:5px auto;\"><\/div><figcaption><\/figcaption><\/figure>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5168\u7a0b\u672c\u6a5f\u904b\u884c<\/strong>\uff0c\u4e0d\u9700 API key\uff0c\u4e5f\u4e0d\u7528\u628a\u7a0b\u5f0f\u78bc\u9001\u4e0a\u96f2\u7aef<\/li>\n\n\n\n<li><strong>Build Mode<\/strong> \u53ef\u5efa\u7acb\u591a\u6a94\u6848\u5c08\u6848\uff0c\u4e26\u5373\u6642\u9810\u89bd\u7d50\u679c<\/li>\n\n\n\n<li><strong>Chat Mode<\/strong> \u652f\u63f4\u5de5\u5177\u4f7f\u7528\uff0c\u4f8b\u5982\u7db2\u5740\u64f7\u53d6\u3001\u8a08\u7b97\u53ca\u6307\u4ee4\u64cd\u4f5c<\/li>\n\n\n\n<li><strong>\u9996\u6b21\u555f\u52d5\u81ea\u52d5\u914d\u7f6e<\/strong>\uff0c\u5305\u62ec Python \u865b\u64ec\u74b0\u5883\u8207 MLX \u57f7\u884c\u74b0\u5883<\/li>\n<\/ul>\n\n\n\n<p>\u6700\u9069\u5408\u7684\u5834\u666f\uff0c\u5305\u62ec\u98db\u6a5f\u4e0a\u3001\u7db2\u7d61\u4e0d\u7a69\u5b9a\u7684\u5730\u65b9\u3001\u5167\u90e8\u539f\u578b\u958b\u767c\uff0c\u6216\u4e0d\u60f3\u628a\u654f\u611f\u7a0b\u5f0f\u78bc\u4ea4\u7d66\u7b2c\u4e09\u65b9\u670d\u52d9\u7684\u5718\u968a\u3002\u8981\u7559\u610f\u7684\u662f\uff0c\u5b83\u76ee\u524d\u660e\u78ba\u91dd\u5c0d macOS \u8207 Apple Silicon\uff0c\u4ea6\u9700\u8981\u5148\u4e0b\u8f09\u6a21\u578b\uff1b\u6240\u4ee5\u5982\u679c\u4f60\u7528\u7684\u662f\u5176\u4ed6\u5e73\u53f0\uff0c\u6216\u8005\u96fb\u8166\u8cc7\u6e90\u6709\u9650\uff0c\u9ad4\u9a57\u53ef\u80fd\u6703\u53d7\u9650\u5236\u3002\u6574\u9ad4\u800c\u8a00\uff0c\u9019\u662f\u4e00\u500b\u76f8\u7576\u6e05\u6670\u7684\u300c\u96e2\u7dda AI \u7de8\u7a0b\u300d\u793a\u7bc4\uff0c\u4e5f\u986f\u793a\u672c\u5730\u5c0f\u578b\u6a21\u578b\u5df2\u958b\u59cb\u5177\u5099\u5be6\u7528\u50f9\u503c\u3002<\/p>\n\n\n\n<p><strong>Source:<\/strong> <a href=\"https:\/\/github.com\/ammaarreshi\/gemma-chat\" rel=\"noopener noreferrer\">https:\/\/github.com\/ammaarreshi\/gemma-chat<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u500b\u5c08\u6848\u628a\u7de8\u7a0b\u52a9\u624b\u642c\u5230 Mac \u672c\u6a5f\u904b\u884c\uff0c\u4e3b\u6253\u96e2\u7dda\u3001\u514d API key\uff0c\u540c\u6642\u517c\u9867\u5373\u6642\u9810\u89bd\u3002<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133,146,187],"tags":[],"class_list":["post-8121","post","type-post","status-publish","format-standard","hentry","category-133","category-146","category-187"],"_links":{"self":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/posts\/8121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/comments?post=8121"}],"version-history":[{"count":3,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/posts\/8121\/revisions"}],"predecessor-version":[{"id":8125,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/posts\/8121\/revisions\/8125"}],"wp:attachment":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/media?parent=8121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/categories?post=8121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/tags?post=8121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}