LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
- 109k
- Jupyter Notebook
- 1 h ago
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
This repository contain various types of attention mechanism like Bahdanau , Soft attention , Additive Attention , Hierarchical Attention etc in Pytorch, Tensorflow, Keras
A Pytorch tutorial for implementation of Dynamic memory Network Plus
Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch
TensorFlow implementation of 'Ask Me Anything: Dynamic Memory Networks for Natural Language Processing (2015)'
Interesting python codes to tackle simple machine/deep learning tasks
RWKV (pronounced RwaKuv) is an RNN with great LLM performance, which can also be directly trained like a GPT transformer (parallelizable). We are at RWKV-7 "Goose". So it's combining the best of RNN and transformer - great performance, linear time, constant space (no kv-cache), fast training, infinite ctx_len, and free sentence embedding.
all kinds of text classification models and more with deep learning
Implementation of Dynamic Memory Network Plus for Question-Answering. Tested on Induction tasks of bAbi 10K dataset.
A concise but complete full-attention transformer with a set of promising experimental features from various papers
| Name | Stars | License | Language | Last change | In common | Compare |
|---|---|---|---|---|---|---|
| SpringerNLP/Chapter9 | 12 | None declared | Jupyter Notebook | 7 y ago | ||
| rasbt/LLMs-from-scratch | 109k | None declared | Jupyter Notebook | 1 h ago | attention-mechanism | Compare |
| monk1337/Various-Attention-mechanisms | 128 | None declared | Python | 5 y ago | attention-mechanism, bahdanau-attention, keras | Compare |
| vlgiitr/dmn-plus | 64 | None declared | Jupyter Notebook | 8 y ago | dynamic-memory-network | Compare |
| lucidrains/vit-pytorch | 26k | MIT | Python | 6 h ago | attention-mechanism | Compare |
| ronekko/differentiable_neural_computer | 0 | MIT | Python | 9 y ago | differentiable-neural-computer | Compare |
| DongjunLee/dmn-tensorflow | 42 | None declared | Python | 9 y ago | dynamic-memory-network, question-answering | Compare |
| nndl/nndl | 20k | None declared | Unknown | 3 mo ago | attention-mechanism | Compare |
| 26hzhang/AmusingPythonCodes | 34 | MIT | Python | 4 y ago | dynamic-memory-network | Compare |
| BlinkDL/RWKV-LM | 15k | Apache-2.0 | Python | 3 wk ago | attention-mechanism | Compare |
| brightmart/text_classification | 7.9k | MIT | Python | 3 y ago | attention-mechanism, memory-networks | Compare |
| JRC1995/Dynamic-Memory-Network-Plus | 9 | MIT | Jupyter Notebook | 9 y ago | dynamic-memory-network, question-answering | Compare |
| lucidrains/x-transformers | 6k | MIT | Python | 7 d ago | attention-mechanism | Compare |