
公众号【可可AI杠杆】,k8s-1M-pods-100K-nodes, 前腾讯/美团,AI 10X. | 公众号封面生成器 https://teapaw.org/t.co/J23NWfpHlH
Joined April 2017
- Tweets479
- Following387
- Followers74
- Likes104
两个月没有更新了,《深入理解 AI Agent》发布 3.0 版本了!
- 重写了各章节的大部分内容,消除了一些 AI 味,把综述式的文风改成了教学式的,更容易理解
- 新增 Jev 类决策模型在事件过滤、工具安全判断、评测 rubric、RAG 筛选、多模态信息稀疏化等方面的应用
- 新增 Meta Muse、Pine、dsh superagent 等 personal agent 的办事逻辑
- 新增 Multica、LobeHub 等办公 agent
- 新增 Anthropic 证明黎曼猜想、OpenAI 证明千禧年问题等科研 agent
- 修订语音交互部分,纳入一些最新的工作
- 重绘书中大量插图
- 新增社区翻译的蒙古语版本
- 合入社区的 30+ PR,解决 20+ issues
去年 8-10 月在图灵讲的《AI Agent 实战营》课程,终于整理成书啦,在 GitHub 开源发布了。《深入理解 AI Agent:设计原理与工程实践》欢迎大家下载传播 PDF,欢迎大家提意见、提 issue!
github.com/bojieli/ai-agent-…
全书围绕核心公式 Agent = LLM + 上下文 + 工具 展开,十章内容如下:
- 第 1 章 · Agent 基础知识:从"模型即 Agent"的新范式出发,建立 Agent = LLM + 上下文 + 工具 的核心公式,并引入 Harness 工程——模型之外的一切工程能力,才是真正的竞争力所在。
- 第 2 章 · 上下文工程:上下文决定 Agent 的能力上限。深入大模型 API 的上下文结构、KV Cache 友好设计、提示工程、动态提示词与 Agent Skills、状态栏元信息,以及上下文压缩策略。
- 第 3 章 · 用户记忆和知识库:让 Agent 跨会话记住用户、并接入外部知识。涵盖用户记忆系统、RAG 基础管道,以及超越扁平文本的知识组织与检索(结构化索引、知识图谱等)。
- 第 4 章 · 工具:工具是 Agent 的双手。讲工具分类与通用设计原则、MCP 协议与工具选择的挑战、感知/执行/协作三类工具,以及事件驱动的异步 Agent。
- 第 5 章 · Coding Agent 与代码生成:代码是"能创造新工具的工具",是通用 Agent 的元能力。以生产级 Coding Agent 为例,展示这一最强通用工具的完整实现。
- 第 6 章 · Agent 的评估:把 Agent 的表现变成可比较的信号。从评估环境、数据集设计、指标体系,到统计显著性、可观测性、评估驱动选型,直至生产级内部评估与仿真环境。
- 第 7 章 · 模型后训练:预训练、SFT、RL 三阶段全景。何时选 SFT、何时选 RL,RLHF、算法比较、数据与环境,以及让模型学会工具调用、提升样本效率的前沿探索。
- 第 8 章 · Agent 的自我进化:不改权重也能成长。三种学习范式,从经验中学习、主动工具发现,到"从工具使用者到工具创造者",让 Agent 从"聪明"走向"熟练"。
- 第 9 章 · 多模态与实时交互:把感知与行动从文本扩展到语音、GUI 与物理世界。语音三范式(级联/端到端全模态/全双工)、流式语音感知与合成、Computer Use 与机器人操作。
- 第 10 章 · 多 Agent 协作:群体的智能可以高于个体。多 Agent 分类框架、何时真正优于单 Agent、共享与不共享上下文的协作、失败模式,以及涌现的"Agent 社会"。
Repo: github.com/bojieli/ai-agent-…
可可 retweeted
GPU architecture, clearly explained.
The usual assumption is that a faster GPU means more compute, so a chip rated for more operations per second should generate more tokens per second.
That rarely holds. You can rent a top-end chip, load a model, watch utilization sit high, and still get a few dozen tokens per second out of hardware capable of a thousand trillion operations.
The arithmetic units are not the limit. They spend most of their time waiting for numbers to arrive.
Memory bandwidth is how fast those numbers can be delivered, and it grows far more slowly than arithmetic capability with each new generation.
The H100 makes this concrete. It does 989 trillion operations per second at 16-bit precision, while its memory delivers 3.35 trillion bytes per second.
Divide one by the other and you get about 295. That is how many operations the chip has to perform on every byte it fetches just to keep its arithmetic units busy.
Generating a token comes nowhere close. Each weight gets multiplied by one number and added into a running total, so two operations per weight, and each weight costs 2 bytes to read at 16-bit precision.
That works out to 1 operation per byte, roughly three hundred times short of what the chip needs.
Once you see that, the layout of a GPU stops looking arbitrary. All of it is organized around distance, because every trip to fetch a value is the expensive part.
Execution is nested in four steps, smallest first.
→ Thread. The smallest unit of work, doing arithmetic on its own handful of values.
→ Warp. A group of 32 threads that move in lockstep and share a single instruction, which is what the hardware actually schedules.
→ Thread block. A batch of warps, up to 32 of them or 1024 threads, handed to one compute unit and staying there until it finishes.
→ SM. The streaming multiprocessor, a small self-contained machine with its own arithmetic units, its own storage, and its own scheduler. An H100 has up to 132 of them.
Memory is nested along the same lines, and that is the part that decides your speed.
→ Registers. 256 KB per SM, split so each thread gets a private slice nobody else can read. A value here already sits next to the thing that needs it, so reading it costs nothing worth measuring.
→ Shared memory and L1. A few hundred KB per SM. Shared memory is the only level you place things into yourself, and every thread in a block can read it, which is where the name comes from.
→ L2 cache. Around 50 MB sitting below all the SMs, and the first level every one of them can see. Reaching it means leaving your own SM.
→ HBM (High Bandwidth Memory). Around 80 GB, holding model weights, the KV cache, and activations. It sits outside the processing chip entirely, and reaching it is the slowest thing a GPU does.
The nesting is what buys you speed. Anything that stays inside one SM is fast because nobody outside needs to see it, and anything the whole chip has to agree on pays for the trip down.
Add up the registers across every SM and you get roughly as much storage as the L2 underneath them, which is nothing like the neat pyramid you see on a CPU.
So making a GPU faster is mostly about how many round trips to HBM you can avoid. FlashAttention is the clearest case, since ordinary attention writes a large intermediate result all the way down and reads it back, while the tiled version keeps it up on the SM and runs far faster doing the same arithmetic.
I wrote the full breakdown of how a GPU works, from this layout up to the ratio that sets your token rate. The article is quoted below.
I have also put together a 10-week, 30-minutes-a-day roadmap for engineers who want to actually run LLM inference in production, not just read about it.
Check this out: github.com/patchy631/time-to…
(don't forget to star 🌟)
Stay tuned for more on this!
很荣幸受中国驻葡萄牙大使馆邀请,在中葡数字化与人工智能会议做了一个报告《通向贾维斯之路:个人 agent 的壁垒在哪里》,首次剧透我未来几年的研究方向。
对 personal agent 而言,模型智能已经足够,而且还在以每年 10 倍的速度变便宜。主要的技术壁垒是:
1. 交互模型:具备活人感的全双工交互,快慢思考丝滑配合;
2. Agent 原生操作系统:人与 Agent 共同操作的共享 UI,生成式 UI,以及自我进化的软件;轻量级沙箱和 agent 资源管理;
3. 高速推理 infra:单用户推理速度高,harness 执行效率高,才能支持全双工交互和生成式 UI;
4. 物理世界接口:把人类世界和物理世界纳入 agent 的观察和动作空间;
5. 持续学习:通过 Skill、记忆、harness、参数等方式持续自主进化,最终模型能够自主持续学习。
上面 5 个是技术壁垒,个人 agent 还有几个非技术壁垒:
1. 分发渠道(获客/入口)
2. 上下文(agent 知道你什么)
3. 权限(agent 能帮你做什么)
OS 和设备厂商、超级应用在这三方面有很大优势。个人 agent 不能只是从超级应用那里抢夺用户有限的注意力,只有把蛋糕做大,让用户做到之前不敢想、懒得做的事情,甚至学到东西,才离 JARVIS 更近一步。
最后,我认为 Agent harness、LLM、AI Infra 对应传统软件开发的编译器/运行时、操作系统、计算机体系结构,每位有追求的开发者都有必要学习其原理。
这 5 个主要技术壁垒也是我未来几年的研究方向。其中一些主要是工程问题,一些还需要研究突破,恰好符合 Jeff Dean 所说的值得做 5 年的重大问题。
我在实时交互和个人 agent 这个领域已经做了 3 年,虽然错过了模型智力上限,但也参与做出了全球首个 personal agent @PineAIAssistant ,未来还是长期投入这个领域,把 JARVIS 做成。
最近查血糖,被医生判定为胰岛素抵抗,我的胰岛素分泌是普通人的3倍,医生直接说再不控制就2年内就得糖尿病,让我多锻炼肌肉,控制吃碳水,控制好了可能20年后,这是给我下了“死刑”啊。刚好看到@justinsuntron 和@AlanShao111 的薄肌理论,Opus 5.5 做个视频,后续我得让自己成为 “AI 薄肌”,感谢大佬们。#vibecoding #opus
1
69
可可 retweeted
开源小螃蟹机器人 Jumper 太酷了:22 个自由度,又萌又灵活,能搬东西,还能跳跃。
创作者已把项目开源,自己就能动手搭一个。
github.com/KingKongRobotics/…
炸裂🤯!10万点赞的视频就这样被opus 5-5 秒杀了!
之前刷视频刷到这种数据对比的,流量异常好,想着复刻出来。但是之前的模型对于3D模型和Blender渲染还是理解不足,没搞出来,对一个完全不懂3D建模和Blender的人来说还是成本太高,没想到opus 5.5直接一句话秒杀,建模自己搞,代码自己写,音频自己调,节拍卡点自己搞,又是大杀四方的一次模型升级。
1
101
节点密度问题
Agent 场景:这些代理节点需要大量的内存资源来初始化和执行不受信任的代码。然而,在活动高峰期过后,它们通常会进入长时间的闲置状态,需要等待用户的指令才能再次执行任务。
解决方案:Kubernetes 节点 Swap
Scaling Kubernetes Workloads with Node Swap - kubernetes.io/blog/2026/10/0… #Kubernetes
We've heard the community's feedback. Our intent was to make sure the credits reached the people who supported SGLang along the way, and we couldn't be here without you. We're updating the offer to better reflect that.
RadixArk's platform is open for beta, and we're offering $200 in compute credits to get you started
→ Sign up at platform.radixark.com and repost this so we can get you set up.
→ Limited spots, first come first serve. Open through May 13, 2026 (AoE).
→ Credits will be granted after we verify the repost.
(If you already reposted our earlier announcement, that counts too; no need to do it again.)
And if SGLang has been useful in your work, consider giving it a star on GitHub. It's a small gesture that means a lot to the people maintaining it. We're in this together, and we're grateful to be building it with you 🧡
Anthropic会比OpenAI发展更快!
因为AI的国民级C 端产品,真正要实现的是弱智。不信你看抖音、视频号、微信、小红书,是来消耗时间的,不是来节省时间的。
AI是干什么的?是来提升生产力的,是来节省时间的。所以至今为止,没有国民级的C端AI产品出现。
人类一天工作时间也就8个小时,我是指绝大多数如你我这等平庸之辈,甚至上班上厕所吃饭都想刷下短视频。所以我断言,AI目前不可能在C端出现国民应用。
人类就是好逸恶劳的东西,至少绝大部分平庸之辈是这样的,历史属于少数人。一天估计有16个小时,想玩,想爽,想吃,想丰富精神活动。
AI目前真正的机会一定在B端。如果你是企业老板,你最希望的就是花1个人的钱,干10个人100个人的活。所以Anthropic会比OpenAI发展更快!
C端到底有没有机会?有!那就是西部世界里的具身智能,一定是回到消耗你时间的逻辑上来,C端国民级AI应用才会出现。每个人可以尽情享受真人游戏来带的快感。
这就是人类!
1
44
可可 retweeted
Wondering how DeepSeek v3.2 rivals SOTA models (e.g., GPT5/Gemini 3 pro) while being ~30x cheaper? 🤔
Let's learn how the base model works!
We'll focus on attention, the need for KV caching, and key ideas for improving attention (MQA/GQA/MLA/DSA).
youtu.be/Y-o545eYjXM






























