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
deviate from the paper and allow for interpolation of the compressed scores for better selected fine blocks, when compress block size > fine block size
self.interpolated_importance_score=interpolated_importance_score# in the case fine block size < compressed block size, will weigh space better when selecting
235
+
219
236
self.selection_block_size=selection_block_size
220
237
221
238
assertnum_selected_blocks>0
@@ -326,10 +343,18 @@ def forward(
326
343
# first we expand all the compressed scores to the full sequence length, then average within each fine / selection block size - pad on the right to 0s, which should be fine as sliding window convers the local anyways
0 commit comments