Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfae40c5

Browse files
committed
fix 'override' import
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
1 parent72ae320 commitfae40c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎tensorrt_llm/_torch/pyexecutor/sampler.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
importdataclasses
22
importenum
3+
importsys
34
fromabcimportABC,abstractmethod
45
fromcollectionsimportdefaultdict
56
fromcollections.abcimportIterable
67
fromdataclassesimportdataclass
78
fromitertoolsimportrepeat
8-
fromtypingimportAny,List,Literal,Optional,cast,override
9+
fromtypingimportAny,List,Literal,Optional,cast
910

1011
importtorch
1112

@@ -29,6 +30,11 @@
2930
from .llm_requestimportLlmRequest,LlmRequestState,get_draft_token_length
3031
from .schedulerimportScheduledRequests
3132

33+
ifsys.version_info[:2]>= (3,12):
34+
fromtypingimportoverride
35+
else:
36+
fromtyping_extensionsimportoverride
37+
3238

3339
@dataclass(kw_only=True)
3440
classSampleStateTensors:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp