Convert discarded-value ternary to a plain if statement (#25449)

This commit is contained in:
fzyzcjy
2026-05-16 09:35:36 +08:00
committed by GitHub
parent b7d62bd724
commit 688b679af2
@@ -636,11 +636,8 @@ class ModelRunner(ModelRunnerKVCacheMixin):
)
self.expert_location_updater = ExpertLocationUpdater()
(
if self.server_args.elastic_ep_backend:
ElasticEPStateManager.init(self.server_args)
if self.server_args.elastic_ep_backend
else None
)
# Load the model
self.sampler = create_sampler()
self.load_model()