4 Star 13 Fork 7

Gitee 极速下载/vllm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/vllm-project/vllm
克隆/下载
use_existing_torch.py 654 Bytes
一键复制 编辑 原始数据 按行查看 历史
Simon Mo 提交于 2025-06-04 02:20 +08:00 . [Misc] Add SPDX-FileCopyrightText (#19100)
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import glob
requires_files = glob.glob('requirements/*.txt')
requires_files += ["pyproject.toml"]
for file in requires_files:
print(f">>> cleaning {file}")
with open(file) as f:
lines = f.readlines()
if "torch" in "".join(lines).lower():
print("removed:")
with open(file, 'w') as f:
for line in lines:
if 'torch' not in line.lower():
f.write(line)
else:
print(line.strip())
print(f"<<< done cleaning {file}")
print()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/vllm.git
git@gitee.com:mirrors/vllm.git
mirrors
vllm
vllm
main

搜索帮助