sky

15.2K posts

sky banner
sky

sky

@skydotcs

fun guy

Katılım Mart 2024
1.4K Takip Edilen8.6K Takipçiler
Shea Levy
Shea Levy@shlevy·
We lost this sweet old girl yesterday. 12 good years.
Shea Levy tweet media
English
4
0
27
340
sky
sky@skydotcs·
*deer fml…
English
0
0
0
199
sky
sky@skydotcs·
i miss japan, here’s a shot right before i was assaulted by a dear
sky tweet media
English
2
0
10
469
sky
sky@skydotcs·
mfw you checkout the company github and see two kinds of pfps
sky tweet mediasky tweet media
English
24
108
3.2K
54.6K
sky
sky@skydotcs·
@gi0nyx LETS GOOOOOOO
English
0
0
1
56
gion
gion@gi0nyx·
finally
gion tweet media
English
17
0
74
1.9K
sky
sky@skydotcs·
infiltrated slack time to ping moot
sky tweet mediasky tweet media
English
0
0
35
2K
max
max@maxxfuu·
Day 6/90 of Inference Engineering I wrote a CUDA kernel for 1D Convolution, just getting the reps in for writing unoptimized boring but correct CUDA! I also read PagedAttention (2312.07104), watched 1 short lecture on GPU Memory, and hack squatted 455lb x6 and 495lb x3 as a top set! Heres what I've learned about PagedAttention: PagedAttention reduces internal fragmentation and solves external fragmentation. During the decode phase, the KV cache manager actually hands out one cache block at a time to store output tokens. If the output tokens overflows the cache block, the KV cache manager assigns a new cache block to hold the remaining tokens that didn't fit into the previous cache block. What ends up happening is that the VRAM is used effectively such that each cache block is filled before new cache block is allocated on the VRAM. In a naive KV cache implementation, memory is reserved up front for the maximum sequence length, which might not ever be used, meaning there is just a massive chunk of VRAM that's not touched. PagedAttention reduces internal fragmentation by ensuring memory is never wasted between each decode sequence. To make usage of memory even more efficient, any unique prompts that share the same prefix tokens, the KV cache manager allows them to share the same cache block, however, it writes to a new cache block starting from where the new tokens differ within the two prompts. While each decode phase effectively writes to random parts of the VRAM, the Block table is able to provide an abstraction that makes KV cache seem like a contiguous memory to the model. Making the allocation process as simple as checking if a cache block is full or not. This continuous practice of using cache blocks to allocate just enough memory and using a block table to allocate non-contiguous free scattered memory on the VRAM reduces internal fragmentation and solves external fragmentation. --- Watched a video on GPU Memory: youtube.com/watch?v=Zrbw0z… I read this blog that made absolutely cemented everything, written by (@hamzaelshafie): hamzaelshafie.bearblog.dev/paged-attentio…
YouTube video
YouTube
max tweet mediamax tweet media
English
10
6
212
7.4K
pdawg
pdawg@prathamgrv·
career update: my time at my dream job, Microsoft, has come to an end. i'm going full time as founder at @tensortonic. started as a pet project for myself in a private repo. now it powers thousands of people writing ML and GPU code daily, closing in on 50K users. i went all in because the ceiling kept moving. inbounds from universities, edtech platforms, companies wanting it for their engineers. people proudly sharing on linkedin, X, instagram. none of which i sought out, which made the decision feel easy. is it a kaggle competitor? leetcode for ML? a cloud IDE? it's been called all three, and i'm not in a hurry to explain it. more soon.
pdawg tweet media
English
133
15
1.5K
46.3K
sky
sky@skydotcs·
@maxxfuu @pangram in this day and age human slop is much better than ai slop in terms of writing!
English
0
0
1
40
max
max@maxxfuu·
@skydotcs @pangram im putting my reputation on the line and documenting everything. theres a higher chance of you seeing human slop than AI slop LOL
English
1
0
1
32
Pangram
Pangram@pangram·
@skydotcs @maxxfuu We believe that this document is fully human-written pangram.com/history/db7456…
Pangram tweet media
max@maxxfuu

Day 6/90 of Inference Engineering I wrote a CUDA kernel for 1D Convolution, just getting the reps in for writing unoptimized boring but correct CUDA! I also read PagedAttention (2312.07104), watched 1 short lecture on GPU Memory, and hack squatted 455lb x6 and 495lb x3 as a top set! Heres what I've learned about PagedAttention: PagedAttention reduces internal fragmentation and solves external fragmentation. During the decode phase, the KV cache manager actually hands out one cache block at a time to store output tokens. If the output tokens overflows the cache block, the KV cache manager assigns a new cache block to hold the remaining tokens that didn't fit into the previous cache block. What ends up happening is that the VRAM is used effectively such that each cache block is filled before new cache block is allocated on the VRAM. In a naive KV cache implementation, memory is reserved up front for the maximum sequence length, which might not ever be used, meaning there is just a massive chunk of VRAM that's not touched. PagedAttention reduces internal fragmentation by ensuring memory is never wasted between each decode sequence. To make usage of memory even more efficient, any unique prompts that share the same prefix tokens, the KV cache manager allows them to share the same cache block, however, it writes to a new cache block starting from where the new tokens differ within the two prompts. While each decode phase effectively writes to random parts of the VRAM, the Block table is able to provide an abstraction that makes KV cache seem like a contiguous memory to the model. Making the allocation process as simple as checking if a cache block is full or not. This continuous practice of using cache blocks to allocate just enough memory and using a block table to allocate non-contiguous free scattered memory on the VRAM reduces internal fragmentation and solves external fragmentation. --- Watched a video on GPU Memory: youtube.com/watch?v=Zrbw0z… I read this blog that made absolutely cemented everything, written by (@hamzaelshafie): hamzaelshafie.bearblog.dev/paged-attentio…

English
1
0
2
125
sky
sky@skydotcs·
@ptr_to_joel lmao i rmb doing squats + deadlifts for legs way back brain was absolutely fried by the load 💀
English
1
0
2
148
Joel 🇦🇺
Joel 🇦🇺@ptr_to_joel·
squats followed by pause deadlifts my body is kill
English
3
0
10
649
maria
maria@maria_rcks·
I solved the model picker problem, no need to thank me Tibo
English
407
366
11K
1.5M
sky
sky@skydotcs·
@gnshnor what game is this
English
1
0
0
324
jack
jack@gnshnor·
"Hey, what's the shape of the pollution map?" "Uhhhh, a boot?" *kicked*
jack tweet media
English
3
0
2
522
sky
sky@skydotcs·
happy grad to the class 2026 uncs
sky tweet media
English
39
1
256
12.7K