<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Costa的生活技术实验室</title><link>https://n.cqs.es/</link><description>Recent content on Costa的生活技术实验室</description><generator>Hugo</generator><language>zh-hans</language><lastBuildDate>Wed, 05 Aug 2026 00:19:08 +0800</lastBuildDate><atom:link href="https://n.cqs.es/index.xml" rel="self" type="application/rss+xml"/><item><title>近况</title><link>https://n.cqs.es/thought/zh/20260805/</link><pubDate>Wed, 05 Aug 2026 00:19:08 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260805/</guid><description>&lt;p>五月在备婚中度过,准备了第三次晋升材料。六月和硕硕结婚了,我们主持了自己的婚礼。去三亚度假一周。之后 我的外公。硕来北京度过了剩下的休假。到了七月,到了辽宁本溪和沈阳,去武汉看了装修。&lt;/p></description></item><item><title>语言组织苦难症</title><link>https://n.cqs.es/thought/zh/20260731/</link><pubDate>Fri, 31 Jul 2026 19:16:54 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260731/</guid><description>&lt;p>我好像有语言组织苦难症了,发抖音,很简单的一句话,甚至需要 ai 去帮我润色。&lt;/p></description></item><item><title>Fletch：在可编程交换机里缓存分布式文件系统元数据</title><link>https://n.cqs.es/posts/2026/2026-2-fletch-switch-metadata-cache/</link><pubDate>Wed, 22 Jul 2026 16:55:00 +0800</pubDate><guid>https://n.cqs.es/posts/2026/2026-2-fletch-switch-metadata-cache/</guid><description>&lt;h2 class="group head-tag" id="-论文解读">📄 论文解读&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#-%e8%ae%ba%e6%96%87%e8%a7%a3%e8%af%bb">&lt;/a>&lt;/h2>&lt;p>&lt;strong>Fletch: File-System Metadata Caching in Programmable Switches&lt;/strong>
Qingxiu Liu, Jiazhen Cai, Siyuan Sheng, Yuhui Chen, Lu Tang, Zhirong Shen, Patrick P. C. Lee
arXiv:2510.08351v3 · 2026 年 5 月 · 17 页
GitHub: 
&lt;a
 href="https://github.com/adslabcuhk/fletch"
 
 target="_blank"
 rel="noopener noreferrer"
 
 >https://github.com/adslabcuhk/fletch&lt;/a
