Overview of llm_profile v0
mainThe llm_profile tool is a PyTorch-based profiler designed to measure LLM performance metrics for use in LLMServingSim. It measures:
- Layer latencies: Execution time for non-attention layers.
- Attention latencies: Execution time for attention mechanisms across various batch sizes and sequence lengths.
- Power consumption: GPU-level (via
nvidia-smi) and system-level (viaipmitool) power usage.
It supports dense and MoE (Mixture-of-Experts) architectures and generates CSV outputs and a scikit-learn-based attention latency predictor used for real-time latency prediction during simulation.