[Simulator] Add high-fidelity CPU-based inference simulator (#33824)

Co-authored-by: zhouhaizhu.zhz <zhouhaizhu.zhz@alibaba-inc.com>
Co-authored-by: LinSiyuan814 <linsiyuan.lsy@alibaba-inc.com>
Co-authored-by: hzh0425 <hzh0425@apache.org>
This commit is contained in:
Ruiyan Ma
2026-09-04 11:12:11 +08:00
committed by GitHub
co-authored by zhouhaizhu.zhz LinSiyuan814 hzh0425
parent a5f07b1241
commit 59799a3687
81 changed files with 6624 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from setuptools import find_packages, setup
def get_version():
version = "0.1.0"
with open("src/sglang_simulator/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[1].strip(' \n"')
return version
setup(
name="sglang-simulator",
version=get_version(),
url="https://github.com/sgl-project/sglang.git",
description="A High-Fidelity LLM inference simulator for SGLang",
packages=find_packages(where="src"),
package_dir={"": "src"},
py_modules=["usercustomize"],
)