>
&lt;/p>
&lt;h2 class="group head-tag" id="一句话核心">一句话核心&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#%e4%b8%80%e5%8f%a5%e8%af%9d%e6%a0%b8%e5%bf%83">&lt;/a>&lt;/h2>&lt;p>把 HDFS 的元数据缓存从客户端搬到可编程交换机数据平面里，用 P4 写到 Tofino，
直接在网络关键路径上吸收读请求，把一致性维护从 O(N) 降到 O(1)，同时用
&amp;ldquo;in-switch 集中化&amp;quot;天然吸收热点请求、缓解后端负载倾斜。&lt;/p></description></item><item><title>五号化合物</title><link>https://n.cqs.es/thought/zh/20260605/</link><pubDate>Fri, 05 Jun 2026 23:32:47 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260605/</guid><description>&lt;p>在《The Boys》第三季,沃特卖五号化合物给士兵,一天的超能力,一针两百万美元。&lt;/p>
&lt;p>而现在,AI公司卖的也是打工人的超能力,一月功效,一月两百美元。&lt;/p></description></item><item><title>KV Cache Optimization 论文解读</title><link>https://n.cqs.es/posts/2026/2026-1-kv-cache/</link><pubDate>Tue, 02 Jun 2026 14:26:00 +0800</pubDate><guid>https://n.cqs.es/posts/2026/2026-1-kv-cache/</guid><description>&lt;h2 class="group head-tag" id="-论文解读">📄 论文解读&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#-%e8%ae%ba%e6%96%87%e8%a7%a3%e8%af%bb">&lt;/a>&lt;/h2>&lt;p>&lt;strong>KV Cache Optimization Strategies for Scalable and Efficient LLM Inference&lt;/strong>
Yichun Xu, Navjot K. Khaira, Tejinder Singh（Dell Technologies）
arXiv:2603.20397 · 2026 年 3 月 24 日 · 24 页 · 78 篇引用&lt;/p>
&lt;h2 class="group head-tag" id="为什么-kv-cache-是个问题">为什么 KV cache 是个问题&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#%e4%b8%ba%e4%bb%80%e4%b9%88-kv-cache-%e6%98%af%e4%b8%aa%e9%97%ae%e9%a2%98">&lt;/a>&lt;/h2>&lt;ul>
&lt;li>自回归生成时每生成一个 token 都要&amp;quot;看到&amp;quot;前面所有 token 的 K/V 向量&lt;/li>
&lt;li>不缓存的话，每个 step 都要从 0 重算所有历史 token → O(N²)&lt;/li>
&lt;li>缓存后，&lt;strong>KV cache 的内存随上下文长度线性增长&lt;/strong>：&lt;code>KV 大小 = 2·H·D·L·B·N&lt;/code>&lt;/li>
&lt;li>上下文从 2K 涨到 100K、1M、10M 后，KV cache 直接吃掉所有 GPU 显存，推理变慢、变贵、变得不可部署&lt;/li>
&lt;/ul>



 &lt;img src="https://n.cqs.es/images/posts/2026/2026-1-kv-cache_cover.webp" alt="Transformer self-attention with KV cache" loading="lazy" style="width:70%;" />


&lt;h2 class="group head-tag" id="五大技术分类">五大技术分类&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#%e4%ba%94%e5%a4%a7%e6%8a%80%e6%9c%af%e5%88%86%e7%b1%bb">&lt;/a>&lt;/h2>&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>#&lt;/th>
 &lt;th>类别&lt;/th>
 &lt;th>一句话原理&lt;/th>
 &lt;th>代表工作&lt;/th>
 &lt;th>典型收益&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>1&lt;/td>
 &lt;td>&lt;strong>Cache Eviction&lt;/strong>（驱逐）&lt;/td>
 &lt;td>生成过程中丢掉&amp;quot;不重要&amp;quot;的 token&lt;/td>
 &lt;td>H₂O、SnapKV、Ada-KV&lt;/td>
 &lt;td>内存砍 80%+，精度几乎不掉&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>2&lt;/td>
 &lt;td>&lt;strong>Cache Compression&lt;/strong>（压缩）&lt;/td>
 &lt;td>把 KV 量化到 2-4 bit 或低秩投影&lt;/td>
 &lt;td>KIVI、KVQuant、Palu&lt;/td>
 &lt;td>内存 ×4~×8，lossless 或 &amp;lt; 2% 精度损失&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>3&lt;/td>
 &lt;td>&lt;strong>Hybrid Memory&lt;/strong>（混合内存）&lt;/td>
 &lt;td>KV 主体放 CPU/SSD，GPU 上只留热点&lt;/td>
 &lt;td>vLLM/PagedAttention、FlexGen、Oneiros&lt;/td>
 &lt;td>单卡跑巨型模型、batch 大 6×、吞吐 3~33×&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>4&lt;/td>
 &lt;td>&lt;strong>New Attention&lt;/strong>（新型注意力）&lt;/td>
 &lt;td>改 attention 算法本身，O(N²) → O(N log N)&lt;/td>
 &lt;td>Linear、Log-Linear、Kimi Linear&lt;/td>
 &lt;td>6.3× 吞吐 + 75% 内存下降（Kimi 数据）&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>5&lt;/td>
 &lt;td>&lt;strong>Combination&lt;/strong>（组合拳）&lt;/td>
 &lt;td>上面 4 类挑几种拼起来&lt;/td>
 &lt;td>RocketKV、KVzip、ShadowKV、TailorKV&lt;/td>
 &lt;td>综合最优&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 class="group head-tag" id="七大部署场景--推荐方法">七大部署场景 × 推荐方法&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#%e4%b8%83%e5%a4%a7%e9%83%a8%e7%bd%b2%e5%9c%ba%e6%99%af--%e6%8e%a8%e8%8d%90%e6%96%b9%e6%b3%95">&lt;/a>&lt;/h2>&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>场景&lt;/th>
 &lt;th>推荐&lt;/th>
 &lt;th>理由&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>超长上下文（&amp;gt;1M）单请求&lt;/td>
 &lt;td>Eviction + Compression；Kimi Linear&lt;/td>
 &lt;td>显存是瓶颈，必须砍 cache 大小&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>最少改动现有模型&lt;/td>
 &lt;td>Ada-KV、SnapKV、KIVI&lt;/td>
 &lt;td>全部 fine-tuning-free、plug-and-play&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>高吞吐数据中心&lt;/td>
 &lt;td>PagedAttention/vLLM、Oneiros、ShadowKV&lt;/td>
 &lt;td>batch 大、lossless、充分利用多租户&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>边缘/低显存设备&lt;/td>
 &lt;td>InfiniPot、TailorKV&lt;/td>
 &lt;td>单卡 24GB 跑 8B/128K&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>多轮对话&lt;/td>
 &lt;td>RocketKV-MT、KVzip、ShadowKV&lt;/td>
 &lt;td>不能像 H₂O 那样永久丢 token&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Prefill-heavy（长 prompt 编码）&lt;/td>
 &lt;td>NACL、HashEvict、LayerKV、MiniCache&lt;/td>
 &lt;td>关注 TTFT（首 token 延迟）&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>精度敏感推理&lt;/td>
 &lt;td>PagedAttention&lt;/td>
 &lt;td>无损 offload；不推荐 eviction/compression/linear attention&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 class="group head-tag" id="核心结论">核心结论&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#%e6%a0%b8%e5%bf%83%e7%bb%93%e8%ae%ba">&lt;/a>&lt;/h2>&lt;p>&lt;strong>没有银弹。&lt;/strong>&lt;/p></description></item><item><title>紧张</title><link>https://n.cqs.es/thought/zh/20260602/</link><pubDate>Tue, 02 Jun 2026 14:01:25 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260602/</guid><description>&lt;p>每次看到日历上的五月三十一，我都会心里一紧，现在时间到了六月二号，反而内心宁静了。&lt;/p></description></item><item><title>现在是3月20日</title><link>https://n.cqs.es/thought/zh/20260320/</link><pubDate>Fri, 20 Mar 2026 00:42:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260320/</guid><description>&lt;p>又过了一个月，Agent进入黄金时代。下一个风口是什么呢？&lt;/p>
