-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[https://nvbugs/5527655][test] Add test case for RCCA 5527655 #9511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fredricz-20070104
wants to merge
5
commits into
NVIDIA:main
Choose a base branch
from
fredricz-20070104:feature/rcca_5527655
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1f39185
enlarge deepseek r1 timeout
fredricz-20070104 8818419
fix pre-commit error
fredricz-20070104 162eaf1
add path check
fredricz-20070104 c10c516
update disagg dataset path
fredricz-20070104 8ec922a
fx pre-commit error
fredricz-20070104 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
tests/integration/defs/examples/serve/test_configs/DeepSeek-R1-FP4.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| enable_iter_perf_stats: true | ||
| print_iter_log: false | ||
| cuda_graph_config: | ||
| max_batch_size: 16 | ||
| enable_padding: false | ||
| moe_config: | ||
| backend: TRTLLM | ||
| max_num_tokens: 32768 | ||
| speculative_config: | ||
| decoding_type: MTP | ||
| num_nextn_predict_layers: 3 | ||
| disable_overlap_scheduler: true | ||
| enable_autotuner: true | ||
| kv_cache_config: | ||
| free_gpu_memory_fraction: 0.6 | ||
| enable_block_reuse: true | ||
| enable_partial_reuse: false | ||
| enable_chunked_prefill: true |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| import os | ||
| import time | ||
|
|
||
| import pytest | ||
| import requests | ||
| from defs.conftest import llm_models_root, skip_no_hopper | ||
| from defs.conftest import (llm_models_root, skip_no_hopper, | ||
| skip_post_blackwell_ultra, skip_pre_hopper) | ||
| from defs.trt_test_alternative import popen, print_error, print_info | ||
| from openai import OpenAI | ||
| from requests.exceptions import RequestException | ||
|
|
@@ -130,3 +132,56 @@ def test_extra_llm_api_options(serve_test_root): | |
| model_name = model_path.split('/')[-1] # "Qwen3-30B-A3B-FP8" | ||
| # Test the server with OpenAI chat completion | ||
| check_openai_chat_completion(model_name=model_name) | ||
|
|
||
|
|
||
| @skip_pre_hopper | ||
| @skip_post_blackwell_ultra | ||
| @pytest.mark.skip_less_device(8) | ||
| def test_extra_llm_api_options_for_deepseek_r1_fp4(serve_test_root): | ||
| test_configs_root = f"{serve_test_root}/test_configs" | ||
|
|
||
| # moe backend = CUTLASS which only supports fp8 blockscale on Hopper | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this comment is kind of misleading |
||
| config_file = f"{test_configs_root}/DeepSeek-R1-FP4.yml" | ||
| model_path = f"{llm_models_root()}/DeepSeek-R1/DeepSeek-R1-FP4" | ||
|
|
||
| # Assert that required files and directories exist | ||
| assert os.path.exists( | ||
| test_configs_root | ||
| ), f"test_configs_root directory does not exist: {test_configs_root}" | ||
| assert os.path.exists( | ||
| config_file), f"config_file does not exist: {config_file}" | ||
| assert os.path.exists( | ||
| model_path), f"model_path does not exist: {model_path}" | ||
|
|
||
| cmd = [ | ||
| "trtllm-serve", | ||
| model_path, | ||
| "--host", | ||
| "0.0.0.0", | ||
| "--port", | ||
| "8000", | ||
| "--backend", | ||
| "pytorch", | ||
| "--max_batch_size", | ||
| "32", | ||
| "--max_num_tokens", | ||
| "32768", | ||
| "--max_seq_len", | ||
| "163840", | ||
| "--tp_size", | ||
| "8", | ||
| "--ep_size", | ||
| "1", | ||
| "--extra_llm_api_options", | ||
| config_file, | ||
| "--log_level", | ||
| "info", | ||
| ] | ||
|
|
||
| print_info("Launching trtllm-serve...") | ||
| with popen(cmd): | ||
| check_server_ready(timeout_timer=3600) | ||
| # Extract model name from the model path for consistency | ||
| model_name = model_path.split('/')[-1] # "Qwen3-30B-A3B-FP8" | ||
| # Test the server with OpenAI chat completion | ||
| check_openai_chat_completion(model_name=model_name) | ||
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fp4 does not support on hopper, use
skip_pre_blackwell?