Horace He's Avatar

Horace He

@chhillee.bsky.social

@PyTorch "My learning style is Horace twitter threads" - @typedfemale

786 Followers  |  60 Following  |  13 Posts  |  Joined: 19.11.2024  |  1.5738

Latest posts by chhillee.bsky.social on Bluesky

Yep that's right! A very common use-case is for "document masking" (i.e. variable length sequences), and that requires recomputing the mask on every iteration (which isn't "free", but is on the order of microseconds to milliseconds and not seconds).

06.02.2025 22:22 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What does "there" mean in this case :)

02.01.2025 13:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Building Machine Learning Systems for a Trillion Trillion Floating Point Operations
YouTube video by Jane Street Building Machine Learning Systems for a Trillion Trillion Floating Point Operations

@chhillee.bsky.social's talk at Jane Street is now up!

youtu.be/139UPjoq7Kw?...

11.12.2024 12:19 β€” πŸ‘ 30    πŸ” 7    πŸ’¬ 0    πŸ“Œ 1

I’ll count it!

03.12.2024 08:22 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
GitHub - Smith42/astroPT: Transformer for galaxy images (and general astronomy) Transformer for galaxy images (and general astronomy) - Smith42/astroPT

Getting different attention masks working for AstroPT (a proto-foundation model for astronomy github.com/Smith42/astr...), so much nicer to do it with Flex Attention vs custom CUDA kernels -- thank you for releasing it to the world 🫑

02.12.2024 09:30 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Kinda interesting to me that the books I obsessively read as an elementary schooler are still some of the most popular series today.

01.12.2024 23:51 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
x.com

I think torch-xla is definitely usable if you don’t want to train anything particularly weird or use unusual parallelism schemes. See this tweet from Saining Xie’s lab on evaluating torchxla vs. Jax for their use case: x.com/tongpetersb/...

01.12.2024 08:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The other nice parts about TPUs is that Google gives much more of them out for free compared to GPUs. Arguably this reflects how much people want to use them, but I think it's been a great boon for the academic labs willing to go through the effort.

01.12.2024 02:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

I judge social networks by how many FlexAttention users I can find on each one, and by that metric, Bluesky is doing pretty good!

01.12.2024 02:21 β€” πŸ‘ 50    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

! What were you using it for?

01.12.2024 01:49 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

A lot of PyTorch is about dealing with this stuff nowadays!

01.12.2024 01:47 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Out of curiosity, what kind of shapes are you typically looking at?

01.12.2024 01:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Are they actually using FlexAttention here? I didn't see it in the repo

01.12.2024 01:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Vote on new features! Β· pytorch torchtitan Β· Discussion #693 Hi torchtitanists, Thank you for your interests in torchtitan! Please upvote on what features you would like to see next, and add one if it's not already there. We'll try to prioritize on the most ...

If you'd like to influence what features the PyTorch distributed team work on in torchtitan (e.g. MoE, multimodal, context parallelism, etc.), go made your voices heard here!

25.11.2024 19:06 β€” πŸ‘ 11    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

First thought: Seems kinda "FlexAttention-y": https://bsky.app/profile/sungkim.bsky.social/post/3lbjbfmyqts27

Second thought: oh cool, they're already using FlexAttention!

it's a nice usage of the `or_masks` and `and_masks` API - I think they do (causal & sliding_window) | (register_mask)

23.11.2024 01:55 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@chhillee is following 19 prominent accounts