Skip to content

Commit 36ab421

Browse files
[Automated Commit] Format Codebase
1 parent 443ff3d commit 36ab421

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

multimodal/vl2l/src/mlperf_inference_multimodal_vl2l/deploy.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def _startup(self) -> None:
168168
"""Start the local process."""
169169
cmd = self._build_command()
170170
logger.info("Starting local process with command: {}", cmd)
171-
logger.info("Starting local process with environment variables: {}", os.environ)
171+
logger.info(
172+
"Starting local process with environment variables: {}",
173+
os.environ)
172174

173175
# Get log file paths
174176
stdout_file_path = get_log_file_path(
@@ -189,8 +191,12 @@ def _startup(self) -> None:
189191
)
190192

191193
logger.info("Started local process with PID: {}", process.pid)
192-
logger.info("Local process stdout will be logged to: {}", stdout_file_path)
193-
logger.info("Local process stderr will be logged to: {}", stderr_file_path)
194+
logger.info(
195+
"Local process stdout will be logged to: {}",
196+
stdout_file_path)
197+
logger.info(
198+
"Local process stderr will be logged to: {}",
199+
stderr_file_path)
194200

195201
self._process = process
196202

@@ -203,7 +209,8 @@ def _shutdown(self) -> None:
203209
# Try graceful termination first
204210
self._process.terminate()
205211
try:
206-
self._process.wait(timeout=self.endpoint.shutdown_timeout.total_seconds())
212+
self._process.wait(
213+
timeout=self.endpoint.shutdown_timeout.total_seconds())
207214
logger.info("Local process terminated gracefully")
208215
except subprocess.TimeoutExpired:
209216
logger.warning(

multimodal/vl2l/src/mlperf_inference_multimodal_vl2l/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def get_log_file_path(key: str, settings: Settings) -> Path:
3232
)
3333

3434

35-
def setup_loguru_for_benchmark(settings: Settings, verbosity: Verbosity) -> None:
35+
def setup_loguru_for_benchmark(
36+
settings: Settings, verbosity: Verbosity) -> None:
3637
"""Setup the loguru logger for running the benchmark."""
3738
logger.remove()
3839
logger.add(sys.stdout, level=verbosity.value.upper())

multimodal/vl2l/src/mlperf_inference_multimodal_vl2l/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ def __init__(self, flag: str) -> None:
425425
class BlacklistedVllmCliFlagError(ValueError):
426426
"""The exception raised when a blacklisted vllm CLI flag is encountered."""
427427

428-
BLACKLIST: ClassVar[list[str]] = ["--model", "--host", "--port", "--api-key"]
428+
BLACKLIST: ClassVar[list[str]] = [
429+
"--model", "--host", "--port", "--api-key"]
429430

430431
def __init__(self, flag: str) -> None:
431432
"""Initialize the exception."""

0 commit comments

Comments
 (0)