Breeze648/Transformer-from-Scratch

本仓库定位为 AI论文复现 / 从零实现 Transformer。 代码遵循原论文的模块划分,包含位置编码、多头注意力、前馈网络、编码器‑解码器等全部组件,并附带详细的中文拆解文档与英文注释,方便学习与二次开发。

41
/ 100
Emerging

This project helps AI researchers and students understand the Transformer architecture by providing a clear, modular, and well-documented implementation of the original 'Attention Is All You Need' paper. It takes raw input sequences (like text or other sequential data) and processes them through the Transformer's encoder-decoder structure to produce output sequences, typically for tasks such as translation or text generation. This is ideal for those studying or working with neural machine translation and large language models.

No commits in the last 6 months.

Use this if you are an AI researcher or student who wants to deeply understand and potentially modify the foundational Transformer model, with a focus on its core components.

Not ideal if you need a high-level library for immediately deploying large-scale NLP applications without diving into the model's internal workings.

neural-machine-translation large-language-models deep-learning-research nlp-architecture ai-education
Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 7 / 25
Maturity 15 / 25
Community 17 / 25

How are scores calculated?

Stars

33

Forks

10

Language

Python

License

MIT

Last pushed

May 03, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/Breeze648/Transformer-from-Scratch"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.