~/talk

Gang Scheduling for Llama

links:none on file
links:none on file
slides:none on file

Llama 4 uses a MoE design with >2 trillion parameters but only activates ~17B for Maverick, forcing distributed inference. Twine implements gang scheduling to place tightly coordinated containers with collocation on the same backend network and MSB boundary, enforce shared fate (gang-level restarts and autoscale by whole gangs), and provide discovery/routing via SMC. Context parallelism splits 1M–10M contexts across many hosts to cut prefill latency; expert parallelism yields ~2× decode throughput. Twine’s gang model is deployed in production for Llama 4.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Why distributed inference matters
  3. 3:20Llama 4 models and MoE
  4. 5:54System bottlenecks in LLM
  5. 8:45Disaggregate prefill and decode
  6. 10:33Context parallelism for long inputs
  7. 11:38Expert parallelism for decode
  8. 13:44Combining parallelism methods
  9. 14:26Gang scheduling for inference
  10. 16:31Collocation and failure domains
  11. 18:20Shared fate and gang lifecycle
  12. 20:07Discovery and routing for inference
  13. 21:12Deploying with gang scheduling
  14. 22:16Complex gang scheduling example
  15. 23:01Conclusion and future challenges
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.