Junu Park (@junupark_) profile picture

LOCKED IN.

Joined September 2023
Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)Photo by Junu Park (@junupark_)
Junu Park retweeted
Many people have asked what @inferact is building and what it means for @vllm_project. This is the answer: Inferact will build an autonomous inference system around vLLM, one that improves the engine and improves itself.
53
99
25
839
91,758
Junu Park retweeted
I spent $1.7 on GPU compute.
1
1
61
1,545
Junu Park retweeted
I manually inspected 40,000 animations to post train an LLM to make demoscenes. Scraped 10 years of demos, did continued pretraining, curriculum learning and finally RLHF-ed with myself as the reward function. Yes, models can have "taste". All you need is data. 1/6
23
46
7
674
21,333
Junu Park retweeted
DeepSeek just open sourced its high-performance, large-scale inference framework DeepInfer in Apache-2.0 license. github.com/deepseek-ai/DeepI… Supported features: - Optimized kernels, model and sampler runtime - Parallelism: Attention DP / balanced CP, MoE EP + EPLB - DSpark and confidence-scheduled verification - SWA bounded replay - Asynchronous scheduling (zero-overhead batch scheduler) - Batch-invariant inference - Deterministic sampling - Structured output
211
210
148
2,591
327,870
Junu Park retweeted
Introducing Anatomy Describe a machine in one line. Claude brings it to life. - Interactive isometric wireframes you can rotate, inspect and explore - WebGL shaders for fire, water, plasma and more - Real 3D motion, with individual parts that rotate and move Install it as an agent skill. Fully open source.
432
1,593
671
18,236
2,710,295
Junu Park retweeted
I’m in Seoul building Mistral’s founding Korea team. Looking for kind, ambitious researchers and engineers to build and customise LLMs for real problems, from data and evals to RL and training at scale. Here until 16th October. DM me or apply here: jobs.ashbyhq.com/mistral.ai/…
60
99
11
1,171
67,491
Junu Park retweeted
Most of us don't have access to multi-million dollar NVIDIA gpu sleds (if you do, hit me up). But I wanted to learn how they work, so i build a 3d guide! Unified GPU / CPU systems like this are what's powering all these mega-ai DCs. Incredible what educational tools you can build with llms.
53
166
12
1,548
63,223
Junu Park retweeted
I spent last few months Learning LLM Inference. Here are the best resources I have come across. 1. 𝐅𝐨𝐮𝐧𝐝𝐚𝐭𝐢𝐨𝐧𝐬 𝐨𝐟 𝐋𝐋𝐌 𝐈𝐧𝐟𝐞𝐫𝐞𝐧𝐜𝐞 Understand what happens when you make an LLM call. Tokenisation Forward pass Autoregressive generation Prefill Decode KV Cache TTFT & ITL Throughput & Latency 📌 𝐑𝐞𝐬𝐨𝐮𝐫𝐜𝐞𝐬 AI Engieerning’s talk: youtube.com/watch?v=9tvJ_GYJ… Blog post: modelcraft.substack.com/p/th… 𝐁𝐚𝐬𝐢𝐜 𝐓𝐫𝐚𝐧𝐬𝐟𝐨𝐫𝐦𝐞𝐫 𝐂𝐨𝐧𝐜𝐞𝐩𝐭𝐬 𝐟𝐨𝐫 𝐈𝐧𝐟𝐞𝐫𝐞𝐧𝐜𝐞 You don't need to become a transformer researcher. But you should understand the computations that inference engines are trying to optimise. Focus on: Transformer block Embeddings Self-attention Query, Key and Value vectors 📌 𝐑𝐞𝐬𝐨𝐮𝐫𝐜𝐞𝐬 LLM Visualizer bbycroft.net/llm 3. GPU & Hardware Fundamentals Many inference bottlenecks are caused by hardware. Understanding GPUs completely changes how you think about performance. Topics worth learning: GPU architecture Streaming Multiprocessors (SMs) HBM vs SRAM Memory hierarchy Memory bandwidth FLOPS Compute-bound vs memory-bound workloads 📌 𝐑𝐞𝐬𝐨𝐮𝐫𝐜𝐞𝐬 Making deep learning go brrr by Horrace He: horace.io/brrr_intro.html 4. Inference Optimisation Techniques Understand how modern inference systems become fast by using inference optimization strategies Quantization PagedAttention FlashAttention Chunked prefill Speculative decoding Prompt caching Continuous batching Resources NVIDIA- Mastering LLM Inference Optimization: developer.nvidia.com/blog/ma… Paper of each technique if you enjoy a deep dive 5. Inference Engines See how inference engines work. Different engines excel at different workloads. vLLM: best general-purpose, battle-tested, built for high-throughput serving SGLang: shines when requests share context: multi-turn chat, agentic tool calls, RAG llama.cpp: go-to for CPU and edge deployment Resources Inside vLLM by Aleksa Gordić, the best single deep dive I have seen aleksagordic.com/blog/vllm Distributed LLM Inference bentoml.com/blog/the-shift-t… Happy learning!
7
74
608
40,509
Junu Park retweeted
been on x for a while, but never properly introduced myself, so here goes :) i'm pradheep. mostly just a curious person who loves math, c++ and reinforcement learning. alphago is what pulled me into rl in the first place, mainly because of how learning, search and mathematical ideas all came together so beautifully. i usually understand things properly only after trying to build them myself, so most of what i share here ends up being projects, experiments, paper notes, and whatever i'm currently trying to figure out. this is where i log most of what i build and write: pradheep.dev i've posted enough stuff now that most of it gets buried after a while, so i'm keeping this thread for the things i've built and written. i'll keep adding more whenever something feels worth keeping here 🧵
1
1
1
43
6,695
Junu Park retweeted
Meet DiffusionGemma! An experimental open model that explores a fast approach to text generation, released under an Apache 2.0 license. Moving beyond sequential, token-by-token processes to generate entire blocks of text simultaneously. Here’s what’s new with DiffusionGemma: 👇
161
794
273
4,938
1,006,382
Junu Park retweeted
After some mathematical rewrite, turns out all of transformer is a series of gemm + epilogue. Given a few optimized primitives, LLMs (and novice humans) can write speed-of-light kernels for all transformer ops!
LLM training is built on fast MatMuls. But many surrounding ops still run as memory-bound kernels. CODA reparameterizes them to hide in the matmul’s shadow, fused into its epilogue before results leave the chip. Bonus: LLMs can write fast CODA kernels too (approaching SoLs).
17
126
9
1,203
135,977
Junu Park retweeted
Modular's first Seoul developer meetup is coming up, co-hosted with SqueezeBits! 🇰🇷 Mark your calendars: May 19th at Belgium Jazz Cafe near COEX. The agenda includes Mojo, MAX, a session from the SqueezeBits team, a special message from @clattner_llvm, and a GPU raffle. Save your spot: luma.com/modular-seoul
1
6
1
18
4,597
As a core developer of SGLang Omni, I gained far more engineering insight than I expected while working on serving optimization for Fish Audio's S2 Pro. When you actually trace the full inference pipeline of a Dual-AR architecture end to end — and then push it through CUDA Graph optimization step by step — you start to appreciate how elegant the design really is. The token interaction pattern between the two AR layers introduces very different challenges for KV cache management, scheduling strategies, and graph capture boundary conditions. It was precisely through this hands-on optimization work that I built a systematic understanding of modern speech model Thinker-Talker architectures and TTS inference pipelines. Huge congrats to the Fish Audio team on both the architecture design and this impressive blind test result. I've distilled these engineering experiences into two technical deep-dives — happy to hear your thoughts: 🔗 A deep dive into Omni model inference architectures (CodeC / RVQ / Dual-AR / Thinker-Talker): linkedin.com/pulse/codecrvqd… 🔗 Revisiting CUDA Graph: core mechanisms and multi-graph memory optimization: linkedin.com/pulse/revisitin… We're continuously optimizing TTS and Omni model serving in SGLang Omni — contributions and feedback are always welcome 🙌
Fish Audio performed a 10-day blind test across 5,098 real user comparisons on production traffic. Our S2 Pro model ranked #1 overall with a 66% win rate - outperforming the next closest competitor by over 60%. - S2 Pro beat ElevenLabs V3 60% to 40% - S2 Pro beat Inworld 80% to 20% - S2 Pro beat MiniMax 95% to 5% - #1 in every language tested No one knew they were part of a test. They just picked the voice they liked more. Check full methodology and results here → fish.audio/blog/blind-tts-pr…
3
5
92
9,790
Junu Park retweeted
understanding the vllm v1 engine in detail vllm is pretty much an industry standard for serving llm. i have been trying to understand the design and the code and this is my general idea for the latest v1 engine. in v0, the entire lifecycle of a request - receiving it from the user, preprocessing it, tokenizing, handling any multimodal inputs, scheduling the request, running the forward pass on the gpu, detokenizing the output, and finally returning the result all of this happened sequentially in a single process. this means the gpu sits idle every time the cpu is working. for large models the gpu dominates and you barely notice so its probably okay but for smaller models, this cpu overhead becomes the actual bottleneck, and you're wasting a significant chunk of your available throughput on work that has nothing to do with actual inference. v1 solves this by splitting the system into two separate processes that communicate via zeromq. the first process is the api that is responsible for all the cpu-heavy work - receiving user requests, tokenizing the input, preprocessing, detokenizing results, and streaming them back to the user. the second process is called enginecore, and it does one thing, run a loop that schedules requests and hammer the gpu. because these two processes run independently and communicate asynchronously through sockets and queues, the cpu work and the gpu work now happen at the same time. this overlap is the core performance win in v1. when you call generate() on an llm object, the main thread sends each prompt to enginecore via a socket. inside the enginecore process, a dedicated thread is always listening on that socket, deserializing incoming requests and pushing them into an input queue. the main enginecore reads from that queue, adds the requests to the scheduler's waiting queue, calls step() to run a forward pass, and pushes the output tokens into an output queue. a third thread picks those outputs off the output queue, serializes them, and sends them back through the socket to the client process. meanwhile back in the client process, a background thread is always reading from that return socket and populating an output queue that the main thread drains. the main thread never waits for gpu execution, it just keeps polling the output queue and processing whatever has arrived. the kv cache management system was also improved. v0 had two separate allocators one for cached (prefix-reusable) blocks and one for uncached blocks plus an evictor component that managed which cached blocks to kick out when memory got low. this three component design made the allocation logic complex and introduced overhead proportional to cache size. v1 replaces all of it with a single block pool by a doubly-linked lru free queue. every kv cache block in the system is pre-allocated at startup and linked into this queue. allocating a block is just popping from the head of the queue O(1) always. releasing a block is pushing to the tail. if the block being evicted had a hash mapping in the prefix cache table, that mapping is lazily removed at eviction time rather than eagerly at release time. the result is that the entire allocate/evict cycle is constant time regardless of how many blocks are in the system or how hot the prefix cache is. because the kv cache management overhead is now essentially zero, v1 enables prefix caching by default. in v0 there was a reason to turn it off with a 0% hit rate, the overhead of managing the cached block table actually degraded performance compared to uncached operation. in v1 that tradeoff no longer exists. prefix caching is always on, and on repeated or similar prompts you get cache hits for free. the prefix hash is computed per block using a rolling hash over the token ids, and because vllm uses prefix hashing, a single differing token early in the sequence invalidates all subsequent block hashes - so cache lookups can terminate early on a miss rather than checking every block. the scheduler is also simplified. v0 maintained three queues - waiting, running, and swapped. the swapped queue held preempted requests whose kv cache had been copied from gpu memory to cpu ram to free up vram for higher-priority requests. this cpu to gpu memory transfer was expensive. v1 deletes the swap queue entirely. when a request is preempted, its kv cache blocks are simply released back into the free queue of the blockpool and the request goes back into the waiting queue. when it gets rescheduled, it checks the prefix cache and because the block hashes are still in the cached_block_hash_to_block table there's a good chance the kv cache is still physically intact and the request can resume without recomputing anything. preemption and resumption become almost free. the v1 scheduler also drops the distinction between prefill and decode phases entirely. in v0, prefill and decode were treated as different operations with separate scheduling logic. v1 represents every request simply as 'tokens computed so far' vs 'total tokens needed.' each scheduling step tries to close this gap up to the token budget allocated. this means a long prompt can be processed in chunks across multiple steps, a decoding request that gets preempted resumes naturally, and the entire scheduling logic collapses into a single unified loop. this is also why chunked prefill is always enabled by default and should ideally give you a better performance.
8
11
1
121
6,662
Junu Park retweeted
Happy to be featured at the podcast! It was a really fun conversation.
"Actually, we (vllm) get more users from the simple UX than vllm performance" For our third guest, we welcome @woosuk_k, co-founder & CTO of @inferact and creator of @vllm_project. To us, Woosuk is a unique guest, and we are amazed by the user-centric perspective on LLM inference he shared — from what makes the vLLM project successful, to new application scenarios to tailor inference to, and to how to support continual learning from user signals, and more. 0:00 - Prelude: Introducing Woosuk and Inferact 3:00 - Woosuk’s First PhD Project 6:00 - How the vLLM Project Got Started 9:18 - AI Infra Needs More Than Just Efficiency 14:08 - How AI Infra and Human-centered AI Are Connected 15:01 - How to Prioritize Feature Requests for Popular AI Infra 18:18 - Streaming Requests and Realtime API 24:05 - Multi-turn, Agentic, Proactive LLMs 27:03 - How to Design AI Infra in a Principled Way 29:13 - How to Design an AI Inference Engine for Continue Learning with RL 35:05 - Would LoRA Training Affect RL Infra Design? 37:28 - Why Start an AI Inference Infra Startup? 40:46 - What Effortless Inference with Open-source Models Means for Developers 43:46 - A Vision for On-device AI Inference 46:19 - Can Today’s Coding Agents Create vLLM?
2
6
35
6,075
Replying to @Zyyon_
Please don’t tell anyone: we aren’t just open sourcing all the models. We are doing the unspeakable: open sourcing all the gpu kernels too. Making them run on multivendor consumer hardware, and opening the door to folks who can beat our work. Plz keep it quiet, ok? 😉
17
82
14
1,470
103,665
Junu Park retweeted
Maintaining separate attention kernels for every GPU platform doesn't scale. The vLLM Triton attention backend takes a different approach: ~800 lines of Triton, same source code across NVIDIA, AMD, and Intel GPUs. On H100, it matches state-of-the-art attention performance. On MI300, ~5.8x faster than earlier implementations. The blog covers Q blocks for better dot utilization, parallel tiled softmax for decode, persistent kernels for CUDA graph compatibility, and cross-platform benchmarking. Now the default attention backend on AMD ROCm, also available on NVIDIA and Intel. 📖 Deep dive: blog.vllm.ai/2026/03/04/vllm… Thanks to @IBMResearch, @RedHat_AI, and @AIatAMD for driving this work!
6
62
4
557
84,937
Junu Park retweeted
there is still no substitute for perfectly understanding every single line of code in your codebase i fall into the trap of just skimming through ai changes to "just make sure it looks good" all the time, and it makes me lose so much time to not perfectly understand every line
153
89
45
2,631
325,636