Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@tduncan
/
Nvidia-Optimization-Stack-VLLM
Nvidia-Optimization-Stack-VLLM
/
vllm
/
benchmarks
/
sweep
/
utils.py
Code
Commits
Issues
Pulls
Cloud Agent
CI/CD
main
main
py
4 lines
232 Bytes
Copy permalink
Copy
Raw
1
# SPDX-License-Identifier: Apache-2.0
2
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
def
sanitize_filename
(
filename
:
str
)
->
str
:
4
return
filename
.
replace
(
"
/
"
,
"
_
"
).
replace
(
"
..
"
,
"
__
"
).
strip
(
"'"
).
strip
(
'"'
)