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
Support no eviction in Feature score eviction policy (meta-pytorch#3488)
Summary:
X-link: pytorch/FBGEMM#5059
X-link: facebookresearch/FBGEMM#2068
As title
If one table is using feature score eviction in one tbe, then all tables in this tbe need to use the same policy. Feature score eviction can support ttl based eviction now. This diff is adding support no eviction in feature score eviction policy.
Differential Revision: D84660528
Copy file name to clipboardExpand all lines: torchrec/modules/embedding_configs.py
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,9 @@ class FeatureScoreBasedEvictionPolicy(VirtualTableEvictionPolicy):
240
240
None# 0 means no eviction
241
241
)
242
242
inference_eviction_ttl_mins: Optional[int] =None# 0 means no eviction
243
+
enable_eviction: bool= (
244
+
True# Currently we only support using same eviction policy in one tbe for mutiple tables, if one table doesn't need eviction we can set this flag to False
0 commit comments