papers-from-scratchSOTA architectures rebuilt in PyTorch
Published papers replicated tensor by tensor on Bengali data — no nn.Transformer, no nn.MultiheadAttention, no pre-built HuggingFace models.
Language Models are Unsupervised Multitask Learners·Radford et al., 2019
A 6.9M-parameter Bengali GPT-2, tokenizer included, pre-trained from random weights on one laptop. It writes fluent, Wikipedia-shaped Bengali, and the facts in it are invented.
- Params
- ~6.9M
- Tokens
- ~111M
- Pre-trained
- 4h 15m
- Bits/byte
- 0.6545
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding·Devlin et al., 2019
A 7.5M-parameter Bengali BERT, pre-trained from nothing on a laptop, that scores above published mBERT and IndicBERT on Bengali news classification.
- Params
- ~7.5M
- Corpus
- ~114MB
- Pre-trained
- ~28h
- Accuracy
- 86.5%
Attention Is All You Need·Vaswani et al., 2017
The original transformer rebuilt component by component, then trained to translate English into Bengali on one laptop.
- Params
- ~11M
- Paper
- ~65M
- Hardware
- M1, 16GB
- Data
- Samanantar
All projects→