8000
Skip to content

Collection of deep learning implementations from scratch (Transformers, Scala autograd, BPE Tokenizer, N-gram models) – educational study repo

Notifications You must be signed in to change notification settings

AbdoAlshoki2/DL-scratch-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Learning from Scratch – Study Implementations

This repository collects several deep learning and NLP implementations I originally developed as separate repositories.
They have now been consolidated here under one roof since they share the same goal:
to practice building core deep learning components from scratch, for learning purposes.

Each subfolder was once its own repo and contains:

  • Source code for the implementation
  • A dedicated README with explanations and usage examples

⚠️ These projects are educational and not production-ready.
They are focused on learning the mechanics behind modern DL models rather than delivering polished libraries.


Projects

Minimal implementation of the Transformer architecture.
Includes:

  • Encoding layer
  • Attention mechanism
  • Simple analysis script

Focus: understanding the Transformer pipeline step by step.


A scalar autograd engine (inspired by micrograd).
Includes:

  • engine.py: core automatic differentiation
  • nn.py: simple neural network utilities

Focus: building intuition for backpropagation and how autodiff engines work.


Byte Pair Encoding (BPE) tokenizer implementation.
Includes:

  • Core BPE algorithm
  • Tokenizer class with encode/decode methods

Focus: understanding subword tokenization in modern NLP pipelines.


Character-level statistical language model using n-grams.
Includes:

  • Bi-gram implementation
  • N-gram generalization

Focus: exploring classic n-gram models for text generation.


How to Use

Each subproject is self-contained.
Navigate into any folder and check its README for details:

git clone https://github.com/AbdoAlshoki2/dl-scratch-study.git
cd dl-scratch-study/Naive_Transformer

About

Collection of deep learning implementations from scratch (Transformers, Scala autograd, BPE Tokenizer, N-gram models) – educational study repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0