Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions torchrec/distributed/mc_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ def sharded_parameter_names(self, prefix: str = "") -> Iterator[str]:
"_output_segments_tensor",
"_current_iter_tensor",
"_scalar_logger._scalar_logger_steps",
"_hash_zch_bucket",
]:
continue
if name in module._non_persistent_buffers_set:
Expand Down
1 change: 1 addition & 0 deletions torchrec/modules/hash_mc_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def __init__(

self._max_probe = max_probe
self._buckets = total_num_buckets
self.register_buffer("_hash_zch_bucket", torch.tensor(total_num_buckets))
# Do not need to store in buffer since this is created and consumed
# at each step https://fburl.com/code/axzimmbx
self._evicted_indices = []
Expand Down
Loading