This repository implements a cluster-centric optimization layer for LLM inference on next-generation Rubin GPUs from NVIDIA, focusing on:
- Memory traffic reduction
- Cross-GPU fabric traffic minimization
- Dynamic KV cache residency
- Topology-aware batching
- Energy per token cost model
Rubin’s memory hierarchy and interconnect fabric shift the cost bottleneck from compute to data movement.
This framework models and mitigates that with measurable gains.
- Lower HBM bandwidth pressure
- Reduce remote NVLink/NVSwitch traversal
- Increase utilization per GPU
- Show measurable inference cost improvements
- Topology-Aware KV Placement
- L2-centric KV Retention Policy
- Batch Sharding Orchestrator
- Fabric-aware Inference Scheduler
- Energy & Cost Analytics
| Metric | Baseline | RIEF Optimized |
|---|---|---|
| HBM Bandwidth | 85% | 70% |
| Cross-GPU Traffic | 30% | 14% |
| SM Utilization | 62% | 80% |
| Latency/token | 4.2ms | 3.4ms |
| Energy/token | high | ~-15% |
git clone https://github.com/<your>/rief
cd rief
pip install -r requirements.txt