Skip to content

About

LLM Profiling with DeepSpeed Flops Profiler & Torch Profiler

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

llm-profiling

LLM Profiling with DeepSpeed Flops Profiler & torch profiler

Installation

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.txt

Usage

If 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.py

Please 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.py

If people are interested in torch.profiler with DeepSeek MoE, please checkout Bobchenyx/DeepSeek-V3/tree/llm-profiling


Citation

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}
}

Acknowledgements

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.

About

LLM Profiling with DeepSpeed Flops Profiler & Torch Profiler

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages