13Variable-length batches without padding: what is cu_seqlens, how does the kernel index it, and what is the bug that mixes sequences?▼mediumNewTogether AIFireworks AICohere◆ premiumPacking removes padding but puts different requests' tokens side by side in one tensor, so the kernel's tile boundaries no longer match sequence boundaries. The answer shows the indexing and a bug that a causal test can never catch.Open full answer →
15Design batch inference over 1 billion documents: embed each one and run a 70B model over each. How many GPUs, how long, what cost?▼hardNewOpenAIDatabricksSnowflake◆ premiumOffline work changes the regime: the batch is as big as memory allows, latency is irrelevant, and output tokens stop being expensive. The answer prices both passes in GPU-hours, finds which one is the bill, and cuts it.Open full answer →