No Description

Gen TANG f6022ae91b update bold format 1 year ago
ch03_linear b5db7b2945 update comment 1 year ago
ch04_logit f6022ae91b update bold format 1 year ago
ch05_econometrics f6022ae91b update bold format 1 year ago
ch06_optimizer f6022ae91b update bold format 1 year ago
ch07_autograd f6022ae91b update bold format 1 year ago
ch08_mlp f6022ae91b update bold format 1 year ago
ch09_cnn f6022ae91b update bold format 1 year ago
ch10_rnn f6022ae91b update bold format 1 year ago
ch11_llm f6022ae91b update bold format 1 year ago
ch12_rl f6022ae91b update bold format 1 year ago
ch13_others 4e396d5f09 update ch13 overview 1 year ago
video 7e2a580412 resnet 1 year ago
.gitignore e18835b1cd update comment for ch07 2 years ago
LICENSE 0a9008828e Initial commit 2 years ago
README.md 37720ea7e7 update readme 1 year ago

README.md

《解构大语言模型:从线性回归到通用人工智能》配套代码

购买地址:

本书还配套免费的视频课程,观看地址为:

如果大家对本书有赞赏、建议、批评之声,请在豆瓣上留下你们的看法,再次谢谢大家。

简要说明

对于人工智能的经典模型,第三方开源工具都提供了封装良好的实现,使用它们并不复杂。然而,这些开源工具出于工程化的考虑,在代码中引入了过多的封装和细节,使得理解模型的核心结构变得困难。为帮助读者更好地掌握模型原理,本书特别投入较大精力重新实现了模型的核心部分,并附有详细注释。有时候,用人类的语言描述一些精妙的算法处理需要较大篇幅,而且效果也不尽如人意。相比之下,阅读代码则变得直观清晰。

这份代码依赖于多个第三方库,相关的安装命令已经在相应脚本的开头提供。按照给定的顺序运行这些脚本即可。由于涉及随机数,重新运行可能会得到稍有不同的结果,但整体影响不大。值得注意的是,与大语言模型相关的代码需要在GPU上运行,否则计算时间将显著增加。

代码目录