Who it is forAn ML engineer or student who has read about transformers and wants to see concrete design differences between recent open models before choosing or explaining one.
The problemArchitecture descriptions in papers and blog posts are scattered, and it is hard to line up choices like RMSNorm versus LayerNorm or RoPE versus learned absolute positions.
The outcomeA short side-by-side comparison of at least two models, with each design choice tied to a folder of code in the repo.
What you need first
- Python, as listed for the repo
- PyTorch, as stated in the repo description
- Basic familiarity with transformer attention and normalization layers
Steps
- Open https://github.com/YeonwooSung/llm-architecture-from-scratch and find the Implemented table.
- Note the Normalization, Positional Encoding, Attention, and Mixture of Experts columns for each row.
- Pick two rows with different attention types, for example Llama3-8B and DeepSeek v3.
- Open the linked folders for both models and read the model code side by side.
- Write a one-page comparison that cites the table cell and the code location for each design choice.
Prompt for your agent
Using the repo YeonwooSung/llm-architecture-from-scratch, compare the rows for <model A> and <model B> in the Implemented table. Output a table of normalization, positional encoding, attention type, and Mixture of Experts use. Verify each cell against the README row before reporting.
Caveat. The README is a table of design choices and does not describe training results, so the comparison covers architecture only.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page