Commit c0d9a9b
committed
Refactor EntropyGatedChunkKVPress to subclass ChunkKVPress; test/registry cleanup
- kvpress/presses/entropy_gated_chunkkv_press.py: subclass ChunkKVPress instead of BasePress, dropping the inherited press field, __post_init__, post_init_from_model, and compression_ratio property/setter; keep chunk_length default at 10. Remove the redundant explanatory comments and hoist the epsilon to a module-level EPSILON constant.
- tests/presses/test_entropy_gated_chunkkv_press.py: deleted. The dedicated test duplicated coverage already provided by the test_presses_run wrapper matrix.
- tests/presses/test_presses.py: removed the redundant test_entropy_gated_chunkkv_press function for the same reason; the press stays covered via the EntropyGatedChunkKVPress entry in the wrapper_press matrix.
- evaluation/evaluate_registry.py: dropped the explicit chunk_length=10, rescue_size=4 from the registry entry; both are defaults on the press now, so EntropyGatedChunkKVPress(press=SnapKVPress()) is enough.
- README.md: tightened the one-line description to match the other press entries.1 parent 7797071 commit c0d9a9b
5 files changed
Lines changed: 10 additions & 184 deletions
File tree
- evaluation
- kvpress/presses
- tests/presses
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 60 | | |
75 | 61 | | |
76 | 62 | | |
| |||
84 | 70 | | |
85 | 71 | | |
86 | 72 | | |
87 | | - | |
88 | 73 | | |
89 | 74 | | |
90 | 75 | | |
| |||
102 | 87 | | |
103 | 88 | | |
104 | 89 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 90 | | |
110 | 91 | | |
111 | 92 | | |
112 | | - | |
113 | | - | |
| 93 | + | |
| 94 | + | |
114 | 95 | | |
115 | 96 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 97 | | |
120 | 98 | | |
121 | 99 | | |
122 | | - | |
123 | 100 | | |
124 | 101 | | |
125 | 102 | | |
126 | 103 | | |
127 | | - | |
128 | | - | |
| 104 | + | |
| 105 | + | |
129 | 106 | | |
130 | 107 | | |
131 | 108 | | |
| |||
139 | 116 | | |
140 | 117 | | |
141 | 118 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 119 | | |
147 | 120 | | |
148 | 121 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 65 | | |
78 | 66 | | |
79 | 67 | | |
| |||
0 commit comments