File: projects.md

package info (click to toggle)
python-einops 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,584 kB
  • sloc: python: 4,105; makefile: 6
file content (64 lines) | stat: -rw-r--r-- 2,925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Einops tutorials cover multiple einops usages (and you'd better first follow tutorials), 
but it can also help to see einops in action.


## Selected projects

Here are some open-source projects that can teach how to leverage einops for your problems


- [@lucidrains](https://github.com/lucidrains) has a dramatic [collection of vision transformers](https://github.com/lucidrains/vit-pytorch)
    - there is a plenty of good examples how to use einops efficiently in your projects


- lambda networks (non-conventional architecture) implemented by @lucidrains
    - nice demonstration how clearer code can be with einops, even compared to description in the paper 
    - [implementation](https://github.com/lucidrains/lambda-networks) and [video](https://www.youtube.com/watch?v=3qxJ2WD8p4w)


- capsule networks (aka capsnets) [implemented in einops](https://github.com/arogozhnikov/readable_capsnet)
    - blazingly fast, concise (3-10 times less code), and memory efficient capsule networks, written with einops  


- [NuX](https://github.com/Information-Fusion-Lab-Umass/NuX) — normalizing flows in Jax
    - different rearrangement patterns in normalizing flows have nice mapping to einops


- For video recognition, look at [MotionFormer](https://github.com/facebookresearch/Motionformer) 
  and [TimeSFormer](https://github.com/lucidrains/TimeSformer-pytorch) implementations


- For protein folding, see [implementation](https://github.com/lucidrains/invariant-point-attention)
  of invariant point attention from AlphaFold 2


## Community introductions to einops

Tutorial in the AI summer about einops and einsum:
<https://theaisummer.com/einsum-attention/>

Introduction to einops by Kapil Sachdeva
<https://www.youtube.com/watch?v=xGy75Pjsqzo>

Implementing visual transformer in pytorch:
<https://towardsdatascience.com/implementing-visualttransformer-in-pytorch-184f9f16f632>

Refactoring machine learning code, one of posts in a series is devoted to einops:
<https://www.paepper.com/blog/posts/refactoring-machine-learning-code-einops/>

ML TLDR thread on einops:
<https://twitter.com/mlsummaries/status/1400505282543955970>

Book "Deep Reinforcement Learning in Action" by Brandon Brown & Alexander Zai
contains an introduction into einops in chapter 10.



## Related projects:

- [numpy.einsum](https://numpy.org/doc/stable/reference/generated/numpy.einsum.html) &mdash; grand-dad of einops, this operation is now available in all mainstream DL frameworks 
- einops in Rust language <https://docs.rs/einops/0.1.0/einops>
- einops in C++ for torch: <https://github.com/dorpxam/einops-cpp>
- tensorcast in Julia language <https://juliahub.com/ui/Packages/TensorCast>
- for those chasing an extreme compactness of API, <https://github.com/cgarciae/einop> provides 'one op', as the name suggests
- <https://github.com/fferflo/einx> goes in opposite direction and creates einops-style operation for anything