cache appreciator

505 posts

cache appreciator

cache appreciator

@highperfcache

nus, quant swe

Singapore Katılım Eylül 2024
164 Takip Edilen157 Takipçiler
sky
sky@skydotcs·
in the python mines
sky tweet media
English
5
2
23
1.6K
max fu
max fu@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 fu tweet mediamax fu tweet media
English
10
6
216
7.5K
Pierre L’Fauex
Pierre L’Fauex@LFauexProd·
Crazy that there was an era of photography where in most pictures a phenomenon would occur that turned everyone's eyes glowing red
English
141
1.2K
76.6K
5.5M
cache appreciator
cache appreciator@highperfcache·
@codybrown @FangYi11101 @RokoMijic No they’re quite accurate, Tuas is quite literally a vast industrial area. You could even add another 30min-1hr if they choose to go through immigration on a busy day.
English
0
0
1
31
codyb
codyb@codybrown·
@FangYi11101 @RokoMijic you are really reaching and also now just making up random stuff about "marshlands/industrial areas." No one who goes to NS thinks its in Singapore but its nice that its close. If Waterloo was an hour from NYC, they'd make reference to that as well... but it's ~13hrs by bus.
English
2
0
0
321
forward deployed ccp gf
forward deployed ccp gf@FangYi11101·
Balaji’s Network School does everything it can to avoid mentioning that it’s actually based in Malaysia. Too much aura loss.
forward deployed ccp gf tweet media
English
49
64
926
181.4K
Zane Chee
Zane Chee@injaneity·
looking for a good skill or plugin for generating wikis of very condensed information (like technical documentation). anyone have some recommendations?
English
1
0
1
98
Brian Chew
Brian Chew@brianchew·
Time check 07:15! 15 hours flight to touchdown in SFO!
Brian Chew tweet media
English
6
0
44
1.8K
forward deployed ccp gf
forward deployed ccp gf@FangYi11101·
This also happened to me. First thing they asked was “你会说普通话吗?” for a role in the Bay Area
forward deployed ccp gf tweet media
中文
15
5
358
30.7K
unusual_whales
unusual_whales@unusual_whales·
"AI can cost more than human workers now," per Axios
English
598
1.7K
14.9K
7.6M
cache appreciator
cache appreciator@highperfcache·
@injaneity schedule this year is very ai-skewed, apart from the cpython talk which i would find the most interesting
English
1
0
1
25
Zane Chee
Zane Chee@injaneity·
anyone been to previous editions of pycon singapore? curious if its useful / interesting
English
1
0
1
193
Sara Hooker
Sara Hooker@sarahookr·
First time I have seen a cyclist lane go through a mall. How does this work? Speed is set to 10km/h
Sara Hooker tweet mediaSara Hooker tweet media
English
17
0
56
9.1K
Peter Dedene
Peter Dedene@dedene·
It’s so dumb. I get that the subsidies can’t keep going like this forever, but this will just drive everyone to use OpenAI or the Chinese model providers. You can only lose developer goodwill so many times. I begin to suspect the PR/Marketing department of Anthropic is being run by Haiku
English
4
0
60
11.8K
Wes Winder
Wes Winder@weswinder·
anthropic just downgraded claude code subs programmatic usage previously used your full rate limits which was something like a 5-10X discount vs api costs now ALL programmatic usage is capped at $20/$100/$200 in api costs (a single opus session can easily burn $20) not good
ClaudeDevs@ClaudeDevs

Starting June 15, paid Claude plans can claim a dedicated monthly credit for programmatic usage. The credit covers usage of: - Claude Agent SDK - claude -p - Claude Code GitHub Actions - Third-party apps built on the Agent SDK

English
116
66
1.6K
448.2K
scoff manifesto
scoff manifesto@andimgladofit·
@Sketchapotamus @FangYi11101 if i was going to use some boring shizo language id just use brainfuck. the point is for me to spend 1.5 hours talking about lambda calculii
English
1
0
17
669
forward deployed ccp gf
forward deployed ccp gf@FangYi11101·
interview candidate tmr wants to do the technical round in C++ fml
English
23
2
577
495.6K
Emmett Shear
Emmett Shear@eshear·
It’s an honor just to be nominated
English
217
243
9.8K
622.3K