feat(llama2-70b): Add multinode to SUT_API.py for the offline scenario#2391
Open
mrzzy wants to merge 24 commits intomlcommons:masterfrom
Open
feat(llama2-70b): Add multinode to SUT_API.py for the offline scenario#2391mrzzy wants to merge 24 commits intomlcommons:masterfrom
mrzzy wants to merge 24 commits intomlcommons:masterfrom
Conversation
This reverts commit 325526f6aed7b2c18d93c19e561d743d3246a3b2.
This reverts commit b10eceddd3b9ecb824cd6d7248df8ada786ef132.
…of opening 1 request per sample
…rompt load over servers" This reverts commit f6769548b45a5872dd20a5c0a329a005c05a8664.
Contributor
|
MLCommons CLA bot: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The LLaMA-2-70B benchmark (Offline Scenario) currently does not have multinode support.
Contents
This PR adds multinode inference support to LLaMA-2-70B benchmark (Offline Scenario) by enabling
SUT_API.pyto issue requests to multiple OpenAI-compatible endpoints (e.g., vLLM, TensorRT-LLM) simultaneously. Prompts are (mostly) evenly partitioned across servers.--vllm) with even prompt distribution across multiple OpenAI-compatible endpoints.query_batchandquery_servers).User facing Changes
Usage Example (Offline + Multinode API mode)
python3 -u main.py --scenario Offline \ --vllm \ --api-model-name ${MODEL_NAME} \ --api-server http://node1:8000 \ --api-server http://node2:8000 \ --api-server http://node3:8000 \ --model-path ${CHECKPOINT_PATH} \ --user-conf user.conf \ --total-sample-count 24576 \ --dataset-path ${DATASET_PATH} \ --output-log-dir offline-logsEach
--api-serverargument registers an endpoint; SUT_API distributes prompts across them automatically.