Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] refactor embedding group input tile and dense embedding collection #75

Merged

Conversation

tiankongdeguiji
Copy link
Collaborator

No description provided.

tzrec/modules/embedding.py Outdated Show resolved Hide resolved
tzrec/modules/embedding.py Show resolved Hide resolved
@eric-gecheng eric-gecheng merged commit 00a24e4 into alibaba:master Dec 30, 2024
5 checks passed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动是为什么? 如果在input-tile=3的情况下,item 已经被等同于 origin的了,那修改的也应该是write_mapping_file_for_input_tile

item_kt = batch.dense_features.get(key + "_item", None)
if user_kt is not None or item_kt is not None:
batch.dense_features[key] = _tile_and_combine_dense_kt(
user_kt, item_kt, batch.batch_size
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把dense 的user/item 合并起来,这个会增加一定的计算量

emb_bag_config=emb_bag_config,
if need_input_tile_emb and feature.is_user_feat:
_add_embedding_bag_config(
emb_bag_configs=mc_emb_bag_configs_user
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mc_emb_bag_configs_user 又是什么?

)
kts.append(non_emb_dense_features)

kts.append(self.dense_ec(dense_feature))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dense_ec 又是什么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants