Remove stale bot

This commit is contained in:
Daniel Han 2025-06-30 23:11:57 -07:00
commit fba0bff2f4
2 changed files with 1 additions and 23 deletions

View file

@ -23,7 +23,7 @@ jobs:
For faster response times, please post on our Reddit server - https://www.reddit.com/r/unsloth or our Discord - https://discord.com/invite/unsloth
# The number of days of inactivity before an issue is considered stale.
days-before-issue-stale: 10
days-before-issue-stale: 9999
# Set to -1 to never close stale issues.
days-before-issue-close: -1

View file

@ -1,22 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project and Unsloth project
# Copying from https://github.com/vllm-project/vllm/blob/main/use_existing_torch.py
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()