tarekziade HF Staff
Publish MIC usage, slim fixture and reviewed Transformers expectations
66f4e01 verified Download build.json from huggingface-mic/sam2.1-hiera-tiny-mic: direct link, hf CLI and curl.
- Browser
- Download file 10.6 kB
-
https://huggingface.co/huggingface-mic/sam2.1-hiera-tiny-mic/resolve/main/build.json
- Command line
-
hf download hf://huggingface-mic/sam2.1-hiera-tiny-mic/build.json
-
curl -L -o build.json https://huggingface.co/huggingface-mic/sam2.1-hiera-tiny-mic/resolve/main/build.json
10.6 kB
| { | |
| "fixture": "huggingface-mic/sam2.1-hiera-tiny-mic", | |
| "key": "b1ade3ded8b739e328b02a4a30c51c7762c69b8606dc041366b7b73d390fe507", | |
| "key_fields": { | |
| "architectures": [ | |
| "Sam2VideoModel" | |
| ], | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "vision_config": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "backbone_config": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 32, | |
| "num_attention_heads": 4, | |
| "num_channels": 3, | |
| "image_size": [ | |
| 1024, | |
| 1024 | |
| ], | |
| "patch_kernel_size": [ | |
| 7, | |
| 7 | |
| ], | |
| "patch_stride": [ | |
| 4, | |
| 4 | |
| ], | |
| "patch_padding": [ | |
| 3, | |
| 3 | |
| ], | |
| "query_stride": [ | |
| 2, | |
| 2 | |
| ], | |
| "window_positional_embedding_background_size": [ | |
| 7, | |
| 7 | |
| ], | |
| "num_query_pool_stages": 3, | |
| "blocks_per_stage": [ | |
| 1, | |
| 1, | |
| 2, | |
| 1 | |
| ], | |
| "embed_dim_per_stage": [ | |
| 32, | |
| 64, | |
| 128, | |
| 256 | |
| ], | |
| "num_attention_heads_per_stage": [ | |
| 1, | |
| 2, | |
| 4, | |
| 8 | |
| ], | |
| "window_size_per_stage": [ | |
| 8, | |
| 4, | |
| 14, | |
| 7 | |
| ], | |
| "global_attention_blocks": [ | |
| 3 | |
| ], | |
| "mlp_ratio": 4.0, | |
| "hidden_act": "gelu", | |
| "layer_norm_eps": 1e-06, | |
| "initializer_range": 0.02, | |
| "_name_or_path": "", | |
| "add_cross_attention": false, | |
| "bos_token_id": null, | |
| "cross_attention_hidden_size": null, | |
| "decoder_start_token_id": null, | |
| "eos_token_id": null, | |
| "finetuning_task": null, | |
| "is_decoder": false, | |
| "model_type": "sam2_hiera_det_model", | |
| "pad_token_id": null, | |
| "prefix": null, | |
| "pruned_heads": {}, | |
| "sep_token_id": null, | |
| "task_specific_params": null, | |
| "tf_legacy_loss": false, | |
| "tie_encoder_decoder": false, | |
| "tie_word_embeddings": true, | |
| "tokenizer_class": null, | |
| "torchscript": false, | |
| "use_bfloat16": false, | |
| "output_attentions": false | |
| }, | |
| "backbone_channel_list": [ | |
| 256, | |
| 128, | |
| 64, | |
| 32 | |
| ], | |
| "backbone_feature_sizes": [ | |
| [ | |
| 256, | |
| 256 | |
| ], | |
| [ | |
| 128, | |
| 128 | |
| ], | |
| [ | |
| 64, | |
| 64 | |
| ] | |
| ], | |
| "fpn_hidden_size": 128, | |
| "fpn_kernel_size": 1, | |
| "fpn_stride": 1, | |
| "fpn_padding": 0, | |
| "fpn_top_down_levels": [ | |
| 2, | |
| 3 | |
| ], | |
| "num_feature_levels": 3, | |
| "hidden_act": "gelu", | |
| "layer_norm_eps": 1e-06, | |
| "initializer_range": 0.02, | |
| "_name_or_path": "", | |
| "model_type": "sam2_vision_model", | |
| "output_attentions": false | |
| }, | |
| "prompt_encoder_config": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 128, | |
| "image_size": 1024, | |
| "patch_size": 16, | |
| "mask_input_channels": 16, | |
| "num_point_embeddings": 4, | |
| "hidden_act": "gelu", | |
| "layer_norm_eps": 1e-06, | |
| "scale": 1, | |
| "_name_or_path": "", | |
| "model_type": "sam2_prompt_encoder", | |
| "output_attentions": false | |
| }, | |
| "mask_decoder_config": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 128, | |
| "hidden_act": "gelu", | |
| "mlp_dim": 256, | |
| "num_hidden_layers": 2, | |
| "num_attention_heads": 4, | |
| "attention_downsample_rate": 2, | |
| "num_multimask_outputs": 3, | |
| "iou_head_depth": 3, | |
| "iou_head_hidden_dim": 128, | |
| "dynamic_multimask_via_stability": true, | |
| "dynamic_multimask_stability_delta": 0.05, | |
| "dynamic_multimask_stability_thresh": 0.98, | |
| "_name_or_path": "", | |
| "model_type": "sam2_mask_decoder", | |
| "output_attentions": false | |
| }, | |
| "initializer_range": 0.02, | |
| "enable_occlusion_spatial_embedding": true, | |
| "enable_temporal_pos_encoding_for_object_pointers": true, | |
| "image_size": 1024, | |
| "mask_downsampler_embed_dim": 256, | |
| "mask_downsampler_hidden_act": "gelu", | |
| "mask_downsampler_kernel_size": 3, | |
| "mask_downsampler_padding": 1, | |
| "mask_downsampler_stride": 2, | |
| "mask_downsampler_total_stride": 16, | |
| "max_object_pointers_in_encoder": 16, | |
| "memory_attention_downsample_rate": 1, | |
| "memory_attention_dropout": 0.1, | |
| "memory_attention_feed_forward_hidden_act": "relu", | |
| "memory_attention_feed_forward_hidden_size": 2048, | |
| "memory_attention_hidden_size": 256, | |
| "memory_attention_num_attention_heads": 1, | |
| "memory_attention_num_layers": 4, | |
| "memory_attention_rope_dropout": 0.1, | |
| "memory_attention_rope_feat_sizes": [ | |
| 64, | |
| 64 | |
| ], | |
| "memory_attention_rope_theta": 10000, | |
| "memory_encoder_hidden_size": 256, | |
| "memory_encoder_output_channels": 64, | |
| "memory_fuser_embed_dim": 256, | |
| "memory_fuser_hidden_act": "gelu", | |
| "memory_fuser_intermediate_dim": 1024, | |
| "memory_fuser_kernel_size": 7, | |
| "memory_fuser_layer_scale_init_value": 1e-06, | |
| "memory_fuser_num_layers": 2, | |
| "memory_fuser_padding": 3, | |
| "model_type": "sam2", | |
| "multimask_max_pt_num": 1, | |
| "multimask_min_pt_num": 0, | |
| "multimask_output_for_tracking": true, | |
| "multimask_output_in_sam": true, | |
| "num_maskmem": 7, | |
| "sigmoid_bias_for_mem_enc": -10.0, | |
| "sigmoid_scale_for_mem_enc": 20.0, | |
| "output_attentions": false | |
| }, | |
| "covers": { | |
| "facebook/sam2.1-hiera-tiny": "de431c4043854a71d8101e17995dfe596bf101a5" | |
| }, | |
| "built_from": { | |
| "repo": "facebook/sam2.1-hiera-tiny", | |
| "revision": "de431c4043854a71d8101e17995dfe596bf101a5" | |
| }, | |
| "seed": 17, | |
| "dtype": "float32", | |
| "builder": "example/build_fixtures.py", | |
| "model_class": "Sam2Model", | |
| "parameters": 1900913, | |
| "missing_parameters": [], | |
| "checkpoint_inspection": "parameter headers/indexes; bounded binary fallback", | |
| "numeric_health_scope": "CPU float32/bfloat16/float16; autocast for low-precision losses", | |
| "captured": { | |
| "call": "training step", | |
| "inputs": [ | |
| "input_labels", | |
| "input_points", | |
| "multimask_output", | |
| "original_sizes", | |
| "pixel_values" | |
| ], | |
| "class": "Sam2Model" | |
| }, | |
| "weights": "overfit", | |
| "gate": { | |
| "random": { | |
| "pass": false, | |
| "accepted_insensitive": { | |
| "pixel_values:swap_channels": { | |
| "delta": 1.0588206350803375e-05, | |
| "reason": "Reviewed 2026-10-27: the 1.9M-parameter Hiera fixture, overfit on two images, separates them by object position (roll_batch and flip move outputs by 1.7) but not by colour; channel swap moves it <1e-5 for random and overfit weights. The real checkpoint moves pred_masks by 2.6-23 under the same perturbation, so the checkpoint target keeps colour coverage." | |
| }, | |
| "pixel_values:halve": { | |
| "delta": 5.37186861038208e-06, | |
| "reason": "Reviewed 2026-10-27: same fixture, intensity halving moves outputs <1e-6 for random and overfit weights (position, not brightness, is what two training images teach a fixture this size). The real checkpoint moves pred_masks by 2.6-23, so the checkpoint target keeps intensity coverage." | |
| } | |
| }, | |
| "threshold": 0.001, | |
| "deltas": { | |
| "pixel_values:roll_batch": 5.0640664994716644e-05, | |
| "pixel_values:swap_channels": 1.0588206350803375e-05, | |
| "pixel_values:reverse": 1.1688098311424255e-06, | |
| "pixel_values:halve": 5.37186861038208e-06 | |
| }, | |
| "weakest": "pixel_values:reverse", | |
| "no_perturbation_defined": [ | |
| "original_sizes", | |
| "input_points", | |
| "input_labels" | |
| ] | |
| }, | |
| "overfit": { | |
| "pass": true, | |
| "accepted_insensitive": { | |
| "pixel_values:swap_channels": { | |
| "delta": 5.5730342864990234e-06, | |
| "reason": "Reviewed 2026-10-27: the 1.9M-parameter Hiera fixture, overfit on two images, separates them by object position (roll_batch and flip move outputs by 1.7) but not by colour; channel swap moves it <1e-5 for random and overfit weights. The real checkpoint moves pred_masks by 2.6-23 under the same perturbation, so the checkpoint target keeps colour coverage." | |
| }, | |
| "pixel_values:halve": { | |
| "delta": 1.4901161193847656e-07, | |
| "reason": "Reviewed 2026-10-27: same fixture, intensity halving moves outputs <1e-6 for random and overfit weights (position, not brightness, is what two training images teach a fixture this size). The real checkpoint moves pred_masks by 2.6-23, so the checkpoint target keeps intensity coverage." | |
| } | |
| }, | |
| "threshold": 0.001, | |
| "deltas": { | |
| "pixel_values:roll_batch": 1.7336113452911377, | |
| "pixel_values:swap_channels": 5.5730342864990234e-06, | |
| "pixel_values:reverse": 1.7357020378112793, | |
| "pixel_values:halve": 1.4901161193847656e-07 | |
| }, | |
| "weakest": "pixel_values:roll_batch", | |
| "no_perturbation_defined": [ | |
| "original_sizes", | |
| "input_points", | |
| "input_labels" | |
| ] | |
| } | |
| }, | |
| "training": { | |
| "seconds": 49.99, | |
| "steps": 50, | |
| "loss": 0.001560829346999526, | |
| "converged": true | |
| }, | |
| "numeric_health": { | |
| "float32": { | |
| "outputs_finite": true, | |
| "finite": true | |
| }, | |
| "bfloat16": { | |
| "outputs_finite": true, | |
| "finite": true | |
| }, | |
| "float16": { | |
| "outputs_finite": true, | |
| "finite": true | |
| } | |
| }, | |
| "copied_unchanged": [ | |
| "preprocessor_config.json", | |
| "processor_config.json", | |
| "sam2.1_hiera_t.yaml", | |
| "video_preprocessor_config.json" | |
| ], | |
| "environment": { | |
| "python": "3.11.14", | |
| "machine": "arm64", | |
| "torch": "2.14.1", | |
| "transformers": "5.20.1", | |
| "tokenizers": "0.23.3" | |
| }, | |
| "sha256": { | |
| "config.json": "d4ce921cc71f43024feeb644a44141fbdd1404302492709251d6abf53f5c099b", | |
| "model.safetensors": "6a75ef4a0962ebb2094a8551786bd4ab2688cddd88c44bdcd3af8be07e96b61e", | |
| "preprocessor_config.json": "6ebf229ee259368ce4a8d4f2fe893a72b053023710853e257253939e601f583d", | |
| "processor_config.json": "f8a68e865cfad115c1c2763f3d93eca7b1c622da06da2a9273eb437fb2389b6d", | |
| "sam2.1_hiera_t.yaml": "43e114f609a1af7efede061f5c186119d498acd31f118f300c07acf57d4a5eca", | |
| "video_preprocessor_config.json": "9fccfe5f464ec38c2f236d0e6a68e95511c80c22132fc2fa4b9f7b65f24fad95" | |
| } | |
| } | |