-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# Tensorli | ||
|
||
Absolute minimalistic implementation of a GPT-like transformer using only numpy. | ||
|
||
The implementation includes: | ||
- Automatic differentiation | ||
- `Tensorli` object (PyTorch like) | ||
- Simple NN layers: `Linearli`, `Embeddingli`, `MultiheadAttentionli`, `LayerNorm` | ||
- Optimizers: `Adamli` | ||
|
||
everything that is needed to train and execute a GPT-like transformer model. | ||
|
||
``` | ||
Everything else are optimizations. | ||
``` | ||
|
||
## Naming | ||
|
||
In the region where I grew up we have a word for "little" that is used as a suffix. For example, "little dog" would be "dogli". I thought it would be a nice name for a minimalistic implementation of a neural network library. | ||
|
||
### Caveats | ||
|
||
This library works but it is not optimized. It is not meant to be used in production. It is meant to be used as a learning tool. | ||
|
||
|
||
### Plans & Outlook | ||
|
||
- [ ] Add Dropout | ||
- [ ] Add more experimental architectures | ||
|