Skip to content

Commit 0a1a74e

Browse files
fix ruff
1 parent 4645057 commit 0a1a74e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

atom/model_ops/fused_moe/mori_prepare_finalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import logging
55
from functools import lru_cache
6-
from typing import Any, Callable, Optional
6+
from typing import Any, Callable
77

88
import torch
99

atom/utils/dbo/ubatch_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919

2020
from .ubatch_splitting import UBatchSlice
21-
from .ubatching import TBOContext, make_tbo_contexts
21+
from .ubatching import make_tbo_contexts
2222

2323
logger = logging.getLogger("atom")
2424

atom/utils/forward_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: MIT
22
# Copyright (C) 2024-2025, Advanced Micro Devices, Inc. All rights reserved.
33

4+
import threading
45
from contextlib import contextmanager
56
from dataclasses import dataclass, field, fields
67
from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union
@@ -338,7 +339,6 @@ def __post_init__(self):
338339
_forward_kv_cache_context: Optional[ForwardContext] = ForwardContext()
339340

340341
# Thread-local storage for TBO dual-thread execution
341-
import threading
342342

343343
_forward_context_local = threading.local()
344344

0 commit comments

Comments
 (0)