RamonK commited on
Commit
01cbfed
·
verified ·
1 Parent(s): 74c1383

Release DistillPath-KS16-HOpt0 distilled pathology encoder (50k steps)

Browse files
Files changed (4) hide show
  1. LICENSE +372 -0
  2. README.md +113 -0
  3. config.json +12 -0
  4. model.safetensors +3 -0
LICENSE ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Kaiko Non-Commercial Public License
2
+ Version 1, May 2024
3
+
4
+ By exercising the Licensed Rights (defined below), You accept and agree to be
5
+ bound by the terms and conditions of this Public License ("Public License")
6
+ from Kaiko B.V., Plesmanlaan 121, 1066 CX Amsterdam, The Netherlands
7
+ (the "Licensor"). To the extent this Public License may be interpreted as a
8
+ contract, You are granted the Licensed Rights in consideration of Your
9
+ acceptance of these terms and conditions, and the Licensor grants You such
10
+ rights in consideration of benefits the Licensor receives from making the
11
+ Licensed Material available under these terms and conditions.
12
+
13
+ Section 1 -- Definitions.
14
+
15
+ a. Adapted Material means material subject to Copyright and Similar
16
+ Rights that is derived from or based upon the Licensed Material
17
+ and in which the Licensed Material is translated, altered,
18
+ arranged, transformed, or otherwise modified in a manner requiring
19
+ permission under the Copyright and Similar Rights held by the
20
+ Licensor. For purposes of this Public License, where the Licensed
21
+ Material is a musical work, performance, or sound recording,
22
+ Adapted Material is always produced where the Licensed Material is
23
+ synched in timed relation with a moving image.
24
+
25
+ b. Adapter's License means the license You apply to Your Copyright
26
+ and Similar Rights in Your contributions to Adapted Material in
27
+ accordance with the terms and conditions of this Public License.
28
+
29
+ c. Copyright and Similar Rights means copyright and/or similar rights
30
+ closely related to copyright including, without limitation,
31
+ performance, broadcast, sound recording, and Sui Generis Database
32
+ Rights, without regard to how the rights are labeled or
33
+ categorized. For purposes of this Public License, the rights
34
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
35
+ Rights.
36
+
37
+ d. Effective Technological Measures means those measures that, in the
38
+ absence of proper authority, may not be circumvented under laws
39
+ fulfilling obligations under Article 11 of the WIPO Copyright
40
+ Treaty adopted on December 20, 1996, and/or similar international
41
+ agreements.
42
+
43
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
44
+ any other exception or limitation to Copyright and Similar Rights
45
+ that applies to Your use of the Licensed Material.
46
+
47
+ f. Licensed Material means the software, algorithm, source code,
48
+ object code, software, database, trained model, or other material
49
+ to which the Licensor applied this Public License.
50
+
51
+ g. Licensed Rights means the rights granted to You subject to the
52
+ terms and conditions of this Public License, which are limited to
53
+ all Copyright and Similar Rights that apply to Your use of the
54
+ Licensed Material and that the Licensor has authority to license.
55
+
56
+ h. Licensor means Kaiko B.V.
57
+
58
+ i. Non-Commercial means not intended for any commercial advantage or
59
+ monetary compensation. For purposes of this Public License,
60
+ Non-Commercial shall exclude any claims of intellectual property
61
+ rights such as patent applications.
62
+
63
+ j. Share means to provide material to the public by any means or
64
+ process that requires permission under the Licensed Rights, such
65
+ as reproduction, public display, public performance, distribution,
66
+ dissemination, communication, or importation, and to make material
67
+ available to the public including in ways that members of the
68
+ public may access the material from a place and at a time
69
+ individually chosen by them.
70
+
71
+ k. Sui Generis Database Rights means rights other than copyright
72
+ resulting from Directive 96/9/EC of the European Parliament and of
73
+ the Council of 11 March 1996 on the legal protection of databases,
74
+ as amended and/or succeeded, as well as other essentially
75
+ equivalent rights anywhere in the world.
76
+
77
+ l. You means the individual or entity exercising the Licensed Rights
78
+ under this Public License. Your has a corresponding meaning.
79
+
80
+ Section 2 -- Scope.
81
+
82
+ a. License grant.
83
+
84
+ 1. Subject to the terms and conditions of this Public License,
85
+ the Licensor hereby grants You a worldwide, royalty-free,
86
+ non-sublicensable, non-exclusive, irrevocable license to
87
+ exercise the Licensed Rights in the Licensed Material to:
88
+
89
+ a. reproduce and Share the Licensed Material, in whole or
90
+ in part, for Non-Commercial purposes only; and
91
+
92
+ b. produce, reproduce, and Share Adapted Material for
93
+ Non-Commercial purposes only.
94
+
95
+ In any case, and without limiting the foregoing, You may
96
+ not use the Licensed Material for any commercial purpose,
97
+ or in connection with any patent application (or similar
98
+ attempts to claim an intellectual property right).
99
+ The grant of rights expressly set forth in this Section
100
+ are the complete grant of rights to you in the Licensed
101
+ Material, and no other licenses are granted, whether by
102
+ waiver, estoppel, implication, equity or otherwise.
103
+ Licensor reserve all rights not expressly granted by this
104
+ License.
105
+
106
+ 2. Exceptions and Limitations. For the avoidance of doubt, this
107
+ Public License is not intended to limit fair use, fair
108
+ dealing, and/or any other exception or limitation to
109
+ Copyright and Similar Rights that applies to Your use of
110
+ the Licensed Material with applicable laws.
111
+
112
+ 3. Term. The term of this Public License is specified in Section
113
+ 6(a).
114
+
115
+ 4. Media and formats; technical modifications allowed. The
116
+ Licensor authorizes You to exercise the Licensed Rights in
117
+ all media and formats whether now known or hereafter created,
118
+ and to make technical modifications necessary to do so. The
119
+ Licensor waives and/or agrees not to assert any right or
120
+ authority to forbid You from making technical modifications
121
+ necessary to exercise the Licensed Rights, including
122
+ technical modifications necessary to circumvent Effective
123
+ Technological Measures. For purposes of this Public License,
124
+ simply making modifications authorized by this Section 2(a)
125
+ (4) never produces Adapted Material.
126
+
127
+ 5. Downstream recipients.
128
+
129
+ a. Offer from the Licensor -- Licensed Material. Every
130
+ recipient of the Licensed Material automatically
131
+ receives an offer from the Licensor to exercise the
132
+ Licensed Rights under the terms and conditions of this
133
+ Public License.
134
+
135
+ b. Additional offer from the Licensor -- Adapted Material.
136
+ Every recipient of Adapted Material from You
137
+ automatically receives an offer from the Licensor to
138
+ exercise the Licensed Rights in the Adapted Material
139
+ under the conditions of the Adapter's License You apply.
140
+
141
+ c. No downstream restrictions. You may not offer or impose
142
+ any additional or different terms or conditions on, or
143
+ apply any Effective Technological Measures to, the
144
+ Licensed Material if doing so restricts exercise of the
145
+ Licensed Rights by any recipient of the Licensed
146
+ Material.
147
+
148
+ 6. No endorsement. Nothing in this Public License constitutes or
149
+ may be construed as permission to assert or imply that You
150
+ are, or that Your use of the Licensed Material is, connected
151
+ with, or sponsored, endorsed, or granted official status by,
152
+ the Licensor or others designated to receive attribution as
153
+ provided in Section 3(a)(1)(A)(i).
154
+
155
+ b. Other rights.
156
+
157
+ 1. Moral rights, such as the right of integrity, are not
158
+ licensed under this Public License, nor are publicity,
159
+ privacy, and/or other similar personality rights; however, to
160
+ the extent possible, the Licensor waives and/or agrees not to
161
+ assert any such rights held by the Licensor to the limited
162
+ extent necessary to allow You to exercise the Licensed
163
+ Rights, but not otherwise.
164
+
165
+ 2. Patent and trademark rights are not licensed under this
166
+ Public License.
167
+
168
+ 3. To the extent possible, the Licensor waives any right to
169
+ collect royalties from You for the exercise of the Licensed
170
+ Rights, whether directly or through a collecting society
171
+ under any voluntary or waivable statutory or compulsory
172
+ licensing scheme. In all other cases the Licensor expressly
173
+ reserves any right to collect such royalties, including when
174
+ the Licensed Material is used other than for Non-Commercial
175
+ purposes.
176
+
177
+ Section 3 -- License Conditions.
178
+
179
+ Your exercise of the Licensed Rights is expressly made subject to the
180
+ following conditions.
181
+
182
+ a. Attribution.
183
+
184
+ 1. If You Share the Licensed Material (including in modified
185
+ form), You must:
186
+
187
+ a. retain the following if it is supplied by the Licensor
188
+ with the Licensed Material:
189
+
190
+ i. identification of the creator(s) of the Licensed
191
+ Material and any others designated to receive
192
+ attribution, in any reasonable manner requested by
193
+ the Licensor (including by pseudonym if
194
+ designated);
195
+
196
+ ii. a copyright notice;
197
+
198
+ iii. a notice that refers to this Public License;
199
+
200
+ iv. a notice that refers to the disclaimer of
201
+ warranties;
202
+
203
+ v. a URI or hyperlink to the Licensed Material to the
204
+ extent reasonably practicable;
205
+
206
+ b. indicate if You modified the Licensed Material and
207
+ retain an indication of any previous modifications; and
208
+
209
+ c. indicate the Licensed Material is licensed under this
210
+ Public License, and include the text of, or the URI or
211
+ hyperlink to, this Public License.
212
+
213
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
214
+ reasonable manner based on the medium, means, and context in
215
+ which You Share the Licensed Material. For example, it may be
216
+ reasonable to satisfy the conditions by providing a URI or
217
+ hyperlink to a resource that includes the required
218
+ information.
219
+
220
+ 3. If requested by the Licensor, You must remove any of the
221
+ information required by Section 3(a)(1)(a) to the extent
222
+ reasonably practicable.
223
+
224
+ b. ShareAlike.
225
+
226
+ In addition to the conditions in Section 3(a), if You Share
227
+ Adapted Material You produce, the following conditions also apply.
228
+
229
+ 1. The Adapter's License You apply must have the same terms and
230
+ conditions than the License, this version or later. In
231
+ particular, recipients of the Licensed Material, shall
232
+ not use it for any purposes other than Non-Commercial.
233
+
234
+ 2. You must include the text of, or the URI or hyperlink to, the
235
+ Adapter's License You apply. You may satisfy this condition
236
+ in any reasonable manner based on the medium, means, and
237
+ context in which You Share Adapted Material.
238
+
239
+ 3. You may not offer or impose any additional or different terms
240
+ or conditions on, or apply any Effective Technological
241
+ Measures to, Adapted Material that restrict exercise of the
242
+ rights granted under the Adapter's License You apply.
243
+
244
+ Section 4 -- Sui Generis Database Rights.
245
+
246
+ Where the Licensed Rights include Sui Generis Database Rights that
247
+ apply to Your use of the Licensed Material:
248
+
249
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
250
+ to extract, reuse, reproduce, and Share all or a substantial
251
+ portion of the contents of the database for Non-Commercial purposes
252
+ only;
253
+
254
+ b. if You include all or a substantial portion of the database
255
+ contents in a database in which You have Sui Generis Database
256
+ Rights, then the database in which You have Sui Generis Database
257
+ Rights (but not its individual contents) is Adapted Material,
258
+ including for purposes of Section 3(b); and
259
+
260
+ c. You must comply with the conditions in Section 3(a) if You Share
261
+ all or a substantial portion of the contents of the database.
262
+
263
+ For the avoidance of doubt, this Section 4 supplements and does not
264
+ replace Your obligations under this Public License where the Licensed
265
+ Rights include other Copyright and Similar Rights.
266
+
267
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
268
+
269
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
270
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
271
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
272
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
273
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
274
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
275
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
276
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
277
+ KNOWN OR DISCOVERABLE.
278
+
279
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
280
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
281
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
282
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
283
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
284
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
285
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
286
+ DAMAGES.
287
+ c. The disclaimer of warranties and limitation of liability provided
288
+ above shall be interpreted in a manner that, to the extent
289
+ possible, most closely approximates an absolute disclaimer and
290
+ waiver of all liability.
291
+
292
+ d. Indemnification. You agree to indemnify, defend, and hold harmless
293
+ the Licensor, its affiliates, and their respective officers,
294
+ directors, employees, and agents from and against any and all
295
+ claims, liabilities, damages, losses, or expenses, including
296
+ reasonable attorneys' fees and costs, arising out of or in any way
297
+ connected with Your access to or use of the Licensed Material.
298
+
299
+ Section 6 -- Term and Termination.
300
+
301
+ a. This Public License applies for the term of the Copyright and
302
+ Similar Rights licensed here. However, if You fail to comply with
303
+ this Public License, then Your rights under this Public License
304
+ terminate automatically.
305
+
306
+ b. Where Your right to use the Licensed Material has terminated under
307
+ Section 6(a), it reinstates:
308
+
309
+ 1. automatically as of the date the violation is cured, provided
310
+ it is cured within 30 days of Your discovery of the
311
+ violation; or
312
+
313
+ 2. upon express reinstatement by the Licensor.
314
+
315
+ For the avoidance of doubt, this Section 6(b) does not affect any
316
+ right the Licensor may have to seek remedies for Your violations
317
+ of this Public License.
318
+
319
+ c. For the avoidance of doubt, the Licensor may also offer the
320
+ Licensed Material under separate terms or conditions or stop
321
+ distributing the Licensed Material at any time. Licensor may
322
+ modify the terms contained herein at any time without notice.
323
+ You are responsible for periodically reviewing this Public
324
+ License for any updates or changes, and continued use of the
325
+ Licensed Materials constitutes acceptance of any modifications.
326
+
327
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
328
+ License.
329
+
330
+ Section 7 -- Other Terms and Conditions.
331
+
332
+ a. The Licensor shall not be bound by any additional or different
333
+ terms or conditions communicated by You unless expressly agreed.
334
+
335
+ b. Any arrangements, understandings, or agreements regarding the
336
+ Licensed Material not stated herein are separate from and
337
+ independent of the terms and conditions of this Public License.
338
+
339
+ Section 8 -- Interpretation.
340
+
341
+ a. For the avoidance of doubt, this Public License does not, and
342
+ shall not be interpreted to, reduce, limit, restrict, or impose
343
+ conditions on any use of the Licensed Material that could lawfully
344
+ be made without permission under this Public License.
345
+
346
+ b. To the extent possible, if any provision of this Public License is
347
+ deemed unenforceable, it shall be automatically reformed to the
348
+ minimum extent necessary to make it enforceable. If the provision
349
+ cannot be reformed, it shall be severed from this Public License
350
+ without affecting the enforceability of the remaining terms and
351
+ conditions.
352
+
353
+ c. No term or condition of this Public License will be waived and no
354
+ failure to comply consented to unless expressly agreed to by the
355
+ Licensor.
356
+
357
+ d. Nothing in this Public License constitutes or may be interpreted
358
+ as a limitation upon, or waiver of, any privileges and immunities
359
+ that apply to the Licensor or You, including from the legal
360
+ processes of any jurisdiction or authority.
361
+
362
+ e. This Public License shall be governed by and construed in
363
+ accordance with the laws of The Netherlands, without regard to its
364
+ conflict of law provisions. The parties consent to the exclusive
365
+ jurisdiction of the courts of, and venue and situs in
366
+ The Netherlands.
367
+
368
+ f. This Public License constitute the entire agreement between You
369
+ and the Licensor with respect to the Licensed Material, and
370
+ supersede all prior or contemporaneous communications and
371
+ proposals, whether oral or written.
372
+
README.md ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: kaiko-non-commercial-public-license
4
+ license_link: LICENSE
5
+ library_name: timm
6
+ pipeline_tag: image-feature-extraction
7
+ tags:
8
+ - computational-pathology
9
+ - knowledge-distillation
10
+ - vision-transformer
11
+ - medical-imaging
12
+ datasets:
13
+ - TCGA
14
+ ---
15
+
16
+ # DistillPath-KS16-HOpt0
17
+
18
+ A 22M ViT-S/16 pathology tile encoder distilled from [H-optimus-0](https://huggingface.co/bioptimus/H-optimus-0) (1.1B ViT-g/14) into the [kaiko ViT-S/16](https://huggingface.co/1aurent/vit_small_patch16_224.kaiko_ai_towards_large_pathology_fms) student using backbone-token distillation on 6,000 public TCGA slides.
19
+
20
+ **Paper:** [DistillPath: An Efficient 22M Distilled Pathology Encoder Approaching Large Foundation Model Performance](https://github.com/RamonKaspar/DistillPath)
21
+ Ramon Kaspar, Andrey Ignatov, Valentina Boeva. ETH Zurich.
22
+ Published at the ECCV 2026 Workshop on Medical Foundation Models and Benchmarks (MedFM-Bench).
23
+
24
+ ## Model details
25
+
26
+ | Property | Value |
27
+ |---|---|
28
+ | Architecture | ViT-S/16 (`vit_small_patch16_224` in timm) |
29
+ | Parameters | 21.7M |
30
+ | Feature dimension | 384 |
31
+ | Input size | 224 x 224 |
32
+ | Normalization | mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5) |
33
+ | Student initialization | kaiko ViT-S/16 (pathology-pretrained) |
34
+ | Teacher | H-optimus-0 (1.1B, ViT-g/14, Apache 2.0) |
35
+ | Training data | 6,000 TCGA H&E whole-slide images, 32 cohorts |
36
+ | Training steps | 50,000 (batch size 256, approx. 24-29 GPU-hours on 1x RTX 4090) |
37
+
38
+ ## Benchmark results
39
+
40
+ | Benchmark | **DistillPath-KS16-HOpt0** | kaiko baseline | H-optimus-0 teacher |
41
+ |---|---|---|---|
42
+ | EVA mean (7 tasks) | **0.769** | 0.764 | 0.803 |
43
+ | HEST mean (9 tasks) | **0.376** | 0.349 | 0.415 |
44
+ | PLISM score | **0.480** | 0.307 | 0.480 |
45
+
46
+ See the paper for per-task results and comparisons with all four DistillPath variants.
47
+
48
+ ## Usage
49
+
50
+ Load directly from the Hub with timm:
51
+
52
+ ```python
53
+ import timm
54
+
55
+ model = timm.create_model(
56
+ "hf_hub:RamonK/DistillPath-KS16-HOpt0",
57
+ pretrained=True,
58
+ num_classes=0,
59
+ )
60
+ model.eval()
61
+ ```
62
+
63
+ Or load manually:
64
+
65
+ ```python
66
+ import timm
67
+ from huggingface_hub import hf_hub_download
68
+ from safetensors.torch import load_file
69
+
70
+ model = timm.create_model("vit_small_patch16_224", pretrained=False, num_classes=0)
71
+ path = hf_hub_download("RamonK/DistillPath-KS16-HOpt0", "model.safetensors")
72
+ state_dict = load_file(path)
73
+ model.load_state_dict(state_dict, strict=True)
74
+ model.eval()
75
+ ```
76
+
77
+ This model uses normalization mean=(0.5, 0.5, 0.5) and std=(0.5, 0.5, 0.5), inherited from the kaiko student. Apply this normalization to input tiles before inference:
78
+
79
+ ```python
80
+ from torchvision import transforms
81
+
82
+ transform = transforms.Compose([
83
+ transforms.Resize(224),
84
+ transforms.CenterCrop(224),
85
+ transforms.ToTensor(),
86
+ transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
87
+ ])
88
+ ```
89
+
90
+ ## Distillation recipe
91
+
92
+ The recipe reads only the teacher's final class and patch tokens (no teacher pretraining heads required):
93
+ - **Class-token loss:** cosine distance + RKD (relational knowledge distillation)
94
+ - **Patch-token loss:** cosine distance after bicubic grid resizing (teacher 16x16 to student 14x14)
95
+ - **Optimizer:** AdamW, lr=1e-4, weight decay 0.05, cosine decay, 500 warmup steps
96
+ - **Projector:** DINO-style MLP (384 to 2048 to 2048 to 256 to d_t), discarded after training
97
+
98
+ Full details in the paper and the [DistillPath repository](https://github.com/RamonKaspar/DistillPath).
99
+
100
+ ## License
101
+
102
+ This model is released under the [Kaiko Non-Commercial Public License](LICENSE), inherited from the kaiko ViT-S/16 student weights. The teacher (H-optimus-0) is Apache 2.0.
103
+
104
+ ## Citation
105
+
106
+ ```bibtex
107
+ @inproceedings{kaspar2026distillpath,
108
+ title = {DistillPath: An Efficient 22M Distilled Pathology Encoder Approaching Large Foundation Model Performance},
109
+ author = {Kaspar, Ramon and Ignatov, Andrey and Boeva, Valentina},
110
+ booktitle = {Medical Foundation Models and Benchmarks (MedFM-Bench), ECCV 2026},
111
+ year = {2026}
112
+ }
113
+ ```
config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "vit_small_patch16_224",
3
+ "num_classes": 0,
4
+ "num_features": 384,
5
+ "pretrained_cfg": {
6
+ "num_classes": 0,
7
+ "input_size": [3, 224, 224],
8
+ "mean": [0.5, 0.5, 0.5],
9
+ "std": [0.5, 0.5, 0.5],
10
+ "custom_load": false
11
+ }
12
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24f16b09b73b777e33dd2cb612127c120100631b3802ab2854423781b521aafa
3
+ size 86676336