{"id":32,"date":"2026-06-14T09:23:44","date_gmt":"2026-06-14T01:23:44","guid":{"rendered":"http:\/\/tantan.ink\/?p=32"},"modified":"2026-06-14T09:23:44","modified_gmt":"2026-06-14T01:23:44","slug":"magenta-realtime-2-macbook-ai-music","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/06\/14\/magenta-realtime-2-macbook-ai-music\/","title":{"rendered":"Google Magenta RealTime 2\uff1a\u7528 MacBook \u5b9e\u65f6\u5f39 AI \u97f3\u4e50\uff0c\u5ef6\u8fdf\u53ea\u6709 200ms"},"content":{"rendered":"<p>Google Magenta \u56e2\u961f\u5728 6 \u6708 4 \u53f7\u6084\u54aa\u54aa\u653e\u4e86\u4e2a\u5927\u62db\u2014\u2014<strong>Magenta RealTime 2<\/strong>\u3002\u5982\u679c\u8bf4\u4e0a\u4e00\u4ee3 MRT \u66f4\u50cf\u4e00\u4e2a\u80fd\u300c\u79bb\u7ebf\u6e32\u67d3\u300d\u7684 AI \u97f3\u4e50\u751f\u6210\u5668\uff0c\u90a3 MRT2 \u5c31\u662f\u771f\u6b63\u610f\u4e49\u4e0a\u7684\u5b9e\u65f6\u4e50\u53e5\u5de5\u5177\uff1a\u4f60\u5f39\u4e00\u6bb5 MIDI\uff0c\u5b83 200ms \u5185\u5c31\u8ddf\u7740\u4f60\u7684\u601d\u8def\u54cd\u3002<\/p>\n<p><strong>\u800c\u4e14\u5168\u90e8\u672c\u5730\u8fd0\u884c\uff0c\u4e0d\u9700\u8981\u8054\u7f51\uff0c\u4e0d\u9700\u8981 GPU\u2014\u2014\u4f60\u7684 MacBook Air \u5c31\u80fd\u8dd1\u3002<\/strong><\/p>\n<p style=\"text-align:center;\"><img decoding=\"async\" class=\"alignnone size-full\" src=\"http:\/\/tantan.ink\/wp-content\/uploads\/2026\/06\/magenta-arch.png\" alt=\"Magenta RealTime 2 \u67b6\u6784\u6982\u89c8\uff1a\u6a21\u578b\u3001\u63a8\u7406\u5f15\u64ce\u548c\u793a\u4f8b\u5e94\u7528\" width=\"800\" \/><br \/><em>MRT2 \u6574\u4f53\u67b6\u6784\uff1a\u6a21\u578b\u6743\u91cd \u2192 Python\/C++ \u63a8\u7406\u5f15\u64ce \u2192 4 \u4e2a\u53ef\u76f4\u63a5\u8fd0\u884c\u7684\u793a\u4f8b\u5e94\u7528\uff08\u6765\u6e90\uff1aGoogle Magenta Blog\uff09<\/em><\/p>\n<h2>\u4e3a\u4ec0\u4e48\u503c\u5f97\u5173\u6ce8\uff1f<\/h2>\n<p>AI \u751f\u6210\u97f3\u4e50\u4e4b\u524d\u7684\u95ee\u9898\u5f88\u660e\u786e\uff1a<strong>\u5ef6\u8fdf\u592a\u5927\uff0c\u6ca1\u6cd5\u5b9e\u65f6\u4ea4\u4e92<\/strong>\u3002\u4e4b\u524d\u7684\u6a21\u578b\uff08\u5305\u62ec MRT1\uff09\u751f\u6210\u4e00\u6bb5\u97f3\u9891\u8981\u7b49\u597d\u51e0\u79d2\uff0c\u653e\u5728 DAW \u91cc\u4f60\u8981\u5148\u6e32\u67d3\u3001\u518d\u542c\u3001\u518d\u8c03\uff0c\u5b8c\u5168\u4e0d\u662f\u300c\u5f39\u594f\u300d\u7684\u4f53\u9a8c\u3002<\/p>\n<p>MRT2 \u628a\u63a7\u5236\u5ef6\u8fdf\u4ece ~3 \u79d2\u964d\u5230\u4e86 ~200ms\uff0c\u5e27\u5927\u5c0f\u4ece 2 \u79d2\u964d\u5230\u4e86 40ms\u3002<strong>15 \u500d<\/strong>\u7684\u63d0\u5347\u3002<\/p>\n<p style=\"text-align:center;\"><img decoding=\"async\" class=\"alignnone size-full\" src=\"http:\/\/tantan.ink\/wp-content\/uploads\/2026\/06\/mrt-comparison.svg\" alt=\"MRT1 vs MRT2 \u5bf9\u6bd4\u56fe\" width=\"800\" \/><br \/><em>MRT1 vs MRT2\uff1a15 \u500d\u5ef6\u8fdf\u98de\u8dc3\u2014\u2014\u63a7\u5236\u5ef6\u8fdf\u3001\u5e27\u5927\u5c0f\u3001\u786c\u4ef6\u8981\u6c42\u3001\u63a7\u5236\u65b9\u5f0f\u3001\u6a21\u578b\u5927\u5c0f\u548c\u8bb8\u53ef\u534f\u8bae\u5168\u9762\u5bf9\u6bd4<\/em><\/p>\n<p>\u8fd9\u662f\u4ec0\u4e48\u6982\u5ff5\uff1f\u4eba\u7c7b\u611f\u77e5\u300c\u5b9e\u65f6\u300d\u7684\u9608\u503c\u5927\u6982\u662f 100-200ms\uff08\u53d6\u51b3\u4e8e\u573a\u666f\uff09\u3002200ms \u5df2\u7ecf\u8db3\u591f\u8ba9\u4f60\u8ddf\u7740\u8282\u62cd\u505a\u5373\u5174\u53d1\u6325\u4e86\u2014\u2014\u867d\u7136\u4e0d\u80fd\u8bf4\u5b8c\u5168\u96f6\u611f\u77e5\uff0c\u4f46\u5df2\u7ecf\u8fdb\u5165\u4e86\u300c\u53ef\u6f14\u594f\u300d\u7684\u8303\u7574\u3002<\/p>\n<h2>\u786c\u4ef6\u95e8\u69db\uff1a\u4f4e\u5f97\u60ca\u4eba<\/h2>\n<table style=\"border-collapse:collapse;width:100%;\">\n<tr style=\"background:#1a1a2e;\">\n<th style=\"padding:8px;border:1px solid #333;\">\u6a21\u578b<\/th>\n<th style=\"padding:8px;border:1px solid #333;\">\u53c2\u6570\u91cf<\/th>\n<th style=\"padding:8px;border:1px solid #333;\">\u5b9e\u65f6\u6f14\u594f<\/th>\n<th style=\"padding:8px;border:1px solid #333;\">\u79bb\u7ebf\u751f\u6210<\/th>\n<\/tr>\n<tr>\n<td style=\"padding:8px;border:1px solid #333;\">mrt2_small<\/td>\n<td style=\"padding:8px;border:1px solid #333;\">230M (~450MB)<\/td>\n<td style=\"padding:8px;border:1px solid #333;\"><strong>\u6240\u6709 Apple Silicon\uff08\u542b Air\uff09<\/strong><\/td>\n<td style=\"padding:8px;border:1px solid #333;\">\u6240\u6709 Apple Silicon<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px;border:1px solid #333;\">mrt2_base<\/td>\n<td style=\"padding:8px;border:1px solid #333;\">2.4B (~2.5GB)<\/td>\n<td style=\"padding:8px;border:1px solid #333;\">M3 Pro \/ M2 Max \u53ca\u4ee5\u4e0a<\/td>\n<td style=\"padding:8px;border:1px solid #333;\">\u540c\u4e0a<\/td>\n<\/tr>\n<\/table>\n<p>\u5c31\u662f\u8bf4\u4f60\u624b\u4e0a\u7684 M1 MacBook Air \u4e5f\u80fd\u7528 small \u6a21\u578b\u5b9e\u65f6\u751f\u6210\u97f3\u4e50\u3002<strong>2.5GB \u7684\u5927\u6a21\u578b\u4e5f\u4e0d\u6311 GPU<\/strong>\uff0cM \u7cfb\u5217\u7684\u7edf\u4e00\u5185\u5b58\u5929\u7136\u9002\u5408\u8fd9\u79cd\u573a\u666f\u3002<\/p>\n<h2>\u4e09\u6a21\u6001\u63a7\u5236\uff1a\u6587\u672c\u3001\u97f3\u9891\u3001MIDI \u4e00\u8d77\u4e0a<\/h2>\n<p>MRT2 \u652f\u6301\u4e09\u79cd\u63a7\u5236\u4fe1\u53f7\uff0c\u53ef\u4ee5\u540c\u65f6\u7528\uff1a<\/p>\n<ul>\n<li><strong>\u6587\u672c\u63d0\u793a<\/strong>\u2014\u2014\u63cf\u8ff0\u98ce\u683c\uff0c\u6bd4\u5982 disco funk\u3001ambient pads with sub bass<\/li>\n<li><strong>\u97f3\u9891\u53c2\u8003<\/strong>\u2014\u2014\u7ed9\u4e00\u6bb5\u73b0\u6709\u97f3\u9891\u505a\u98ce\u683c\u53c2\u8003<\/li>\n<li><strong>MIDI \u8f93\u5165<\/strong>\u2014\u2014\u76f4\u63a5\u5f39\u4e00\u6bb5\u65cb\u5f8b\u63a7\u5236\u751f\u6210<\/li>\n<\/ul>\n<p>\u8fd9\u4e09\u4e2a\u4fe1\u53f7\u901a\u8fc7 <strong>Multi-signal CFG\uff08\u5206\u7c7b\u5668\u81ea\u7531\u5f15\u5bfc\uff09<\/strong> \u6df7\u5408\uff0c\u4f60\u53ef\u4ee5\u5206\u522b\u8c03\u8282\u6bcf\u4e2a\u4fe1\u53f7\u7684\u5f3a\u5ea6\u3002\u6bd4\u5982\u628a MIDI \u5f3a\u5ea6\u62c9\u6ee1\u3001\u6587\u672c\u653e\u5f31\uff0c\u5c31\u662f\u300c\u6309\u6211\u5f39\u7684\u5373\u5174\u751f\u6210\uff0c\u4f46\u98ce\u683c\u8bf7\u53c2\u8003\u8fd9\u4e2a\u63d0\u793a\u8bcd\u300d\u3002<\/p>\n<p>\u53e6\u5916\u8fd8\u6709\u4e2a\u7ec6\u8282\uff1aMRT2 \u652f\u6301 <strong>Auto-Strum<\/strong>\uff08\u81ea\u52a8\u7436\u97f3\uff0c\u6a21\u578b\u51b3\u5b9a\u89e6\u53d1\u65f6\u673a\uff09\u548c <strong>Explicit Onset<\/strong>\uff08\u4f60\u7cbe\u786e\u63a7\u5236\u6bcf\u4e2a\u97f3\u7b26\u7684\u8d77\u6b62\uff09\u4e24\u79cd\u6a21\u5f0f\uff0c\u770b\u4f60\u60f3\u8981\u300c\u8ddf\u7740\u611f\u89c9\u8d70\u300d\u8fd8\u662f\u300c\u7cbe\u786e\u63a7\u5236\u6bcf\u4e00\u4e2a\u97f3\u300d\u3002<\/p>\n<h2>\u6280\u672f\u67b6\u6784\uff1a\u4e00\u8fb9\u64ad\u4e00\u8fb9\u7b97<\/h2>\n<p>MRT2 \u57fa\u4e8e <strong>SpectroStream<\/strong> \u7f16\u89e3\u7801\u5668\u2014\u201448kHz \u7acb\u4f53\u58f0\u538b\u5230 3 kbps\uff0c25Hz \u5e27\u7387\uff0c\u6bcf\u5e27 12 \u4e2a RVQ token\u3002\u751f\u6210\u65f6\u91c7\u7528<strong>\u56e0\u679c\u6ed1\u52a8\u7a97\u53e3\u6ce8\u610f\u529b\uff08SWA\uff09<\/strong>\uff0c\u53ea\u4fdd\u7559\u6700\u8fd1\u4e00\u6bb5 KV cache\uff0c\u53ef\u4ee5\u6301\u7eed\u6d41\u5f0f\u751f\u6210\u3002<\/p>\n<p>\u6709\u610f\u601d\u7684\u4e00\u70b9\u662f\u5b83\u7528\u4e86 <strong>NoPE\uff08No Positional Embeddings\uff09<\/strong>\u2014\u2014\u4e0d\u505a\u4f4d\u7f6e\u7f16\u7801\u53cd\u800c\u5728\u957f\u5e8f\u5217\u751f\u6210\u4e0a\u66f4\u7a33\u5b9a\u3002\u914d\u5408\u53ef\u5b66\u4e60\u7684 attention sink\uff0c\u5373\u4f7f\u7a97\u53e3\u6ed1\u52a8\u4e5f\u4e0d\u4f1a\u4e22\u6389\u4e0a\u4e0b\u6587\u3002<\/p>\n<p style=\"text-align:center;\"><img decoding=\"async\" class=\"alignnone size-full\" src=\"http:\/\/tantan.ink\/wp-content\/uploads\/2026\/06\/magenta-latency.png\" alt=\"MRT2 \u63a8\u7406\u5ef6\u8fdf\u65f6\u5e8f\u56fe\" width=\"800\" \/><br \/><em>MRT2 \u7aef\u5230\u7aef\u5ef6\u8fdf\u7ea6 200ms\uff1a\u8f93\u5165\u7f13\u51b2 \u2192 \u5e27\u5904\u7406(40ms) \u2192 \u6df1\u5ea6\u89e3\u7801 \u2192 \u7f16\u89e3\u7801\u5668 \u2192 \u8f93\u51fa\u7f13\u51b2\uff08\u6765\u6e90\uff1aGoogle Magenta Blog\uff09<\/em><\/p>\n<h2>\u62ff\u6765\u5c31\u80fd\u7528\u7684 4 \u4e2a\u5e94\u7528<\/h2>\n<p>Google \u76f4\u63a5\u7ed9\u4e86\u56db\u4e2a\u6210\u54c1\u5e94\u7528\uff0cGitHub \u4e0a\u6e90\u7801\u5168\u5f00\uff08Apache 2.0\uff09\uff1a<\/p>\n<ol>\n<li><strong>Jam<\/strong>\u2014\u2014\u72ec\u7acb APP\uff0c\u5e26\u98ce\u683c\u9884\u8bbe\u548c\u5b8c\u6574\u7684 MIDI \u63a7\u5236\u754c\u9762<\/li>\n<li><strong>Collider<\/strong>\u2014\u2014\u5b9e\u65f6\u6df7\u5408\u4e24\u79cd\u98ce\u683c\u8f93\u5165\uff0c\u751f\u6210\u8fc7\u6e21\u7eb9\u7406\u3002\u6bd4\u5982\u4ece jazz \u5e73\u6ed1\u8fc7\u6e21\u5230 electronic<\/li>\n<li><strong>MRT2 Plugin\uff08AUv3\uff09<\/strong>\u2014\u2014\u76f4\u63a5\u63d2\u8fdb Logic Pro\u3001GarageBand\uff0c\u5728 DAW \u91cc\u5f53\u63d2\u4ef6\u7528<\/li>\n<li><strong>Creative Coding Extensions<\/strong>\u2014\u2014\u81ea\u5b9a\u4e49\u96c6\u6210\u63a5\u53e3\uff0c\u9002\u5408\u505a\u5b9e\u9a8c<\/li>\n<\/ol>\n<p>\u5bf9\u5927\u591a\u6570\u7528\u6237\u6765\u8bf4\uff0c\u6700\u5b9e\u7528\u7684\u53ef\u80fd\u662f AUv3 \u63d2\u4ef6\u2014\u2014\u76f4\u63a5\u5728 Logic Pro \u91cc\u6253\u5f00\u5c31\u80fd\u7528\uff0c\u4e0d\u7528\u5207\u7a97\u53e3\u3002<\/p>\n<h2>\u5728 MacBook \u4e0a\u8dd1\u8d77\u6765<\/h2>\n<p>\u5feb\u901f\u4f53\u9a8c\u53ea\u9700\u8981\u51e0\u6761\u547d\u4ee4\uff1a<\/p>\n<pre><code>pip install magenta-rt[mlx]\nmrt models init\nmrt models download\n\n# \u751f\u6210 4 \u79d2 disco funk\nmrt mlx generate --prompt \"disco funk\" --duration 4.0 --model=mrt2_base<\/code><\/pre>\n<p>\u5c0f\u6a21\u578b\uff08230M\uff09\u7b2c\u4e00\u6b21\u4e0b\u8f7d\u5b8c\u5927\u6982\u5360 450MB \u78c1\u76d8\uff0c\u5927\u6a21\u578b\uff082.4B\uff09\u7ea6 2.5GB\u3002\u63a8\u8350\u7528 uv \u7ba1\u7406 Python \u73af\u5883\uff0c\u907f\u514d\u6c61\u67d3\u7cfb\u7edf Python\u3002<\/p>\n<p>\u5982\u679c\u8981\u7528 C++ \u539f\u751f\u5f15\u64ce\u505a\u66f4\u4f4e\u5ef6\u8fdf\u7684\u90e8\u7f72\uff0c\u9700\u8981\u4ece GitHub \u514b\u9686\u6e90\u7801\u5e76\u7528 cmake \u6784\u5efa\uff1a<\/p>\n<pre><code>git clone --recurse-submodules https:\/\/github.com\/magenta\/magenta-realtime.git\ncd magenta-realtime\nuv pip install -e &quot;.[mlx]&quot;\nuv pip install &quot;cmake&lt;3.28&quot;\ncmake . -B build\ncmake --build build --target hello_mrt2 -j10<\/code><\/pre>\n<h2>\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li>\u76ee\u524d\u53ea\u652f\u6301 Apple Silicon\uff08M \u7cfb\u5217\uff09\uff0c<strong>Intel Mac \u522b\u60f3\u4e86<\/strong>\u3002\u9879\u76ee\u6709\u8ba1\u5212\u652f\u6301 NVIDIA GPU \u7684 C++ \u540e\u7aef\uff0c\u4f46\u8fd8\u6ca1\u51fa\u6765<\/li>\n<li>\u6743\u91cd\u8bb8\u53ef <strong>CC-BY-4.0<\/strong>\uff0c\u53ef\u4ee5\u5546\u7528\u4f46\u9700\u8981\u7f72\u540d<\/li>\n<li>Small \u6a21\u578b\u5b9e\u65f6\u6ca1\u95ee\u9898\uff0c\u4f46\u97f3\u8d28\u4e0d\u5982 Base \u6a21\u578b\u3002Base \u6a21\u578b\u5b9e\u65f6\u8981\u6c42 M3 Pro \u6216 M2 Max \u4ee5\u4e0a<\/li>\n<li>\u9996\u6b21\u4f7f\u7528\u9700\u8981\u4ece HuggingFace \u4e0b\u8f7d\u6a21\u578b\u6743\u91cd\uff08\u7ea6 2.5GB \/ 450MB\uff09<\/li>\n<li>\u6682\u4e0d\u652f\u6301\u5fae\u8c03\uff0c\u5b98\u65b9\u8bf4\u672a\u6765\u4f1a\u52a0<\/li>\n<\/ul>\n<h2>\u603b\u7ed3<\/h2>\n<p>MRT2 \u662f\u4e00\u4e2a\u771f\u6b63\u7684\u8f6c\u6298\u70b9\uff1a<strong>AI \u97f3\u4e50\u751f\u6210\u4ece\u300c\u79bb\u7ebf\u6e32\u67d3\u300d\u8fdb\u5165\u4e86\u300c\u5b9e\u65f6\u6f14\u594f\u300d\u65f6\u4ee3<\/strong>\u3002\u5b83\u4e0d\u4f9d\u8d56\u4e91\u7aef\u3001\u4e0d\u9700\u8981\u9ad8\u7aef GPU\u3001\u6709 DAW \u63d2\u4ef6\u53ef\u4ee5\u76f4\u63a5\u7528\u2014\u2014\u5bf9\u4e8e\u4e00\u4e2a\u5f00\u6e90\u6a21\u578b\u6765\u8bf4\uff0c\u8fd9\u4e2a\u5b8c\u6210\u5ea6\u76f8\u5f53\u9ad8\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709\u4e00\u53f0 Apple Silicon MacBook\uff0c\u53c8\u5bf9\u97f3\u4e50\u751f\u6210\u611f\u5174\u8da3\uff0c\u73b0\u5728\u5c31\u53ef\u4ee5\u4e0a\u624b\u8bd5\u8bd5\u2014\u2014pip install \u52a0\u4e00\u6761\u547d\u4ee4\u5c31\u80fd\u542c\u5230\u7ed3\u679c\uff0c\u6ca1\u4ec0\u4e48\u6bd4\u8fd9\u66f4\u65b9\u4fbf\u7684\u4e86\u3002<\/p>\n<hr \/>\n<p><em>\u6765\u6e90\uff1a<a href=\"https:\/\/magenta.withgoogle.com\/magenta-realtime-2\">Google Magenta Blog<\/a> \u00b7 <a href=\"https:\/\/github.com\/magenta\/magenta-realtime\">GitHub<\/a> \u00b7 <a href=\"https:\/\/huggingface.co\/google\/magenta-realtime-2\">HuggingFace<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MRT2 \u628a\u63a7\u5236\u5ef6\u8fdf\u4ece ~3 \u79d2\u964d\u5230 ~200ms\uff0cSmall 230M \u6a21\u578b M1 Air \u4e5f\u80fd\u8dd1\u3002\u4e09\u6a21\u6001\u63a7\u5236\uff08\u6587\u672c\/\u97f3\u9891\/MIDI\uff09\u3001AUv3 \u63d2\u4ef6\u3001\u5f00\u6e90\u53ef\u5546\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":86,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/86"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}