[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"news-slug-millie-2-177b-model-phone-million-token-context":3,"topics-all":38,"news-related-5d643b5f-0981-4903-a1ee-aefe4cc7c16f":67},{"id":4,"title":5,"summary":6,"content":7,"original_url":8,"source_id":9,"tags":10,"translations":24,"news_slug":31,"published_at":32,"created_at":33,"modified_at":34,"is_published":35,"publish_type":36,"image_url":14,"view_count":37},"5d643b5f-0981-4903-a1ee-aefe4cc7c16f","12GB 手机跑 177B,靠提前猜该读哪块再拉进内存","LLMs For All 把 177B 模型搬上 iPhone 18 Pro:手机只有 12GB 内存,压缩后的检查点却有 56.3GB。论文让模型提前预测要用哪几个专家和哪几个历史块,优先取已在内存里的,再按同一套路由限制重训压缩尺度。短上下文 14.1 tokens\u002Fs,百万上下文 9.9 tokens\u002Fs。","手机只有 12 GB 内存,却要跑 177B 的模型,听着像句废话。LLMs For All 的这篇论文(Millie 2)把它做成了:177B 参数的模型在 iPhone 18 Pro 上带着百万 token 的上下文工作,短上下文每秒吐 14.1 个 token,读百万 token 的文档提问时是 9.9 tokens\u002Fs。\n\n难的不是参数,是放不下。压缩之后主检查点占 56.3 GB,百万 token 下注意力要的键值加索引再占 13.45 GB,论文合起来说成 69.5 GB,一台 12 GB 内存的手机哪份都装不下。于是论文把「装不下」拆成两半:权重和注意力数据都按需从闪存流式取,取哪一块由模型自己提前预测,优先取已经躺在内存里的那些。(原文:https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.41874)\n\n## 权重怎么流进手机\n\n论文的父模型 Qwen3.8-Flash-Next 每层有一个混合专家模块,512 个路由专家加 1 个共享专家,路由器每次挑 10 个。Millie 2 让上一层提前预测下一层会用哪 10 个专家,给已经在内存里的专家加一个偏置(主配置 +1.5),等到了目的地层,再用当前 token 的真实状态从常驻池里重挑 10 个。读取在上一层还在算的时候就发出去,常驻专家用完再淘汰。主配置每层常驻 32 个专家,ternary 版本 48 个。\n\n## 注意力历史也得流\n\n权重好办,KV 才是大头。论文提出 Residency-Biased Attention(RBA):每个稀疏注意力层在内存里只留一份紧凑参考索引,每四个 token 共享一条 132 字节的索引项;真正的键值放在闪存上,Q8 格式每个 token 每层 1,088 字节。索引负责打分,已经常驻的块按 β 倍标准差加分,再选出 512 个块去取,取回来的块下一轮还能按当前 query 重排。差别在常驻多少:16,384 个位置时打包载荷加索引约 0.61 GB,65,536 个位置约 1.25 GB,百万 token 的完整 KV 加索引则是 13.45 GB。按论文自己的说法,64K 常驻池用掉了大约十一分之一的内存。\n\n## 量化之后,质量得自己挣回来\n\n论文把权重压到 2.54 比特每权重(Q3)或 1.66 比特(ternary),压缩本身就会掉质量。恢复办法是不动量化码,只重训每组的对数乘子:一个标量管 128 个权重,更新时整组同比例缩放,符号和相对关系都不变。训练用教师模型的下一 token 分布做蒸馏,Q3 用了约 3900 万个补全 token 位置,ternary 用了 1 亿。关键一步是:学生训练时就带着手机上那套专家路由限制,让尺度适应「不是所有专家都能到场」。\n\n## 手机上的数字\n\n论文报告的主配置数字:iPhone 18 Pro 上短上下文 14.1 tokens\u002Fs,百万 token 上下文 9.9 tokens\u002Fs;ternary 版本分别是 16.9 和 11.7。REDMAGIC 12 Pro(16 GB)慢一些,短上下文 9.6,百万上下文 7.2。同一批配置在 iPhone 上连续生成 8,192 个 token,平均 8.84 tokens\u002Fs,开头 512 个 token 是 13.73。\n\n论文把已保存的前缀重复一遍,硬撑到 2.5M 位置,iPhone 上还有 7.6 tokens\u002Fs,REDMAGIC 上 2.5M 是 3.5、4M 是 1.5。完整 KV 全驻的天花板也在表里:12 GB 的 iPhone 只能同时放 147,500 个位置的完整 KV,16 GB 的 REDMAGIC 是 229,420。功耗也量了:不插电跑一小时,ternary 版产出 29,001 个 token,平均 8.06 tokens\u002Fs,电量从 75% 掉到 40%。\n\n内存够用的机器上还有一段空间。论文在 24 GB 的 M5 MacBook Air 上扫了 48 组常驻专家数与偏置的组合:主配置 6.8 GiB 峰值内存跑到 20.0 tokens\u002Fs、KL 0.071;内存放到 10.9 GiB 是 19.7 tokens\u002Fs、KL 0.047;KL 0.045 那一档要 14.9 GiB、17.9 tokens\u002Fs。\n\n## 质量掉了多少\n\n论文自报的基准分数把损失摆在同一张表里。Q3 版本对着父模型 Qwen3.8-Flash-Next:GPQA Diamond 上 91.9,原生注意力 90.4,父模型 90.4;HumanEval base 是 94.5,原生注意力 98.8,父模型 98.8,这一项落差明显;LiveCodeBench v6 是 90.5 对 89.7 和 91.2;MuSR 76.6 对 75.9 和 78.8。ternary 版本离父模型更远,五个套件等权平均比不限流配置低约 0.9 个百分点。\n\n论文在百万 token 问答上的结果更硬:64 道题分布在四个约 990K 的上下文里,原生注意力答对 51 道,RBA 常驻 64K 的配置答对 54 道,常驻 16K 的激进配置只答对 47 道。教师到学生的 KL 也说明激进配置在长上下文上离得远:约 990K 位置处原生 0.06487、RBA 0.07393,只看最近 16K 的固定窗口是 0.59281。\n\n智能体任务上,论文把模型推理直接放在手机里跑,任务环境另有一台机器执行。WebArena Lite 的 70 个任务,Q3 在 iPhone 上 64.3,父模型 61.4;AndroidWorld 的 116 个任务,ternary 在 Galaxy S26 Ultra 上 69.0,父模型 75.9,手机这一侧并没有全面赢过服务端。服务器上 SWE-bench Verified 是 78.4,Terminal-Bench 2.1 是 68.5,父模型分别是 80.6 和 73.0。\n\n## 这条路不止一家在走\n\n服务器侧,同一类问题被拆成了几摊。权重侧有 LLM in a Flash(https:\u002F\u002Farxiv.org\u002Fabs\u002F2312.11514)的窗口化与行列捆绑,让模型做到可用 DRAM 的两倍大;有 FlashMoE(https:\u002F\u002Farxiv.org\u002Fabs\u002F2601.17063)把不活跃专家卸到 SSD,用机器学习挑缓存,命中率相对 LRU 和 LFU 提到多 51%、整体快到 2.6 倍;还有面向移动端的缓存条件专家路由(https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.00099),用训练无关的办法在手机上拿到两倍加速。注意力侧则是 Quest(https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.10774)按 query 估页面重要性、SparDA(https:\u002F\u002Farxiv.org\u002Fabs\u002F2606.04511)用 Forecast 投影预测下一层要哪几块、HiSparse(https:\u002F\u002Farxiv.org\u002Fabs\u002F2608.07009)把完整 KV 留在主机内存、用固定大小的 GPU 缓存兜住解码,这一支已经并进 SGLang。\n\nPSR(https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.34721)的一条结论值得单拎:缓存感知的路由配上异步预取,会让模型输出依赖传输时序,评测台如果没模拟这个时序,测的就不是部署时那个模型了。这正好解释了 Millie 2 为什么非要把手机上的专家路由限制写进训练。\n\n## 所以呢\n\n作者报告,常驻多少个专家这一步可以留到部署时再定,同一个检查点换一组常驻数就行。上一代 Millie 1.1 是 35B、2026 年 9 月发布,厂商站点写它在 iPhone 上占 4 GB 内存、可离线跑(https:\u002F\u002Fllmsforall.com);到 177B 这代,主检查点 56.3 GB,整条链路都得靠预测撑起来。\n\n所以端侧推理的瓶颈已经不是模型多大,而是你有多准地猜下一步要什么。猜错了要重来,猜对了就是零等待。流式推理真正流的不是数据,是一次预测——而这一次的预测,是被当成一项能力训练出来的。","https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.41874","7437aeb9-930c-4866-a2e9-48003c1a792b",[11,15,18,21],{"id":12,"name":13,"slug":13,"description":14,"color":14},"fca9258a-9430-455a-b95d-b9fae5e373a8","ai-inference",null,{"id":16,"name":17,"slug":17,"description":14,"color":14},"e0d31e94-ce47-4c8f-831c-d3d2926d42f3","hardware",{"id":19,"name":20,"slug":20,"description":14,"color":14},"01598627-1ea6-4b27-a5d8-874971571a71","llm",{"id":22,"name":23,"slug":23,"description":14,"color":14},"b49648f9-963e-4082-8684-3d085b7358fe","quantization",[25],{"id":26,"lang":27,"title":28,"summary":29,"content":30},"6aae5a86-cc1c-4ec8-8335-89113701c46e","en","177B on a 12GB Phone: Guess the Block, Then Fetch It","Millie 2 runs a 177B model on a 12GB phone by predicting which experts and history blocks it needs, preferring what already sits in RAM.","A phone with 12 GB of RAM running a 177B-parameter model sounds like a category error. LLMs For All has made it happen: their Millie 2 model works on an iPhone 18 Pro with a million-token context, generating 14.1 tokens per second at short context and 9.9 tokens per second when answering a question about a million-token document (https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.41874).\n\nThe hard part was never the parameter count, it was fitting. The main checkpoint occupies 56.3 GB after compression, and at a million tokens the keys, values and index that attention needs add another 13.45 GB, which the paper rounds to 69.5 GB in total. Neither fits on a phone with 12 GB of RAM. So the paper splits the problem in two: both the weights and the attention data stream from flash on demand, and the model itself predicts in advance which pieces it will need, preferring the ones already sitting in RAM.\n\n## How the weights get in\n\nThe paper's parent model Qwen3.8-Flash-Next puts a mixture-of-experts module in every layer, with 512 routed experts and one shared expert, and the router picks 10 of them. Millie 2 has an earlier layer predict which 10 experts the next layer will use, adding a bias of +1.5 to the scores of experts already resident in RAM. When execution reaches the destination layer, its own router re-selects 10 from the updated resident pool using the current token state. Reads for nominated experts start while the preceding layer is still computing, and the least recently nominated residents are evicted when space runs short. The main configuration keeps 32 experts resident per layer, the ternary one keeps 48.\n\n## Attention history has to stream too\n\nWeights are the manageable part, the KV cache is the bulk of it. The paper proposes Residency-Biased Attention (RBA): each sparse attention layer keeps a compact reference index in RAM, where every four tokens share a 132-byte index entry, while the full keys and values live on storage in the packed Q8 format at 1,088 bytes per token per layer. The index does the scoring, resident blocks receive a bonus of beta standard deviations, and the top 512 blocks get fetched. Fetched blocks can be reranked against the current query on the next round. The three configurations differ in what they keep: with 16,384 resident positions the packed payload plus index is about 0.61 GB, with 65,536 positions about 1.25 GB, while the full KV plus index for a million tokens is 13.45 GB. By the paper's own count, the 64K resident pool uses about one-eleventh of the memory.\n\n## Quality has to be earned back after quantization\n\nThe paper compresses weights to 2.54 bits per weight in Q3 or 1.66 bits in the ternary model, and compression alone costs quality. The recovery method leaves the quantized codes untouched and retrains a log multiplier per group: one scalar controls 128 weights, and an update rescales the whole group proportionally while preserving signs and ratios. Training distills against the teacher's next-token distribution, using roughly 39 million completion-token positions for Q3 and 100 million for the ternary model. The step that matters most: the student trains under the same expert-routing restrictions it will meet on the phone, so the scales adapt to the fact that not every expert can show up.\n\n## The numbers on the phone\n\nThe main configuration numbers the paper reports: on an iPhone 18 Pro, 14.1 tokens per second at short context and 9.9 at a million-token context; the ternary model gives 16.9 and 11.7. The REDMAGIC 12 Pro with 16 GB runs slower, at 9.6 for short context and 7.2 at a million tokens. The same configuration on the iPhone averages 8.84 tokens per second across 8,192 generated tokens in Q3, and 13.73 over the opening 512.\n\nThe paper takes a saved prefix and repeats it to push the history out, holding 7.6 tokens per second at 2.5M positions on the iPhone, with the REDMAGIC at 3.5 for 2.5M and 1.5 for 4M. The ceiling for a fully resident KV cache is in the table too: a 12 GB iPhone holds the full KV of 147,500 positions at once, the 16 GB REDMAGIC holds 229,420. Power was measured as well: in an hour unplugged the ternary model produced 29,001 tokens at 8.06 tokens per second including wall time, with the battery falling from 75% to 40%.\n\nMachines with more memory have room left. The paper sweeps 48 combinations of resident expert count and admission bias on a 24 GB M5 MacBook Air. The main configuration runs at 20.0 tokens per second with a 6.8 GiB peak decode footprint and a KL of 0.071 nats per token; at 10.9 GiB it reaches 19.7 tokens per second with a KL of 0.047; a KL of 0.045 costs 14.9 GiB and 17.9 tokens per second.\n\n## What quality costs\n\nThe paper's self-reported benchmark scores put the loss in the same table. For Q3 against the parent model Qwen3.8-Flash-Next: GPQA Diamond scores 91.9 with RBA, 90.4 with native attention, and 90.4 for the parent; HumanEval base is 94.5, native attention gives 98.8 and the parent 98.8, which is where the gap shows; LiveCodeBench v6 gives 90.5 against 89.7 and 91.2; MuSR gives 76.6 against 75.9 and 78.8. The ternary models sit further from the parent overall, scoring about 0.9 percentage points below the unrestricted configuration across five suites weighted equally.\n\nThe paper's results at a million tokens are harder: across 64 questions spread over four contexts of roughly 990K tokens each, native attention answers 51 correctly, the RBA configuration with 64K resident positions answers 54, and the aggressive configuration with 16K resident positions answers 47. The teacher-to-student KL tells the same story at long context: near 990K positions the native run sits at 0.06487 and RBA at 0.07393, while a fixed 16K window pushes it to 0.59281.\n\nFor agent tasks, the paper runs model inference on the phone itself while a separate machine executes the task environment. On the 70 WebArena Lite tasks, Q3 on the iPhone scores 64.3 against the parent's 61.4. On the 116 AndroidWorld tasks, the ternary model on a Galaxy S26 Ultra scores 69.0 against the parent's 75.9, so the phone side does not beat the server across the board. On servers, SWE-bench Verified is 78.4 and Terminal-Bench 2.1 is 68.5, against the parent's 80.6 and 73.0.\n\n## The route is not travelled by one group\n\nOn servers, the same class of problem splits into several strands. On the weight side there is LLM in a Flash (https:\u002F\u002Farxiv.org\u002Fabs\u002F2312.11514), whose windowing and row-column bundling let models run at twice the size of available DRAM; FlashMoE (https:\u002F\u002Farxiv.org\u002Fabs\u002F2601.17063), which offloads inactive experts to SSD and uses machine learning to pick the cache, lifting hit rate over LRU and LFU by up to 51% and reaching up to 2.6 times the speed; and cache-conditional expert routing for mobile devices (https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.00099), which delivers two-fold speedups on phones with a training-free method. On the attention side there is Quest (https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.10774) estimating page relevance from the query, SparDA (https:\u002F\u002Farxiv.org\u002Fabs\u002F2606.04511) using a Forecast projection to predict which KV blocks the next layer needs, and HiSparse (https:\u002F\u002Farxiv.org\u002Fabs\u002F2608.07009) keeping the full KV history in host memory behind a fixed-size GPU cache, a branch already merged into SGLang.\n\nOne conclusion from PSR (https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.34721) deserves separate mention: cache-aware routing combined with asynchronous prefetch makes model output depend on transfer timing, so a harness that does not simulate that timing no longer evaluates the deployed model. That is why Millie 2 has to write the phone routing restrictions into training.\n\n## So what\n\nThe authors report that the choice of how many experts to keep resident can be left to deployment time, with the same checkpoint and a different resident count. The previous Millie 1.1 is a 35B model released in September 2026, and the vendor site describes it as occupying 4 GB of memory on an iPhone and working offline (https:\u002F\u002Fllmsforall.com). At 177B the main checkpoint is 56.3 GB, and the whole chain has to stand on prediction.\n\nThe bottleneck for on-device inference is no longer how big the model is, but how accurately you can guess what comes next. A wrong guess means paying again; a right guess means waiting for nothing. What streaming inference actually streams is a prediction, and this time the prediction is trained as a capability of its own.","millie-2-177b-model-phone-million-token-context","2026-12-01T09:00:00Z","2026-12-01T09:25:12.599877Z","2026-12-01T09:25:12.599888Z",true,"agent",50,[39,49,58],{"slug":40,"tag_slug":41,"title_zh":42,"title_en":43,"intro_zh":44,"intro_en":45,"id":46,"is_active":35,"created_at":47,"modified_at":48},"image-generation","text-to-image","图像生成：从文生图到逐框编辑的模型竞赛","Image Generation: from text-to-image to frame-level editing","文生图已是红海，战场正转向编辑与可控性：FLUX.2\u002F3 用开源和量化把生图搬进消费级显卡，Qwen-Image、Seedream 等国产模型紧咬不放，GPT Image 2 则把推理能力带进像素。本专题追踪图像生成与编辑模型的发布、架构演进、加速量化与商业化数据，看「好图」如何变成「可用的图」。","Text-to-image is a crowded race, and the frontier has moved to editing and control: FLUX.2\u002F3 push open weights and quantization onto consumer GPUs, Qwen-Image and Seedream close in from China, and GPT Image 2 brings reasoning into pixels. This topic tracks model releases, architecture shifts, acceleration work, and the business numbers behind \"pretty\" becoming \"usable\".","52de7c59-7864-4569-8ae7-3d656d26a1a1","2026-11-20T07:20:23.534506Z","2026-11-20T07:20:23.534527Z",{"slug":50,"tag_slug":50,"title_zh":51,"title_en":52,"intro_zh":53,"intro_en":54,"id":55,"is_active":35,"created_at":56,"modified_at":57},"ai-for-science","AI for Science 2026：从 UniPert 到 GPT-Rosalind 的硬核进化","AI for Science 2026: from UniPert to GPT-Rosalind","生命科学、化学材料、物理世界模型——AI 正在从\"语言工具\"变成\"实验伙伴\"。本专题收录 AI 在三大科学方向的关键节点：UniPert 统一基因与化学扰动空间、GPT-Rosalind 端到端生命科学推理、达摩院 AI 智能体 28 小时找到 4 种超导新材料、Anthropic Claude Science 把工作台做成标准品。","From language tool to lab partner — AI is reshaping life sciences, chemistry\u002Fmaterials, and physical world models. This topic covers the key milestones: UniPert unifying genetic-chemical perturbation spaces, GPT-Rosalind's end-to-end life-sciences reasoning, DAMO's AI agent discovering 4 superconducting materials in 28 hours, and Anthropic's Claude Science workbench going mainstream.","988a4300-5fab-41c4-b5d8-63711a2dc757","2026-09-10T01:34:15.296649Z","2026-09-10T01:34:15.296663Z",{"slug":59,"tag_slug":59,"title_zh":60,"title_en":61,"intro_zh":62,"intro_en":63,"id":64,"is_active":35,"created_at":65,"modified_at":66},"h3-series","MiniMax H3 系列：从开源权重到 35 倍吞吐","MiniMax H3 Series: from open weights to 35x throughput","MiniMax H3 自 2026 年 8 月开源以来节奏密集：官方把生成、参考与编辑收回一个模型；ComfyUI 当天压进 RTX 3060；摩尔线程 3 小时完成国产 GPU 适配；fal 后训练版把吞吐拉到 35 倍；FastH3 蒸馏再砍推理成本。本专题持续追踪 H3 的发布—开源—蒸馏—部署全链路。","Since MiniMax open-sourced H3 in August 2026 the pace has been relentless: one unified omni-modal model, same-day ComfyUI support down to an RTX 3060, a 3-hour Day-0 port to Moore Threads GPUs, fal's post-trained H3 Max at 35x throughput, and FastH3 distillation cutting inference cost further. This topic tracks the full H3 chain — release, open weights, distillation, deployment.","83ef0daa-3c31-4cb3-86ed-e5ee58654d5f","2026-09-08T07:33:19.942193Z","2026-09-08T07:33:19.942209Z",{"items":68},[69,74,79,84,89,94],{"id":70,"title":71,"news_slug":72,"published_at":73},"71409616-c416-4983-ae5d-a001c35fbdb3","一个存档,2到8比特随手切,还能走半档","any-rate-half-bit-multi-precision-quantization","2026-11-28T01:00:00+00:00",{"id":75,"title":76,"news_slug":77,"published_at":78},"1c9b3e02-69f2-452f-9137-ff9c2ddcf7fb","手机上的模型工厂:小模型自动定制,五项反超前沿模型","mobile-ai-factory-on-device-slm","2026-11-12T23:15:00+00:00",{"id":80,"title":81,"news_slug":82,"published_at":83},"ab1e6bdf-9433-41f0-be4d-cc0f78523ac2","SonicBoom v0.0.3:一个 .so 干掉手工调优","sonicboom-v003-mlir-compiler","2026-10-19T09:03:05+00:00",{"id":85,"title":86,"news_slug":87,"published_at":88},"89de53a6-5cee-40af-8190-1c22d628b738","23 个端侧 LLM 同台比:Artificial Analysis 把 iPhone 17 Pro 变成首个开放基准","artificial-analysis-pipette-mobile-llm-benchmark","2026-09-01T11:00:00+00:00",{"id":90,"title":91,"news_slug":92,"published_at":93},"5d452086-ecb7-494d-82b9-d962664aa243","IBM 把 Arm 核塞进 Z 大型机:Hot Chips 2026 公布业界首款双指令集处理器","ibm-z-arm-dual-isa-hot-chips-aug-2026","2026-08-29T06:00:00+00:00",{"id":95,"title":96,"news_slug":97,"published_at":98},"97eb895f-8294-47b9-a9e0-5f165a75cb5b","OpenAI Jalapeño 实测:自研推理芯片在 Hot Chips 上跑赢 Blackwell","openai-jalapeno-hot-chips-broadcom-blackwell","2026-08-26T08:00:00+00:00"]