Refactor JIT kernel and expert-pack directory layout (#36704)

This commit is contained in:
Xiaoyu Zhang
2026-08-29 07:41:25 +08:00
committed by GitHub
parent 50bc1a3767
commit db6f0a9d53
25 changed files with 90 additions and 55 deletions
@@ -44,7 +44,7 @@ def find_sglang_repo() -> Path:
return Path(configured).expanduser().resolve()
for candidate in (SCRIPT_DIR, *SCRIPT_DIR.parents):
if (candidate / "python" / "sglang").is_dir() and (
candidate / "tools" / "expert_pack"
candidate / "python" / "sglang" / "srt" / "model_loader" / "expert_pack"
).is_dir():
return candidate
raise RuntimeError("could not locate the SGLang repository")
@@ -45,7 +45,7 @@ def find_sglang_repo() -> Path:
return Path(configured).expanduser().resolve()
for candidate in (SCRIPT_DIR, *SCRIPT_DIR.parents):
if (candidate / "python" / "sglang").is_dir() and (
candidate / "tools" / "expert_pack"
candidate / "python" / "sglang" / "srt" / "model_loader" / "expert_pack"
).is_dir():
return candidate
raise RuntimeError("could not locate the SGLang repository")