Skip to content

Conversation

@CUHKSZzxy
Copy link
Collaborator

@CUHKSZzxy CUHKSZzxy commented Dec 12, 2025

Motivation

  1. Convenient image benchmarking, adapted from
    https://github.com/sgl-project/sglang/blob/main/python/sglang/bench_serving.py

  2. Faster base64 encode / decode
    vLLM & SGLang both adopt pybase64 for faster base64 encode / decode. I would recommend similar updates in lmdeploy.

Usage

Benchmark usage

python benchmark/profile_restful_api.py \
     --backend lmdeploy-chat \
     --dataset-name image  \
     --num-prompts 100 \
     --random-input-len 100 \
     --random-output-len 100 \
     --random-range-ratio 1 \
     --image-format jpeg \
     --image-count 1 \
     --image-content random \
     --image-resolution 1024x1024 \
     --port 23333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant