You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(pyrefly): whitelist all new data_plane files + fix type errors
Whitelists every nemo_rl/data_plane/ source file the branch
introduces, after fixing the pyrefly type errors that surfaced when
they were added to project-includes:
* adapters/transfer_queue.py
- cfg.get(...) → int(): pyrefly: ignore (DataPlaneConfig
TypedDict doesn't declare these mooncake-only keys, .get
returns Unknown).
- tq.init(conf=...): cast OmegaConf.merge return to DictConfig
(the upstream init signature accepts DictConfig only).
- _to_wire return: cast td.detach().contiguous() to TensorDict
(TensorDict.detach has a wrapped __call__ pyrefly can't see
through).
* driver_io.py
- layout: str → Literal["jagged", "padded"] (passed through to
codec.materialize which already uses the Literal).
* preshard.py
- shard_by_batch_size {sequence_packing,dynamic_batching}_args:
pyrefly: ignore (the call sites build dicts that match the
TypedDict shape but pyrefly can't narrow dict[str, Any] to
the TypedDict alias).
- shard["_meta_idx"].tolist(): pyrefly: ignore (sharded is
list[SlicedDataDict], shard is SlicedDataDict; pyrefly
confuses the indexing chain).
* worker_mixin.py
- leader-broadcast `out`: pyrefly: ignore (data is None on
non-leader by design; the conditional handles it).
- shard_by_batch_size {sequence_packing,dynamic_batching}_args:
same pattern as preshard.py.
Signed-off-by: Zhiyu Li <zhiyul@NVIDIA.com>
0 commit comments