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
33e0602e
Unverified
Commit
33e0602e
authored
Feb 03, 2025
by
Russell Bryant
Committed by
GitHub
Feb 03, 2025
Browse files
[Misc] Fix improper placement of SPDX header in scripts (#12694)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
a1a2aaad
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
10 deletions
+17
-10
cmake/hipify.py
cmake/hipify.py
+1
-2
tests/models/test_transformers.py
tests/models/test_transformers.py
+1
-0
tools/check_spdx_header.py
tools/check_spdx_header.py
+12
-5
tools/report_build_time_ninja.py
tools/report_build_time_ninja.py
+1
-1
vllm/attention/ops/triton_flash_attention.py
vllm/attention/ops/triton_flash_attention.py
+1
-2
vllm/model_executor/models/transformers.py
vllm/model_executor/models/transformers.py
+1
-0
No files found.
cmake/hipify.py
View file @
33e0602e
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python3
#!/usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0
#
#
# A command line tool for running pytorch's hipify preprocessor on CUDA
# A command line tool for running pytorch's hipify preprocessor on CUDA
...
...
tests/models/test_transformers.py
View file @
33e0602e
# SPDX-License-Identifier: Apache-2.0
"""Test the functionality of the Transformers backend.
"""Test the functionality of the Transformers backend.
Run `pytest tests/models/test_transformers.py`.
Run `pytest tests/models/test_transformers.py`.
...
...
tools/check_spdx_header.py
View file @
33e0602e
...
@@ -10,18 +10,25 @@ def check_spdx_header(file_path):
...
@@ -10,18 +10,25 @@ def check_spdx_header(file_path):
with
open
(
file_path
,
encoding
=
'UTF-8'
)
as
file
:
with
open
(
file_path
,
encoding
=
'UTF-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
=
file
.
readlines
()
if
not
lines
:
if
not
lines
:
#
not necessary for an e
mpty file like __init__.py
#
E
mpty file like __init__.py
return
True
return
True
if
not
lines
[
0
].
strip
().
startswith
(
SPDX_HEADER_PREFIX
)
:
for
line
in
lines
:
return
False
if
line
.
strip
().
startswith
(
SPDX_HEADER_PREFIX
):
return
True
return
True
return
False
def
add_header
(
file_path
):
def
add_header
(
file_path
):
with
open
(
file_path
,
'r+'
,
encoding
=
'UTF-8'
)
as
file
:
with
open
(
file_path
,
'r+'
,
encoding
=
'UTF-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
=
file
.
readlines
()
file
.
seek
(
0
,
0
)
file
.
seek
(
0
,
0
)
file
.
write
(
SPDX_HEADER
+
'
\n\n
'
+
''
.
join
(
lines
))
if
lines
and
lines
[
0
].
startswith
(
"#!"
):
file
.
write
(
lines
[
0
])
file
.
write
(
SPDX_HEADER
+
'
\n
'
)
file
.
writelines
(
lines
[
1
:])
else
:
file
.
write
(
SPDX_HEADER
+
'
\n
'
)
file
.
writelines
(
lines
)
def
main
():
def
main
():
...
...
tools/report_build_time_ninja.py
View file @
33e0602e
#!/usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python3
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE file.
...
...
vllm/attention/ops/triton_flash_attention.py
View file @
33e0602e
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python
#!/usr/bin/env python
# SPDX-License-Identifier: Apache-2.0
"""
"""
Fused Attention
Fused Attention
===============
===============
...
...
vllm/model_executor/models/transformers.py
View file @
33e0602e
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 The vLLM team.
# Copyright 2024 The vLLM team.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
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