百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

minGPT

> 编程语言
开源

OpenAI GPT(Generative Pretrained Transformer)培训的最小PyTorch重用

24.8K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

OpenAI GPT(Generative Pretrained Transformer)培训的最小PyTorch重用

minGPT A PyTorch 重新执行GPT,既包括训练,也包括推论. minGPT尝试小,干净,可解释和教育,因为目前大多数可用的GPT模型执行可以略为扩展. GPT不是一个复杂的模型,这种实施是适当的,大约300行代码(见mingpt/model.py). 所有这一切都是一系列指数 反馈到一个Transformer, 概率分布 在序列中的下一个指数。 为了提高效率,大多数复杂情况只是巧妙地进行分批(既跨越实例,也超越序列长度)。 注释(Jan 2023):虽然我可能继续接受和修改一些细节,但minGPT处于半存档状态. 关于最近的发展,请见我重写纳米GPT。 基本上,minGPT在各种各样的地方(笔记本、博客、课程、书籍等)被引用

GitHub Issues· 83 开放

在 GitHub 查看全部
  • #131

    how to build a model and interact with it like chatgpt?

    更新于 2026年8月5日
  • #134

    GPT-2 implementation problem

    更新于 2026年8月5日
  • #120

    AssertionError when run generate.ipynb with default parameter

    更新于 2026年5月23日
  • #149

    Rasssssfffatay

    更新于 2025年6月30日
  • #148

    Hikceyi

    更新于 2025年6月30日
  • #136

    We collect more than 60 open source software for CAX and want to train miniGP to be the AI assistant.

    更新于 2025年3月20日

核心特点

  • •projects/adder trains a GPT from scratch to add numbers (inspired by the addition section in the GPT-3 paper)
  • •projects/chargpt trains a GPT to be a character-level language model on some input text file
  • •demo.ipynb shows a minimal usage of the GPT and Trainer in a notebook format on a simple sorting example
  • •generate.ipynb shows how one can load a pretrained GPT2 and generate text given some prompt
  • •add gpt-2 finetuning demo on arbitrary given text file
  • •add dialog agent demo
  • •better docs of outcomes for existing projects (adder, chargpt)
  • •add mixed precision and related training scaling goodies
  • •distributed training support
  • •reproduce some benchmarks in projects/, e.g. text8 or other language modeling

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言