Skip to content

Commit 5c8df76

Browse files
committed
Lint
Signed-off-by: Rashid Kaleem <230885705+arekay-nv@users.noreply.github.com>
1 parent 057991d commit 5c8df76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/inference_endpoint/commands/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
from inference_endpoint.config.schema import (
6060
Dataset as DatasetConfig,
6161
)
62+
from inference_endpoint.dataset_manager.predefined.random import RandomDataset
6263
from inference_endpoint.config.yaml_loader import ConfigError, ConfigLoader
6364
from inference_endpoint.core.types import QueryResult
6465
from inference_endpoint.dataset_manager.dataset import Dataset
@@ -458,7 +459,6 @@ def _run_benchmark(
458459
raise InputValidationError(
459460
"A tokenizer is required to generate the warmup dataset. Ensure model_params.name is set."
460461
)
461-
from inference_endpoint.dataset_manager.predefined.random import RandomDataset
462462

463463
warmup_cfg = config.warmup
464464
try:

src/inference_endpoint/load_generator/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ def start(
339339
warmup_generator = load_generator_cls(
340340
sample_issuer,
341341
warmup_dataset,
342-
warmup_sched, # type: ignore[arg-type]
343-
*args,
342+
warmup_sched, # type: ignore[arg-type]
343+
*args,
344344
)
345345

346346
# Create accuracy test generators

tests/integration/commands/test_warmup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def mock_tokenizer():
3333

3434

3535
@pytest.mark.integration
36-
@pytest.mark.asyncio
36+
@pytest.mark.asyncio(mode="strict")
3737
async def test_warmup_offline_with_echo_server(
3838
mock_http_echo_server, ds_pickle_dataset_path, tmp_path, caplog, mock_tokenizer
3939
):
@@ -108,7 +108,7 @@ async def test_warmup_offline_with_echo_server(
108108

109109

110110
@pytest.mark.integration
111-
@pytest.mark.asyncio
111+
@pytest.mark.asyncio(mode="strict")
112112
async def test_warmup_online_with_echo_server(
113113
mock_http_echo_server, ds_pickle_dataset_path, tmp_path, caplog, mock_tokenizer
114114
):

0 commit comments

Comments
 (0)