Skip to content

Commit f96b71f

Browse files
wangyufakwangch
andauthored
(fix):not have encoder_only attr cause run failed (#1741)
Co-authored-by: wangch <wangch@wangchdeMacBook-Air.local>
1 parent 6f70479 commit f96b71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slime/backends/sglang_utils/sglang_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _to_local_gpu_id(physical_gpu_id: int) -> int:
5151

5252

5353
def launch_server_process(server_args: ServerArgs) -> multiprocessing.Process:
54-
if server_args.encoder_only:
54+
if hasattr(server_args, "encoder_only") and server_args.encoder_only:
5555
from sglang.srt.disaggregation.encode_server import launch_server
5656
else:
5757
from sglang.srt.entrypoints.http_server import launch_server

0 commit comments

Comments
 (0)