There was an error while loading. Please reload this page.
1 parent a049e71 commit 9615401Copy full SHA for 9615401
1 file changed
miles/backends/megatron_utils/actor.py
@@ -613,6 +613,11 @@ def _ensure_cpu_bucket_cache(self):
613
rebuild. Bucket size cap comes from
614
``args.miles_model_update_bucket_size_mb`` (cf. F10 S2/S3a-2
615
startup checks).
616
+
617
+ No actor-level lock guards ``build_cpu_bucket_cache`` /
618
+ ``run_sync_session``: train actors must stay default sync Ray actors
619
+ (no ``max_concurrency``), so Ray serializes their calls. The cache's
620
+ own lock protects its internal state.
621
"""
622
if not hasattr(self, "_cpu_bucket_cache") or self._cpu_bucket_cache is None:
623
from .update_weight.cpu_bucket_cache import CPUBucketCache
0 commit comments