大模型
news.ycombinator.com ·
Show HN:Mini-AGI——在 8GB 显存上训练的持续学习模型
作者发布开源项目 Mini-AGI,尝试在消费级 8GB 显存上训练持续学习模型。其思路包括:训练过程中动态添加和剪枝大量专家的 MoE,任一时刻只加载少量专家,参数量仅受磁盘限制;以及 batch 1 的单条连续数据流训练,以避免存储大批量随机样本及其梯度。作者称模型正在 7.8B 字符语料上运行,权重尚未发布,并提供了训练样本与 scaling 曲线链接。作者承认开发过程大量借助 Claude。
AI推荐理由 作者公开了 GitHub 仓库、训练样本和 scaling 曲线链接,属于可自行复现的开源项目,信息密度较高;但核心主张(8GB VRAM 上持续学习、动态增删专家的 MoE、batch 1 单流训练)目前只有作者自述和未完成的训练运行,权重尚未发布,scaling 曲线也未给出定量结论,因此不能视为已验证的突破。对关注消费级硬件训练、持续学习与 MoE 架构的开发者有参考价值,但需自行验证。
62
正文
https://github.com/volotat/mini-AGI/ Show HN: Mini-AGI – Dynamic continual learning model trained on 8GB VRAM (github.com/volotat ) Sorry for the pretentious name, I know, I know.. It just contains all the pieces I would like to see a AGI model to have, and I can't stand the temptation. Before throwing rocks at me, please take a glance at the Readme, and I hope it will cover your mood a little bit.So, first of all it does work and you can see the sample from the whole training run here: https://raw.githubusercontent.com/volotat/mini-AGI/refs/heads/main/runs/samples.txt https://raw.githubusercontent.com/volotat/mini-AGI/refs/head... Here is the scaling law graph I have so far, and it looks very promising: https://github.com/volotat/mini-AGI/blob/main/assets/scaling.png https://github.com/volotat/mini-AGI/blob/main/assets/scaling... The model was built under my deep dissatisfaction so we cannot really train even moderately big models (1B+ scale) on the consumer's hardware. We can inference and fine-tune them for sure, but I would like to have full control over what the model sees over the training run, so it is fully aligned with my interests, not some corporations.I was thinking about for some time and come up with two interesting ideas I thought worth pursuing: MoE with a lot of experts that gets added and pruned from the model while it trains, where only a small subset of of experts are actually in use at any particular moment + batch 1 training on the single continuous stream of data.First allows us to be bounded only by the disk space in terms of number of parameters and load and unload experts only when they are needed. The second (if figured out and it turns out to be doable) allows us to get aways with small VRAM capacity because we do not need to store big randomized batches and their respective gradients.I started brainstorming with Claude and after some time we found an approach that seems to be promising, and low and behold, a few weeks pass and you can see the results yourself.Obviously, I did use AI in the process of making this project and I am pretty sure it would be completely impossible for me to do something like this without it, so I hope it is more than justified.The model is still running over the first of 7.8B characters corpus I selected for training, so the weights are not out yet, and it's about a couple weeks of waiting until they are cooked at the current reading speed. And yeah, the model just read continuous interleaved passages from the dataset, each by 32K characters long each as a single stream. Just as you or I would do.The set up seems to be really simple so you can git clone the project, run it and observe everything for yourself.Thanks for your attention. help advael 14 minutes ago | next [–] Seems interesting, I've been messing with a lot of continuous learning approaches lately and it's cool to see something that's built from the ground up for avoiding catastrophic forgetting. Worth a clone for sure reply hexley19 58 minutes ago | prev | next [–] Seeing 'Mini-AGI' and '8GB VRAM' in the same sentence is a breath of fresh air. Maybe local AGI isn't so far-fetched. reply whizzter 47 minutes ago | prev | next [–] Nobody will throw rocks, I think most people are curious/suspicious about the big players and wants more hands-on since we suspect that this all will come down in cost soon enough. reply skeledrew 37 minutes ago | prev | next [–] Getting conceptually closer to how the human brain works. Looking forward to more of this. reply volotat 33 minutes ago | parent | next [–] I also like how it is very organic. It naturally grows and deletes unused elements, so in addition to traditional backprop there is also a natural selection happening in the background. Each new expert has 16 parents by the way, lol. reply 3 hours ago | prev [–] [deleted] Guidelines | FAQ | Lists | https://github.com/HackerNews/API API | Security | https://www.ycombinator.com/legal/ Legal | https://www.ycombinator.com/apply/ Apply to YC | Contact Search: