Instructions to use litert-community/swin_tiny_patch4_window7_224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/swin_tiny_patch4_window7_224 with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update TIMM FP32 and mixed INT8 exports
Browse filesPublish the validated FP32 export and convolution/FC static INT8 variant with CPU/GPU/NPU compatibility notes.
- README.md +15 -1
- model.tflite +2 -2
- model_static_int8.tflite +3 -0
README.md
CHANGED
|
@@ -13,7 +13,21 @@ datasets:
|
|
| 13 |
Converted TIMM image classification model for LiteRT.
|
| 14 |
|
| 15 |
- Source architecture: swin_tiny_patch4_window7_224
|
| 16 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
## Model Details
|
| 19 |
|
|
|
|
| 13 |
Converted TIMM image classification model for LiteRT.
|
| 14 |
|
| 15 |
- Source architecture: swin_tiny_patch4_window7_224
|
| 16 |
+
- FP32 file: `model.tflite`
|
| 17 |
+
- Static INT8 file: `model_static_int8.tflite`
|
| 18 |
+
|
| 19 |
+
## Compatibility
|
| 20 |
+
|
| 21 |
+
| File | CPU | GPU | NPU |
|
| 22 |
+
|---|---|---|---|
|
| 23 |
+
| `model.tflite` | Supported | Supported with CPU fallback | N/A |
|
| 24 |
+
| `model_static_int8.tflite` | Supported | Supported with CPU fallback | Qualcomm |
|
| 25 |
+
|
| 26 |
+
The NPU entry denotes compilation support; runtime accuracy is unverified.
|
| 27 |
+
|
| 28 |
+
`model_static_int8.tflite` uses INT8 inputs/outputs and convolution/FC quantization; attention, normalization and other operations remain FP32. Apply the source checkpoint’s preprocessing, then quantize the input and dequantize the output using the file’s tensor scales and zero points.
|
| 29 |
+
|
| 30 |
+
For GPU execution of `model_static_int8.tflite`, select FP32 GPU precision.
|
| 31 |
|
| 32 |
## Model Details
|
| 33 |
|
model.tflite
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99713f3f82e021d52aaa36f6a9d6fbcdcbc73d8ed039038f19224a55def93d41
|
| 3 |
+
size 114325744
|
model_static_int8.tflite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a8973be0b7b74b4bf46bef391ec645b4e5c11feb99d584f4a38e5a4f63aeccc
|
| 3 |
+
size 30740584
|