Skip to content

Commit 175eed1

Browse files
committed
DOCS: Update README for transformer and torch lightning (callback reading)
1 parent 0223b95 commit 175eed1

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

Diff for: theory/transformer/README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
### Useful links:
1+
# Transformer
2+
3+
## Useful links:
24
* https://towardsdatascience.com/transformers-141e32e69591
35
* https://medium.com/inside-machine-learning/what-is-a-transformer-d07dd1fbec04
46
* https://arxiv.org/abs/1706.03762
57
* https://www.youtube.com/watch?v=rURRYI66E54&ab_channel=Computerphile
68
* https://www.youtube.com/watch?v=U0s0f995w14&ab_channel=AladdinPersson
79

8-
### Multi-Head Attention
10+
## Multi-Head Attention
911
* values (V)
1012
* keys (K)
1113
* queries (Q)
1214

13-
### Formulas
14-
attention(Q, K, V) = softmax((Q*K**T) / (sqrt(d_k)) * V
15+
## Formulas
16+
```math
17+
attention(Q, K, V) = softmax(Q*K**T) / (sqrt(d_k)) * V
18+
```
1519

16-
### More complex ideas / words / stuff
20+
## More complex ideas / words / stuff
1721
* permutationally invariant

Diff for: tools/pytorch_lightning/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PyTorch Lightning
2+
3+
## General
4+
* separating research code, engineering code and add-ons
5+
6+
## Architecture
7+
* `Trainer` -> engineering code
8+
* `LightningModule` -> research code
9+
* `Callback` -> add-ons
10+
11+
## Callbacks
12+
* `callback` is really a general term from CS, which means pluging-in some code to be executed at arbitrary point in the code, which means arbitrary time and state of code execution
13+
* in `lightning` some functionalities, like `early stopping`, `model checkpointing`, `logging`, `learning rate scheduling`, etc. are implemented as `callbacks`
14+
15+
## References
16+
* [part of yt tutorial on callbacks](https://www.youtube.com/watch?v=Wcze6oGch1g)
17+
* [docs, obviously](https://pytorch-lightning.readthedocs.io/en/1.0.8/callbacks.html)

0 commit comments

Comments
 (0)