George Ang (@gnap) profile picture

面壁删权重工程师

Joined July 2008
Photo by George Ang (@gnap)Photo by George Ang (@gnap)Photo by George Ang (@gnap)Photo by George Ang (@gnap)Photo by George Ang (@gnap)Photo by George Ang (@gnap)
George Ang retweeted
💥 Introducing MiniCPM-o 2.6: An 8B size, GPT-4o level Omni Model runs on device ✨ Highlights: ~Match GPT-4o-202405 in vision, audio and multimodal live streaming ~End-to-end real-time bilingual audio conversation ~Voice cloning & emotion control ~Advanced OCR & video understanding ~Offline iPad-compatible multimodal live streaming 🔗 Try it out: GitHub:github.com/OpenBMB/MiniCPM-o HF:huggingface.co/openbmb/MiniC… Demo:minicpm-omni-webdemo-us.mode…
29
157
43
687
97,929
讲一个听来的段子。一个团队搞模型量化结果不太理想,模型只会生成重复的 YES!在大家在讨论什么较准集,SQNR,重复惩罚时,一个哥们盯着书架上的《梦的解析》若有所思。第二天这哥们就和一个搞 TTS 的光速离职了。据说俩人都跳槽到了做成人保健品的公司。
1
570
Here is the PR / tech blog: github.com/ggerganov/llama.c… I've tried to describe most of the interesting implementation details. I believe the performance is quite good and it should run nicely even on low-mid range hardware. Enjoy your local copilot in the terminal!
1
4
56
6,690
YOCO 的性能提升大头来自作者去年的 RetNet. 但工业界显然更愿意采用简单的结构,然后靠 Scaling Law 来提升模型效果。有种你训我推荐,我训我不用的画面感。
1
602
并行采样时受预测分布的影响,推出雷同的序列的概率蛮高的,尤其是输出的前缀。今天在内部引擎复现了 Paged Attention 论文里提到的 Copy-on-Write 机制,只在推出不同结果时才做页拆分。比较好奇 vllm 的实现里也有 COW 的机制,但看起来从 prompts 最后一个页就开始复制了。
1
543
节前调研了下目前社区最强的 PagedAttention 算子还是 TensorRT-LLM 的实现,直接在 FlashAttention 基础上实现了分页管理。可惜不开源,以 cubin 的方式分发。vllm 的实现是常规的 softmax(QK^t) 融合,矩阵乘法没有使用 mma 指令,也就没使用 TensorCore.
1
3
752
现在 FlashAttention 也开始支持 Paged Attention 了。尤其是 16 页大小的无 Bug 的版本在一个 PR 里还没合并。我在这个 PR 里参与修复了一个显存越界的问题,目前在内部项目和社区的测试都已经验证。PA 的两个 PR 看起来都是 VLLM 开发者发起,所以预计 VLLM 近期的几个版本就会全面切换。
1
1
383
老黄这条言论,也有很多反对声音,见评论区。 这条评论我比较认同。
This post is from an account that no longer exists. Learn more
11
26
8
101
45,076
Here's my take on the Sora technical report, with a good dose of speculation that could be totally off. First of all, really appreciate the team for sharing helpful insights and design decisions – Sora is incredible and is set to transform the video generation community. What we have learned so far: - Architecture: Sora is built on our diffusion transformer (DiT) model (published in ICCV 2023) — it's a diffusion model with a transformer backbone, in short: DiT = [VAE encoder + ViT + DDPM + VAE decoder]. According to the report, it seems there are not much additional bells and whistles. - "Video compressor network": Looks like it's just a VAE but trained on raw video data. Tokenization probably plays a significant role in getting good temporal consistency. By the way, VAE is a ConvNet, so DiT technically is a hybrid model ;) (1/n)
35
512
58
2,581
1,345,907
长期在 2070s 上搞本地开发到了 Flash Decoding 终于 hold 不住了. 该考虑换显卡了。
301
开发投机采样时在一个 bug 上卡了好久:第二步开始两个模型的概率分差大得诡异。因为特殊的 kvcache 实现有个压缩机制比较繁琐,一直在查 cache 的问题。后来画图才发现大模型全接受后单独采样一次的 token ,忘记喂给了小模型。看来难于维护的实现即使自己没出问题,也会带来意外的成本。
332
投机采样比较难理解的就是小模型的采样被拒绝后的补采,为什么要基于两个模型的分布相减。其实它本质上是大模型的拒绝采样,大模型随机一个点看看是否落在两个模型重叠的部分,落了就直接用小模型的输出。如果没落入就按相差的概率重新算一个点。
1
406
2023 年年初开始搞 AI Infra.上半年搞训练 FlashAttention 定制,RLHF 加速和推理张量并行。下半年搞 vllm 定制,评测任务对齐和 INT4 量化。没有 2022 年在 Youtube 上刷了遍 Gilbert 老爷子的课程真 hold 不住。向老爷子和 Y 站致敬。
8
1,459
George Ang retweeted
11
373
28
3,501
104,878
Pytorch 提供的 CUDAExtention 编译单个算子扩展还行。大型项目依赖 Pytorch 还是得用 cmake. 可以靠 torch 接口拿到 cmake_prefix_path. 就可以用 find_package 集成啦。需要注意如果还要编译成 python 扩展,还得链接 libtorch_python.so
1
306
In honor of Taylor Swift's 34th birthday, here are 34 Taylor series.
158
1,950
269
13,158
740,590
VSCode 的内置终端在 Xorg/Wayland 下有个 Bug 会时不时会吃掉输出。被坑苦了。
1
1
297
从 XWayland 切换到原生 Wayland,腰也不酸背也不疼了。
127
折腾个因为前向声明导致的跨库找不到符号的问题。靠 nm 和 readelf 才定位到问题。C++ 不愧为反调包语言。。
224
Google 的那个方法是引导模型给出 32 个思维链有差异的输出(含思维链是为了过程多样性,统一个答案可能由不同的推导过程得到),然后抽取答案选投票最多的那个。在这个方法下 GPT4 也是有提升的,只不过没有 Gemini 多。这个 CoT@k 的思路有点像 OpenAI 提的 pass@k. 同一个 k 下模型的正确率越高,
1
199
说明模型的逻辑更收敛。Google 的技术报告给的对比很公平,不过官网的那个对比就有点艺术了。
87