[PR #1116] [CLOSED] fix: fix GPT model to use Embedding Layer #8894

Closed
opened 2026-05-03 01:04:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/harvard-edge/cs249r_book/pull/1116
Author: @minhdang26403
Created: 1/19/2026
Status: Closed

Base: devHead: fix/gpt


📝 Commits (1)

  • 3bbb0ae fix: fix GPT model to use Embedding Layer created in module 11 instead of re-defining token embedding and positional embedding

📊 Changes

1 file changed (+17 additions, -27 deletions)

View changed files

📝 tinytorch/src/13_transformers/13_transformers.py (+17 -27)

📄 Description

  • Instead of re-defining token embedding and positional embedding, the GPT should use the EmbeddingLayer class defined in module 11
  • All Transformers module test passed and there is no regression

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/harvard-edge/cs249r_book/pull/1116 **Author:** [@minhdang26403](https://github.com/minhdang26403) **Created:** 1/19/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/gpt` --- ### 📝 Commits (1) - [`3bbb0ae`](https://github.com/harvard-edge/cs249r_book/commit/3bbb0ae27aa85d8da10b591ec5323a18f86d4728) fix: fix GPT model to use Embedding Layer created in module 11 instead of re-defining token embedding and positional embedding ### 📊 Changes **1 file changed** (+17 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `tinytorch/src/13_transformers/13_transformers.py` (+17 -27) </details> ### 📄 Description - Instead of re-defining token embedding and positional embedding, the GPT should use the EmbeddingLayer class defined in module 11 - All Transformers module test passed and there is no regression --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-03 01:04:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#8894