&lt;p>2023：LLM
2024：工具调用
2025：Copilot
2026：Agent OS
2027：？&lt;/p></description></item><item><title>AI 的车轮</title><link>https://n.cqs.es/thought/zh/20260319/</link><pubDate>Thu, 19 Mar 2026 23:54:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260319/</guid><description>&lt;p>AI 就是第三次工业革命，我们是不是会步入下一次大萧条？&lt;/p></description></item><item><title>备婚app</title><link>https://n.cqs.es/thought/zh/20260310/</link><pubDate>Tue, 10 Mar 2026 00:42:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260310/</guid><description>&lt;p>Claude code vibe了一个备婚用的小程序，花了一个晚上比起选一个好用的app，vibe一个似乎是最好的选择。&lt;/p>
&lt;p>突然觉得秒哒似乎并不是一个很差的产品，如果openclaw和秒哒结合起来，那类似的需求对于不是程序员的朋友们，也能引刃而解了。&lt;/p></description></item><item><title>月亮</title><link>https://n.cqs.es/thought/zh/20260307/</link><pubDate>Sat, 07 Mar 2026 00:54:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260307/</guid><description>&lt;p>飞机和我，和月亮在一个平面上。&lt;/p>
&lt;p>我从来没见过这么大的月亮。比远处的城市还大，比散落的城市还要亮。&lt;/p>
&lt;p>被云朵半掩着。&lt;/p>
&lt;p>长河落月圆了。&lt;/p>



 &lt;img src="https://n.cqs.es/images/thoughts/2026/moon.jpg" alt="月亮" loading="lazy" /></description></item><item><title>知识</title><link>https://n.cqs.es/thought/zh/20260306/</link><pubDate>Fri, 06 Mar 2026 17:22:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260306/</guid><description>&lt;p>最近发现自己写文档的速度明显变快了。只要先有一个大致想法，AI很快就能把细节补齐。简单检查一下，没有明显问题，文档基本就可以交付，然后直接开始开发。&lt;/p></description></item><item><title>春雪</title><link>https://n.cqs.es/thought/zh/20260305_3/</link><pubDate>Thu, 05 Mar 2026 23:03:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260305_3/</guid><description>&lt;p>昨天开始北京下了不小的春雪，路上的积雪让我骑摩托车回家都有一些困难。&lt;/p>
