snnn001 commited on
Commit
e2406bf
·
verified ·
1 Parent(s): 1f6c9d0

Add LiteRT converted deit_small_patch16_224

Browse files
Files changed (2) hide show
  1. README.md +62 -0
  2. model.tflite +3 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: litert
3
+ base_model: timm/deit_small_patch16_224.fb_in1k
4
+ tags:
5
+ - vision
6
+ - image-classification
7
+ datasets:
8
+ - imagenet-1k
9
+ ---
10
+ # deit_small_patch16_224
11
+
12
+ Converted TIMM image classification model for LiteRT.
13
+
14
+ - Source architecture: `deit_small_patch16_224`
15
+ - Source checkpoint: `timm/deit_small_patch16_224.fb_in1k`
16
+ - File: `model.tflite`
17
+ - Input: `float32` tensor in NCHW layout, shape `[1, 3, 224, 224]`
18
+ - Output: ImageNet-1K logits, shape `[1, 1000]`
19
+
20
+ ## Runtime Status
21
+
22
+ - CPU smoke test: passed with LiteRT `CompiledModel`.
23
+ - GPU delegation: currently blocked for this model by rank-5 tensor patterns in the GPU backend, mostly `RESHAPE`, `TRANSPOSE`, and related window/attention operations. The model is published as CPU-ready while GPU support is being improved.
24
+
25
+ ## Model Details
26
+
27
+ - **Model Type:** Image classification / feature backbone
28
+ - **Model Stats:**
29
+ - Params (M): 22.1
30
+ - GMACs: 4.6
31
+ - Activations (M): 11.9
32
+ - Image size: 224 x 224
33
+ - **Papers:**
34
+ - Training data-efficient image transformers & distillation through attention: https://arxiv.org/abs/2012.12877
35
+ - **Original:** https://github.com/facebookresearch/deit
36
+ - **Dataset:** ImageNet-1k
37
+
38
+ ## Citation
39
+
40
+ ```bibtex
41
+ @InProceedings{pmlr-v139-touvron21a,
42
+ title = {Training data-efficient image transformers & distillation through attention},
43
+ author = {Touvron, Hugo and Cord, Matthieu and Douze, Matthijs and Massa, Francisco and Sablayrolles, Alexandre and Jegou, Herve},
44
+ booktitle = {International Conference on Machine Learning},
45
+ pages = {10347--10357},
46
+ year = {2021},
47
+ volume = {139},
48
+ month = {July}
49
+ }
50
+ ```
51
+ ```bibtex
52
+ @misc{rw2019timm,
53
+ author = {Ross Wightman},
54
+ title = {PyTorch Image Models},
55
+ year = {2019},
56
+ publisher = {GitHub},
57
+ journal = {GitHub repository},
58
+ doi = {10.5281/zenodo.4414861},
59
+ howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
60
+ }
61
+ ```
62
+
model.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05d1753946dda79975bc8235163bf50db27835719e42a0befb53f43d9404c20c
3
+ size 88212896