Skip to content

Commit

Permalink
2025-01-14 nightly release (542b0b2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pytorchbot committed Jan 14, 2025
1 parent 6f54403 commit 42fa9d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torchrec/distributed/batched_embedding_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ def step(self, closure: Any = None) -> None:
def set_optimizer_step(self, step: int) -> None:
self._emb_module.set_optimizer_step(step)

def update_hyper_parameters(self, params_dict: Dict[str, Any]) -> None:
self._emb_module.update_hyper_parameters(params_dict)


def _gen_named_parameters_by_table_ssd(
emb_module: SSDTableBatchedEmbeddingBags,
Expand Down
4 changes: 4 additions & 0 deletions torchrec/distributed/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ def construct_sharded_tensor_from_metadata_enabled() -> bool:
return (
os.environ.get(TORCHREC_CONSTRUCT_SHARDED_TENSOR_FROM_METADATA_ENV, "0") == "1"
)


def enable_construct_sharded_tensor_from_metadata() -> None:
os.environ[TORCHREC_CONSTRUCT_SHARDED_TENSOR_FROM_METADATA_ENV] = "1"

0 comments on commit 42fa9d0

Please sign in to comment.