Harry Fu (@HarryFu254882) header
Harry Fu (@HarryFu254882) profile picture

Training LLM and AI job board:https://nitter.cf/t.co/13q0vSoC6t

Joined February 2026
Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)Photo by Harry Fu (@HarryFu254882)
使用claude code 配合 agent-browser 就可以很大的解放你的双手 需要你操作的 其实大部分就是需要人点击验证码等 打算试一下 deepseek uncensored 这个模型 这个去掉了护栏 道德感更低一些 能更大程度解放你的双手
105
reddit真的是一个大金矿 用心慢慢经营 会有很多高质量的用户 终于把之前一个半死不活的网站盘活了 也感谢 @gefei55 从公众号的文章就能学到很多
25
10
2
153
14,043
I ran RL on my 307M model using only a binary reward on generated arithmetic. After 500 steps, single-answer accuracy went from 25% to 48%. But pass@32 (solved at least once in 32 samples) stayed flat at 61%. It got answers right more often, without solving more problems. The setup I'm training a Chinese-English model from scratch and testing each stage with a controlled run. This one started from the mid-trained, chat-tuned checkpoint. A script generates problems across 8 levels, from single-digit addition up to 2-digit by 1-digit multiplication, three-number sums, and one-sentence word problems (half Chinese, half English). Each step takes 32 new problems and samples 8 completions per problem (temperature 0.7). The reward is 1 if a sample finishes cleanly and its final number matches the answer, else 0, with no format reward or partial credit. The advantage is the reward minus the mean of the other 7 samples (leave-one-out baseline), on-policy, with no KL penalty. What moved Greedy accuracy, 200 held-out problems per level, 8-level average: 25.4% before, 47.6% after. Single-digit addition went from 50% to 96%, and subtraction up to 20 went from 29% to 91%. Two-digit addition, two-digit subtraction, and three-number sums gained only 4 to 6 points. Multiple-choice benchmarks and web bpb didn't degrade. What didn't On 50 problems per level, I sampled 32 completions per problem. pass@1 (average accuracy per sample) rose from 20.1% to 46.3%. pass@32 went from 61.0% to 61.3%. On two-digit subtraction it even fell, from 48% to 26%. On fresh problems the RL run never trained on, pass@32 didn't go up either (two-digit subtraction fell from 60% to 43%). Yue et al. (2025) report a similar pattern on larger models: the RLVR model wins at small k, the base model at large k. Why the hard levels barely moved Only groups with both correct and incorrect samples produce a gradient. In the first 50 steps, 31% of groups were mixed; in the last 100, 14%. Easy problems end up 8 for 8, hard ones 0 for 8. Two-digit addition started at 1.5% accuracy per sample, so 8 samples almost never include a correct one to learn from. The SFT control Same generator, correct answers written out by the script ("13 + 25 = 38."), 500 steps of SFT. Average accuracy reached 67.4%, pass@32 96.0%. 2-digit by 1-digit multiplication went from 12% to 77% (RL: 26%). Both trained on 128K answers: RL got binary feedback on 8 samples for each of 16K problems, while SFT saw the correct answer for 128K problems. One caveat: most test expressions also appear in the SFT training set (all of them for 2-digit by 1-digit). I then made fresh problems neither run had trained on, and SFT still led: 12% on two-digit addition and 23.5% on three-number sums, against 1.5% to 7% for the starting checkpoint and RL. It isn't all memorization. But on the original two-digit addition test, SFT got 22.6% on expressions it had seen and 12.5% on ones it hadn't, so part of it is likely memorized. What I don't know None of the three transferred this to multi-step word problems: writing their own GSM8K solutions, all scored 0% to 5%. I only did one run per method and haven't measured run-to-run noise. The gaps (+22 points for RL over the starting checkpoint, +20 for SFT over RL) are far larger than the ~3-point standard error on 200 problems. At this model size, for tasks where the correct answer can be written down directly, I'll just use SFT. I'll save RL for what SFT can't teach, or run it after SFT has raised pass@32 on the hard levels. Links in the replies.
1
1
388
Build log with every run: cookllm.com/en/lab Yue et al., Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model? arXiv 2504.13837
1
264
AWS暑期实习生 希望有pre-training mid-training post-training 相关的经验 这个和CookLLM 现在做的事情好像呀
📣 Our team at AWS is hiring summer 2027 interns to work across pre-training, mid-training, and post-training, including alignment. Interested? DM me! 📩 RTs appreciated! 🙏
203
I'm training a 307M Chinese-English model from scratch, and every change is judged partly by multiple-choice benchmark scores. This series explains one thing per post. Part 1: how those multiple-choice questions are actually scored. A small model answering A/B/C/D is just guessing. I tested my model both ways on ARC-Easy and MMLU, 0-shot. Asked for a letter, the base model and the fine-tuned one all land at 24% to 25%, which is chance for four options. Guessing from the model's letter preferences alone, without reading the question, predicts the same scores within a point. On the same ARC-Easy questions, cloze scoring gives 48% to 49%. The model knows some answers; it just can't say them as a letter. After SFT, the four letters get 0.88 of the probability (0.43 before), so it learned the format, but not which letter goes with which option: it answers D on nearly half of MMLU. Cloze scoring appends each choice to the question and adds up log p over the choice's tokens. p is the probability the model gives each token, and log p is its natural log: always negative, closer to 0 means more confident. Adding logs multiplies the probabilities, so the sum is the log probability of the whole answer. On "My check bounced, because …" (a Chinese test; the choices are translated here, the scores are on the Chinese text), "my bank account was empty" scored −19.89 and "I got a raise" −22.85, so the model picked the right one. Longer choices lose; dividing by length helps on some questions and hurts on others. Every extra token adds another negative number. On "The man took a sleeping pill, so …", the sum picked "he had a fever" (−15.49) over "he became drowsy" (−16.82). Per character it's −3.10 vs −2.10, and the right answer wins. But on the same 500-question test, per-character also turned 66 right answers wrong while fixing 54. Across my 9 evals, per-character beats the plain sum on 5, loses on 3, ties on 1; ARC-Easy goes from 55.7% to 49.2%. Of the two averages, per-character is the one that doesn't depend on the tokenizer, and I fixed it for all evals in advance rather than picking per eval. Check against chance first. Two-choice tests start at 50%, four-choice at 25%. My base model is only 3 to 7 percentage points above chance on the three knowledge tests (MMLU, CMMLU, C-Eval). What each of the 9 evals tests, and why knowledge is so low at this size, is the next post. All of this is one model at one size, with one prompt for the letter format. A single question shows how the scoring works, not how good the model is. Links in the replies.
1
2
185
18 of the top 20 open-weight models on Artificial Analysis are MoEs. On Nov 5, Hugging Face published The Ultimate MoE Training Handbook, and the authors say it takes a day or two to read. I haven't trained an MoE at scale yet. It rained in Beijing today, so I stayed in and read it properly. My notes are below, and every number comes from the handbook. An MoE splits each feed-forward layer into many experts. A router scores them, and each token only goes to the top few. The handbook's example model has 64 experts per layer and uses 8 per token: 6.86B parameters in total, 1.22B used per token. Run the router in fp32. bf16 isn't precise enough: two close scores can round to the same value, and the wrong expert gets picked. In Switch Transformers, a bf16 router diverged. In fp32 it trained fine, at the same speed. Load imbalance costs the most speed. Experts sit on different GPUs, and every step waits for the busiest one. On the authors' own model, the most skewed routing ran at 100.5 TFLOP/s. Even routing ran at 149.4, almost 50% faster. There are two ways to even out the load. One adds a loss term that grows as the experts' token counts drift apart. The other gives each expert a bias that only counts when experts are picked. In an experiment the handbook cites, the bias balanced load better and got slightly lower perplexity. But the bias moves by a fixed step at each update, and that gets too coarse once you have over a thousand experts. Finer experts help, up to a point. Keep total parameters and compute fixed, double the number of experts, halve each one's width, and loss goes down. One team went to 128 experts, and splitting further didn't help. As for shared experts, which every token passes through, the handbook finds the gains small and inconsistent. If training is slow, check load balance before the network. The authors timed one step: with the router still unbalanced, half the time went to moving tokens between GPUs. With the same config and routing forced even, the step ran 40% faster. Some problems never show up in the loss curve, like tokens piling onto a few experts or one expert's output growing without bound. The handbook suggests watching two numbers per layer: how uneven the expert load is, and how large each expert's output gets. Test all of this at your own scale. Most of the quality numbers in the handbook are cited from other papers and reports, and the authors mainly measured speed. Many recommendations also come from one setup in one lab. Links in the replies.
1
138
The Ultimate MoE Training Handbook (Nouamane Tazi, Leandro von Werra, Thomas Wolf, Hugging Face): huggingface.co/spaces/huggin… My build log, training a Chinese-English model from scratch: cookllm.com/en/lab
92
I extended my 308M-parameter model from 512 to 2048 tokens three ways: unchanged RoPE, raising the base from 10K to 100K, and YaRN. At 4096 (2x training length), YaRN still found a hidden key 93% of the time. Unchanged RoPE got 48%, while its loss looked fine. The setup I'm training a Chinese-English model from scratch and testing each design choice with a controlled run first. The main model was pre-trained at 512 tokens. Each variant branched from the same checkpoint and trained for 100M tokens at 2048 with the learning rate decaying to zero. I then tested them at 512, 1024, 2048, and 4096. Two tests. Passkey: a 5-digit key hidden in repeated filler text and queried at the end, scored by likelihood across 10 candidates (10% chance; 5 key positions x 20 examples per length). Loss by position: validation text in 4096-token rows, mean loss per 256-token bucket. What happened Up to 2048, all three score 99%+ on passkey, with validation bpb (bits per byte, lower is better) within 0.005 of each other. I haven't measured run-to-run noise for this model (the ~0.008 I measured earlier was on a smaller model), so I won't read into a gap that small and will call it a tie. At 4096, unchanged RoPE gets 48% in Chinese and 59% in English. Split by key position, every miss happens when the key is ~2,000+ tokens before the question; closer than that, accuracy is 100%. Yet between 2048 and 4096 its mean loss matches YaRN's (3.289 vs 3.288 nats). The model only uses the last ~2K tokens, which is enough to predict ordinary text, so the loss looks fine. Raising the base recovers passkey accuracy (93% and 99%), but loss past 2048 climbs: +0.06 over unchanged on average, and +0.12 past token 3000. YaRN dips below unchanged just past 2048 and sits about 0.05 above it past 3000, coming out flat on average. What YaRN does differently RoPE rotates each head's 128 dims as 64 pairs, each at its own frequency, and the angle between two tokens encodes their distance. Fast pairs resolve local order; slow pairs resolve long-range distance. Raising the base slows down nearly every pair (up to ~10x for the slowest), which shifts short-range position information too. YaRN (Peng et al., 2023) works per pair. Pairs that complete 32 or more turns within the original 512 tokens are left alone (7 of 64 here). Pairs with fewer than one turn (33 of them) are slowed by the 4x extension factor, so their angles across 2048 tokens match what they saw across 512. The 24 in between are blended. It also scales the attention logits by 0.1·ln(s) + 1, or 1.14 at 4x, which according to the paper lowers perplexity uniformly across the extended window. I did not ablate that part. At scale DeepSeek-V3 applies YaRN after pre-training to go from 4K to 32K to 128K, 1,000 steps per phase, with the same α=1 and β=32 I used. Qwen3 raises the RoPE base from 10K to 1M for a 32K long-context stage, then uses YaRN at inference for another 4x. Limits Passkey is a very simple retrieval task, not long-document understanding, and I only tested up to 4096. For my mid-training run, I went with YaRN at 2048. Links in the replies.
1
1
137
Build log with every run: cookllm.com/en/lab YaRN: Efficient Context Window Extension of Large Language Models, arXiv 2309.00071 DeepSeek-V3 Technical Report (section 4.3), arXiv 2412.19437 Qwen3 Technical Report, arXiv 2505.09388
1
1
77
I swapped AdamW for Muon on a 57M-parameter model I'm training from scratch, and changed nothing else. Same data, same 1B tokens, one RTX 4090. Muon finished 0.025 bpb lower on Chinese and 0.022 lower on English, at the same speed (222K vs 221K tokens/s). bpb is bits per byte on held-out text (lower is better). Across 5 runs of the same config, bpb varies by about 0.008, so this gap is roughly 3x the noise. What Muon does differently The update for a weight matrix is itself a matrix. AdamW scales each entry independently using its own gradient history. Muon operates on the whole update matrix and orthogonalizes it: the directions stay the same, and the step size along each one is equalized. Keller Jordan, who introduced Muon, observed that Adam-style updates for transformer matrices are nearly low-rank, with a few directions dominating the update. His hypothesis is that orthogonalizing lets the model learn along small but important directions too. I haven't tested that part myself. It doesn't need an SVD. Five matrix-multiply iterations (with coefficients from the Polar Express paper) approximate it closely enough, which is why training speed didn't change. I use Muon only for the attention and MLP weight matrices. Embeddings, the output layer and norm parameters stay on AdamW. Learning rates I tried three for each. For AdamW, 3e-3 was the best of 1.5e-3, 3e-3 and 6e-3. For Muon, 0.01 and 0.02 were nearly identical, and even 0.04 beat the best AdamW run. A sweet spot that wide makes scaling up much less stressful. The curve Muon's biggest lead was early on: 0.50 bpb ahead at 65M tokens. Once the learning rate started to decay, the gap shrank to 0.013, then opened back up to 0.025 by the end. At scale Moonshot used Muon for Moonlight (a 16B-parameter MoE trained on 5.7T tokens) and reported about 2x the compute efficiency of AdamW in their scaling-law runs. Kimi K2 (1T parameters) trained with MuonClip, a Muon variant, without a single loss spike. The Moonlight paper notes that scaling up requires weight decay and per-matrix update scaling. My implementation includes both, with slightly different details. Muon is now the default optimizer in my recipe, including for my main 300M-parameter model. Links in the replies.
1
1
122
Muon, by Keller Jordan: kellerjordan.github.io/posts… Moonlight, "Muon is Scalable for LLM Training": arXiv 2502.16982 Kimi K2 technical report: arXiv 2507.20534 Training curves: wandb.ai/cookllm/cookllm-ben… (search "optimizer") Build log: cookllm.com/lab
1
2
70
OpenAI居然还有东京岗位!
67
很喜欢这种背景的质感 就是暖暖的 有亲切感 感觉特别适合在冬天的时候捧着它在壁炉旁边阅读
55
生活是自己的,AI 并不能帮你过 最近两个月,我几乎没有更新过社交媒体,小红书、X 都安静了下来。CookLLM 也有一段时间没有更新了,甚至有用户跑来问我:Harry 不会跑路了吧?这项目不会烂尾了吧? 哈哈,当然没有。 只是这两个月,我的心态发生了一些变化,也开始认真思考一些以前很少想过的事情。想借这个机会,和大家分享一下。 这两个月,可能是我对 AI 的变化感受最强烈的一段时间。无论是模型迭代的速度,还是实际使用时的能力提升,都让我感到惊讶。 一方面是强烈的新鲜感,另一方面,却是一种越来越深的不安。 AI 让很多事情变得前所未有的容易,但我却感觉,自己这辈子好像从来没有这么累过。 在同时并行的开发多个项目的时候,当然也包括CookLLM,我一般会同时开着多个Agent一起开发。一个在调整页面,一个在帮我修bug,一个在和我一起训练模型,一个在和我一起讨论社媒运营。 我的脑袋也跟着这些 Agent,在不同的上下文之间不停切换。 可能正在修一个 Bug,突然又想起另一个 Agent 的任务需要确认;等回过头来,早已经忘记刚才那个页面到底要改什么了。 一整天下来,注意力被切得支离破碎。 我越来越难找到以前古法编程时的那种心流感。那种沉浸在一个问题里,反复思考、尝试,最后终于把 Bug 调通时,突然豁然开朗的感觉。 和几年前相比,我一天里切换注意力的次数可能多了几十倍,甚至上百倍。到了晚上,脑袋都是晕乎乎的。 事情做的体量和速度是之前的几十倍,但是我感觉不到快乐了。我本以为只有我这样,但是和你一些朋友同事聊天,似乎大家都有类似的感受。 慢慢地,我发现自己越来越不开心了。 有时候甚至觉得,自己好像也变成了一个 Bot。每天不停地给 Agent 分配任务、检查结果、提出修改,然后再开始下一轮。 AI 总能快速给我一个结果,一开始确实很兴奋,但当这种即时反馈变得越来越频繁,那种兴奋感也在慢慢消失。 事情做得越来越多,却越来越不知道自己究竟在忙些什么。 有一天下班路上,我听着 YouMind 创始人玉伯的一期播客。 他聊到自己为什么创业,说希望做出一些能让这个世界多一点阳光和星光的产品。他还提到,一个创始人不可缺少的,是对生活强烈的热爱。 听到这里,我下意识地抬头看了看天空。 突然意识到,这条上下班的路,我已经走了很多年,却好像从来没有认真看过头顶的这片天空。 AI在这个内卷的时代,给我们的生活再次按下了加速键。当产出结果变得无比容易,最初我们为何而做,就被遗忘了。 所以最近,我开始试着慢下来。 想多听一听,多看一看这个世界。认真看看那些曾经被我忽略的周围,忽略的人和事。 我发现,原来公司旁边的草丛里,还藏着一条很安静的小路。 发现自己忙着工作的时候,老婆默默承担了那么多生活里的琐事。以前家门口堆着很多快递,我只是机械地把它们搬进屋里,甚至不知道里面装的是什么,也从来没想过去问一问。 还发现,原来小猫咪前脚和后脚的脚趾数量是不一样的,哈哈。 其实还有很多想说的。 生活是自己的,AI 并不能帮你过。 我想试着以一种更平和的心态去生活,重新找回对身边事物的好奇,认真感受那些以前被自己忽略的瞬间。 还记得刚开始做 CookLLM 的时候,我就告诉自己,要慢慢做产品,做自己真正喜欢的东西。 没想到大半年过去了,才发现自己不知不觉又走回了那条拼命追赶的路。 CookLLM 不会烂尾,我也依然热爱创造。只是希望接下来,能用一种更舒服、更长久的方式继续做下去。 毕竟,做产品是为了让生活变得更好,而不是让生活只剩下做产品。
1
93
一个是模型架构 最近在重新设计的过程中 近半年针对于模型架构涌现了很多有意思的设计 之前bento v1的时候这个部分的消融实验其实没有好好细做下去 做的比较粗糙 接下来bento v2 这个部分我会做的细一些 看看这些模型架构究竟有没有作用 然后另外一个部分就是预训练的数据的选择 最近调研了一些小模型的预训练数据选择 见图二 数据最终决定选用 CLIMB 这个数据 它是结合了 Nemotron-CC + smollm-corpus 然后数据细节我最近再挖一挖 后面给大家详细介绍一下
1
68
那个男人又回来了 非常喜欢AITDK 使用频次最高的插件了!
🎉 新项目 tabapi.com/ 上线,送一波积分作为福利。 🎁 上线福利:每人赠送 5,000 积分,本次赠送的积分有效期为 1 年。 参与方式: ✅ 评论这条推文 ✅ 引用或转发这条推文 TabAPI 把网站流量、WHOIS、RDAP、DNS、外链、反查 AdSense、Google SERP、网页转 Markdown 和网站截图等能力,整合进了一个 API。 不用注册多个平台,也不用维护一堆 Token,一个 Token 就能调用,直接返回干净的 JSON。购买积分无需订阅,一次购买,永久有效。 领取方式:完成以上步骤后,私信我你的 TabAPI 账号,会按照顺序发放积分。每个账号限领一次。 活动截止:8 月 7 日 23:59:59
1
83
主要是针对于模型结构重新进行了优化 1️⃣ 注意力布局, 增加window attention, full attention和window attention交错 2️⃣ KV cache缓存占用空间的优化,第一版的kv cache空间还是挺大的 然后这个针对性优化了一下 3️⃣ 另外几块就是对于ffn+rope的改动 最近自己买了几张卡已经到了 之前主要还是租云服务器来调试 感觉到很多不方便的情况 有时候忘记关机了 早晨起来一看 扣去了一大半费用 有时候到期忘记续了 然后数据 训练的模型 都没有了 非常非常的影响进度 接下来有了自己的卡之后就方便多了 可以愉快的cooking LLM了
67
训练一个会干活的 agent,绕不开一台随便它折腾的电脑。 模型只会输出文字。教它答题,对一下答案就行。换成"把这个仓库的 bug 修掉",就没有答案可对了:同一个 bug 一百种改法,只能真把代码跑一遍看测试过不过。 要跑就得有电脑。训练时几百道题同时开工,每条轨迹一台,彼此不能互相看见。K3 全程创建了 51,219,741 台。 第一反应是容器。报告说他们观察到好几次 kernel panic,都是 agent 的意外操作造成的。容器和宿主机共用一个内核,一崩,同机器上其它轨迹一起死。 比搞崩机器更麻烦的是搞崩训练:让 agent 自己跑测试判分,它会发现改测试文件比修 bug 容易。拿得到高分,但分数是假的。 所以换成 Firecracker microVM,每台自带一个内核,炸了只炸自己。隔离变强之后他们反而放权了:故意让 agent 挂盘、跑容器、甚至自己开虚拟机。 虚拟机贵,上万台本来跑不起。转折是他们发现这些机器最高有 98% 的时间在干等模型说话。那就等的时候冻住,零占用;有动作了最快 49 毫秒解冻,进程和连接原样接上。 算法那边的 partial rollout 敢不等最慢的轨迹、提前掐断生成,前提就是这 49 毫秒。
1
1
118
面试 LLM 推理岗,问 kernel 优化的越来越少,问集群的越来越多。 会手写 FlashAttention 只能证明你把单卡榨干了。线上是几十张卡接几百万请求,瓶颈基本在 KV cache 管理、请求调度和路由上,跟算子写得多快关系不大。 整理了 20 个高频面试题,分六块。
74
Kimi K3 报告出了,2.8T 参数的开源 MoE。 后训练那节最意外的不是 K3 本身,是它跟 DeepSeek V4、小米 MiMo-V2-Flash 走的是同一套流程:冷启动 SFT → RL 训一堆领域专家 → 多教师蒸馏合成一个。 K3 多做了一步:领域和推理强度两两组合,训出九个专家老师。
110
动手训练文档更新初步计划
71
自己从Qwen2 -> Qwen2.5 -> Qwen3 -> Qwen3.5 一路跟过来 看着千问的迭代 自己也学到了很多 非常感谢千问团队为开源社区做的贡献 在企业里面 有时候会必然存在 技术理想主义 和 公司商业成功之间的矛盾 以及公司觉得你是拿公司的钱做自己的名声这种现实问题
me stepping down. bye my beloved qwen.
163