Chuyển đến nội dung
tinAI
Quay lại

Real-time LLM Inference trên Datacenter GPU chuẩn — Kog đạt 3,000 tokens/s mỗi request

Bản dịch tiếng Việt của tinAI · Từ Real-time LLM Inference on Standard Datacenter GPUs (3,000 tokens/s per request) (blog.kog.ai) · Ngày gốc: · Dịch ngày:

Bài gốc: Real-time LLM Inference on Standard Datacenter GPUs (3,000 tokens/s per request) (blog.kog.ai)

Tác giả: Kog AI

Ngày đăng: Dịch ngày:

TL;DR

Kog AI ra mắt tech preview Kog Inference Engine (KIE): 3,000 output tokens/s per request trên 8× AMD MI300X và 2,100 trên 8× NVIDIA H200 (FP16, không speculative decoding) với model 2B. Cách họ làm: co-design model architecture, runtime, GPU code thành 1 hệ thống — monokernel runtime, KCCL collectives, Laneformer architecture — để cắt từng microsecond overhead.

Ước tính đọc: 5 phút

Tóm tắt

Kog AI ra Kog Inference Engine (KIE) — engine tối ưu cho single-request decode speed thay vì aggregate throughput. Số liệu tech preview:

Vì sao single-request decode speed mới là metric quan trọng cho agent

Benchmark inference thường confuse 3 thứ:

  1. Aggregate throughput (tổng token/s qua tất cả user) — đo server utilization, reward batch lớn
  2. Time to first token — đo prefill latency
  3. Decode speed per request — đo tốc độ generate token, decide user đợi bao lâu cho 1 response

Với agentic loop (inspect → plan → edit → test → revise), mỗi step phụ thuộc step trước, nên chỉ có decode speed per request mới matter. Ví dụ cụ thể: agent cần generate 50,000 tokens trong 1 workflow.

Productivity frontier giờ là intelligence × iteration speed, không chỉ intelligence.

Bottleneck thực sự là memory bandwidth, không phải FLOPS

Ở batch size 1, autoregressive decode chủ yếu là matrix-vector — mỗi token cần move toàn bộ active weights từ HBM xuống compute. Arithmetic intensity rất thấp: FP16 = ~1 FLOP/byte, FP8 = ~2, FP4 = ~4. Nhưng GPU hiện đại expose hàng trăm FLOPs per byte HBM bandwidth (H200 ~400 FLOPs/byte).

Kết luận: Memory Bandwidth Utilization (MBU) mới là metric quan trọng, không phải Model FLOP Utilization (MFU).

Bandwidth khả dụng trên 8-GPU node:

Speed-of-light upper bound cho model 2B FP16 (4 GB active weights):

Standard inference stack mất microsecond ở đâu

Ở 3,000 tokens/s, budget cho mỗi token là 333 microseconds — bao gồm tất cả layer, LM head, sampling. Trên model 25-layer, chỉ 1 microsecond extra mỗi layer là mất 7.5% time budget.

Vấn đề: standard stack (PyTorch/Triton + many kernels + CPU scheduler) tốn quá nhiều overhead:

Cách Kog co-design 3 layer

Monokernel runtime. Toàn bộ token generation chạy như 1 GPU program persistent — không break thành nhiều kernel. Decode cả sequence trong 1 pass không gián đoạn. Loại bỏ kernel boundary, CPU-side scheduling, sampling. Synchronization, communication, prefetch đều được control chặt chẽ.

KCCL collectives. Layer communication tự build, không dùng NCCL/RCCL. AllReduce latency dưới 3 µs (vendor libraries thường ~8 µs). Code tune tới mức assembly cho từng GPU architecture.

Laneformer model architecture. Innovation chính là Delayed Tensor Parallelism (DTP) — thay đổi dependency structure để cross-device communication overlap với useful computation, thay vì block critical path.

Chiplet-topology aware (MI300X case study):

Scale lên large MoE model

Với MoE, cái matter là active parameters per token (không phải total params). Bandwidth-only upper bound ở 80% lý thuyết trên 8-GPU node (output tokens/s):

Model (active, precision)8× H2008× MI300X8× B200/MI355X8× MI4508× Rubin
Qwen3-Coder-Next (3B, FP8)~10,200~11,200~17,100~41,800~46,900
GPT-OSS-120B (5.1B)~6,150~6,730~10,300~25,100~28,200
DeepSeek-V4-Flash (13B)~3,250~3,560~5,420~13,300~14,900
Kimi-K2.6 (32B, INT4)~915~1,000~1,520~3,730~4,190
DeepSeek-V4-Pro (49B)~860~940~1,430~3,500~3,940

Tech preview hiện đạt ~36% MBU. Chia số trên cho ~2.8 để có estimate thực tế:

Với next-gen GPU (MI450, Rubin) bandwidth 4x → cùng model có thể đạt 1,000–5,000 tokens/s/req trên large frontier MoE.

Ý nghĩa với Dev

Playground để test: playground.kog.ai


Đường dẫn nguồn

tinAI dịch bài này sang tiếng Việt từ Real-time LLM Inference on Standard Datacenter GPUs (3,000 tokens/s per request) (blog.kog.ai) · Loại nguồn: công ty/blog và giữ bối cảnh từ bản tin tinAI đã giới thiệu bài này .

Bản tin này có 6 bài dịch liên quan từ cùng bản tin.