LLM Profiling with DeepSpeed Flops Profiler & torch profiler
git clone https://github.com/Bobchenyx/llm-profiling.git
cd llm-profiling
conda create -n llm-profiling python=3.10 -y
conda activate llm-profiling
pip install -r requirements.txtIf you need to download the model to your local machine, please refer to the hf.py script.
# pip install huggingface_hub hf_transfer
python hf.pyPlease remember to specify the model path before running the script.
CUDA_VISIBLE_DEVICES=0,1,2,3 python llm-profiler.py 2>&1 | tee logs/<llm-provider>.log
Sample output provided in logs/ dir.
For Qwen3 with vllm
CUDA_VISIBLE_DEVICES=0,1,2,3 python qwen3-vllm.pyIf people are interested in torch.profiler with DeepSeek MoE, please checkout Bobchenyx/DeepSeek-V3/tree/llm-profiling
If this work is helpful, please kindly cite as:
@article{chen2025collaborative,
title={Collaborative Compression for Large-Scale MoE Deployment on Edge},
author={Chen, Yixiao and Xie, Yanyue and Yang, Ruining and Jiang, Wei and Wang, Wei and He, Yong and Chen, Yue and Zhao, Pu and Wang, Yanzhi},
journal={arXiv preprint arXiv:2509.25689},
year={2025}
}This repository builds upon the outstanding work of the following open-source authors and projects:
We sincerely thank them for their excellent contributions to the open-source community.