&lt;p>今天早上去公司的路上也骑的格外小心。去年在小区楼下，出门即摔车还历历在目。&lt;/p></description></item><item><title>教练</title><link>https://n.cqs.es/thought/zh/20260305_2/</link><pubDate>Thu, 05 Mar 2026 00:23:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260305_2/</guid><description>&lt;p>最近在坚持运动，上乐刻的团课。昨天老师迟到了，今天给继续上他课的同学带了小礼物，一个盲盒玩具。&lt;/p>
&lt;p>这种道歉让我有点难过，emm，不是不开心，是一种复杂的感觉。毕竟这里是北京，大家都是npc，我之于他，他之于我都是都是乐刻系统里的一串ID。他昨天已经给大家道歉了，没必要今天还继续补偿。&lt;/p></description></item><item><title>加速失重</title><link>https://n.cqs.es/thought/zh/20260305/</link><pubDate>Thu, 05 Mar 2026 00:03:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260305/</guid><description>&lt;p>Claude code，这些agent能力上来之后，效率加快了。空白的时间也多了，反而感觉时间更多了，过的更慢了，有空思考了。思考的时候也会和ai对话解惑，最后像ai一样思考。某种程度上，我们已经合二为一了。&lt;/p></description></item><item><title>开始养🦞</title><link>https://n.cqs.es/thought/zh/20260304/</link><pubDate>Wed, 04 Mar 2026 23:47:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260304/</guid><description>&lt;p>把博客配置到openclaw了，用telegram就能写博客了，哈哈。&lt;/p></description></item><item><title>过年流水账</title><link>https://n.cqs.es/thought/zh/20260224/</link><pubDate>Tue, 24 Feb 2026 21:10:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260224/</guid><description>&lt;p>在武汉呆了几天，硕儿带我去乐刻运动了三次，都是团课。她白天上班，我常驻在凯德。中午、晚上就吃荆州围炉麻辣烫串串，还有老乡鸡。&lt;/p>
&lt;p>到2月13日的时候东西买的差不多了，朋友从深圳过来和我们14号一起开车回去。&lt;/p></description></item><item><title>长假</title><link>https://n.cqs.es/thought/zh/20260212/</link><pubDate>Thu, 12 Feb 2026 15:10:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260212/</guid><description>&lt;p>我获得了工作以来最长的一个假期，终于有时间陪我的老婆、和家人。&lt;/p></description></item><item><title>忆</title><link>https://n.cqs.es/thought/zh/20260204/</link><pubDate>Wed, 04 Feb 2026 01:10:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260204/</guid><description>&lt;p>下午得知噩耗，久久不能安定。追忆过往。&lt;/p>
&lt;p>我还记得2003年，在小学旁堰塘后的民房，一个个下学的午后。在镇上法院的阁楼，……&lt;/p></description></item><item><title>二月第一个工作日</title><link>https://n.cqs.es/thought/zh/20260203/</link><pubDate>Tue, 03 Feb 2026 00:10:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260203/</guid><description>&lt;p>oh，那些令人向往的公司。
谁不想加入大模型公司狠狠的干一把ai infra呢。&lt;/p>
&lt;p>我不赞成内部某些领导的观点，他们已经跟不上LLM的节奏了。如果还是用传统模式的去定义，去构建系统，那我们确实没有前途了。&lt;/p></description></item><item><title>周末</title><link>https://n.cqs.es/thought/zh/20260201/</link><pubDate>Sun, 01 Feb 2026 23:38:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260201/</guid><description>&lt;p>最近一年过的特别快，每一天也是。感觉什么都没做。&lt;/p>
&lt;p>因为要值班在家待了两天。&lt;/p>
&lt;p>同事周六来打了一天麻将、喝了酒。这周喝了太多的金汤力，这种甘洌清爽通透无比。&lt;/p></description></item><item><title>all about ai：</title><link>https://n.cqs.es/thought/zh/20260129/</link><pubDate>Fri, 30 Jan 2026 01:05:00 +0800</pubDate><guid>https://n.cqs.es/thought/zh/20260129/</guid><description>&lt;h4 class="group head-tag" id="1">1&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#1">&lt;/a>&lt;/h4>&lt;p>现在就像是纺织机刚被发明的年代，各种脑力劳动知识、都会被AI替代。&lt;/p>
&lt;p>如果只是知识的传播者，不再有信息差，知识经济不再存在。&lt;/p>
&lt;h4 class="group head-tag" id="2">2&lt;a data-title-of-head class="group-hover:after:content-['__#'] no-underline hover:text-[--hs-text-color-hover]" href="#2">&lt;/a>&lt;/h4>&lt;p>最近每天都在大量的用 claude code 来 vibe 一些想法。例如新版本的个人主页 cqs.es，还有这个说说页面。&lt;/p></description></item><item><title>在北京的第一周 ｜ first week in BeiJing</title><link>https://n.cqs.es/posts/2022/2022-3-first-bj/</link><pubDate>Mon, 25 Jul 2022 09:09:22 +0800</pubDate><guid>https://n.cqs.es/posts/2022/2022-3-first-bj/</guid><description>&lt;p>距离上一次发博客已经是半年前了，之间尝试去写一写东西，最后都没有发出来。&lt;/p>
&lt;p>现在来到北京一周了，找房、入职、融入，虽然还没有安定下来，这种漂泊的感觉又让我重新觉得记录是有意义的。&lt;/p></description></item><item><title>一个2021流水账</title><link>https://n.cqs.es/posts/2022/2022-2-bye/</link><pubDate>Sun, 09 Jan 2022 09:09:22 +0800</pubDate><guid>https://n.cqs.es/posts/2022/2022-2-bye/</guid><description>&lt;p>十二月底的武汉和往年一样冷，无边灰白的天空，看不见的坚硬的风。&lt;/p>
&lt;p>在这个喝了点的，恍惚的晚上意识到一年又要结束了。就要和这个没有打好草稿，没有计划，焦虑的2021说道别了。&lt;/p></description></item><item><title>Sep 23, 2018</title><link>https://n.cqs.es/posts/2019/2019-aa/</link><pubDate>Sun, 23 Sep 2018 09:09:22 +0800</pubDate><guid>https://n.cqs.es/posts/2019/2019-aa/</guid><description>&lt;p>如果说，&lt;/p>
&lt;p>大学是一趟列车旅行，那么大四的我到现在应该是快到站了。&lt;/p>
&lt;p>这段旅行很长，它度过了你生命中的四年光阴；这段旅行也很短，它重复于教学楼宇、宿舍之间。&lt;/p></description></item></channel></rss>