Skip to content

Conversation

@FriedCosey
Copy link

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2135

table_names is required for raw embedded streaming to support tracking in mpzch modules.

Example usage in embedding module to look up raw ids

        assert hasattr(
            self.emb_module, "res_params"
        ), "res_params should exist when raw_id_tracker is enabled"
        res_params: RESParams = self.emb_module.res_params  # pyre-ignore[9]
        table_names = res_params.table_names
        raw_ids_dict = raw_id_tracker_wrapper.get_indexed_lookups(
            table_names, self.emb_module.uuid
        )

table_names only exist when raw embedded streaming is enabled.

During testing, we may disable raw embedded streaming (hence no res_params) this tight coupling makes testing difficult. This diff adds table_names as a instance variable of SplitTableBatchedEmbeddingBagsCodegen so we can easily retrieve table_names w/o depending on raw embedded streaming.

Differential Revision: D87089649

@meta-cla meta-cla bot added the cla signed label Nov 14, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 14, 2025

@FriedCosey has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87089649.

…agsCodegen (pytorch#5133)

Summary:

X-link: facebookresearch/FBGEMM#2135

`table_names` is required for raw embedded streaming to support tracking in mpzch modules.

Example usage in embedding module to look up raw ids
```
        assert hasattr(
            self.emb_module, "res_params"
        ), "res_params should exist when raw_id_tracker is enabled"
        res_params: RESParams = self.emb_module.res_params  # pyre-ignore[9]
        table_names = res_params.table_names
        raw_ids_dict = raw_id_tracker_wrapper.get_indexed_lookups(
            table_names, self.emb_module.uuid
        )
```
`table_names` only exist when raw embedded streaming is enabled.

During testing, we may disable raw embedded streaming (hence no `res_params`) this tight coupling makes testing difficult. This diff adds `table_names` as a instance variable of `SplitTableBatchedEmbeddingBagsCodegen` so we can easily retrieve `table_names` w/o depending on raw embedded streaming.

Reviewed By: chouxi

Differential Revision: D87089649
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 18, 2025

This pull request has been merged in 8189ad4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants