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
3 changes: 3 additions & 0 deletions fbgemm_gpu/fbgemm_gpu/tbe/ssd/ssd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ class EvictionPolicy(NamedTuple):
enable_eviction_for_feature_score_eviction_policy: list[bool] | None = (
None # enable eviction if eviction policy is feature score, false means no eviction
)
enable_ssd_writeback: bool = (
False # when True, evicted dirty blocks are written back to SSD via callback; when False, eviction deletes blocks directly
)

def validate(self) -> None:
assert self.eviction_trigger_mode in [0, 1, 2, 3, 4, 5], (
Expand Down
1 change: 1 addition & 0 deletions fbgemm_gpu/fbgemm_gpu/tbe/ssd/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ def __init__(
eviction_policy.interval_for_insufficient_eviction_s,
eviction_policy.interval_for_sufficient_eviction_s,
eviction_policy.interval_for_feature_statistics_decay_s,
eviction_policy.enable_ssd_writeback,
)
enrichment_config = None
if (
Expand Down
Loading
Loading