Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e2f6f26e
Unverified
Commit
e2f6f26e
authored
Sep 26, 2024
by
Tyler Michael Smith
Committed by
GitHub
Sep 26, 2024
Browse files
[Bugfix] Fix print_warning_once's line info (#8867)
parent
b28d2104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/utils.py
vllm/utils.py
+2
-1
No files found.
vllm/utils.py
View file @
e2f6f26e
...
@@ -744,7 +744,8 @@ def create_kv_caches_with_random(
...
@@ -744,7 +744,8 @@ def create_kv_caches_with_random(
@
lru_cache
@
lru_cache
def
print_warning_once
(
msg
:
str
)
->
None
:
def
print_warning_once
(
msg
:
str
)
->
None
:
logger
.
warning
(
msg
)
# Set the stacklevel to 2 to print the caller's line info
logger
.
warning
(
msg
,
stacklevel
=
2
)
@
lru_cache
(
maxsize
=
None
)
@
lru_cache
(
maxsize
=
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment