- 23 Jul, 2023 10 commits
-
-
Tri Dao authored
-
Tri Dao authored
-
Joel Lamy-Poirier authored
-
Tri Dao authored
-
Kiarash Jamali authored
-
Ian Timmis authored
* README syntax highlighting Adds syntax highlighting to README * Update README.md
-
Tri Dao authored
-
Tri Dao authored
-
Tri Dao authored
-
Tri Dao authored
-
- 22 Jul, 2023 1 commit
-
-
Tri Dao authored
-
- 21 Jul, 2023 2 commits
- 20 Jul, 2023 2 commits
- 19 Jul, 2023 4 commits
-
-
Tri Dao authored
[LayerNorm] Fix typo in ln_api.cpp
-
Ikko Eltociear Ashimine authored
unintialized -> uninitialized
-
Tri Dao authored
Fix compile error with `BOOL_SWITCH`
-
- 18 Jul, 2023 2 commits
- 17 Jul, 2023 2 commits
- 16 Jul, 2023 1 commit
-
-
Tri Dao authored
Metal FlashAttention
-
- 15 Jul, 2023 3 commits
-
-
Philip Turner authored
-
Philip Turner authored
-
Philip Turner authored
-
- 08 Jul, 2023 2 commits
-
-
Tri Dao authored
rotary: update cos/sin cache when switching from inference mode
-
Volodymyr Kyrylov authored
This resolves RuntimeErrors after running evaluation in inference mode: ``` File "/home/proger/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "/home/proger/.local/lib/python3.10/site-packages/flash_attn/modules/mha.py", line 492, in forward qkv = self.rotary_emb(qkv) File "/home/proger/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "/home/proger/.local/lib/python3.10/site-packages/flash_attn/layers/rotary.py", line 229, in forward return apply_rotary_emb_qkv_( File "/home/proger/.local/lib/python3.10/site-packages/torch/autograd/function.py", line 506, in apply return super().apply(*args, **kwargs) # type: ignore[misc] RuntimeError: Inference tensors cannot be saved for backward. To work around you can make a clone to get a normal tensor and use it in autograd. ```
-
- 06 Jul, 2023 1 commit
-
-
Tri Dao authored
-
- 04 Jul, 2023 1 commit
-
-
Tri Dao authored
-
- 03 Jul, 2023 4 commits
-
-
Tri Dao authored
-
Tri Dao authored
-
Tri Dao authored
-
Tri Dao authored
I haven't found an easy way to add torch as a build dependency in pyproject.toml. If we add torch in pyproject.toml, for some setup it would download a different version of Pytorch before building. If we don't add torch, lots of users report they get error when installing.
-
- 02 Jul, 2023 1 commit
-
-
Tri Dao authored
-
- 02 Jun, 2023 2 commits
- 30 May, 2023 2 commits