Image Feature Extraction
PerceptionEncoder
Safetensors
inkling2
vision-encoder
multimodal
extracted-component
modelopt
Instructions to use gatilin/inkling-2-small-vision-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PerceptionEncoder
How to use gatilin/inkling-2-small-vision-encoder with PerceptionEncoder:
# Use any PE model as a vision encoder import core.vision_encoder.pe as pe model = pe.VisionTransformer.from_config("gatilin/inkling-2-small-vision-encoder", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download validation.json from gatilin/inkling-2-small-vision-encoder: direct link, hf CLI and curl.
- Browser
- Download file 3.04 kB
-
https://huggingface.co/gatilin/inkling-2-small-vision-encoder/resolve/main/validation.json
- Command line
-
hf download hf://gatilin/inkling-2-small-vision-encoder/validation.json
-
curl -L -o validation.json https://huggingface.co/gatilin/inkling-2-small-vision-encoder/resolve/main/validation.json
3.04 kB
| { | |
| "passed": true, | |
| "source_revision": "1df2d97d45210d94f781f42a6521392e5a539e46", | |
| "model_sha256": "112c344cd13ab31fafd05354e2e47138e56f65659f4c4e12fffb70f4503fb5de", | |
| "tensor_count": 422, | |
| "strict_load": true, | |
| "native_model_layers": 23, | |
| "dtype_for_test": "CPU float32; artifact retains original BF16", | |
| "runtime": "Official Transformers v5.23.0 Inkling2 implementation source files over local Transformers 5.21.1 runtime; not a full v5.23.0 installation or GPU parity validation", | |
| "mapping": "Upstream v5.23.0 vision key renaming only, original weight-file names unchanged", | |
| "processor": "Official Inkling2ImageProcessor from source processor_config.json", | |
| "images": [ | |
| { | |
| "image": "000000000009.png", | |
| "sha256": "ec671f039c1e2b16ebad3cef3412bc61fdf4286a9b8b98c7c59f8bceb6ce5fbb", | |
| "image_grid_thw": [ | |
| 1, | |
| 6, | |
| 6 | |
| ], | |
| "patch_features_shape": [ | |
| 145, | |
| 1024 | |
| ], | |
| "projected_features_shape": [ | |
| 36, | |
| 4608 | |
| ], | |
| "output_rms": 0.1268739253282547, | |
| "repeat_max_abs_error": 0.0 | |
| }, | |
| { | |
| "image": "000000000030.png", | |
| "sha256": "1fbe2305d87d89ebd049c9d37e6795b76c10d7b0de5fab8c0cb58313cd1e4e11", | |
| "image_grid_thw": [ | |
| 1, | |
| 6, | |
| 6 | |
| ], | |
| "patch_features_shape": [ | |
| 145, | |
| 1024 | |
| ], | |
| "projected_features_shape": [ | |
| 36, | |
| 4608 | |
| ], | |
| "output_rms": 0.11602453887462616, | |
| "repeat_max_abs_error": 0.0 | |
| } | |
| ], | |
| "different_image_mean_abs_difference": 0.10026049613952637, | |
| "limitations": "Two real COCO128 images, repeat and input sensitivity only; no task performance or full multimodal pipeline.", | |
| "seconds": 27.13, | |
| "attention_check": { | |
| "image": "000000000009.png", | |
| "layers_zero_based": [ | |
| 0, | |
| 11, | |
| 22 | |
| ], | |
| "method": "one real image, explicitly reconstruct post-RoPE softmax(QK^T)\u00d7V and compare with native SDPA in CPU float32; entropy conditional on visual keys, CLS mass separately reported", | |
| "metrics": { | |
| "0": { | |
| "visual_key_conditional_entropy": 0.5031524896621704, | |
| "visual_key_mass": 0.2899220883846283, | |
| "cls_key_mass": 0.7100779414176941, | |
| "explicit_vs_sdpa_max_abs_error": 5.245208740234375e-06, | |
| "heads": 16, | |
| "visual_grid": [ | |
| 12, | |
| 12 | |
| ] | |
| }, | |
| "11": { | |
| "visual_key_conditional_entropy": 0.6134341359138489, | |
| "visual_key_mass": 0.7815268635749817, | |
| "cls_key_mass": 0.21847310662269592, | |
| "explicit_vs_sdpa_max_abs_error": 1.6689300537109375e-06, | |
| "heads": 16, | |
| "visual_grid": [ | |
| 12, | |
| 12 | |
| ] | |
| }, | |
| "22": { | |
| "visual_key_conditional_entropy": 0.7496984601020813, | |
| "visual_key_mass": 0.4160645008087158, | |
| "cls_key_mass": 0.5839354991912842, | |
| "explicit_vs_sdpa_max_abs_error": 3.814697265625e-06, | |
| "heads": 16, | |
| "visual_grid": [ | |
| 12, | |
| 12 | |
| ] | |
| } | |
| } | |
| } | |
| } | |