tarekziade HF Staff
Publish MIC usage, slim fixture and reviewed Transformers expectations
89ae45d verified Download integration.json from huggingface-mic/swin-tiny-patch4-window7-224-mic: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/huggingface-mic/swin-tiny-patch4-window7-224-mic/resolve/main/integration.json
- Command line
-
hf download hf://huggingface-mic/swin-tiny-patch4-window7-224-mic/integration.json
-
curl -L -o integration.json https://huggingface.co/huggingface-mic/swin-tiny-patch4-window7-224-mic/resolve/main/integration.json
2.03 kB
| { | |
| "mic": "0.3", | |
| "name": "Swin image classification", | |
| "usage": "AutoImageProcessor + AutoModelForImageClassification, batched, two synthetic images", | |
| "architecture": "SwinForImageClassification", | |
| "checkpoints": { | |
| "microsoft/swin-tiny-patch4-window7-224": { | |
| "fixture": "huggingface-mic/swin-tiny-patch4-window7-224-mic" | |
| } | |
| }, | |
| "fixtures": { | |
| "huggingface-mic/swin-tiny-patch4-window7-224-mic": { | |
| "built_from": "microsoft/swin-tiny-patch4-window7-224", | |
| "covers": [ | |
| "microsoft/swin-tiny-patch4-window7-224" | |
| ], | |
| "build": { | |
| "seed": 17, | |
| "accept_insensitive": { | |
| "pixel_values:halve": "The patch embedding is layer-normalized and its convolution bias initializes to zero, so a uniformly scaled image yields the same random-weight features" | |
| } | |
| } | |
| } | |
| }, | |
| "integrations": { | |
| "transformers": { | |
| "entry_point": "integrations/transformers/usage.md", | |
| "format": "runnable-markdown", | |
| "requires": [ | |
| "transformers>=5", | |
| "torch" | |
| ], | |
| "targets": [ | |
| "fixtures", | |
| "checkpoints" | |
| ], | |
| "variants": { | |
| "default": {}, | |
| "eager": { | |
| "attn_implementation": "eager" | |
| }, | |
| "bfloat16": { | |
| "dtype": "bfloat16" | |
| } | |
| }, | |
| "training": true, | |
| "resources": { | |
| "fixture": { | |
| "memory_gb": 2, | |
| "download_mb": 20 | |
| }, | |
| "microsoft/swin-tiny-patch4-window7-224": { | |
| "memory_gb": 4, | |
| "download_mb": 110 | |
| } | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "runtime": { | |
| "compare": "exact" | |
| }, | |
| "predicted_classes": { | |
| "compare": "exact" | |
| }, | |
| "logits.probe": { | |
| "compare": "allclose", | |
| "atol": 0.0001, | |
| "rtol": 0.0001 | |
| }, | |
| "training.loss": { | |
| "compare": "allclose", | |
| "atol": 0.0001, | |
| "rtol": 0.0001 | |
| }, | |
| "training.gradients": { | |
| "compare": "all_true" | |
| }, | |
| "training.updated": { | |
| "compare": "true" | |
| } | |
| } | |
| } | |