Files
sglang/python/sglang/srt/flush_cache.py
2024-05-14 22:40:46 +08:00

17 lines
382 B
Python

"""
Usage:
python3 -m sglang.srt.flush_cache --url http://localhost:30000
"""
import argparse
import requests
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--url", type=str, default="http://localhost:30000")
args = parser.parse_args()
response = requests.get(args.url + "/flush_cache")
assert response.status_code == 200