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…
讲一个听来的段子。一个团队搞模型量化结果不太理想,模型只会生成重复的 YES!在大家在讨论什么较准集,SQNR,重复惩罚时,一个哥们盯着书架上的《梦的解析》若有所思。第二天这哥们就和一个搞 TTS 的光速离职了。据说俩人都跳槽到了做成人保健品的公司。
1
570
George Ang retweeted
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!
并行采样时受预测分布的影响,推出雷同的序列的概率蛮高的,尤其是输出的前缀。今天在内部引擎复现了 Paged Attention 论文里提到的 Copy-on-Write 机制,只在推出不同结果时才做页拆分。比较好奇 vllm 的实现里也有 COW 的机制,但看起来从 prompts 最后一个页就开始复制了。
1
543
节前调研了下目前社区最强的 PagedAttention 算子还是 TensorRT-LLM 的实现,直接在 FlashAttention 基础上实现了分页管理。可惜不开源,以 cubin 的方式分发。vllm 的实现是常规的 softmax(QK^t) 融合,矩阵乘法没有使用 mma 指令,也就没使用 TensorCore.
1
3
752
George Ang retweeted
老黄这条言论,也有很多反对声音,见评论区。
这条评论我比较认同。
This post is from an account that no longer exists. Learn more
George Ang retweeted
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)
开发投机采样时在一个 bug 上卡了好久:第二步开始两个模型的概率分差大得诡异。因为特殊的 kvcache 实现有个压缩机制比较繁琐,一直在查 cache 的问题。后来画图才发现大模型全接受后单独采样一次的 token ,忘记喂给了小模型。看来难于维护的实现即使自己没出问题,也会带来意外的成本。
332
投机采样比较难理解的就是小模型的采样被拒绝后的补采,为什么要基于两个模型的分布相减。其实它本质上是大模型的拒绝采样,大模型随机一个点看看是否落在两个模型重叠的部分,落了就直接用小模型的输出。如果没落入就按相差的概率重新算一个点。
1
406
2023 年年初开始搞 AI Infra.上半年搞训练 FlashAttention 定制,RLHF 加速和推理张量并行。下半年搞 vllm 定制,评测任务对齐和 INT4 量化。没有 2022 年在 Youtube 上刷了遍 Gilbert 老爷子的课程真 hold 不住。向老爷子和 Y 站致敬。
8
1,459
Pytorch 提供的 CUDAExtention 编译单个算子扩展还行。大型项目依赖 Pytorch 还是得用 cmake. 可以靠 torch 接口拿到 cmake_prefix_path. 就可以用 find_package 集成啦。需要注意如果还要编译成 python 扩展,还得链接 libtorch_python.so
1
306










