File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,9 @@ class CountBasedEvictionPolicy(VirtualTableEvictionPolicy):
194
194
15 # eviction threshold for count based eviction policy. 0 means no eviction
195
195
)
196
196
decay_rate : float = 0.99 # default decay by default
197
+ inference_eviction_threshold : int = (
198
+ eviction_threshold # eviction threshold for inference count based eviction policy. 0 means no eviction
199
+ )
197
200
198
201
199
202
@dataclass
@@ -203,6 +206,7 @@ class TimestampBasedEvictionPolicy(VirtualTableEvictionPolicy):
203
206
"""
204
207
205
208
eviction_ttl_mins : int = 24 * 60 # 1 day. 0 means no eviction
209
+ inference_eviction_ttl_mins : int = eviction_ttl_mins # 0 means no eviction
206
210
207
211
208
212
@dataclass
@@ -216,6 +220,13 @@ class CountTimestampMixedEvictionPolicy(VirtualTableEvictionPolicy):
216
220
)
217
221
decay_rate : float = 0.99 # default decay by default
218
222
eviction_ttl_mins : int = 24 * 60 # 1 day. 0 means no eviction based on timestamp
223
+ inference_eviction_threshold : int = (
224
+ eviction_threshold # eviction threshold for inference count based eviction policy. 0 means no eviction based on count
225
+ )
226
+
227
+ inference_eviction_ttl_mins : int = (
228
+ eviction_ttl_mins # 0 means no eviction based on timestamp
229
+ )
219
230
220
231
221
232
@dataclass
@@ -227,6 +238,7 @@ class FeatureL2NormBasedEvictionPolicy(VirtualTableEvictionPolicy):
227
238
eviction_threshold : float = (
228
239
0.0 # eviction threshold for feature l2 norm based eviction policy. 0.0 means no eviction
229
240
)
241
+ inference_eviction_threshold : float = eviction_threshold
230
242
231
243
232
244
@dataclass
You can’t perform that action at this time.
0 commit comments