5 releases

new 0.21.11 Mar 19, 2025
0.21.10 Feb 21, 2025
0.21.9 Jan 8, 2025
0.21.8 Dec 5, 2024
0.21.7 Sep 23, 2024

#1265 in Machine learning

Download history 86/week @ 2024-11-29 88/week @ 2024-12-06 9/week @ 2024-12-13 142/week @ 2025-01-03 87/week @ 2025-01-10 59/week @ 2025-01-17 33/week @ 2025-01-24 18/week @ 2025-01-31 26/week @ 2025-02-07 35/week @ 2025-02-14 161/week @ 2025-02-21 28/week @ 2025-02-28 15/week @ 2025-03-07 64/week @ 2025-03-14

270 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

1.5MB
40K SLoC

tract-metal

Updating Metal Flash Attention library

git clone https://github.com/philipturner/metal-flash-attention.git
cd metal-flash-attention

# for iOS
swift build.swift --platform iOS --xcode-path /Applications/Xcode.app
cp build/lib/libMetalFlashAttention.metallib path/to/tract/metal/src/kernels/libMetalFlashAttention-ios.metallib

# for MacOS
swift build.swift --platform macOS --xcode-path /Applications/Xcode.app
cp build/lib/libMetalFlashAttention.metallib path/to/tract/metal/src/kernels/libMetalFlashAttention-macos.metallib

Dependencies

~17–25MB
~351K SLoC