diff --git a/README.md b/README.md index 6729e5621097a2b0acdaf1becb19e75f25b51185..831d21614420c75fb7aaaa6b0f8e3a97facb542e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ --- -title: Mic Coverage -emoji: ⚡ +title: MIC coverage +emoji: 📋 colorFrom: blue -colorTo: purple +colorTo: green sdk: static pinned: false +short_description: MIC contract coverage of Transformers model types --- -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +Sortable list of every Transformers model type: whether it has a MIC contract (Done), can be reached with the generic shrink rule (Reachable), or not (Unreachable, with the sweep's reason), plus Hub downloads. diff --git a/data.json b/data.json new file mode 100644 index 0000000000000000000000000000000000000000..e6ee076d3841f4c2f28a5b55a9cec9a3d06d2ced --- /dev/null +++ b/data.json @@ -0,0 +1 @@ +{"rows": [["EvollaModel", "Reachable", "", 732, "westlake-repl/Evolla-10B-hf"], ["afmoe", "Reachable", "", 84004, "optimum-intel-internal-testing/tiny-random-trinity"], ["aimv2", "Reachable", "", 10627, "apple/aimv2-large-patch14-224-lit"], ["aimv2_text_model", "Unreachable", "component config only", 0, ""], ["aimv2_vision_model", "Reachable", "", 3412, "apple/aimv2-large-patch14-224"], ["albert", "Done", "", 2009876, "albert/albert-base-v2"], ["align", "Unreachable", "forward fails after shrink", 21429, "kakaobrain/align-base"], ["align_text_model", "Unreachable", "component config only", 0, ""], ["align_vision_model", "Unreachable", "component config only", 0, ""], ["altclip", "Reachable", "", 7652, "BAAI/AltCLIP"], ["altclip_text_model", "Unreachable", "component config only", 0, ""], ["altclip_vision_model", "Unreachable", "component config only", 0, ""], ["apertus", "Done", "", 457103, "swiss-ai/Apertus-8B-Instruct-2509"], ["arcee", "Reachable", "", 64187, "optimum-intel-internal-testing/tiny-random-ArceeForCausalLM"], ["aria", "Unreachable", "forward fails after shrink", 29760, "rhymes-ai/Aria"], ["aria_text", "Unreachable", "forward fails after shrink", 88, "hf-tiny-v2/tiny-random-AriaTextForCausalLM"], ["audio-spectrogram-transformer", "Unreachable", "forward fails after shrink", 1651174, "MIT/ast-finetuned-audioset-10-10-0.4593"], ["audioflamingo3", "Done", "", 144463, "nvidia/audio-flamingo-3-hf"], ["audioflamingo3_encoder", "Unreachable", "forward fails after shrink", 27, "hf-tiny-v2/tiny-random-AudioFlamingo3Encoder"], ["autoformer", "Unreachable", "synthetic inputs rejected", 79649, "huggingface/autoformer-tourism-monthly"], ["axk1", "Reachable", "", 5094, "skt/A.X-K1"], ["axk2", "Reachable", "", 90892, "skt/A.X-K2-NVFP4"], ["aya_vision", "Reachable", "", 3689, "CohereLabs/aya-vision-8b"], ["bailing_hybrid", "Unreachable", "forward fails after shrink", 727122, "rapid-mlx/Ling-3.0-tiny-MLX-4bit"], ["bamba", "Reachable", "", 11728, "ibm-ai-platform/Bamba-9B-v1"], ["bark", "Unreachable", "forward fails after shrink", 28264, "suno/bark"], ["bart", "Done", "", 6328395, "facebook/bart-large-mnli"], ["beam", "Reachable", "", 20667, "reflection/Beam-1.0-501B-A23B"], ["beit", "Done", "", 169127, "microsoft/dit-base-finetuned-rvlcdip"], ["bert", "Done", "", 527874026, "sentence-transformers/all-MiniLM-L6-v2"], ["bert-generation", "Reachable", "", 3386, "ybelkada/random-tiny-BertGenerationModel"], ["big_bird", "Done", "", 194505, "google/bigbird-roberta-base"], ["bigbird_pegasus", "Reachable", "", 71110, "optimum-intel-internal-testing/tiny-random-bigbird_pegasus"], ["biogpt", "Reachable", "", 56866, "optimum-intel-internal-testing/tiny-random-BioGptForCausalLM"], ["bit", "Unreachable", "model build fails", 8676, "google/bit-50"], ["bitnet", "Reachable", "", 35767, "optimum-intel-internal-testing/tiny-random-bitnet"], ["blenderbot", "Done", "", 235225, "optimum-intel-internal-testing/tiny-random-BlenderbotModel"], ["blenderbot-small", "Reachable", "", 5857, "facebook/blenderbot_small-90M"], ["blip", "Unreachable", "forward fails after shrink", 2359364, "Salesforce/blip-image-captioning-base"], ["blip-2", "Unreachable", "forward fails after shrink", 457477, "Salesforce/blip2-opt-2.7b"], ["blip_2_qformer", "Unreachable", "forward fails after shrink", 145, "hf-tiny-v2/tiny-random-Blip2QFormerModel"], ["blip_2_vision_model", "Unreachable", "component config only", 24, "tmnam20/blip2-opt-2.7b-vision"], ["blip_text_model", "Unreachable", "component config only", 0, ""], ["blip_vision_model", "Unreachable", "component config only", 0, ""], ["bloom", "Done", "", 1527823, "bigscience/bloomz-560m"], ["blt", "Unreachable", "forward fails after shrink", 6999, "itazap/blt-1b-hf"], ["blt_global_transformer", "No checkpoint", "no Hub checkpoint has this model_type (documented itazap/blt-1b-hf is another type)", 0, ""], ["blt_local_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented itazap/blt-1b-hf is another type)", 0, ""], ["blt_local_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented itazap/blt-1b-hf is another type)", 0, ""], ["blt_patcher", "No checkpoint", "no Hub checkpoint has this model_type (documented itazap/blt-1b-hf is another type)", 0, ""], ["bridgetower", "Reachable", "", 80, "regisss/bridgetower-newyorker-a100-8x"], ["bridgetower_text_model", "No checkpoint", "no Hub checkpoint has this model_type (documented BridgeTower/bridgetower-base is another type)", 0, ""], ["bridgetower_vision_model", "No checkpoint", "no Hub checkpoint has this model_type (documented BridgeTower/bridgetower-base is another type)", 0, ""], ["bros", "Unreachable", "forward fails after shrink", 42661, "naver-clova-ocr/bros-base-uncased"], ["camembert", "Done", "", 2226781, "almanach/camembert-base"], ["canary", "Unreachable", "forward fails after shrink", 237192, "nvidia/canary-1b-v2"], ["canary_decoder", "Unreachable", "component config only", 0, ""], ["canine", "Done", "", 167492, "google/canine-c"], ["chameleon", "Reachable", "", 8504, "facebook/chameleon-7b"], ["chameleon_vqgan", "Unreachable", "component config only", 33, "leloy/Anole-7b-v0.1-vqvae-hf"], ["chinese_clip", "Done", "", 276376, "OFA-Sys/chinese-clip-vit-base-patch16"], ["chinese_clip_text_model", "Unreachable", "component config only", 0, ""], ["chinese_clip_vision_model", "Reachable", "", 57, "hf-tiny-v2/tiny-random-ChineseCLIPVisionModel"], ["chmv2", "Unreachable", "forward fails after shrink", 1526, "facebook/dinov3-vitl16-chmv2-dpt-head"], ["clap", "Done", "", 9104856, "laion/clap-htsat-fused"], ["clap_audio_model", "Unreachable", "component config only", 257, "NGDtuanh/abook-music-student"], ["clap_text_model", "Unreachable", "component config only", 61, "werent4/larger_clap_general_text_model"], ["clip", "Done", "", 37612455, "openai/clip-vit-base-patch32"], ["clip_text_model", "Done", "", 940714, "peft-internal-testing/tiny-clip-text-2"], ["clip_vision_model", "Done", "", 432156, "xingpng/OneIG-StyleEncoder"], ["clipseg", "Done", "", 545844, "CIDAS/clipseg-rd64-refined"], ["clipseg_text_model", "Unreachable", "component config only", 0, ""], ["clipseg_vision_model", "Unreachable", "component config only", 0, ""], ["clvp", "Unreachable", "forward fails after shrink", 5530, "susnato/clvp_dev"], ["clvp_decoder", "Unreachable", "component config only", 0, ""], ["clvp_encoder", "Unreachable", "component config only", 0, ""], ["codegen", "Unreachable", "forward fails after shrink", 168810, "Salesforce/codegen2-16B_P"], ["cohere", "Done", "", 166589, "optimum-intel-internal-testing/tiny-random-CohereForCausalLM"], ["cohere2", "Done", "", 162977, "optimum-intel-internal-testing/tiny-random-aya-base"], ["cohere2_moe", "Reachable", "", 15203, "CohereLabs/North-Mini-Code-1.0"], ["cohere2_vision", "Reachable", "", 37679, "CohereLabs/command-a-plus-05-2026-bf16"], ["cohere_asr", "Unreachable", "forward fails after shrink", 350010, "CohereLabs/cohere-transcribe-arabic-07-2026"], ["cohere_compass", "Reachable", "", 34840, "CohereLabs/North-Micro-Vision-Instruct"], ["cohere_compass_text", "Reachable", "", 41, "hf-tiny-v2/tiny-random-CohereCompassTextForSequenceClassification"], ["cohere_compass_vision", "Unreachable", "forward fails after shrink", 15, "hf-tiny-v2/tiny-random-CohereCompassVisionModel"], ["colmodernvbert", "Unreachable", "no usable checkpoint", 1649, "Qdrant/colmodernvbert"], ["colpali", "Reachable", "", 8568, "vidore/colpali-v1.3-hf"], ["colqwen2", "Reachable", "", 36700, "vidore/colqwen2-v1.0-hf"], ["conditional_detr", "Reachable", "", 62673, "yainage90/fashion-object-detection"], ["convbert", "Done", "", 509373, "YituTech/conv-bert-base"], ["convnext", "Done", "", 192305, "facebook/convnext-tiny-224"], ["convnextv2", "Done", "", 330963, "facebook/convnextv2-base-22k-384"], ["cosmos3_edge", "Reachable", "", 83288, "nvidia/Cosmos3-Edge"], ["cosmos3_edge_text", "Reachable", "", 14, "hf-tiny-v2/tiny-random-Cosmos3EdgeTextModel"], ["cosmos3_edge_vision", "Unreachable", "forward fails after shrink", 12, "hf-tiny-v2/tiny-random-Cosmos3EdgeVisionModel"], ["cosmos3_omni", "Done", "", 244937, "nvidia/Cosmos3-Nano"], ["cpmant", "Reachable", "", 3742, "openbmb/cpm-ant-10b"], ["csm", "Done", "", 145078, "sesame/csm-1b"], ["csm_depth_decoder_model", "Unreachable", "checkpoint gated", 0, "sesame/csm-1b"], ["ctrl", "Reachable", "", 17032, "Salesforce/ctrl"], ["cvt", "Reachable", "", 12319, "microsoft/cvt-13"], ["cwm", "Unreachable", "no usable checkpoint", 1007, "facebook/cwm"], ["d_fine", "Unreachable", "forward fails after shrink", 126298, "ustc-community/dfine-xlarge-obj2coco"], ["dab-detr", "Unreachable", "config load fails", 7050, "IDEA-Research/dab-detr-resnet-50"], ["dac", "Unreachable", "forward fails after shrink", 72000, "descript/dac_44khz"], ["data2vec-audio", "Reachable", "", 39013, "optimum-intel-internal-testing/tiny-random-Data2VecAudioModel"], ["data2vec-text", "Reachable", "", 7219, "optimum-intel-internal-testing/tiny-random-Data2VecTextModel"], ["data2vec-vision", "Unreachable", "shrink fails", 17284, "optimum-intel-internal-testing/tiny-random-Data2VecVisionModel"], ["dbrx", "Reachable", "", 16983, "trl-internal-testing/tiny-DbrxForCausalLM"], ["deberta", "Done", "", 692267, "microsoft/deberta-large-mnli"], ["deberta-v2", "Done", "", 21746039, "microsoft/mdeberta-v3-base"], ["decision_transformer", "Unreachable", "synthetic inputs rejected", 6158, "edbeeching/decision-transformer-gym-hopper-medium"], ["deepseek_ocr2", "Unreachable", "synthetic inputs rejected", 22922, "optimum-intel-internal-testing/tiny-random-deepseek-ocr-2"], ["deepseek_ocr2_encoder", "Unreachable", "component config only", 0, ""], ["deepseek_ocr2_sam_vision_model", "Unreachable", "component config only", 0, ""], ["deepseek_ocr2_text", "Unreachable", "component config only", 0, ""], ["deepseek_ocr2_vision", "Unreachable", "component config only", 0, ""], ["deepseek_v2", "Done", "", 668975, "deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct"], ["deepseek_v3", "Done", "", 4950570, "deepseek-ai/DeepSeek-R1"], ["deepseek_v32", "Done", "", 6161743, "deepseek-ai/DeepSeek-V3.2"], ["deepseek_v4", "Done", "", 6213673, "deepseek-ai/DeepSeek-V4-Flash-0731"], ["deepseek_vl", "Reachable", "", 8828, "deepseek-community/deepseek-vl-1.3b-chat"], ["deepseek_vl_hybrid", "Reachable", "", 8249, "deepseek-community/deepseek-vl-7b-chat"], ["deformable_detr", "Reachable", "", 23013, "SenseTime/deformable-detr"], ["deimv2", "Unreachable", "forward fails after shrink", 4393, "alessioarcara/deimv2-deimv2_dinov3_x_coco"], ["deit", "Reachable", "", 50030, "facebook/deit-base-distilled-patch16-384"], ["depth_anything", "Unreachable", "forward fails after shrink", 2447209, "depth-anything/Depth-Anything-V2-Small-hf"], ["depth_pro", "Unreachable", "forward fails after shrink", 52957, "apple/DepthPro-hf"], ["detr", "Done", "", 385370, "TahaDouaji/detr-doc-table-detection"], ["dia", "Unreachable", "no usable checkpoint", 16396, "nari-labs/Dia-1.6B-0626"], ["dia_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented nari-labs/Dia-1.6B is another type)", 0, ""], ["dia_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented nari-labs/Dia-1.6B is another type)", 0, ""], ["diffllama", "Reachable", "", 4593, "kajuma/DiffLlama-0.3B-handcut"], ["diffusion_gemma", "Unreachable", "forward fails after shrink", 1034537, "google/diffusiongemma-26B-A4B-it"], ["diffusion_gemma_text", "Unreachable", "component config only", 0, ""], ["dinat", "Unreachable", "model build fails", 209, "shi-labs/dinat-mini-in1k-224"], ["dinov2", "Done", "", 7235906, "facebook/dinov2-base"], ["dinov2_with_registers", "Done", "", 354429, "facebook/dinov2-with-registers-base"], ["dinov3_convnext", "Reachable", "", 95750, "facebook/dinov3-convnext-tiny-pretrain-lvd1689m"], ["dinov3_vit", "Done", "", 2089303, "facebook/dinov3-vitl16-pretrain-lvd1689m"], ["distilbert", "Done", "", 20324420, "distilbert/distilbert-base-uncased"], ["doge", "Reachable", "", 8362, "SmallDoge/Doge-320M"], ["donut-swin", "Reachable", "", 2963, "optimum-intel-internal-testing/tiny-random-DonutSwinModel"], ["dots1", "Reachable", "", 6731, "rednote-hilab/dots.llm1.base"], ["dpr", "Reachable", "", 53829, "facebook/dpr-question_encoder-single-nq-base"], ["dpt", "Done", "", 620365, "Intel/dpt-hybrid-midas"], ["edgetam", "Unreachable", "no usable checkpoint", 9579, "onnx-community/EdgeTAM-ONNX"], ["edgetam_mask_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented yonigozlan/EdgeTAM-hf is another type)", 0, ""], ["edgetam_prompt_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented yonigozlan/EdgeTAM-hf is another type)", 0, ""], ["edgetam_video", "Unreachable", "forward fails after shrink", 11709, "yonigozlan/EdgeTAM-hf"], ["edgetam_video_mask_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented yonigozlan/EdgeTAM-hf is another type)", 0, ""], ["edgetam_video_prompt_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented yonigozlan/EdgeTAM-hf is another type)", 0, ""], ["edgetam_vision_model", "Reachable", "", 53, "hf-tiny-v2/tiny-random-EdgeTamVisionModel"], ["efficientloftr", "Unreachable", "shrink fails", 16245, "zju-community/efficientloftr"], ["efficientnet", "Unreachable", "forward fails after shrink", 168152, "docling-project/DocumentFigureClassifier-v2.5"], ["electra", "Done", "", 28465435, "google/electra-base-discriminator"], ["embedding_gemma2", "Done", "", 719174, "onnx-community/embeddinggemma-2-ONNX"], ["embedding_gemma2_text", "Reachable", "", 171, "HukukcuApp/tr-legal-embedding-gemma-2"], ["emu3", "Reachable", "", 20741, "BAAI/Emu3-Chat-hf"], ["emu3_text_model", "Unreachable", "component config only", 118, "hf-tiny-v2/tiny-random-Emu3TextModel"], ["emu3_vqgan", "Unreachable", "component config only", 0, ""], ["encodec", "Unreachable", "forward fails after shrink", 105065, "facebook/encodec_24khz"], ["encoder-decoder", "Done", "", 29649, "optimum-internal-testing/tiny-random-encoder-decoder-gpt2-bert"], ["eomt", "Unreachable", "forward fails after shrink", 67972, "tue-mps/coco_panoptic_eomt_large_640"], ["eomt_dinov3", "Unreachable", "forward fails after shrink", 21640, "tue-mps/eomt-dinov3-ade-semantic-large-512"], ["ernie", "Reachable", "", 73981, "shibing624/text2vec-base-chinese-paraphrase"], ["ernie4_5", "Reachable", "", 14731, "baidu/ERNIE-4.5-0.3B-PT"], ["ernie4_5_moe", "Unreachable", "forward fails after shrink", 123822, "baidu/ERNIE-4.5-21B-A3B-Thinking"], ["ernie4_5_vl_moe", "Unreachable", "forward fails after shrink", 45, "hf-tiny-v2/tiny-random-Ernie4_5_VLMoeForConditionalGeneration"], ["ernie4_5_vl_moe_text", "No checkpoint", "no Hub checkpoint has this model_type (documented baidu/ERNIE-4.5-VL-28B-A3B-PT is another type)", 0, ""], ["ernie4_5_vl_moe_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented baidu/ERNIE-4.5-VL-28B-A3B-PT is another type)", 0, ""], ["esm", "Done", "", 7030784, "facebook/esm2_t33_650M_UR50D"], ["esmc", "Done", "", 393143, "biohub/ESMC-300M"], ["esmfold2", "Unreachable", "shrink fails", 388538, "biohub/ESMFold2"], ["eurobert", "Done", "", 847801, "OpenMed/OpenMed-NER-ChemicalDetect-EuroMed-212M"], ["evolla", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["exaone4", "Reachable", "", 64834, "LGAI-EXAONE/EXAONE-4.0-32B"], ["exaone4_5", "Reachable", "", 39320, "LGAI-EXAONE/EXAONE-4.5-33B"], ["exaone4_5_vision", "Unreachable", "forward fails after shrink", 31, "hf-tiny-v2/tiny-random-Exaone4_5_VisionModel"], ["exaone_moe", "Reachable", "", 18548, "LGAI-EXAONE/K-EXAONE-236B-A23B"], ["falcon", "Done", "", 350854, "tiiuae/falcon-7b"], ["falcon_h1", "Done", "", 104762, "tiiuae/Falcon-H1-3B-Instruct"], ["falcon_mamba", "Reachable", "", 61205, "trl-internal-testing/tiny-FalconMambaForCausalLM"], ["fast_vlm", "Reachable", "", 5841, "KamilaMila/FastVLM-7B"], ["fastspeech2_conformer", "Unreachable", "forward fails after shrink", 2880, "espnet/fastspeech2_conformer"], ["fastspeech2_conformer_hifigan", "No checkpoint", "no Hub checkpoint has this model_type (documented espnet/fastspeech2_conformer_with_hifigan is another type)", 0, ""], ["fastspeech2_conformer_with_hifigan", "Unreachable", "forward fails after shrink", 2800, "espnet/fastspeech2_conformer_with_hifigan"], ["flaubert", "Reachable", "", 74651, "flaubert/flaubert_base_uncased"], ["flava", "Reachable", "", 32370, "facebook/flava-full"], ["flava_image_codebook", "Unreachable", "component config only", 23, "facebook/flava-image-codebook"], ["flava_image_model", "Unreachable", "component config only", 0, ""], ["flava_multimodal_model", "Unreachable", "component config only", 0, ""], ["flava_text_model", "Unreachable", "component config only", 0, ""], ["flex_olmo", "Reachable", "", 12810, "allenai/FlexOlmo-7x7B-1T"], ["flint", "Reachable", "", 60545, "RecursiveSI/flint"], ["florence2", "Done", "", 4293112, "microsoft/Florence-2-base"], ["florence_vision", "Unreachable", "component config only", 0, ""], ["fnet", "Done", "", 478381, "google/fnet-base"], ["focalnet", "Reachable", "", 11569, "microsoft/focalnet-tiny"], ["fsmt", "Reachable", "", 57368, "facebook/wmt19-en-de"], ["fun_asr_nano", "Unreachable", "shrink fails", 162557, "FunAudioLLM/Fun-ASR-Nano-2512-hf"], ["fun_asr_nano_encoder", "Unreachable", "forward fails after shrink", 21, "hf-tiny-v2/tiny-random-FunAsrNanoEncoder"], ["funnel", "Reachable", "", 11894, "funnel-transformer/small"], ["fuyu", "Reachable", "", 12098, "adept/fuyu-8b"], ["gemma", "Done", "", 611743, "google/gemma-2b"], ["gemma2", "Done", "", 2138107, "hugging-quants/gemma-2-9b-it-AWQ-INT4"], ["gemma3", "Done", "", 6276380, "google/gemma-3-4b-it"], ["gemma3_text", "Done", "", 3985142, "google/embeddinggemma-300m"], ["gemma3n", "Done", "", 360811, "unsloth/gemma-3n-E4B-it"], ["gemma3n_audio", "Unreachable", "synthetic inputs rejected", 63, "hf-tiny-v2/tiny-random-Gemma3nAudioEncoder"], ["gemma3n_text", "Reachable", "", 2175, "optimum-intel-internal-testing/tiny-random-gemma3n-text"], ["gemma3n_vision", "Reachable", "", 0, ""], ["gemma4", "Done", "", 47591452, "google/gemma-4-31B-it"], ["gemma4_assistant", "Unreachable", "forward fails after shrink", 683069, "google/gemma-4-26B-A4B-it-assistant"], ["gemma4_audio", "Unreachable", "forward fails after shrink", 138, "rnagabh/gemma4-audio-encoder"], ["gemma4_text", "Reachable", "", 41837, "AlexKoff88/gemma4_tinystories"], ["gemma4_unified", "Done", "", 4749964, "google/gemma-4-12B-it"], ["gemma4_unified_assistant", "Unreachable", "forward fails after shrink", 37821, "google/gemma-4-12B-it-assistant"], ["gemma4_unified_audio", "Unreachable", "component config only", 0, ""], ["gemma4_unified_text", "Reachable", "", 2960, "jgeuter/Jeff-1.0-Medium"], ["gemma4_unified_vision", "Unreachable", "component config only", 0, ""], ["gemma4_vision", "Unreachable", "forward fails after shrink", 214, "rnagabh/gemma4-vision-encoder"], ["git", "Reachable", "", 46165, "microsoft/git-base"], ["git_vision_model", "Unreachable", "component config only", 0, ""], ["glm", "Unreachable", "no usable checkpoint", 43219, "optimum-intel-internal-testing/tiny-random-glm-edge"], ["glm4", "Done", "", 139087, "optimum-intel-internal-testing/tiny-random-glm4"], ["glm46v", "Unreachable", "no usable checkpoint", 170, "hf-tiny-v2/tiny-random-Glm46VModel"], ["glm4_moe", "Done", "", 1607130, "zai-org/GLM-4.5-Air"], ["glm4_moe_lite", "Done", "", 1802094, "zai-org/GLM-4.7-Flash"], ["glm4v", "Unreachable", "forward fails after shrink", 277739, "zai-org/GLM-4.1V-9B-Thinking"], ["glm4v_moe", "Unreachable", "forward fails after shrink", 35179, "zai-org/GLM-4.5V"], ["glm4v_moe_text", "Unreachable", "forward fails after shrink", 58, "hf-tiny-v2/tiny-random-Glm4vMoeTextModel"], ["glm4v_moe_vision", "Unreachable", "no usable checkpoint", 38, "hf-tiny-v2/tiny-random-Glm4vMoeVisionModel"], ["glm4v_text", "Unreachable", "forward fails after shrink", 58, "hf-tiny-v2/tiny-random-Glm4vTextModel"], ["glm4v_vision", "Unreachable", "forward fails after shrink", 38, "hf-tiny-v2/tiny-random-Glm4vVisionModel"], ["glm5_next", "Done", "", 7619607, "zai-org/GLM-5.3-Flash"], ["glm5_next_text", "Reachable", "", 23, "hf-tiny-v2/tiny-random-Glm5NextTextModel"], ["glm5_next_vision", "Unreachable", "forward fails after shrink", 65, "immanuelpeter/GLM-5.3-Flash-Vision"], ["glm_image", "Unreachable", "no usable checkpoint", 111, "hf-tiny-v2/tiny-random-GlmImageModel"], ["glm_image_text", "Unreachable", "no usable checkpoint", 55, "hf-tiny-v2/tiny-random-GlmImageTextModel"], ["glm_image_vision", "Unreachable", "no usable checkpoint", 35, "hf-tiny-v2/tiny-random-GlmImageVisionModel"], ["glm_image_vqmodel", "Unreachable", "no usable checkpoint", 6, "hf-tiny-v2/tiny-random-GlmImageVQVAE"], ["glm_moe_dsa", "Done", "", 7133417, "zai-org/GLM-5.3"], ["glm_ocr", "Done", "", 1798225, "zai-org/GLM-OCR"], ["glm_ocr_text", "Reachable", "", 51, "hf-tiny-v2/tiny-random-GlmOcrTextModel"], ["glm_ocr_vision", "Unreachable", "forward fails after shrink", 33, "hf-tiny-v2/tiny-random-GlmOcrVisionModel"], ["glmasr", "Reachable", "", 31331, "zai-org/GLM-ASR-Nano-2512"], ["glmasr_encoder", "Reachable", "", 50, "hf-tiny-v2/tiny-random-GlmAsrEncoder"], ["glmga", "No checkpoint", "no Hub checkpoint has this model_type (documented zai-org/GLM-4.1V-9B-Thinking is another type)", 0, ""], ["glpn", "Reachable", "", 8196, "vinvino02/glpn-kitti"], ["got_ocr2", "Done", "", 56531, "stepfun-ai/GOT-OCR-2.0-hf"], ["got_ocr2_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam-vit-huge is another type)", 0, ""], ["gpt-sw3", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["gpt2", "Done", "", 30545353, "openai-community/gpt2"], ["gpt_bigcode", "Done", "", 188077, "bigcode/tiny_starcoder_py"], ["gpt_neo", "Unreachable", "shrink fails", 865506, "EleutherAI/gpt-neo-125m"], ["gpt_neox", "Done", "", 7013890, "EleutherAI/pythia-160m"], ["gpt_neox_japanese", "Reachable", "", 46916, "optimum-intel-internal-testing/tiny-random-GPTNeoXJapaneseForCausalLM"], ["gpt_oss", "Done", "", 10738031, "openai/gpt-oss-20b"], ["gptj", "Unreachable", "forward fails after shrink", 188360, "EleutherAI/gpt-j-6b"], ["gradium_phonon_tts", "Unreachable", "shrink fails", 114118, "gradium/phonon-31m-en"], ["granite", "Done", "", 1699090, "ibm-granite/granite-4.1-3b"], ["granite4_vision", "Done", "", 194823, "ibm-granite/granite-vision-4.1-4b"], ["granite4_vision_text", "No checkpoint", "no Hub checkpoint has this model_type (documented ibm-granite4_vision_text/granite4_vision_text-3.0-8b-base does not exist)", 0, ""], ["granite_speech", "Done", "", 494648, "ibm-granite/granite-4.0-1b-speech"], ["granite_speech5_ctc", "Unreachable", "forward fails after shrink", 99951, "ibm-granite/granite-speech-5.0-470m-turboctc"], ["granite_speech5_encoder", "Unreachable", "forward fails after shrink", 17, "hf-tiny-v2/tiny-random-GraniteSpeech5Encoder"], ["granite_speech_encoder", "Unreachable", "component config only", 0, ""], ["granite_speech_plus", "Unreachable", "shrink fails", 29187, "ibm-granite/granite-speech-4.1-2b-plus"], ["granite_speech_plus_encoder", "Unreachable", "component config only", 0, ""], ["granite_swa", "Reachable", "", 7057, "ibm-granite/granite-swash-2b"], ["granitemoe", "Done", "", 244089, "ibm-granite/granite-3.1-3b-a800m-instruct"], ["granitemoe_swa", "Reachable", "", 6507, "ibm-granite/granite-swash-3b-a600m"], ["granitemoehybrid", "Done", "", 332014, "optimum-intel-internal-testing/tiny-random-granitemoehybrid"], ["granitemoeshared", "Unreachable", "no usable checkpoint", 1648, "ibm-research/moe-7b-1b-active-shared-experts"], ["grounding-dino", "Done", "", 2682931, "IDEA-Research/grounding-dino-base"], ["groupvit", "Reachable", "", 6660, "nvidia/groupvit-gcc-yfcc"], ["groupvit_text_model", "Unreachable", "component config only", 0, ""], ["groupvit_vision_model", "Unreachable", "component config only", 0, ""], ["gte", "Reachable", "", 56943, "Snowflake/snowflake-arctic-embed-m-v2.0"], ["helium", "Reachable", "", 6264, "kyutai/helium-1-preview-2b"], ["hgnet_v2", "Unreachable", "forward fails after shrink", 149, "ustc-community/hgnet-v2"], ["hiera", "Reachable", "", 11635, "facebook/hiera-tiny-224-hf"], ["higgs_audio_v2", "Reachable", "", 21331, "bosonai/higgs-tts-2-3b-base"], ["higgs_audio_v2_tokenizer", "Unreachable", "model build fails", 235573, "eustlb/higgs-audio-v2-tokenizer"], ["hrm_text", "Unreachable", "forward fails after shrink", 14676, "sapientinc/HRM-Text-1B"], ["hubert", "Done", "", 1327557, "facebook/hubert-large-ls960-ft"], ["hunyuan_v1_dense", "Done", "", 197468, "optimum-intel-internal-testing/tiny-random-hunyuan-v1-dense"], ["hunyuan_v1_moe", "Unreachable", "forward fails after shrink", 64830, "tencent/Hunyuan-A13B-Instruct"], ["hunyuan_vl", "Done", "", 807278, "tencent/HunyuanOCR"], ["hunyuan_vl_text", "Unreachable", "no usable checkpoint", 9, "hf-tiny-v2/tiny-random-HunYuanVLTextModel"], ["hunyuan_vl_vision", "Unreachable", "no usable checkpoint", 10, "hf-tiny-v2/tiny-random-HunYuanVLVisionTransformer"], ["hy_v3", "Done", "", 1408804, "tencent/Hy3"], ["hy_v4", "Reachable", "", 32339, "tencent/Hy4-preview-FP8"], ["hyperclovax", "Reachable", "", 20512, "naver-hyperclovax/HyperCLOVAX-SEED-Think-14B"], ["hyperclovax_vision_v2", "Reachable", "", 10279, "naver-hyperclovax/HyperCLOVAX-SEED-Think-32B"], ["ibert", "Reachable", "", 40201, "optimum-intel-internal-testing/tiny-random-ibert"], ["idefics", "Unreachable", "forward fails after shrink", 21036, "HuggingFaceM4/idefics-80b-instruct"], ["idefics2", "Reachable", "", 18780, "HuggingFaceM4/idefics2-8b"], ["idefics2_perceiver", "No checkpoint", "no Hub checkpoint has this model_type (documented HuggingFaceM4/idefics2-8b is another type)", 0, ""], ["idefics2_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented HuggingFaceM4/idefics2-8b is another type)", 0, ""], ["idefics3", "Done", "", 776490, "ibm-granite/granite-docling-258M"], ["idefics3_vision", "Unreachable", "no usable checkpoint", 53, "hf-tiny-v2/tiny-random-Idefics3VisionTransformer"], ["idefics_perciever", "No checkpoint", "no Hub checkpoint has this model_type (documented HuggingFaceM4/idefics-9b is another type)", 0, ""], ["idefics_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented HuggingFaceM4/idefics-9b is another type)", 0, ""], ["ijepa", "Reachable", "", 23643, "facebook/ijepa_vith14_1k"], ["imagegpt", "Reachable", "", 7911, "openai/imagegpt-small"], ["informer", "Unreachable", "synthetic inputs rejected", 30807, "huggingface/informer-tourism-monthly"], ["inkling_audio", "No checkpoint", "no Hub checkpoint has this model_type (documented thinkingmachines/Inkling is another type)", 0, ""], ["inkling_mm_model", "Done", "", 3938529, "thinkingmachines/Inkling"], ["inkling_text", "Unreachable", "no usable checkpoint", 33, "hf-tiny-v2/tiny-random-InklingTextModel"], ["inkling_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented thinkingmachines/Inkling is another type)", 0, ""], ["instructblip", "Unreachable", "forward fails after shrink", 28294, "Salesforce/instructblip-flan-t5-xl"], ["instructblip_qformer", "Unreachable", "component config only", 0, ""], ["instructblip_vision_model", "Unreachable", "component config only", 0, ""], ["instructblipvideo", "Unreachable", "no usable checkpoint", 64, "hf-tiny-v2/tiny-random-InstructBlipVideoForConditionalGeneration"], ["instructblipvideo_qformer", "No checkpoint", "no Hub checkpoint has this model_type (documented Salesforce/instructblip-flan-t5-xl is another type)", 0, ""], ["instructblipvideo_vision_model", "No checkpoint", "no Hub checkpoint has this model_type (documented Salesforce/instructblip-flan-t5-xl is another type)", 0, ""], ["internvl", "Done", "", 873854, "OpenGVLab/InternVL3_5-GPT-OSS-20B-A4B-Preview-HF"], ["internvl_vision", "Reachable", "", 105, "hf-tiny-v2/tiny-random-InternVLVisionModel"], ["jais2", "Reachable", "", 5408, "inception42/Jais-2-8B-Chat"], ["jamba", "Done", "", 210865, "ai21labs/Jamba-tiny-dev"], ["janus", "Done", "", 9275, "deepseek-community/Janus-Pro-1B"], ["janus_vision_model", "Unreachable", "component config only", 0, ""], ["janus_vqgan", "Unreachable", "component config only", 0, ""], ["jetmoe", "Reachable", "", 5517, "jetmoe/jetmoe-8b"], ["jina_embeddings_v3", "Done", "", 245085, "jinaai/jina-embeddings-v3-hf"], ["kimi_k25", "Reachable", "", 1381590, "moonshotai/Kimi-K2.5"], ["kimi_k25_vision", "Unreachable", "no usable checkpoint", 26, "Aquiles-ai/MoonViT-3D"], ["kimi_linear", "Unreachable", "shrink fails", 214668, "moonshotai/Kimi-Linear-48B-A3B-Instruct"], ["kolibri1", "Reachable", "", 52602, "Aleph-Alpha/Kolibri-1"], ["kosmos-2", "Unreachable", "forward fails after shrink", 24555, "microsoft/kosmos-2-patch14-224"], ["kosmos-2.5", "Reachable", "", 7720, "microsoft/kosmos-2.5"], ["kosmos_2_5_text_model", "Unreachable", "component config only", 14, "Fireblossom/kosmos-2.5-4bit-text"], ["kosmos_2_5_vision_model", "Unreachable", "component config only", 15, "Fireblossom/kosmos-2.5-4bit-vision"], ["kosmos_2_text_model", "Unreachable", "component config only", 0, ""], ["kosmos_2_vision_model", "Unreachable", "component config only", 0, ""], ["kyutai_speech_to_text", "Unreachable", "forward fails after shrink", 8225, "kyutai/stt-2.6b-en-trfs"], ["laguna", "Done", "", 3313579, "poolside/Laguna-XS.2"], ["lasr_ctc", "Unreachable", "forward fails after shrink", 13038, "google/medasr"], ["lasr_encoder", "Unreachable", "no usable checkpoint", 40, "hf-tiny-v2/tiny-random-LasrEncoder"], ["layoutlm", "Done", "", 518133, "impira/layoutlm-document-qa"], ["layoutlmv2", "Unreachable", "model build fails", 440458, "microsoft/layoutxlm-base"], ["layoutlmv3", "Unreachable", "forward fails after shrink", 970269, "microsoft/layoutlmv3-base"], ["layoutxlm", "No checkpoint", "no Hub checkpoint has this model_type (documented microsoft/layoutxlm-base is another type)", 0, ""], ["led", "Unreachable", "model build fails", 33694, "allenai/led-base-16384"], ["levit", "Reachable", "", 19387, "optimum-intel-internal-testing/tiny-random-LevitModel"], ["lfm2", "Done", "", 1255733, "LiquidAI/LFM2.5-230M-Base"], ["lfm2_moe", "Done", "", 688657, "lmstudio-community/LFM2-24B-A2B-MLX-4bit"], ["lfm2_vl", "Done", "", 199290, "LiquidAI/LFM2.5-VL-450M"], ["lightglue", "Unreachable", "forward fails after shrink", 22972, "ETH-CVG/lightglue_superpoint"], ["lighton_ocr", "Reachable", "", 606, "onnx-community/LightOnOCR-2-1B-ONNX"], ["lilt", "Unreachable", "forward fails after shrink", 81714, "SCUT-DLVCLab/lilt-roberta-en-base"], ["llama", "Done", "", 50186457, "meta-llama/Llama-3.1-8B-Instruct"], ["llama4", "Done", "", 373138, "meta-llama/Llama-4-Scout-17B-16E-Instruct"], ["llama4_text", "Reachable", "", 28667, "trl-internal-testing/tiny-Llama4ForCausalLM"], ["llama4_vision_model", "Unreachable", "checkpoint gated", 0, "meta-llama/Llama-4-Scout-17B-16E"], ["llava", "Done", "", 1766490, "llava-hf/llava-1.5-7b-hf"], ["llava_next", "Done", "", 667783, "llava-hf/llava-v1.6-mistral-7b-hf"], ["llava_next_video", "Done", "", 53334, "llava-hf/LLaVA-NeXT-Video-7B-hf"], ["llava_onevision", "Done", "", 262658, "llava-hf/llava-onevision-qwen2-0.5b-ov-hf"], ["longcat_flash", "Unreachable", "forward fails after shrink", 1566, "wangbo981016/longcat2.0-nvfp4"], ["longformer", "Done", "", 1478599, "allenai/longformer-base-4096"], ["longt5", "Done", "", 243258, "pszemraj/long-t5-tglobal-base-sci-simplify"], ["luke", "Done", "", 321239, "studio-ousia/luke-large-finetuned-tacred"], ["lw_detr", "Reachable", "", 13080, "AnnaZhang/lwdetr_small_60e_coco"], ["lw_detr_vit", "Unreachable", "backward fails", 57, "hf-tiny-v2/tiny-random-LwDetrViTBackbone"], ["lxmert", "Unreachable", "forward fails after shrink", 4977, "unc-nlp/lxmert-base-uncased"], ["m2m_100", "Done", "", 2425200, "facebook/nllb-200-distilled-600M"], ["mamba", "Done", "", 138353, "state-spaces/mamba-130m-hf"], ["mamba2", "Unreachable", "shrink fails", 1401, "limloop/whiff-mamba2-50M-v0.1"], ["marian", "Done", "", 5061374, "Helsinki-NLP/opus-mt-nl-en"], ["markuplm", "Reachable", "", 10766, "microsoft/markuplm-base"], ["mask2former", "Done", "", 1060987, "facebook/mask2former-swin-large-ade-semantic"], ["maskformer", "Reachable", "", 16159, "facebook/maskformer-swin-base-ade"], ["maskformer-swin", "No checkpoint", "no Hub checkpoint has this model_type (documented microsoft/swin-tiny-patch4-window7-224 is another type)", 0, ""], ["mbart", "Done", "", 579384, "ai4bharat/IndicBART"], ["megatron-bert", "Reachable", "", 21960, "KBLab/robust-swedish-sentiment-multiclass"], ["mellum", "Reachable", "", 51107, "JetBrains/Mellum2-12B-A2.5B-Instruct"], ["metaclip_2", "Reachable", "", 92623, "facebook/metaclip-2-worldwide-b16"], ["metaclip_2_text_model", "Unreachable", "component config only", 0, ""], ["metaclip_2_vision_model", "Unreachable", "component config only", 0, ""], ["mgp-str", "Unreachable", "forward fails after shrink", 13719, "alibaba-damo/mgp-str-base"], ["mimi", "Unreachable", "forward fails after shrink", 184266, "kyutai/mimi"], ["mimi_decoder", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["mimi_encoder", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["mimo_v2_flash", "Reachable", "", 49711, "XiaomiMiMo/MiMo-V2-Flash"], ["minicpm3", "Done", "", 17559, "openbmb/MiniCPM3-4B"], ["minicpm_ocr", "Reachable", "", 2508, "openbmb/MiniCPM-OCR-1.0"], ["minicpm_ocr_vision", "Unreachable", "forward fails after shrink", 0, ""], ["minicpmv4_6", "Done", "", 372489, "openbmb/MiniCPM-V-4.6"], ["minicpmv4_6_vision", "Unreachable", "component config only", 0, ""], ["minicpmv4_7", "Unreachable", "no usable checkpoint", 775231, "openbmb/MiniCPM-V-4.7-35B-A3B"], ["minicpmv4_7_vision", "Unreachable", "no usable checkpoint", 28, "hf-tiny-v2/tiny-random-MiniCPMV4_7VisionModel"], ["minimax", "Reachable", "", 19547, "MiniMaxAI/MiniMax-Text-01-hf"], ["minimax_m2", "Done", "", 1886356, "MiniMaxAI/MiniMax-M2.5"], ["minimax_m3_vl", "Done", "", 384244, "MiniMaxAI/MiniMax-M3"], ["minimax_m3_vl_text", "Reachable", "", 314, "ProprietaryLegal/minimax-m3-legal-reap-0.25"], ["minimax_m3_vl_vision", "Unreachable", "component config only", 30, "immanuelpeter/MiniMax-M3-Vision"], ["ministral", "Unreachable", "no usable checkpoint", 1857, "saidutta69/Ministral-8B-Instruct-heretic"], ["ministral3", "Done", "", 500650, "nvidia/Nemotron-3-Embed-1B-BF16"], ["mistral", "Done", "", 10522940, "mistralai/Mistral-7B-Instruct-v0.2"], ["mistral3", "Done", "", 2910198, "lightonai/LightOnOCR-2-1B"], ["mistral4", "Reachable", "", 971, "onnx-internal-testing/tiny-random-Mistral4ForCausalLM"], ["mixtral", "Done", "", 1221154, "mistralai/Mixtral-8x7B-Instruct-v0.1"], ["mlcd", "Reachable", "", 6623, "DeepGlint-AI/mlcd-vit-bigG-patch14-336"], ["mlcd_vision_model", "Unreachable", "no usable checkpoint", 107, "hf-tiny-v2/tiny-random-MLCDVisionModel"], ["mllama", "Done", "", 128886, "meta-llama/Llama-3.2-11B-Vision-Instruct"], ["mllama_text_model", "Unreachable", "component config only", 637, "hf-tiny-v2/tiny-random-MllamaTextModel"], ["mllama_vision_model", "Unreachable", "component config only", 65, "hf-tiny-v2/tiny-random-MllamaVisionModel"], ["mm-grounding-dino", "Done", "", 77467, "openmmlab-community/mm_grounding_dino_large_all"], ["mobilebert", "Unreachable", "model build fails", 378729, "google/mobilebert-uncased"], ["mobilenet_v1", "Reachable", "", 22769, "optimum-intel-internal-testing/mobilenet_v1_0.75_192"], ["mobilenet_v2", "Done", "", 116493, "google/mobilenet_v2_1.0_224"], ["mobilevit", "Done", "", 62083, "apple/mobilevit-xx-small"], ["mobilevitv2", "Reachable", "", 4054, "apple/mobilevitv2-1.0-imagenet1k-256"], ["modernbert", "Done", "", 22009085, "ibm-granite/granite-embedding-small-english-r2"], ["modernbert-decoder", "Reachable", "", 13311, "blab-jhu/test-32m-dec"], ["modernvbert", "Reachable", "", 477, "naver/v-splade-quality"], ["molmo2", "Unreachable", "shrink fails", 124222, "allenai/Molmo2-8B"], ["molmo2_adapter", "No checkpoint", "no Hub checkpoint has this model_type (documented allenai/Molmo2-8B is another type)", 0, ""], ["molmo2_text", "Reachable", "", 0, ""], ["molmo2_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented allenai/Molmo2-8B is another type)", 0, ""], ["moonshine", "Unreachable", "forward fails after shrink", 120877, "moonshine-ai/moonshine-tiny"], ["moonshine_streaming", "Unreachable", "forward fails after shrink", 167472, "moonshine-ai/moonshine-streaming-tiny"], ["moonshine_streaming_encoder", "Unreachable", "component config only", 0, ""], ["moshi", "Reachable", "", 8294, "kyutai/personaplex-rl-seamless"], ["moshi_depth", "Unreachable", "component config only", 0, ""], ["moss_transcribe_diarize", "Done", "", 139891, "OpenMOSS-Team/MOSS-Transcribe-Diarize"], ["moss_transcribe_diarize_audio", "Reachable", "", 0, ""], ["mpnet", "Done", "", 23509384, "sentence-transformers/all-mpnet-base-v2"], ["mpt", "Reachable", "", 84471, "echarlaix/tiny-mpt-random-remote-code"], ["mra", "Reachable", "", 3305, "uw-madison/mra-base-512-4"], ["mt5", "Done", "", 725133, "google/mt5-small"], ["muse_glimmer", "Done", "", 688700, "RadixArk/Muse-Glimmer-NVFP4"], ["muse_glimmer_assistant", "Unreachable", "synthetic inputs rejected", 220523, "meta-models/Muse-Glimmer-30B-assistant"], ["muse_glimmer_text", "Reachable", "", 210, "OpensourceWTF/Muse-Glimmer-30B-MLX-q4"], ["muse_glimmer_vision", "Unreachable", "forward fails after shrink", 54, "immanuelpeter/Muse-Glimmer-Vision"], ["muse_spark", "Reachable", "", 48269, "meta-models/Muse-Spark-Open-816B-A42B-NVFP4"], ["muse_spark_audio", "Unreachable", "checkpoint gated", 0, "meta-models/Muse-Spark-Open-816B-A42B"], ["muse_spark_text", "Unreachable", "checkpoint gated", 0, "meta-models/Muse-Spark-Open-816B-A42B"], ["muse_spark_vision", "Unreachable", "checkpoint gated", 0, "meta-models/Muse-Spark-Open-816B-A42B"], ["musicflamingo", "Reachable", "", 18191, "nvidia/music-flamingo-2601-hf"], ["musicgen", "Unreachable", "model build fails", 2150786, "facebook/musicgen-medium"], ["musicgen_decoder", "Unreachable", "component config only", 13, "hf-tiny-v2/tiny-random-MusicgenForCausalLM"], ["musicgen_melody", "Unreachable", "model build fails", 12068, "facebook/musicgen-melody"], ["musicgen_melody_decoder", "Unreachable", "component config only", 39, "ylacombe/musicgen-melody-bella-ciao"], ["mvp", "Reachable", "", 4701, "RUCAIBox/mvp"], ["nanochat", "Reachable", "", 5316, "l0ulan/chinese-babylm-nanochat-d22-step10000"], ["nemo_speechlm", "Unreachable", "shrink fails", 5799, "nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B"], ["nemotron", "Reachable", "", 48968, "nvidia/Nemotron-Mini-4B-Instruct"], ["nemotron3_5_asr", "Unreachable", "forward fails after shrink", 842520, "nvidia/nemotron-3.5-asr-streaming-0.6b"], ["nemotron3_5_transcribe_asr_audio", "Unreachable", "forward fails after shrink", 0, ""], ["nemotron3_5_transcribe_audio", "Unreachable", "shrink fails", 0, ""], ["nemotron3_5_transcribe_word_timestamp", "Unreachable", "synthetic inputs rejected", 0, ""], ["nemotron3_diarization", "Unreachable", "shrink fails", 146475, "nvidia/Nemotron-3-Diarization"], ["nemotron3_diarization_audio", "Unreachable", "forward fails after shrink", 34, "hf-tiny-v2/tiny-random-Nemotron3DiarizationAudioModel"], ["nemotron_asr_streaming", "Unreachable", "forward fails after shrink", 103140, "nvidia/nemotron-speech-streaming-en-0.6b"], ["nemotron_asr_streaming_encoder", "Unreachable", "forward fails after shrink", 6, "hf-tiny-v2/tiny-random-NemotronAsrStreamingEncoder"], ["nemotron_h", "Done", "", 12146358, "nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16"], ["nemotron_h_omni", "Unreachable", "no usable checkpoint", 113462, "nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16"], ["neomme", "Reachable", "", 6699, "Hcompany/NeoMME-260M"], ["neucodec", "Unreachable", "forward fails after shrink", 48553, "neuphonic/neucodec"], ["nllb-moe", "Reachable", "", 3303, "facebook/nllb-moe-54b"], ["nomic_bert", "Done", "", 14371774, "nomic-ai/nomic-embed-text-v1.5"], ["nougat", "Unreachable", "config load fails", 8, "zphilip48/nougat-middle-cn"], ["nystromformer", "Reachable", "", 5529, "uw-madison/nystromformer-512"], ["olmo", "Done", "", 125508, "optimum-intel-internal-testing/tiny-random-olmo-hf"], ["olmo2", "Done", "", 442211, "allenai/OLMo-2-0425-1B"], ["olmo3", "Done", "", 1055647, "allenai/Olmo-3-7B-Think"], ["olmo_hybrid", "Reachable", "", 19286, "allenai/Olmo-Hybrid-7B"], ["olmoe", "Done", "", 132339, "allenai/OLMoE-1B-7B-0924"], ["omdet-turbo", "Unreachable", "config load fails", 35542, "omlab/omdet-turbo-swin-tiny-hf"], ["oneformer", "Unreachable", "synthetic inputs rejected", 390959, "shi-labs/oneformer_cityscapes_swin_large"], ["openai-gpt", "Reachable", "", 85250, "openai-community/openai-gpt"], ["openai_privacy_filter", "Done", "", 634682, "OpenMed/privacy-filter-nemotron-v2"], ["opt", "Done", "", 5616003, "facebook/opt-125m"], ["ovis2", "Reachable", "", 6898, "thisisiron/Ovis2-1B-hf"], ["ovis2_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented thisisiron/Ovis2-1B-hf is another type)", 0, ""], ["owlv2", "Done", "", 1501028, "google/owlv2-base-patch16-ensemble"], ["owlv2_text_model", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["owlv2_vision_model", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["owlvit", "Done", "", 220839, "google/owlvit-base-patch32"], ["owlvit_text_model", "Unreachable", "component config only", 0, ""], ["owlvit_vision_model", "Unreachable", "component config only", 0, ""], ["paddleocr_vl", "Done", "", 227189, "BDRC/tibetan-ocr"], ["paddleocr_vl_text", "No checkpoint", "no Hub checkpoint has this model_type (documented PaddlePaddle/PaddleOCR-VL is another type)", 0, ""], ["paddleocr_vl_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented PaddlePaddle/PaddleOCR-VL is another type)", 0, ""], ["paligemma", "Done", "", 490686, "google/paligemma-3b-pt-224"], ["parakeet_ctc", "Unreachable", "forward fails after shrink", 105992, "nvidia/parakeet-ctc-1.1b"], ["parakeet_encoder", "Unreachable", "forward fails after shrink", 125, "nithinraok/parakeet-tdt-v3-encoder"], ["parakeet_rnnt", "Unreachable", "forward fails after shrink", 40081, "nvidia/parakeet-rnnt-0.6b"], ["parakeet_tdt", "Unreachable", "forward fails after shrink", 694911, "nvidia/parakeet-tdt-0.6b-v3"], ["patchtsmixer", "Unreachable", "synthetic inputs rejected", 15970, "ibm-granite/granite-timeseries-patchtsmixer"], ["patchtst", "Unreachable", "synthetic inputs rejected", 28739, "GilpinLab/panda"], ["pe_audio", "Unreachable", "no usable checkpoint", 89572, "facebook/pe-a-frame-large"], ["pe_audio_encoder", "Unreachable", "forward fails after shrink", 31, "hf-tiny-v2/tiny-random-PeAudioEncoder"], ["pe_audio_video", "Unreachable", "forward fails after shrink", 21786, "facebook/pe-av-large"], ["pe_audio_video_encoder", "Unreachable", "forward fails after shrink", 21, "hf-tiny-v2/tiny-random-PeAudioVideoEncoder"], ["pe_video", "Unreachable", "no usable checkpoint", 25, "hf-tiny-v2/tiny-random-PeVideoModel"], ["pe_video_encoder", "Unreachable", "synthetic inputs rejected", 25, "hf-tiny-v2/tiny-random-PeVideoEncoder"], ["pegasus", "Done", "", 120276, "optimum-intel-internal-testing/tiny-random-pegasus"], ["pegasus_x", "Reachable", "", 6499, "google/pegasus-x-large"], ["perceiver", "Done", "", 41482, "optimum-intel-internal-testing/tiny-random-language_perceiver"], ["perception_lm", "Reachable", "", 1028, "facebook/Perception-LM-8B"], ["persimmon", "Reachable", "", 50277, "optimum-intel-internal-testing/tiny-random-PersimmonForCausalLM"], ["phi", "Done", "", 575882, "microsoft/phi-2"], ["phi3", "Done", "", 2440907, "microsoft/Phi-3.5-mini-instruct"], ["phi4_multimodal", "Done", "", 549, "huggingface-mic/Phi-4-multimodal-instruct-mic"], ["phi4_multimodal_audio", "No checkpoint", "no Hub checkpoint has this model_type (documented microsoft/Phi-4-multimodal-instruct is another type)", 0, ""], ["phi4_multimodal_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented microsoft/Phi-4-multimodal-instruct is another type)", 0, ""], ["phimoe", "Done", "", 169903, "optimum-intel-internal-testing/phi-3.5-moe-tiny-random"], ["pi0", "Unreachable", "synthetic inputs rejected", 181, "yinchenghust/openpi_libero_all"], ["pix2struct", "Unreachable", "synthetic inputs rejected", 116238, "optimum-intel-internal-testing/pix2struct-tiny-random"], ["pix2struct_text_model", "Unreachable", "component config only", 0, ""], ["pix2struct_vision_model", "Unreachable", "component config only", 22, "UiPath/pix2struct-vision-base"], ["pixio", "Reachable", "", 163, "LiheYoung/pixio-vith16"], ["pixtral", "Reachable", "", 940, "mlx-community/pixtral-12b-4bit"], ["plbart", "Reachable", "", 11136, "uclanlp/plbart-base"], ["pocket_tts", "Unreachable", "shrink fails", 2949, "mlx-community/pocket-tts"], ["pocket_tts_audio_tokenizer", "Unreachable", "forward fails after shrink", 471, "gradium/phonon-mimi"], ["pocket_tts_audio_tokenizer_decoder", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["pocket_tts_audio_tokenizer_encoder", "No checkpoint", "no Hub checkpoint has this model_type (none documented)", 0, ""], ["poolformer", "Reachable", "", 22043, "optimum-intel-internal-testing/tiny-random-PoolFormerModel"], ["pop2piano", "Reachable", "", 105, "hf-tiny-v2/tiny-random-Pop2PianoForConditionalGeneration"], ["pp_chart2table", "Reachable", "", 272, "PaddlePaddle/PP-Chart2Table_safetensors"], ["pp_chart2table_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam-vit-huge is another type)", 0, ""], ["pp_doclayout_v2", "Unreachable", "forward fails after shrink", 585, "PaddlePaddle/PP-DocLayoutV2_safetensors"], ["pp_doclayout_v3", "Unreachable", "forward fails after shrink", 932166, "PaddlePaddle/PP-DocLayoutV3_safetensors"], ["pp_doclayout_v4", "No checkpoint", "no Hub checkpoint has this model_type (documented PaddlePaddle/PP-DocLayoutV4_safetensors does not exist)", 0, ""], ["pp_formulanet", "Unreachable", "forward fails after shrink", 3829, "PaddlePaddle/PP-FormulaNet_plus-L_safetensors"], ["pp_formulanet_text", "No checkpoint", "no Hub checkpoint has this model_type (documented PaddlePaddle/PP-FormulaNet_plus-L_safetensors is another type)", 0, ""], ["pp_formulanet_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented PaddlePaddle/PP-FormulaNet_plus-L_safetensors is another type)", 0, ""], ["pp_lcnet", "Reachable", "", 865, "PaddlePaddle/PP-LCNet_x1_0_doc_ori_safetensors"], ["pp_lcnet_v3", "Unreachable", "no usable checkpoint", 112, "hf-tiny-v2/tiny-random-PPLCNetV3Backbone"], ["pp_lcnet_v4", "Unreachable", "no usable checkpoint", 21, "hf-tiny-v2/tiny-random-PPLCNetV4Backbone"], ["pp_ocrv5_mobile_det", "Reachable", "", 530, "PaddlePaddle/PP-OCRv5_mobile_det_safetensors"], ["pp_ocrv5_mobile_rec", "Reachable", "", 3902, "PaddlePaddle/latin_PP-OCRv5_mobile_rec_safetensors"], ["pp_ocrv5_server_det", "Reachable", "", 509, "PaddlePaddle/PP-OCRv5_server_det_safetensors"], ["pp_ocrv5_server_rec", "Reachable", "", 585, "PaddlePaddle/PP-OCRv5_server_rec_safetensors"], ["pp_ocrv6_medium_det", "Reachable", "", 2694, "PaddlePaddle/PP-OCRv6_medium_det_safetensors"], ["pp_ocrv6_small_det", "Reachable", "", 1617, "PaddlePaddle/PP-OCRv6_small_det_safetensors"], ["pp_ocrv6_small_rec", "Reachable", "", 3559, "PaddlePaddle/PP-OCRv6_medium_rec_safetensors"], ["pp_ocrv6_tiny_rec", "Reachable", "", 693, "PaddlePaddle/PP-OCRv6_tiny_rec_safetensors"], ["prompt_depth_anything", "Unreachable", "forward fails after shrink", 1530, "depth-anything/prompt-depth-anything-vits-hf"], ["prophetnet", "Reachable", "", 7258, "microsoft/prophetnet-large-uncased"], ["pvt", "Done", "", 8712, "Xrenya/pvt-tiny-224"], ["pvt_v2", "Reachable", "", 9824, "OpenGVLab/pvt_v2_b0"], ["qianfan_ocr", "Reachable", "", 38183, "baidu/Qianfan-OCR"], ["qianfan_ocr_vision", "Reachable", "", 77, "hf-tiny-v2/tiny-random-QianfanOCRVisionModel"], ["qwen2", "Done", "", 52739906, "Qwen/Qwen2.5-7B-Instruct"], ["qwen2_5_omni", "Done", "", 456813, "Qwen/Qwen2.5-Omni-7B"], ["qwen2_5_omni_audio_encoder", "Unreachable", "component config only", 23, "FlexiSLM/Qwen2_5-Omni-Audio_Encoder"], ["qwen2_5_omni_bigvgan", "Unreachable", "component config only", 24, "Ryan241005/scail-2"], ["qwen2_5_omni_dit", "Unreachable", "component config only", 0, ""], ["qwen2_5_omni_talker", "Unreachable", "component config only", 0, ""], ["qwen2_5_omni_text", "Unreachable", "component config only", 59, "AlexHung29629/Qwen-2.5-Omni-ThinkerTextModel"], ["qwen2_5_omni_thinker", "Done", "", 128795, "laion/voiceclap-large-v2"], ["qwen2_5_omni_token2wav", "Unreachable", "component config only", 0, ""], ["qwen2_5_omni_vision_encoder", "Unreachable", "component config only", 0, ""], ["qwen2_5_vl", "Done", "", 15195814, "Qwen/Qwen2.5-VL-7B-Instruct"], ["qwen2_5_vl_text", "Reachable", "", 83, "hf-tiny-v2/tiny-random-Qwen2_5_VLTextModel"], ["qwen2_5_vl_vision", "Unreachable", "no usable checkpoint", 22, "hf-tiny-v2/tiny-random-Qwen2_5_VisionTransformerPretrainedModel"], ["qwen2_audio", "Done", "", 199606, "Qwen/Qwen2-Audio-7B-Instruct"], ["qwen2_audio_encoder", "Reachable", "", 200, "Atotti/qwen2-audio-encoder"], ["qwen2_moe", "Done", "", 194932, "Qwen/Qwen1.5-MoE-A2.7B"], ["qwen2_vl", "Done", "", 3757282, "Qwen/Qwen2-VL-7B-Instruct-AWQ"], ["qwen2_vl_text", "Reachable", "", 72, "hf-tiny-v2/tiny-random-Qwen2VLTextModel"], ["qwen2_vl_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented Qwen/Qwen2-VL-7B-Instruct is another type)", 0, ""], ["qwen3", "Done", "", 108746675, "Qwen/Qwen3-0.6B"], ["qwen3_5", "Done", "", 92274452, "Qwen/Qwen3.8-27B"], ["qwen3_5_moe", "Done", "", 34351908, "Qwen/Qwen3.6-35B-A3B"], ["qwen3_5_moe_text", "Done", "", 717113, "Bahushruth/Qwen3.6-35B-A3B-abliterated-v4"], ["qwen3_5_moe_vision", "Unreachable", "no usable checkpoint", 16, "hf-tiny-v2/tiny-random-Qwen3_5MoeVisionModel"], ["qwen3_5_text", "Done", "", 2017293, "autotrust/JEV-9B"], ["qwen3_5_vision", "Unreachable", "forward fails after shrink", 135, "immanuelpeter/Qwen3.8-27B-Vision"], ["qwen3_asr", "Done", "", 4105092, "Qwen/Qwen3-ASR-1.7B"], ["qwen3_asr_encoder", "Unreachable", "forward fails after shrink", 17, "hf-tiny-v2/tiny-random-Qwen3ASREncoder"], ["qwen3_moe", "Done", "", 8500460, "Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8"], ["qwen3_next", "Done", "", 2235316, "Qwen/Qwen3-Coder-Next-FP8"], ["qwen3_omni_moe", "Unreachable", "forward fails after shrink", 1249447, "Qwen/Qwen3-Omni-30B-A3B-Instruct"], ["qwen3_omni_moe_audio_encoder", "Unreachable", "component config only", 1968, "Atotti/Qwen3-Omni-AudioTransformer"], ["qwen3_omni_moe_talker_code_predictor", "Unreachable", "component config only", 0, ""], ["qwen3_omni_moe_talker_text", "No checkpoint", "no Hub checkpoint has this model_type (documented Qwen/Qwen3-Omni-30B-A3B-Instruct is another type)", 0, ""], ["qwen3_omni_moe_text", "Unreachable", "component config only", 0, ""], ["qwen3_omni_moe_thinker", "Reachable", "", 298, "hf-tiny-v2/tiny-random-Qwen3OmniMoeThinkerForConditionalGeneration"], ["qwen3_omni_moe_vision_encoder", "Unreachable", "component config only", 0, ""], ["qwen3_vl", "Done", "", 19337885, "Qwen/Qwen3-VL-8B-Instruct"], ["qwen3_vl_moe", "Done", "", 1686056, "Qwen/Qwen3-VL-30B-A3B-Instruct"], ["qwen3_vl_moe_text", "Reachable", "", 63, "hf-tiny-v2/tiny-random-Qwen3VLMoeTextModel"], ["qwen3_vl_moe_vision", "Unreachable", "no usable checkpoint", 54, "hf-tiny-v2/tiny-random-Qwen3VLMoeVisionModel"], ["qwen3_vl_text", "Reachable", "", 587, "DuoNeural/Cosmos3-Nano-GPTQ-4bit"], ["qwen3_vl_vision", "Unreachable", "forward fails after shrink", 221, "madrisight/madrimed1.2-vision-embed"], ["qwen4_exp", "Done", "", 5763811, "Qwen/Qwen3.8-Flash-Next"], ["qwen4_exp_text", "Reachable", "", 17917, "Jab1718/qwen3.8-flash-coder-44gb-selective-int8"], ["qwen4_exp_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented Qwen/Qwen4-Exp does not exist)", 0, ""], ["radio", "Unreachable", "no usable checkpoint", 3, "hf-tiny-v2/tiny-random-RadioModel"], ["rag", "Unreachable", "no usable checkpoint", 3924, "facebook/rag-token-nq"], ["recurrent_gemma", "Done", "", 4729, "google/recurrentgemma-2b-it"], ["reformer", "Unreachable", "model build fails", 17043, "google/reformer-crime-and-punishment"], ["regnet", "Reachable", "", 7237, "facebook/regnet-y-040"], ["rembert", "Reachable", "", 11890, "google/rembert"], ["resnet", "Done", "", 1174379, "microsoft/resnet-18"], ["rf_detr", "Unreachable", "forward fails after shrink", 28618, "Roboflow/rf-detr-base"], ["rf_detr_dinov2", "Unreachable", "forward fails after shrink", 70, "hf-tiny-v2/tiny-random-RfDetrDinov2Backbone"], ["roberta", "Done", "", 46597117, "FacebookAI/roberta-large"], ["roberta-prelayernorm", "Reachable", "", 4655, "andreasmadsen/efficient_mlm_m0.40"], ["roc_bert", "Reachable", "", 12437, "weiweishi/roc-bert-base-zh"], ["roformer", "Reachable", "", 45159, "optimum-intel-internal-testing/tiny-random-roformer"], ["rt_detr", "Done", "", 1687337, "PekingU/rtdetr_r101vd_coco_o365"], ["rt_detr_resnet", "Unreachable", "no usable checkpoint", 54, "hf-tiny-v2/tiny-random-RTDetrResNetBackbone"], ["rt_detr_v2", "Done", "forward fails after shrink", 2526763, "docling-project/docling-layout-heron"], ["rwkv", "Reachable", "", 14762, "RWKV/rwkv-4-169m-pile"], ["sam", "Unreachable", "forward fails after shrink", 976537, "facebook/sam-vit-base"], ["sam2", "Done", "", 19375, "onnx-community/sam2.1-hiera-tiny-ONNX"], ["sam2_hiera_det_model", "Unreachable", "forward fails after shrink", 59, "hf-tiny-v2/tiny-random-Sam2HieraDetModel"], ["sam2_mask_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam2.1-hiera-tiny is another type)", 0, ""], ["sam2_prompt_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam2.1-hiera-tiny is another type)", 0, ""], ["sam2_video", "Unreachable", "forward fails after shrink", 701203, "facebook/sam2.1-hiera-large"], ["sam2_video_mask_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam2_video.1-hiera-tiny does not exist)", 0, ""], ["sam2_video_prompt_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam2_video.1-hiera-tiny does not exist)", 0, ""], ["sam2_vision_model", "Unreachable", "forward fails after shrink", 57, "hf-tiny-v2/tiny-random-Sam2VisionModel"], ["sam3", "Unreachable", "forward fails after shrink", 3530, "unsloth/sam3.1"], ["sam3_detr_decoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_detr_encoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_geometry_encoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_lite_text", "Unreachable", "forward fails after shrink", 14775, "vil-uob/sam3-litetext-s0"], ["sam3_lite_text_detr_decoder", "Unreachable", "component config only", 0, ""], ["sam3_lite_text_detr_encoder", "Unreachable", "component config only", 0, ""], ["sam3_lite_text_geometry_encoder", "Unreachable", "component config only", 0, ""], ["sam3_lite_text_mask_decoder", "Unreachable", "component config only", 0, ""], ["sam3_lite_text_text_model", "Unreachable", "forward fails after shrink", 39, "hf-tiny-v2/tiny-random-Sam3LiteTextTextModel"], ["sam3_mask_decoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_tracker", "Unreachable", "no usable checkpoint", 1300, "onnx-community/sam3-tracker-ONNX"], ["sam3_tracker_mask_decoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_tracker_prompt_encoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_tracker_video", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_tracker_video_mask_decoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_tracker_video_prompt_encoder", "Unreachable", "checkpoint gated", 0, "facebook/sam3"], ["sam3_video", "Unreachable", "forward fails after shrink", 2087329, "facebook/sam3"], ["sam3_vision_model", "Unreachable", "no usable checkpoint", 38, "hf-tiny-v2/tiny-random-Sam3VisionModel"], ["sam3_vit_model", "Unreachable", "no usable checkpoint", 37, "hf-tiny-v2/tiny-random-Sam3ViTModel"], ["sam_hq", "Unreachable", "forward fails after shrink", 16860, "syscv-community/sam-hq-vit-base"], ["sam_hq_mask_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented syscv-community/sam-hq-vit-base is another type)", 0, ""], ["sam_hq_prompt_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented syscv-community/sam-hq-vit-base is another type)", 0, ""], ["sam_hq_vision_model", "Reachable", "", 138, "hf-tiny-v2/tiny-random-SamHQVisionModel"], ["sam_mask_decoder", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam-vit-huge is another type)", 0, ""], ["sam_prompt_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented facebook/sam-vit-huge is another type)", 0, ""], ["sam_vision_model", "Reachable", "", 138, "hf-tiny-v2/tiny-random-SamVisionModel"], ["sapiens2", "Unreachable", "forward fails after shrink", 103690, "facebook/sapiens2-pose-1b"], ["sapiens2_head", "Unreachable", "component config only", 0, ""], ["seamless_m4t", "Reachable", "", 13797, "facebook/hf-seamless-m4t-medium"], ["seamless_m4t_v2", "Done", "", 316927, "facebook/seamless-m4t-v2-large"], ["seed_oss", "Done", "", 128943, "ByteDance-Seed/Seed-OSS-36B-Instruct"], ["segformer", "Done", "", 2291917, "mattmdjaga/segformer_b2_clothes"], ["seggpt", "Unreachable", "forward fails after shrink", 21384, "BAAI/seggpt-vit-large"], ["sew", "Reachable", "", 15680, "optimum-intel-internal-testing/tiny-random-SEWModel"], ["sew-d", "Reachable", "", 18152, "optimum-intel-internal-testing/sew-d-tiny-100k-ft-ls100h"], ["shieldgemma2", "Reachable", "", 6627, "google/shieldgemma-2-4b-it"], ["siglip", "Done", "", 18018379, "prithivMLmods/Gender-Classifier-Mini"], ["siglip2", "Unreachable", "forward fails after shrink", 1622065, "google/siglip2-base-patch16-naflex"], ["siglip2_text_model", "Unreachable", "component config only", 56, "sortify-ai/siglip2-so400m-patch14-384-text"], ["siglip2_vision_model", "Unreachable", "forward fails after shrink", 58, "hf-tiny-v2/tiny-random-Siglip2VisionModel"], ["siglip_text_model", "Unreachable", "component config only", 19, "carsonpoole/binary-siglip-text"], ["siglip_vision_model", "Reachable", "", 1842, "zchuning/pi05-siglip-vision-tower"], ["slanet", "Reachable", "", 6957, "PaddlePaddle/SLANet_plus_safetensors"], ["slanext", "Reachable", "", 212, "PaddlePaddle/SLANeXt_wired_safetensors"], ["slanext_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented PaddlePaddle/SLANeXt_wired_safetensors is another type)", 0, ""], ["smollm3", "Done", "", 1135357, "HuggingFaceTB/SmolLM3-3B"], ["smolvlm", "Done", "", 1742362, "HuggingFaceTB/SmolVLM2-500M-Video-Instruct"], ["smolvlm_vision", "Unreachable", "forward fails after shrink", 5, "hf-tiny-v2/tiny-random-SmolVLMVisionTransformer"], ["solar_open", "Reachable", "", 32622, "upstage/Solar-Open-100B"], ["speech-encoder-decoder", "Unreachable", "synthetic inputs rejected", 5244, "hf-tiny-v2/tiny-random-SpeechEncoderDecoderModel-wav2vec2-bert"], ["speech_to_text", "Unreachable", "forward fails after shrink", 23544, "facebook/s2t-small-librispeech-asr"], ["speecht5", "Done", "", 194296, "optimum-intel-internal-testing/tiny-random-SpeechT5ForTextToSpeech"], ["speecht5_hifigan", "No checkpoint", "no Hub checkpoint has this model_type (documented microsoft/speecht5_asr is another type)", 0, ""], ["splinter", "Reachable", "", 3741, "tau/splinter-base"], ["squeezebert", "Unreachable", "model build fails", 33330, "optimum-intel-internal-testing/tiny-random-squeezebert"], ["stablelm", "Done", "", 169690, "optimum-intel-internal-testing/tiny-random-StableLmForCausalLM"], ["starcoder2", "Done", "", 152451, "optimum-intel-internal-testing/tiny-random-Starcoder2ForCausalLM"], ["step3p5", "Unreachable", "shrink fails", 266885, "stepfun-ai/Step-3.5-Flash"], ["step3p5_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented stepfun-ai/Step-3.7-Flash is another type)", 0, ""], ["step3p7", "Unreachable", "shrink fails", 26135, "stepfun-ai/Step-3.7-Flash"], ["superglue", "Unreachable", "forward fails after shrink", 8964, "magic-leap-community/superglue_indoor"], ["superpoint", "Unreachable", "backward fails", 9952, "magic-leap-community/superpoint"], ["swiftformer", "Reachable", "", 7504, "MBZUAI/swiftformer-xs"], ["swin", "Done", "", 238869, "Organika/sdxl-detector"], ["swin2sr", "Reachable", "", 56057, "caidas/swin2SR-classical-sr-x2-64"], ["swinv2", "Done", "", 434756, "microsoft/swinv2-tiny-patch4-window16-256"], ["switch_transformers", "Reachable", "", 10063, "google/switch-base-8"], ["t5", "Done", "", 94678669, "google-t5/t5-small"], ["t5_gemma_module", "Unreachable", "component config only", 70, "RE-N-Y/t5gemma-2b-2b-ul2-it"], ["t5gemma", "Unreachable", "no usable checkpoint", 176067, "google/t5gemma-2b-2b-ul2-it"], ["t5gemma2", "Unreachable", "forward fails after shrink", 114374, "google/t5gemma-2-270m-270m"], ["t5gemma2_decoder", "Unreachable", "component config only", 0, ""], ["t5gemma2_encoder", "Reachable", "", 149, "hf-tiny-v2/tiny-random-T5Gemma2Encoder"], ["t5gemma2_text", "Unreachable", "component config only", 30, "amanchoudhri/t5-gemma-2-270m-text-encoder"], ["table-transformer", "Done", "", 1872765, "microsoft/table-transformer-structure-recognition"], ["tapas", "Reachable", "", 37821, "google/tapas-base-finetuned-wtq"], ["textnet", "Unreachable", "forward fails after shrink", 7475, "czczup/textnet-base"], ["time_series_transformer", "Unreachable", "synthetic inputs rejected", 4534, "huggingface/time-series-transformer-tourism-monthly"], ["timesfm", "Done", "", 1854129, "google/timesfm-2.5-200m-pytorch"], ["timesfm2_5", "Unreachable", "synthetic inputs rejected", 37239, "google/timesfm-2.5-200m-transformers"], ["timesformer", "Unreachable", "forward fails after shrink", 25737, "facebook/timesformer-base-finetuned-k400"], ["timm_backbone", "Unreachable", "no usable checkpoint", 133, "hf-tiny-v2/tiny-random-TimmBackbone"], ["timm_wrapper", "Unreachable", "forward fails after shrink", 383060, "Freepik/nsfw_image_detector"], ["tipsv2", "Done", "", 289583, "google/tipsv2-so400m14"], ["tipsv2_dpt", "Unreachable", "forward fails after shrink", 8014, "google/tipsv2-b14-dpt"], ["tipsv2_text_model", "Reachable", "", 4, "hf-tiny-v2/tiny-random-Tipsv2TextModel"], ["tipsv2_vision_model", "Reachable", "", 8, "hf-tiny-v2/tiny-random-Tipsv2VisionBackbone"], ["trocr", "Reachable", "", 53, "sasmithasarasi/trocr-sinhala-handwriting"], ["tvp", "Unreachable", "forward fails after shrink", 13994, "Intel/tvp-base"], ["udop", "Unreachable", "forward fails after shrink", 9051, "microsoft/udop-large"], ["ultrabert", "Reachable", "", 29547, "dmis-lab/UltraBERT-380M"], ["ultravbert", "Reachable", "", 1133, "athrael-soju/ColUltraVBERT"], ["umt5", "Done", "", 5305, "huggingface-mic/umt5-small-mic"], ["unispeech", "Reachable", "", 24130, "optimum-intel-internal-testing/tiny-random-unispeech"], ["unispeech-sat", "Reachable", "", 38482, "optimum-intel-internal-testing/tiny-random-UnispeechSatModel"], ["univnet", "Unreachable", "forward fails after shrink", 5412, "dg845/univnet-dev"], ["unlimited_ocr", "Done", "", 3535621, "baidu/Unlimited-OCR"], ["unlimited_ocr_sam_vision_model", "No checkpoint", "no Hub checkpoint has this model_type (documented baidu/Unlimited-OCR is another type)", 0, ""], ["unlimited_ocr_text", "No checkpoint", "no Hub checkpoint has this model_type (documented baidu/Unlimited-OCR is another type)", 0, ""], ["unlimited_ocr_vision", "No checkpoint", "no Hub checkpoint has this model_type (documented baidu/Unlimited-OCR is another type)", 0, ""], ["unlimited_ocr_vision_encoder", "No checkpoint", "no Hub checkpoint has this model_type (documented baidu/Unlimited-OCR is another type)", 0, ""], ["upernet", "Unreachable", "forward fails after shrink", 46968, "openmmlab/upernet-convnext-small"], ["uvdoc", "Reachable", "", 431, "PaddlePaddle/UVDoc_safetensors"], ["uvdoc_backbone", "Unreachable", "backward fails", 39, "hf-tiny-v2/tiny-random-UVDocBackbone"], ["vaultgemma", "Reachable", "", 2790, "google/vaultgemma-1b"], ["vibevoice", "Done", "", 1070414, "microsoft/VibeVoice-ASR"], ["vibevoice_acoustic_tokenizer", "Unreachable", "forward fails after shrink", 2151, "microsoft/VibeVoice-AcousticTokenizer"], ["vibevoice_acoustic_tokenizer_decoder", "Unreachable", "no usable checkpoint", 33, "hf-tiny-v2/tiny-random-VibeVoiceAcousticTokenizerDecoderModel"], ["vibevoice_acoustic_tokenizer_encoder", "Unreachable", "no usable checkpoint", 49, "hf-tiny-v2/tiny-random-VibeVoiceAcousticTokenizerEncoderModel"], ["vibevoice_asr", "Reachable", "", 59115, "microsoft/VibeVoice-ASR-HF"], ["vibevoice_diffusion", "No checkpoint", "no Hub checkpoint has this model_type (documented vibevoice/VibeVoice-1.5B-hf is another type)", 0, ""], ["video_llama_3", "Reachable", "", 11087, "lkhl/VideoLLaMA3-2B-Image-HF"], ["video_llama_3_vision", "Unreachable", "forward fails after shrink", 32, "hf-tiny-v2/tiny-random-VideoLlama3VisionModel"], ["video_llava", "Reachable", "", 10045, "LanguageBind/Video-LLaVA-7B-hf"], ["videomae", "Unreachable", "forward fails after shrink", 475037, "MCG-NJU/videomae-base"], ["videomt", "Unreachable", "synthetic inputs rejected", 5328, "tue-mps/videomt-dinov2-small-ytvis2019"], ["videoprism", "Unreachable", "synthetic inputs rejected", 545, "MHRDYN7/videoprism-lvt-base-f16r288"], ["videoprism_text_model", "No checkpoint", "no Hub checkpoint has this model_type (documented google/videoprism-lvt-base-f16r288 has no config.json)", 0, ""], ["videoprism_vision_model", "Unreachable", "synthetic inputs rejected", 191, "MHRDYN7/videoprism-base-f16r288"], ["vilt", "Unreachable", "forward fails after shrink", 89943, "dandelin/vilt-b32-finetuned-vqa"], ["vipllava", "Reachable", "", 7898, "llava-hf/vip-llava-7b-hf"], ["vision-encoder-decoder", "Unreachable", "forward fails after shrink", 2482977, "kha-white/manga-ocr-base"], ["vision-text-dual-encoder", "Unreachable", "model build fails", 3250, "hf-tiny-v2/tiny-random-VisionTextDualEncoderModel-vit-bert"], ["visual_bert", "Reachable", "", 5237, "uclanlp/visualbert-vqa-coco-pre"], ["vit", "Done", "", 23571533, "google/vit-base-patch16-224"], ["vit_mae", "Reachable", "", 43367, "facebook/vit-mae-base"], ["vit_msn", "Reachable", "", 1782, "facebook/vit-msn-small"], ["vitdet", "Unreachable", "no usable checkpoint", 214, "hf-tiny-v2/tiny-random-VitDetBackbone"], ["vitmatte", "Done", "", 383080, "hustvl/vitmatte-small-composition-1k"], ["vitpose", "Unreachable", "forward fails after shrink", 392468, "usyd-community/vitpose-base-simple"], ["vitpose_backbone", "Unreachable", "forward fails after shrink", 124, "hf-tiny-v2/tiny-random-VitPoseBackbone"], ["vits", "Done", "", 455247, "facebook/mms-tts-eng"], ["vivit", "Unreachable", "forward fails after shrink", 89874, "google/vivit-b-16x2"], ["vjepa2", "Unreachable", "synthetic inputs rejected", 426419, "facebook/vjepa2-vitl-fpc64-256"], ["voxtral", "Done", "", 319265, "mzbac/voxtral-mini-3b-4bit-mixed"], ["voxtral_encoder", "Reachable", "", 108, "hf-tiny-v2/tiny-random-VoxtralEncoder"], ["voxtral_realtime", "Unreachable", "forward fails after shrink", 1948459, "mistralai/Voxtral-Mini-4B-Realtime-2602"], ["voxtral_realtime_encoder", "Reachable", "", 80, "hf-tiny-v2/tiny-random-VoxtralRealtimeEncoder"], ["voxtral_realtime_text", "Unreachable", "model build fails", 10, "hf-tiny-v2/tiny-random-VoxtralRealtimeTextModel"], ["wav2vec2", "Done", "", 100317588, "jonatasgrosman/wav2vec2-large-xlsr-53-japanese"], ["wav2vec2-bert", "Unreachable", "model build fails", 1320062, "facebook/w2v-bert-2.0"], ["wav2vec2-conformer", "Unreachable", "model build fails", 160365, "facebook/wav2vec2-conformer-rope-large-960h-ft"], ["wavlm", "Done", "", 1990346, "microsoft/wavlm-large"], ["whisper", "Done", "", 22332636, "openai/whisper-large-v3-turbo"], ["xclip", "Unreachable", "forward fails after shrink", 453798, "microsoft/xclip-base-patch16-zero-shot"], ["xclip_text_model", "Unreachable", "component config only", 0, ""], ["xclip_vision_model", "Unreachable", "component config only", 0, ""], ["xcodec", "Unreachable", "config load fails", 14050, "hf-audio/xcodec-hubert-general"], ["xcodec2", "Unreachable", "forward fails after shrink", 9249, "HKUSTAudio/xcodec2-hf"], ["xglm", "Reachable", "", 64850, "optimum-intel-internal-testing/tiny-random-XGLMForCausalLM"], ["xlm", "Reachable", "", 19454, "FacebookAI/xlm-mlm-en-2048"], ["xlm-roberta", "Done", "", 104687870, "BAAI/bge-m3"], ["xlm-roberta-xl", "Done", "", 101085, "facebook/xlm-roberta-xl"], ["xlnet", "Unreachable", "shrink fails", 166190, "xlnet/xlnet-base-cased"], ["xlstm", "Unreachable", "config load fails", 4922, "NX-AI/xLSTM-7b"], ["xmod", "Unreachable", "forward fails after shrink", 29093, "facebook/xmod-base"], ["yolos", "Done", "", 859794, "hustvl/yolos-small"], ["yoso", "Reachable", "", 5281, "uw-madison/yoso-4096"], ["youtu", "Reachable", "", 12971, "tencent/Youtu-LLM-2B"], ["zamba", "Unreachable", "model build fails", 5935, "Zyphra/Zamba-7B-v1"], ["zamba2", "Unreachable", "forward fails after shrink", 70083, "Zyphra/Zamba2-1.2B-instruct"], ["zaya", "Reachable", "", 8978, "Zyphra/ZAYA1-8B"], ["zoedepth", "Unreachable", "forward fails after shrink", 48545, "Intel/zoedepth-nyu-kitti"]], "meta": {"generated": "2026-10-31", "fleet": "666d54fcc782e473ff276ec9626df0b0a3f0cafd", "transformers": "420dca92a4cf7d96dfbc1cc46f00375b0681ff8f", "sweep": "98a8d1d90b64baf9cbca7197d95f139901ae28f6"}, "shrink": {"albert": [["albert-base-v2-mic", 0]], "apertus": [["Apertus-v1.1-0.5B-Instruct-mic", 0]], "audioflamingo3": [["audio-flamingo-3-hf-mic", 0]], "bart": [["bart-base-mic", 0]], "beit": [["beit-base-patch16-224-mic", 0]], "bert": [["bert-base-uncased-mic", 0], ["bert-mic", 0]], "big_bird": [["bigbird-roberta-base-mic", 0]], "blenderbot": [["blenderbot-400M-distill-mic", 0]], "bloom": [["bloomz-560m-mic", 0]], "camembert": [["camembert-base-mic", 0]], "canine": [["canine-c-mic", 0]], "chinese_clip": [["chinese-clip-vit-base-patch16-mic", 0]], "clap": [["clap-htsat-fused-mic", 0]], "clip": [["clip-mic", 0], ["clip-vit-base-patch32-mic", 0]], "clip_text_model": [["tiny-clip-text-2-mic", 0]], "clip_vision_model": [["clip-vit-base-patch32-vision-mic", 0]], "clipseg": [["clipseg-rd64-refined-mic", 0]], "cohere": [["aya-expanse-8b-ungated-mic", 0]], "cohere2": [["tiny-random-aya-base-mic", 0]], "convbert": [["conv-bert-base-mic", 0]], "convnext": [["convnext-tiny-224-mic", 0]], "convnextv2": [["convnextv2-nano-1k-224-mic", 0]], "cosmos3_omni": [["Cosmos3-Nano-mic", 0]], "csm": [["csm-1b-mic", 0]], "deberta": [["deberta-large-mnli-mic", 0]], "deberta-v2": [["mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-mic", 0]], "deepseek_v2": [["DeepSeek-Coder-V2-Lite-Instruct-mic", 0]], "deepseek_v3": [["DeepSeek-R1-mic", 0]], "deepseek_v32": [["DeepSeek-V3.2-mic", 0]], "deepseek_v4": [["DeepSeek-V4-Flash-0731-mic", 0]], "detr": [["detr-mic", 0]], "dinov2": [["dinov2-small-mic", 0]], "dinov2_with_registers": [["dinov2-with-registers-base-mic", 0]], "dinov3_vit": [["dinov3-vitl16-pretrain-lvd1689m-mic", 0]], "distilbert": [["distilbert-base-uncased-mic", 0]], "dpt": [["dpt-large-mic", 0]], "electra": [["electra-small-discriminator-mic", 0]], "embedding_gemma2": [["embeddinggemma-2-mic", 0]], "encoder-decoder": [["bert2bert-cnn_dailymail-fp16-mic", 0]], "esm": [["esm2_t6_8M_UR50D-mic", 0]], "esmc": [["ESMC-300M-hf-mic", 0]], "eurobert": [["EuroBERT-210m-mic", 0]], "falcon": [["falcon-7b-mic", 0]], "falcon_h1": [["Falcon-H1-Tiny-90M-Instruct-mic", 0]], "florence2": [["Florence-2-base-mic", 0]], "fnet": [["fnet-base-mic", 0]], "gemma": [["gemma-2b-mic", 0]], "gemma2": [["gemma-2-2b-it-mic", 0]], "gemma3": [["gemma3-mic", 0]], "gemma3n": [["gemma-3n-E2B-it-mic", 0]], "gemma4": [["gemma-4-E2B-it-mic", 0]], "gemma4_unified": [["gemma-4-12B-it-mic", 0]], "glm4": [["GLM-4-9B-0414-mic", 0]], "glm4_moe": [["GLM-4.5-Air-mic", 0]], "glm4_moe_lite": [["GLM-4.7-Flash-mic", 0]], "glm5_next": [["GLM-5.3-Flash-mic", 1]], "glm_moe_dsa": [["GLM-5.3-mic", 1]], "glm_ocr": [["GLM-OCR-mic", 0]], "got_ocr2": [["got_ocr2-mic", 0]], "gpt2": [["gpt2-mic", 0]], "gpt_bigcode": [["tiny_starcoder_py-mic", 0]], "gpt_neox": [["pythia-160m-mic", 0]], "gpt_oss": [["gpt_oss-mic", 0]], "granite": [["granite-3.1-2b-instruct-mic", 0]], "granite4_vision": [["granite-vision-4.1-4b-mic", 0]], "granite_speech": [["granite-4.0-1b-speech-mic", 0]], "granitemoe": [["granite-3.0-1b-a400m-instruct-mic", 0]], "granitemoehybrid": [["granite-4.0-h-350m-mic", 0]], "grounding-dino": [["grounding-dino-tiny-mic", 0]], "hubert": [["hubert-large-ls960-ft-mic", 0]], "hunyuan_v1_dense": [["Hunyuan-0.5B-Instruct-mic", 0]], "hunyuan_vl": [["HunyuanOCR-mic", 0]], "hy_v3": [["Hy-MT2-30B-A3B-mic", 0]], "idefics3": [["granite-docling-258M-mic", 0]], "inkling_mm_model": [["Inkling-mic", 0]], "internvl": [["internvl-mic", 0]], "jamba": [["Jamba-tiny-dev-mic", 0]], "janus": [["Janus-Pro-1B-mic", 0]], "jina_embeddings_v3": [["jina-embeddings-v3-hf-mic", 0]], "laguna": [["Laguna-XS.2-mic", 0]], "layoutlm": [["layoutlm-base-uncased-mic", 0]], "lfm2": [["LFM2.5-230M-Base-mic", 0]], "lfm2_moe": [["LFM2-8B-A1B-mic", 0]], "lfm2_vl": [["LFM2.5-VL-450M-mic", 0]], "llama": [["llama-mic", 0], ["smollm-1.7b-mic", 0], ["smollm-mic", 0]], "llama4": [["Llama-4-Scout-17B-16E-Instruct-mic", 0]], "llava": [["llava-mic", 0]], "llava_next": [["llava-v1.6-mistral-7b-hf-mic", 0]], "llava_next_video": [["LLaVA-NeXT-Video-7B-hf-mic", 0]], "llava_onevision": [["llava-onevision-qwen2-0.5b-ov-hf-mic", 0]], "longformer": [["longformer-base-4096-mic", 0]], "longt5": [["long-t5-tglobal-base-mic", 0]], "luke": [["luke-base-mic", 0]], "m2m_100": [["nllb-200-distilled-600M-mic", 0]], "mamba": [["mamba-130m-hf-mic", 0]], "marian": [["opus-mt-fr-en-mic", 0]], "mask2former": [["mask2former-swin-tiny-coco-instance-mic", 0]], "mbart": [["mbart-large-50-mic", 0]], "minicpm3": [["MiniCPM3-4B-mic", 0]], "minicpmv4_6": [["MiniCPM-V-4.6-mic", 0]], "minimax_m2": [["MiniMax-M2.5-mic", 0]], "minimax_m3_vl": [["MiniMax-M3-MXFP8-mic", 0]], "ministral3": [["Nemotron-3-Embed-1B-BF16-mic", 0]], "mistral": [["Mistral-7B-Instruct-v0.2-mic", 1]], "mistral3": [["Ministral-3-3B-Instruct-2512-mic", 0], ["mistral3-mic", 0]], "mixtral": [["Mixtral-8x7B-Instruct-v0.1-mic", 0]], "mllama": [["Llama-3.2-11B-Vision-Instruct-mic", 0]], "mm-grounding-dino": [["mm_grounding_dino_tiny_o365v1_goldg_v3det-mic", 0]], "mobilenet_v2": [["mobilenet_v2_1.0_224-mic", 0]], "mobilevit": [["mobilevit-xx-small-mic", 0]], "modernbert": [["modernbert-mic", 0]], "moss_transcribe_diarize": [["MOSS-Transcribe-Diarize-HF-mic", 0]], "mpnet": [["mpnet-base-mic", 0]], "mt5": [["mt5-small-mic", 0]], "muse_glimmer": [["tiny-random-muse-glimmer-mic", 0]], "nemotron_h": [["NVIDIA-Nemotron-3-Nano-4B-BF16-mic", 0]], "nomic_bert": [["nomic-embed-text-v1.5-mic", 0]], "olmo": [["OLMo-1B-hf-mic", 0]], "olmo2": [["OLMo-2-0425-1B-mic", 0]], "olmo3": [["Olmo-3-7B-Instruct-mic", 0]], "olmoe": [["OLMoE-1B-7B-0924-mic", 0]], "openai_privacy_filter": [["privacy-filter-mic", 0]], "opt": [["opt-125m-mic", 0]], "owlv2": [["owlv2-base-patch16-ensemble-mic", 0]], "owlvit": [["owlvit-base-patch32-mic", 0]], "paddleocr_vl": [["tibetan-ocr-mic", 0]], "paligemma": [["paligemma-3b-pt-224-mic", 0]], "pegasus": [["pegasus-xsum-mic", 0]], "perceiver": [["language-perceiver-mic", 0]], "phi": [["phi-2-mic", 0]], "phi3": [["Phi-3.5-mini-instruct-mic", 0]], "phi4_multimodal": [["Phi-4-multimodal-instruct-mic", 0]], "phimoe": [["Phi-3.5-MoE-0.8B-A0.2B-mic", 0]], "pvt": [["pvt-tiny-224-mic", 0]], "qwen2": [["qwen2-mic", 0]], "qwen2_5_omni": [["qwen2_5_omni-mic", 0]], "qwen2_5_omni_thinker": [["LCO-Embedding-Omni-3B-mic", 0]], "qwen2_5_vl": [["qwen2_5_vl-mic", 0]], "qwen2_audio": [["qwen2_audio-mic", 0]], "qwen2_moe": [["Qwen1.5-MoE-A2.7B-mic", 0]], "qwen2_vl": [["Qwen2-VL-2B-Instruct-mic", 0]], "qwen3": [["Qwen3-0.6B-mic", 0]], "qwen3_5_moe": [["Qwen3.5-35B-A3B-mic", 0]], "qwen3_5_moe_text": [["Qwen3.8-1.0B-A0.6B-mic", 0]], "qwen3_5_text": [["Qwen3.5-0.8B-text-only-mic", 0]], "qwen3_asr": [["Qwen3-ASR-0.6B-hf-mic", 0]], "qwen3_moe": [["Qwen3-30B-A3B-mic", 0]], "qwen3_next": [["Qwen3-Next-80B-A3B-Instruct-mic", 0]], "qwen3_vl": [["Qwen3-VL-2B-Instruct-mic", 0]], "qwen3_vl_moe": [["Qwen3-VL-30B-A3B-Instruct-mic", 0]], "qwen4_exp": [["Qwen3.8-Flash-Next-mic", 0]], "recurrent_gemma": [["recurrentgemma-2b-mic", 0]], "resnet": [["resnet-18-mic", 0]], "roberta": [["roberta-base-mic", 0]], "rt_detr": [["rtdetr_r50vd-mic", 0]], "rt_detr_v2": [["docling-layout-heron-mic", 0]], "sam2": [["sam2.1-hiera-tiny-mic", 4]], "seamless_m4t_v2": [["seamless-m4t-v2-large-mic", 0]], "seed_oss": [["Seed-OSS-36B-Instruct-mic", 0]], "segformer": [["segformer-b0-finetuned-ade-512-512-mic", 0]], "siglip": [["siglip-base-patch16-224-mic", 0]], "smollm3": [["SmolLM3-3B-mic", 1]], "smolvlm": [["smolvlm-mic", 0]], "speecht5": [["speech_t5-mic", 0]], "stablelm": [["stablelm-2-1_6b-mic", 0]], "starcoder2": [["starcoder2-3b-mic", 0]], "swin": [["swin-tiny-patch4-window7-224-mic", 0]], "swinv2": [["swinv2-tiny-patch4-window16-256-mic", 0]], "t5": [["t5-mic", 0], ["t5-small-mic", 0]], "table-transformer": [["table_transformer-mic", 0]], "timesfm": [["timesfm-2.0-500m-pytorch-mic", 0]], "tipsv2": [["tipsv2-b14-mic", 0]], "umt5": [["umt5-small-mic", 0]], "unlimited_ocr": [["Unlimited-OCR-mic", 0]], "vibevoice": [["VibeVoice-1.5B-hf-mic", 0]], "vit": [["vit-mic", 0]], "vitmatte": [["vitmatte-small-composition-1k-mic", 0]], "vits": [["mms-tts-eng-mic", 0]], "voxtral": [["Voxtral-Mini-3B-2507-mic", 0]], "wav2vec2": [["wav2vec2-base-960h-mic", 0], ["wav2vec2-mic", 0]], "wavlm": [["wavlm-base-plus-mic", 0]], "whisper": [["whisper-mic", 0], ["whisper-tiny-mic", 0]], "xlm-roberta": [["xlm-roberta-base-mic", 0]], "xlm-roberta-xl": [["xlm-roberta-xl-mic", 0]], "yolos": [["yolos-small-mic", 0]]}, "gated": {"aya_vision": "auto", "chameleon": "manual", "chmv2": "manual", "cohere_asr": "auto", "csm_depth_decoder_model": "auto", "cwm": "manual", "dinov3_convnext": "manual", "gemma": "manual", "gemma2": "manual", "gemma3": "manual", "gemma3_text": "manual", "gemma3n": "manual", "jais2": "auto", "lasr_ctc": "auto", "llama4_vision_model": "manual", "moshi": "auto", "muse_spark": "manual", "muse_spark_audio": "manual", "muse_spark_text": "manual", "muse_spark_vision": "manual", "neucodec": "auto", "perception_lm": "manual", "recurrent_gemma": "manual", "sam3_detr_decoder": "manual", "sam3_detr_encoder": "manual", "sam3_geometry_encoder": "manual", "sam3_mask_decoder": "manual", "sam3_tracker_mask_decoder": "manual", "sam3_tracker_prompt_encoder": "manual", "sam3_tracker_video": "manual", "sam3_tracker_video_mask_decoder": "manual", "sam3_tracker_video_prompt_encoder": "manual", "sam3_video": "manual", "shieldgemma2": "manual", "t5gemma": "manual", "t5gemma2": "manual", "vaultgemma": "manual"}} \ No newline at end of file diff --git a/index.html b/index.html index b0c4b3666032a737f3903db53e6a8a9272483e28..6e12dc3a255c27f040ef523fd11cebe05210d541 100644 --- a/index.html +++ b/index.html @@ -1,19 +1,205 @@ - - - - - My static Space - - - -
-

Welcome to your static Space!

-

You can modify this app directly by editing index.html in the Files and versions tab.

-

- Also don't forget to check the - Spaces documentation. -

-
- + + + + +MIC coverage + + + +
+

MIC coverage of Transformers model types

+

Loading…

+
+
+
+ + +
+
+ + + + + + + + + + + +
#Model typeStateWhy not reachableDownloads (30 days)Top checkpointGatedShrink
+ +
+ + diff --git a/shrink/Apertus-v1.1-0.5B-Instruct-mic.html b/shrink/Apertus-v1.1-0.5B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4fd3339a2a94b51f88ff0ca5e16ead0d32cb153d --- /dev/null +++ b/shrink/Apertus-v1.1-0.5B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Apertus-v1.1-0.5B-Instruct-mic@55ae98cbccd9da534828bccc9b1f8bee4974731d ← swiss-ai/Apertus-v1.1-0.5B-Instruct@a140fd61fb57422c36a26301caea17edee799874 · ApertusForCausalLM · random weights

+
Original438.3Mparameters
Fixture8.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 20
Fixture · 2
KindOriginalFixture
DecoderLayer202✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers304.1M69.4%57.7K0.7%
model.embed_tokens134.2M30.6%8.4M99.3%
model.norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typelinearlinear✓ kept
modelmodel_typeapertusapertus✓ kept
modelvocab_size131072131072✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actxieluxielu✓ kept
modelmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix Apertus omitted).

ClassOriginalFixture
Linear12113
RMSNorm819
Attention202
DecoderLayer202
MLP202
XIELUActivation202
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

5 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size102464
intermediate_size6144128
num_attention_heads164
num_hidden_layers202
num_key_value_heads42
+
\ No newline at end of file diff --git a/shrink/Cosmos3-Nano-mic.html b/shrink/Cosmos3-Nano-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a10a1fa285f918e7bcf0524f30c407c21d5ae070 --- /dev/null +++ b/shrink/Cosmos3-Nano-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Cosmos3-Nano-mic@4c4a117fd8d6b13993505f86a24b15580e8b25d6 ← nvidia/Cosmos3-Nano@e59a53c25979a090fa8706c9acc0c254a6e89b92 · Cosmos3OmniForConditionalGeneration · random weights

+
Original8.8Bparameters
Fixture20.2Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 27
Fixture · 2
KindOriginalFixture
Qwen3VLVisionBlock272✓ kept

model.visual.deepstack_merger_list

Original · 3
Fixture · 3
KindOriginalFixture
GELU33✓ kept

model.language_model.layers

Original · 36
Fixture · 2
KindOriginalFixture
Qwen3VLTextDecoderLayer362✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers6.9B79.2%74.0K0.4%
model.language_model622.3M7.1%9.7M48.2%
lm_head622.3M7.1%9.7M48.2%
model.visual.blocks411.5M4.7%66.9K0.3%
model.visual.deepstack_merger_list120.4M1.4%248.3K1.2%
model.visual44.5M0.5%328.2K1.6%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecosmos3_omnicosmos3_omni✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3_vl_textqwen3_vl_text✓ kept
text_configvocab_size151936151936✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen3_vl_visionqwen3_vl_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configpatch_size1616✓ kept

Module classes

Instances of each class in the built model (prefix Cosmos3Omni omitted).

ClassOriginalFixture
Linear36931
Qwen3VLTextRMSNorm1459
LayerNorm588
Qwen3VLTextAttention362
Qwen3VLTextDecoderLayer362
Qwen3VLTextMLP362
SiLUActivation362
GELUTanh272
Qwen3VLVisionAttention272
Qwen3VLVisionBlock272
Qwen3VLVisionMLP272
GELU44
Qwen3VLVisionPatchMerger44
ModuleList33
Embedding22
Conv3d11
ForConditionalGeneration11
Model11
Qwen3VLTextModel11
Qwen3VLTextRotaryEmbedding11
Qwen3VLVisionModel11
Qwen3VLVisionPatchEmbed11
Qwen3VLVisionRotaryEmbedding11

Config changes

12 fields changed, 54 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size409664
text_config.intermediate_size12288128
text_config.num_attention_heads324
text_config.num_hidden_layers362
text_config.num_key_value_heads82
text_config.rope_parameters{"mrope_interleaved": true, "mrope_section": [24, 20, 20], "rope_type": "defa…{"mrope_interleaved": true, "mrope_section": [3, 3, 2], "rope_theta": 5000000…
vision_config.depth272
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_heads164
vision_config.out_hidden_size409664
+
\ No newline at end of file diff --git a/shrink/DeepSeek-Coder-V2-Lite-Instruct-mic.html b/shrink/DeepSeek-Coder-V2-Lite-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b1d36db1515329f0f631d12d5af9a942508dadef --- /dev/null +++ b/shrink/DeepSeek-Coder-V2-Lite-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/DeepSeek-Coder-V2-Lite-Instruct-mic@90601ffd1320fd0db167a3ade1c6cd0ed35c2229 ← deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct@e434a23f91ba5b4923cf6c9d9a238eb4a08e3a11 · DeepseekV2ForCausalLM · random weights

+
Original15.7Bparameters
Fixture13.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 27
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, Moe, TopkRouter261✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers15.3B97.3%89.6K0.7%
lm_head209.7M1.3%6.6M49.7%
model.embed_tokens209.7M1.3%6.6M49.7%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-6 of 64 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typedeepseek_v2deepseek_v2✓ kept
modelvocab_size102400102400✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings163840163840✓ kept

Module classes

Instances of each class in the built model (prefix DeepseekV2 omitted).

ClassOriginalFixture
Linear19015
RMSNorm827
SiLUActivation533
Attention272
DecoderLayer272
MLP272
Experts261
Moe261
TopkRouter261
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

13 fields changed, 39 unchanged.

FieldOriginalFixture
head_dim648
hidden_size204864
intermediate_size10944128
kv_lora_rank51216
moe_intermediate_size140832
n_routed_experts644
num_attention_heads164
num_experts_per_tok62
num_hidden_layers272
num_key_value_heads164
qk_nope_head_dim12816
qk_rope_head_dim648
v_head_dim12816
+
\ No newline at end of file diff --git a/shrink/DeepSeek-R1-mic.html b/shrink/DeepSeek-R1-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a28e1ba5e0c5dcf28a13a1e4cbb65b6efb121f92 --- /dev/null +++ b/shrink/DeepSeek-R1-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/DeepSeek-R1-mic@89eddb3d8f9419e63b667eb7d5244fec8c768ed9 ← deepseek-ai/DeepSeek-R1@56d4cbbb4d29f4355bab4b9a39ccb717a14ad5ad · DeepseekV3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original671.0Bparameters
Fixture16.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 61
Fixture · 2
KindOriginalFixture
no Experts31✓ kept
Experts, MoE, TopkRouter581✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers669.2B99.7%76.4K0.5%
model.embed_tokens926.7M0.1%8.3M49.8%
lm_head926.7M0.1%8.3M49.8%
model.norm7.2K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (128 heads, 128 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-8 of 256 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typedeepseek_v3deepseek_v3✓ kept
modelvocab_size129280129280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings163840163840✓ kept

Module classes

Instances of each class in the built model (prefix DeepseekV3 omitted).

ClassOriginalFixture
Linear48917
RMSNorm2459
SiLUActivation1193
Attention612
DecoderLayer612
MLP612
Experts581
MoE581
TopkRouter581
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

18 fields changed, 35 unchanged.

FieldOriginalFixture
first_k_dense_replace31
head_dim648
hidden_size716864
intermediate_size18432128
kv_lora_rank51216
moe_intermediate_size204832
n_group81
n_routed_experts2564
num_attention_heads1284
num_experts_per_tok82
num_hidden_layers612
num_key_value_heads1284
q_lora_rank153616
qk_nope_head_dim12816
qk_rope_head_dim648
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "quant_method": "fp8", "weigh…—
topk_group41
v_head_dim12816
+
\ No newline at end of file diff --git a/shrink/DeepSeek-V3.2-mic.html b/shrink/DeepSeek-V3.2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6440a2c04744163aabcaf8f9176593ed5082c171 --- /dev/null +++ b/shrink/DeepSeek-V3.2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/DeepSeek-V3.2-mic@2156444e97b761624604df50de0ac677d402f289 ← deepseek-ai/DeepSeek-V3.2@a7e62ac04ecb2c0a54d736dc46601c5606cf10a6 · DeepseekV32ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original671.9Bparameters
Fixture16.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 61
Fixture · 2
KindOriginalFixture
no Experts31✓ kept
Experts, MoE, TopkRouter581✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers670.0B99.7%363.6K2.1%
model.embed_tokens926.7M0.1%8.3M48.9%
lm_head926.7M0.1%8.3M48.9%
model.norm7.2K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (128 heads, 128 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-8 of 256 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typedeepseek_v32deepseek_v32✓ kept
modelvocab_size129280129280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings163840163840✓ kept

Module classes

Instances of each class in the built model (prefix DeepseekV32 omitted).

ClassOriginalFixture
Linear67223
RMSNorm2459
SiLUActivation1193
Attention612
DecoderLayer612
Indexer612
MLP612
LayerNorm612
Experts581
MoE581
TopkRouter581
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

20 fields changed, 36 unchanged.

FieldOriginalFixture
first_k_dense_replace31
head_dim648
hidden_size716864
intermediate_size18432128
kv_lora_rank51216
layer_types61 entries: 61× indexed_attention["indexed_attention", "indexed_attention"]
mlp_layer_types61 entries: 58× sparse, 3× dense["dense", "sparse"]
moe_intermediate_size204832
n_group81
n_routed_experts2564
num_attention_heads1284
num_experts_per_tok82
num_hidden_layers612
num_key_value_heads1284
q_lora_rank153616
qk_nope_head_dim12816
qk_rope_head_dim648
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "quant_method": "fp8", "scale…—
topk_group41
v_head_dim12816
+
\ No newline at end of file diff --git a/shrink/DeepSeek-V4-Flash-0731-mic.html b/shrink/DeepSeek-V4-Flash-0731-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..54de7c82eb286e6437a5bab3e5b53a007cb3beda --- /dev/null +++ b/shrink/DeepSeek-V4-Flash-0731-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/DeepSeek-V4-Flash-0731-mic@7c36fb38ddaf52e554d784d9e6a2a7ed435b8311 ← deepseek-ai/DeepSeek-V4-Flash-0731@7872f01b1d1fe23eabc4c98b48bffcef5a386062 · DeepseekV4ForCausalLM · random weights

+
Original284.3Bparameters
Fixture20.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 43
Fixture · 5
KindOriginalFixture
sliding_attention, HashRouter22✓ kept
compressed_sparse_attention, CSACompressor, HashRouter …11✓ kept
heavily_compressed_attention, HCACompressor, RotaryEmbedding …201✓ kept
compressed_sparse_attention, CSACompressor, Indexer …201✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers283.3B99.6%3.5M17.6%
lm_head529.5M0.2%8.3M41.2%
model.embed_tokens529.5M0.2%8.3M41.2%
model.hc_head65.5K0.0%1.0K0.0%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMQA (64 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
modelMoE routingtop-6 of 256 expertstop-2 of 4 experts✓ kept
modelmodel_typedeepseek_v4deepseek_v4✓ kept
modelvocab_size129280129280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings10485761048576✓ kept
modelrope_theta1000010000✓ kept

Module classes

Instances of each class in the built model (prefix DeepseekV4 omitted).

ClassOriginalFixture
Linear46850
RMSNorm23526
UnweightedRMSNorm13016
HyperConnection8610
SiLUActivation8610
RotaryEmbedding636
Attention435
DecoderLayer435
Experts435
GroupedLinear435
MLP435
SparseMoeBlock435
SqrtSoftplusActivation435
TopKRouter402
CSACompressor212
Indexer212
IndexerScorer212
HCACompressor201
HashRouter33
ForCausalLM11
HyperHead11
Model11
Embedding11
ModuleList11

Config changes

12 fields changed, 52 unchanged.

FieldOriginalFixture
head_dim51216
hidden_size409664
layer_types43 entries: 21× compressed_sparse_attention, 20× heavily_compressed_attention, 2× sliding_attention["sliding_attention", "sliding_attention", "compressed_sparse_attention", "he…
mlp_layer_types43 entries: 40× moe, 3× hash_moe["hash_moe", "hash_moe", "hash_moe", "moe", "moe"]
moe_intermediate_size204832
n_routed_experts2564
num_attention_heads644
num_experts_per_tok62
num_hidden_layers435
q_lora_rank102416
qk_rope_head_dim642
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "quant_method": "fp8", "scale…—
+
\ No newline at end of file diff --git a/shrink/ESMC-300M-hf-mic.html b/shrink/ESMC-300M-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..721bfab75bcdfa8e823a16f6f3406e06f631b264 --- /dev/null +++ b/shrink/ESMC-300M-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/ESMC-300M-hf-mic@7c11c22ceffcbddb7fb1bb3216255d34ff38a43c ← biohub/ESMC-300M-hf@5554e4b3ab19eb66f04d7ff8e8c2d36c69b52fa0 · EsmcForMaskedLM · random weights

+
Original333.0Mparameters
Fixture95.3Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

esmc.layers

Original · 30
Fixture · 2
KindOriginalFixture
Layer302✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
esmc.layers331.9M99.7%82.7K86.8%
lm_head.dense922.6K0.3%4.2K4.4%
lm_head.decoder61.5K0.0%4.2K4.4%
esmc.embed_tokens61.4K0.0%4.1K4.3%
lm_head.layer_norm1.9K0.0%1280.1%
esmc.norm9600.0%640.1%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (15 heads, 15 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeesmcesmc✓ kept
modelvocab_size6464✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Esmc omitted).

ClassOriginalFixture
Linear21216
LayerNorm1219
Attention302
Layer302
MLP302
SiLUActivation302
Embedding11
ForMaskedLM11
MaskedLMHead11
Model11
RotaryEmbedding11
LayerNorm11
ModuleList11

Config changes

6 fields changed, 23 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size96064
intermediate_size2560128
num_attention_heads154
num_hidden_layers302
num_key_value_heads154
+
\ No newline at end of file diff --git a/shrink/EuroBERT-210m-mic.html b/shrink/EuroBERT-210m-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b433e9c2f65392126f9f3cdf3b63be778144f9f1 --- /dev/null +++ b/shrink/EuroBERT-210m-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/EuroBERT-210m-mic@514cea1b679f118f051124ef88272fb809f25f16 ← EuroBERT/EuroBERT-210m@39b51e15dd1f1a06f58b5cbf6a8a188cec60bd0e · EuroBertForMaskedLM · random weights

+
Original310.3Mparameters
Fixture16.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 12
Fixture · 2
KindOriginalFixture
DecoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers113.3M36.5%82.2K0.5%
model.embed_tokens98.5M31.7%8.2M49.8%
lm_head98.5M31.7%8.2M49.8%
model.norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (12 heads, 12 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeeuroberteurobert✓ kept
modelvocab_size128256128256✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix EuroBert omitted).

ClassOriginalFixture
Linear8515
RMSNorm255
Attention122
DecoderLayer122
MLP122
SiLUActivation122
Embedding11
ForMaskedLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

6 fields changed, 33 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
num_key_value_heads124
+
\ No newline at end of file diff --git a/shrink/Falcon-H1-Tiny-90M-Instruct-mic.html b/shrink/Falcon-H1-Tiny-90M-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..21ad67604569a33dc7996ea08a76fd55052ed4cb --- /dev/null +++ b/shrink/Falcon-H1-Tiny-90M-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Falcon-H1-Tiny-90M-Instruct-mic@0db75b996c3e47fea9cc1a9c213983988b24495a ← tiiuae/Falcon-H1-Tiny-90M-Instruct@e6389502a0b12cd8da894b395ba5bf7436873b16 · FalconH1ForCausalLM · random weights

+
Original91.1Mparameters
Fixture2.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers74.4M81.6%382.1K15.4%
model.embed_tokens16.8M18.4%2.1M84.6%
model.final_layernorm5120.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typefalcon_h1falcon_h1✓ kept
modelvocab_size3276832768✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix FalconH1 omitted).

ClassOriginalFixture
Linear21719
RMSNorm495
SiLUActivation484
Conv1d242
Attention242
DecoderLayer242
MLP242
Mixer242
Identity242
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

9 fields changed, 53 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size51264
intermediate_size768128
mamba_chunk_size1288
mamba_d_head3296
mamba_d_state6416
mamba_n_heads248
num_attention_heads84
num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/Florence-2-base-mic.html b/shrink/Florence-2-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..641104dd1814b250c090b8dc9688793f10681607 --- /dev/null +++ b/shrink/Florence-2-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Florence-2-base-mic@85c1b12e1d9565763f6f2b9466669c58bc7aac33 ← florence-community/Florence-2-base@00921df66db728a9ceb750f5eca43e5c203a2051 · Florence2ForConditionalGeneration · overfit weights · built before the shrink rule (no recorded recipe)

+
Original231.4Mparameters
Fixture6.4Mparameters
Layer stacks4compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.convs

Original · 4
Fixture · 4
KindOriginalFixture
Conv2d44✓ kept

model.vision_tower.blocks

Original · 4
Fixture · 4
KindOriginalFixture
VisionBlock44✓ kept

model.language_model.encoder.layers

Original · 6
Fixture · 1
KindOriginalFixture
BartEncoderLayer61✓ kept

model.language_model.decoder.layers

Original · 6
Fixture · 1
KindOriginalFixture
BartDecoderLayer61✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.vision_tower.blocks84.2M36.4%2.5M39.1%
model.language_model.decoder.layers56.7M24.5%50.2K0.8%
model.language_model.encoder.layers42.5M18.4%33.5K0.5%
model.language_model41.0M17.7%3.4M53.0%
model.vision_tower.convs6.2M2.7%392.8K6.1%
model.multi_modal_projector839.2K0.4%29.3K0.5%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeflorence2florence2✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configmodel_typebartbart✓ kept
text_configvocab_size5132851328✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings10241024✓ kept
vision_configmodel_typeflorence_visionflorence_vision✓ kept
vision_configmax_position_embeddings5050✓ kept
vision_configpatch_size[7, 3, 3, 3][7, 3, 3, 3]✓ kept

Module classes

Instances of each class in the built model (prefix Florence2 omitted).

ClassOriginalFixture
Linear19458
LayerNorm8532
Conv2d5224
DropPath4618
GELUActivation3612
VisionMLP2410
BartAttention183
VisionBlock125
VisionChannelAttention125
VisionChannelBlock125
VisionSpatialBlock125
VisionWindowAttention125
ModuleList88
BartDecoderLayer61
BartEncoderLayer61
VisionConvEmbed44
BartScaledWordEmbedding33
BartLearnedPositionalEmbedding22
Embedding22
Identity22
BartDecoder11
BartEncoder11
BartModel11
ForConditionalGeneration11
Model11
MultiModalProjector11
VisionBackbone11
VisionLearnedAbsolutePositionEmbedding2D11
VisionPositionalEmbeddingCosine1D11

Config changes

12 fields changed, 72 unchanged.

FieldOriginalFixture
text_config.d_model76864
text_config.decoder_attention_heads122
text_config.decoder_ffn_dim3072128
text_config.decoder_layers61
text_config.encoder_attention_heads122
text_config.encoder_ffn_dim3072128
text_config.encoder_layers61
vision_config.depths[1, 1, 9, 1][1, 1, 2, 1]
vision_config.embed_dim[128, 256, 512, 1024][32, 64, 128, 256]
vision_config.num_groups[4, 8, 16, 32][2, 4, 8, 16]
vision_config.num_heads[4, 8, 16, 32][2, 4, 8, 16]
vision_config.projection_dim76864
+
\ No newline at end of file diff --git a/shrink/GLM-4-9B-0414-mic.html b/shrink/GLM-4-9B-0414-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1b1fc2dfe2de73cb2964dffacb00a96e16a4b991 --- /dev/null +++ b/shrink/GLM-4-9B-0414-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/GLM-4-9B-0414-mic@140a76e1cd7001bc3d0aed3b715a2a902214ece6 ← zai-org/GLM-4-9B-0414@645b8482494e31b6b752272bf7f7f273ef0f3caf · Glm4ForCausalLM · random weights

+
Original9.4Bparameters
Fixture19.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 40
Fixture · 2
KindOriginalFixture
DecoderLayer402✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers8.2B86.8%74.5K0.4%
model.embed_tokens620.8M6.6%9.7M49.8%
lm_head620.8M6.6%9.7M49.8%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeglm4glm4✓ kept
modelvocab_size151552151552✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix Glm4 omitted).

ClassOriginalFixture
Linear24113
RMSNorm1619
Attention402
DecoderLayer402
MLP402
SiLUActivation402
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

5 fields changed, 23 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size409664
intermediate_size13696128
num_attention_heads324
num_hidden_layers402
+
\ No newline at end of file diff --git a/shrink/GLM-4.5-Air-mic.html b/shrink/GLM-4.5-Air-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..2a87324fcfbf8e6088e9e59bbbd08ff249123167 --- /dev/null +++ b/shrink/GLM-4.5-Air-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/GLM-4.5-Air-mic@abc7ea97d6d633936cfd54900edce3b610755f86 ← zai-org/GLM-4.5-Air@a24ceef6ce4f3536971efe9b778bdaa1bab18daa · Glm4MoeForCausalLM · random weights

+
Original106.9Bparameters
Fixture19.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 46
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, MoE, TopkRouter451✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers105.6B98.8%80.6K0.4%
model.embed_tokens620.8M0.6%9.7M49.8%
lm_head620.8M0.6%9.7M49.8%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (96 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-8 of 128 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeglm4_moeglm4_moe✓ kept
modelvocab_size151552151552✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Glm4Moe omitted).

ClassOriginalFixture
Linear32315
RMSNorm935
SiLUActivation913
Attention462
DecoderLayer462
MLP462
Experts451
MoE451
TopkRouter451
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

9 fields changed, 31 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size409664
intermediate_size10944128
moe_intermediate_size140832
n_routed_experts1284
num_attention_heads964
num_experts_per_tok82
num_hidden_layers462
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/GLM-4.7-Flash-mic.html b/shrink/GLM-4.7-Flash-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1e5d95f5bb7d82316a71c509a78503c1f3f5c1fc --- /dev/null +++ b/shrink/GLM-4.7-Flash-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/GLM-4.7-Flash-mic@8b4c9af3fc9e6a8325e3dade3558514edd2cd694 ← zai-org/GLM-4.7-Flash@7dd20894a642a0aa287e9827cb1a1f7f91386b67 · Glm4MoeLiteForCausalLM · random weights

+
Original29.9Bparameters
Fixture19.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 47
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, MoE, TopkRouter461✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers29.3B97.9%76.4K0.4%
model.embed_tokens317.2M1.1%9.9M49.8%
lm_head317.2M1.1%9.9M49.8%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (20 heads, 20 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-4 of 64 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeglm4_moe_liteglm4_moe_lite✓ kept
modelvocab_size154880154880✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings202752202752✓ kept

Module classes

Instances of each class in the built model (prefix Glm4MoeLite omitted).

ClassOriginalFixture
Linear37717
RMSNorm1899
SiLUActivation933
Attention472
DecoderLayer472
MLP472
Experts461
MoE461
TopkRouter461
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

14 fields changed, 34 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size10240128
kv_lora_rank51216
mlp_layer_types47 entries: 46× sparse, 1× dense["dense", "sparse"]
moe_intermediate_size153632
n_routed_experts644
num_attention_heads204
num_experts_per_tok42
num_hidden_layers472
num_key_value_heads204
q_lora_rank76816
qk_nope_head_dim19216
qk_rope_head_dim648
v_head_dim25616
+
\ No newline at end of file diff --git a/shrink/GLM-5.3-Flash-mic.html b/shrink/GLM-5.3-Flash-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..195d98ddc0e2053fc602b6a54d8ca81e1787b4d5 --- /dev/null +++ b/shrink/GLM-5.3-Flash-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/GLM-5.3-Flash-mic@53f3e5bd10a67d2c75a170a3c2a28009e338c256 ← zai-org/GLM-5.3-Flash@46a050bec13002ad29ee795c16e61cf4fa3c4a9c · Glm5NextForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original313.9Bparameters
Fixture40.7Mparameters
Layer stacks2compared
Findings1to review

⚠ To review

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 24
Fixture · 2
KindOriginalFixture
VisionBlock242✓ kept

model.language_model.layers

Original · 45
Fixture · 3
KindOriginalFixture
linear_attention, Conv1d, TextForgetGate …31✓ kept
is_causal=True, TextAttention, TextExperts …111✓ kept
linear_attention, Conv1d, TextExperts …311✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers312.1B99.4%811.0K2.0%
model.language_model634.4M0.2%19.8M48.7%
lm_head634.4M0.2%19.8M48.7%
model.visual.blocks403.0M0.1%83.4K0.2%
model.visual160.6M0.1%174.1K0.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeglm5_nextglm5_next✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleMHA (64 heads, 64 KV)MHA (4 heads, 4 KV)✓ kept
text_configMoE routingtop-8 of 288 expertstop-2 of 8 experts✓ kept
text_configmodel_typeglm5_next_textglm5_next_text✓ kept
text_configvocab_size154880154880✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings10485761048576✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeglm5_next_visionglm5_next_vision✓ kept
vision_confighidden_actsilusilu✓ kept
vision_configimage_size44856⚠ changed
vision_configpatch_size1414✓ kept

Module classes

Instances of each class in the built model (prefix Glm5Next omitted).

ClassOriginalFixture
Linear65450
TextRMSNorm1139
RMSNorm979
TextHyperConnection906
TextUnweightedRMSNorm906
SiLUActivation706
TextDecoderLayer453
TextMLP453
TextExperts422
TextMoE422
TextTopkRouter422
Conv1d342
TextForgetGate342
TextLinearAttention342
TextRMSNormGated342
VisionAttention242
VisionBlock242
VisionMLP242
LayerNorm122
TextAttention111
TextIndexer111
ModuleList22
Conv2d11
Conv3d11
Embedding11
GELU11
ForConditionalGeneration11
Model11
TextHyperHead11
TextModel11
VisionModel11
VisionPatchEmbed11
VisionPatchMerger11
VisionRotaryEmbedding11

Config changes

33 fields changed, 86 unchanged.

FieldOriginalFixture
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "modules_to_not_convert": ["a…—
text_config.first_k_dense_replace31
text_config.hidden_size4096128
text_config.index_head_dim12832
text_config.index_n_heads324
text_config.index_topk204864
text_config.indexer_types45 entries: 45× full["full", "full", "full"]
text_config.intermediate_size12288128
text_config.kv_lora_rank51264
text_config.layer_types45 entries: 34× linear_attention, 11× indexed_attention["linear_attention", "indexed_attention", "linear_attention"]
text_config.linear_attn_config.full_attn_layers11 entries[1]
text_config.linear_attn_config.head_dim12832
text_config.linear_attn_config.kda_layers34 entries[0, 2]
text_config.linear_attn_config.num_heads644
text_config.linear_head_dim12832
text_config.linear_num_heads644
text_config.mlp_layer_types45 entries: 42× sparse, 3× dense["dense", "sparse", "sparse"]
text_config.moe_intermediate_size204864
text_config.n_routed_experts2888
text_config.num_attention_heads644
text_config.num_experts_per_tok82
text_config.num_hidden_layers453
text_config.num_key_value_heads644
text_config.q_lora_rank153664
text_config.qk_nope_head_dim25632
text_config.v_head_dim25632
vision_config.depth242
vision_config.hidden_size102464
vision_config.image_size44856
vision_config.intermediate_size4096128
vision_config.num_heads164
vision_config.out_hidden_size4096128
vision_config.projection_intermediate_size10240128
+
\ No newline at end of file diff --git a/shrink/GLM-5.3-mic.html b/shrink/GLM-5.3-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..88a9d0280a9276b0b57dd2be2f2ea3f074d17eb2 --- /dev/null +++ b/shrink/GLM-5.3-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/GLM-5.3-mic@1088c4f5a18bf3ba097240a67f6c391be8072006 ← zai-org/GLM-5.3@ba32f8c19c8738e2c57c71798c601d477a7bf844 · GlmMoeDsaForCausalLM · random weights

+
Original743.4Bparameters
Fixture41.0Mparameters
Layer stacks1compared
Findings1to review

⚠ To review

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 78
Fixture · 7
KindOriginalFixture
Indexer, LayerNorm33✓ kept
Experts, MoE, TopkRouter573✓ kept
Experts, Indexer, MoE …181✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers741.5B99.7%1.4M3.3%
lm_head951.6M0.1%19.8M48.3%
model.embed_tokens951.6M0.1%19.8M48.3%
model.norm6.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (64 heads, 64 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-8 of 256 expertstop-2 of 8 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeglm_moe_dsaglm_moe_dsa✓ kept
modelvocab_size154880154880✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings1048576512⚠ changed

Module classes

Instances of each class in the built model (prefix GlmMoeDsa omitted).

ClassOriginalFixture
Linear68869
RMSNorm31329
SiLUActivation15311
Attention787
DecoderLayer787
MLP787
Experts754
MoE754
TopkRouter754
Indexer214
LayerNorm214
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

23 fields changed, 42 unchanged.

FieldOriginalFixture
first_k_dense_replace31
head_dim648
hidden_size6144128
index_head_dim12816
index_n_heads322
index_topk20488
indexer_types78 entries: 57× shared, 21× full7 entries: 4× full, 3× shared
intermediate_size12288128
kv_lora_rank51232
layer_types78 entries: 78× indexed_attention7 entries: 7× indexed_attention
max_position_embeddings1048576512
mlp_layer_types78 entries: 75× sparse, 3× dense7 entries: 4× sparse, 3× dense
moe_intermediate_size204864
n_routed_experts2568
num_attention_heads644
num_experts_per_tok82
num_hidden_layers787
num_key_value_heads644
q_lora_rank204864
qk_nope_head_dim19224
qk_rope_head_dim648
quantization_config{"activation_scheme": "dynamic", "fmt": "e4m3", "quant_method": "fp8", "weigh…—
v_head_dim25632
+
\ No newline at end of file diff --git a/shrink/GLM-OCR-mic.html b/shrink/GLM-OCR-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..97e3991ccd975528145b818ba0735d030a36aa0d --- /dev/null +++ b/shrink/GLM-OCR-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/GLM-OCR-mic@08eddf7ae838d5d3b6b135b984c0e3ec53c28441 ← zai-org/GLM-OCR@2e85a62840ccac27daa451df36c736c4636b8628 · GlmOcrForConditionalGeneration · random weights

+
Original1.1Bparameters
Fixture8.8Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 24
Fixture · 24
KindOriginalFixture
VisionBlock2424✓ kept

model.language_model.layers

Original · 16
Fixture · 2
KindOriginalFixture
TextDecoderLayer162✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers490.8M44.3%74.2K0.8%
model.visual.blocks403.0M36.4%1.0M11.4%
model.language_model91.2M8.2%3.8M43.1%
lm_head91.2M8.2%3.8M43.1%
model.visual31.1M2.8%132.9K1.5%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeglm_ocrglm_ocr✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeglm_ocr_textglm_ocr_text✓ kept
text_configvocab_size5939259392✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeglm_ocr_visionglm_ocr_vision✓ kept
vision_confighidden_actsilusilu✓ kept
vision_configimage_size336336✓ kept
vision_configpatch_size1414✓ kept

Module classes

Instances of each class in the built model (prefix GlmOcr omitted).

ClassOriginalFixture
Linear221137
RMSNorm162106
SiLUActivation4127
VisionAttention2424
VisionBlock2424
VisionMlp2424
TextAttention162
TextDecoderLayer162
TextMLP162
ModuleList22
Conv2d11
Conv3d11
Embedding11
GELU11
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
VisionModel11
VisionPatchEmbed11
VisionPatchMerger11
VisionRotaryEmbedding11
LayerNorm11

Config changes

11 fields changed, 59 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size153664
text_config.intermediate_size4608128
text_config.num_attention_heads164
text_config.num_hidden_layers162
text_config.num_key_value_heads82
text_config.rope_parameters{"mrope_section": [16, 24, 24], "partial_rotary_factor": 1.0, "rope_theta": 1…{"mrope_section": [2, 3, 3], "partial_rotary_factor": 1.0, "rope_theta": 1000…
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_heads164
vision_config.out_hidden_size153664
+
\ No newline at end of file diff --git a/shrink/Hunyuan-0.5B-Instruct-mic.html b/shrink/Hunyuan-0.5B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..0a1e7f36839602ac2a1e659d0b511d9cabe807d0 --- /dev/null +++ b/shrink/Hunyuan-0.5B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Hunyuan-0.5B-Instruct-mic@d7fe47dc3288bba155076d3747959365159073b0 ← tencent/Hunyuan-0.5B-Instruct@2359fb220c010e9d6d62c62d466f0eda179c2cf3 · HunYuanDenseV1ForCausalLM · random weights

+
Original539.0Mparameters
Fixture7.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers415.3M77.0%74.0K0.9%
model.embed_tokens123.7M23.0%7.7M99.1%
model.norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedynamicdynamic✓ kept
modelmodel_typehunyuan_v1_densehunyuan_v1_dense✓ kept
modelvocab_size120818120818✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix HunYuanDenseV1 omitted).

ClassOriginalFixture
Linear16915
RMSNorm979
Attention242
DecoderLayer242
MLP242
SiLUActivation242
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

7 fields changed, 43 unchanged.

FieldOriginalFixture
attention_head_dim12816
head_dim12816
hidden_size102464
intermediate_size3584128
num_attention_heads164
num_hidden_layers242
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/HunyuanOCR-mic.html b/shrink/HunyuanOCR-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..831f37f958e911bd57b2b04ac5972438408c987b --- /dev/null +++ b/shrink/HunyuanOCR-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/HunyuanOCR-mic@2b69a85316ef4335c59c1a82d624555a1dfd7e71 ← tencent/HunyuanOCR@47644ecc4fc854efa4f505155158831f36773ee4 · HunYuanVLForConditionalGeneration · random weights

+
Original996.2Mparameters
Fixture9.1Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DenseV1DecoderLayer242✓ kept

model.vision_tower.layers

Original · 27
Fixture · 2
KindOriginalFixture
VisionBlock272✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers415.3M41.7%74.0K0.8%
model.vision_tower.layers411.5M41.3%66.9K0.7%
model.language_model123.7M12.4%7.7M85.4%
model.vision_tower45.7M4.6%1.2M13.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typehunyuan_vlhunyuan_vl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedynamicdynamic✓ kept
text_configmodel_typehunyuan_vl_texthunyuan_vl_text✓ kept
text_configvocab_size120818120818✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept
vision_configattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
vision_configmodel_typehunyuan_vl_visionhunyuan_vl_vision✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix HunYuanVL omitted).

ClassOriginalFixture
Linear33228
RMSNorm9911
LayerNorm544
GELUActivation283
VisionAttention272
VisionBlock272
VisionMLP272
DenseV1Attention242
DenseV1DecoderLayer242
MLP242
SiLUActivation242
Conv2d33
Embedding22
ModuleList22
ForConditionalGeneration11
Model11
RotaryEmbedding11
TextModel11
VisionPatchEmbed11
VisionPatchMerger11
VisionTransformer11

Config changes

14 fields changed, 68 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size102464
text_config.intermediate_size3584128
text_config.num_attention_heads164
text_config.num_hidden_layers242
text_config.num_key_value_heads82
text_config.rope_parameters{"alpha": 1000.0, "beta_fast": 32, "beta_slow": 1, "factor": 1.0, "mscale": 1…{"alpha": 1000.0, "beta_fast": 32, "beta_slow": 1, "factor": 1.0, "mrope_sect…
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
vision_config.num_key_value_heads164
vision_config.out_hidden_size102464
vision_config.text_hidden_size102464
+
\ No newline at end of file diff --git a/shrink/Hy-MT2-30B-A3B-mic.html b/shrink/Hy-MT2-30B-A3B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..3b8dd981ebed320cd3ecd6b12a0b01152b226d50 --- /dev/null +++ b/shrink/Hy-MT2-30B-A3B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Hy-MT2-30B-A3B-mic@8357a369b5aa965d0f486cbe4fe63329d0a1d00e ← tencent/Hy-MT2-30B-A3B@d3ead4dba61c09aac60a261a96ad1df3e705febb · HYV3ForCausalLM · random weights

+
Original30.1Bparameters
Fixture15.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 48
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, MoE, TopKRouter471✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers29.6B98.4%80.4K0.5%
lm_head247.5M0.8%7.7M49.7%
model.embed_tokens247.5M0.8%7.7M49.7%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-8 of 128 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typehy_v3hy_v3✓ kept
modelvocab_size120832120832✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix HYV3 omitted).

ClassOriginalFixture
Linear33715
RMSNorm1939
SiLUActivation953
Attention482
DecoderLayer482
MLP482
Experts471
MoE471
TopKRouter471
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

10 fields changed, 39 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size204864
intermediate_size6912128
mlp_layer_types48 entries: 47× sparse, 1× dense["dense", "sparse"]
moe_intermediate_size76832
num_attention_heads324
num_experts1284
num_experts_per_tok82
num_hidden_layers482
num_key_value_heads42
+
\ No newline at end of file diff --git a/shrink/Inkling-mic.html b/shrink/Inkling-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6b7a2b5d8dcfc6648b3fffa3c0bd6ce90dda0f6b --- /dev/null +++ b/shrink/Inkling-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Inkling-mic@a7c61810959524051418bc1a49a70ac559307c0b ← thinkingmachines/Inkling@828496eeae4c243ff1a22f7f28ff83694f2f7bc9 · InklingForConditionalGeneration · random weights

+
Original947.1Bparameters
Fixture33.8Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.language_model.layers

Original · 66
Fixture · 6
KindOriginalFixture
hybrid_sliding, MLP22✓ kept
hybrid_sliding, Experts, MoE …533✓ kept
hybrid, Experts, MoE …111✓ kept

model.vision_tower.encoder_layers

Original · 4
Fixture · 2
KindOriginalFixture
RMSNorm31✓ kept
no RMSNorm11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers944.6B99.7%7.2M21.4%
model.language_model1.2B0.1%12.9M38.1%
lm_head1.2B0.1%12.9M38.1%
model.vision_tower.encoder_layers83.7M0.0%751.7K2.2%
model.audio_tower7.9M0.0%82.0K0.2%
model.vision_tower6.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeinkling_mm_modelinkling_mm_model✓ kept
text_configattention styleGQA (64 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configMoE routingtop-6 of 256 expertstop-2 of 4 experts✓ kept
text_configmodel_typeinkling_textinkling_text✓ kept
text_configvocab_size201024201024✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings10485761048576✓ kept
audio_configmodel_typeinkling_audioinkling_audio✓ kept
vision_configmodel_typeinkling_visioninkling_vision✓ kept
vision_configpatch_size4040✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Inkling omitted).

ClassOriginalFixture
Linear34139
RMSNorm27129
Conv1d26424
ShortConvolution26424
SiLUActivation13010
Attention666
DecoderLayer666
RelativeLogits666
Experts644
MoE644
SharedExperts644
TopkRouter644
VisionEncoderLayer42
MLP22
ModuleList22
Embedding11
AudioModel11
AudioModelEmbeddings11
ForConditionalGeneration11
Model11
NormedEmbedding11
TextModel11
VisionModel11

Config changes

16 fields changed, 102 unchanged.

FieldOriginalFixture
audio_config.text_hidden_size614464
text_config.head_dim12816
text_config.hidden_size614464
text_config.intermediate_size24576128
text_config.layer_types66 entries: 55× hybrid_sliding, 11× hybrid["hybrid_sliding", "hybrid_sliding", "hybrid_sliding", "hybrid_sliding", "hyb…
text_config.mlp_layer_types66 entries: 64× sparse, 2× dense["dense", "dense", "sparse", "sparse", "sparse", "sparse"]
text_config.moe_intermediate_size307232
text_config.n_routed_experts2564
text_config.num_attention_heads644
text_config.num_experts_per_tok62
text_config.num_hidden_layers666
text_config.num_key_value_heads82
vision_config.hidden_size102464
vision_config.n_layers42
vision_config.num_attention_heads164
vision_config.text_hidden_size614464
+
\ No newline at end of file diff --git a/shrink/Jamba-tiny-dev-mic.html b/shrink/Jamba-tiny-dev-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..76e4e350a283e5338fc278f6b8231f7b3d46e247 --- /dev/null +++ b/shrink/Jamba-tiny-dev-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Jamba-tiny-dev-mic@d03ef8cc4d1f81b8af2ae68030ecaa9bc1d51a6d ← ai21labs/Jamba-tiny-dev@ed303361004ac875426a61675edecf8e9d976882 · JambaForCausalLM · random weights

+
Original318.7Mparameters
Fixture8.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 16
Fixture · 5
KindOriginalFixture
Conv1d, MLP, MambaDecoderLayer …62✓ kept
Conv1d, Experts, MambaDecoderLayer …82✓ kept
is_causal=True, Attention, AttentionDecoderLayer …21✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers251.6M78.9%443.3K5.0%
lm_head33.6M10.5%4.2M47.5%
model.embed_tokens33.6M10.5%4.2M47.5%
model.final_layernorm5120.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-2 of 8 expertstop-2 of 4 experts✓ kept
modelmodel_typejambajamba✓ kept
modelvocab_size6553665536✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Jamba omitted).

ClassOriginalFixture
Linear8930
RMSNorm7523
SiLUActivation309
Conv1d144
MambaDecoderLayer144
MambaMixer144
Experts82
MLP83
SparseMoeBlock82
TopKRouter82
Attention21
AttentionDecoderLayer21
Embedding11
ForCausalLM11
Model11
ModuleList11

Config changes

5 fields changed, 39 unchanged.

FieldOriginalFixture
hidden_size51264
intermediate_size2048128
num_attention_heads84
num_experts84
num_hidden_layers165
+
\ No newline at end of file diff --git a/shrink/Janus-Pro-1B-mic.html b/shrink/Janus-Pro-1B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..fdb32f404e33a7823f04dd1acc41cce989693d96 --- /dev/null +++ b/shrink/Janus-Pro-1B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Janus-Pro-1B-mic@5d0bfc05499ea83be331a434ea79583ca970581a ← deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e · JanusForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original1.9Bparameters
Fixture81.9Mparameters
Layer stacks4compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_model.encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
VisionEncoderLayer242✓ kept

model.vqmodel.encoder.down

Original · 5
Fixture · 5
KindOriginalFixture
VQVAEConvDownsample44✓ kept
VQVAEAttnBlock11✓ kept

model.vqmodel.decoder.up

Original · 5
Fixture · 5
KindOriginalFixture
VQVAEAttnBlock, VQVAEConvUpsample11✓ kept
VQVAEConvUpsample33✓ kept
no VQVAEAttnBlock11✓ kept

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
LlamaDecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers1.2B66.1%82.2K0.1%
model.vision_model.encoder.layers302.3M16.2%100.0K0.1%
model.language_model209.7M11.2%6.6M8.0%
model.generation_head37.8M2.0%1.2M1.5%
model.vqmodel.decoder.up30.8M1.6%30.8M37.6%
model.vqmodel23.5M1.3%24.4M29.8%
model.vqmodel.encoder.down17.6M0.9%17.6M21.5%
4 others12.0M0.6%1.2M1.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typejanusjanus✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typellamallama✓ kept
text_configvocab_size102400102400✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings1638416384✓ kept
vision_configmodel_typejanus_vision_modeljanus_vision_model✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size384384✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept
vq_configmodel_typejanus_vqganjanus_vqgan✓ kept
vq_confighidden_actgelugelu✓ kept

Module classes

Instances of each class in the built model (prefix Janus omitted).

ClassOriginalFixture
Linear31933
Conv2d105105
Dropout7733
Identity726
GroupNorm6767
LayerNorm495
LlamaRMSNorm495
VQVAEResnetBlock2929
GELUActivation275
ModuleList2626
VisionAttention242
VisionEncoderLayer242
VisionMLP242
LlamaAttention242
LlamaDecoderLayer242
LlamaMLP242
SiLUActivation242
Module1010
VQVAEAttnBlock77
Embedding44
VQVAEConvDownsample44
VQVAEConvUpsample44
VQVAEMidBlock22
ForConditionalGeneration11
Model11
VQVAE11
VQVAEAlignerMLP11
VQVAEDecoder11
VQVAEEncoder11
VQVAEHead11
VQVAEVectorQuantizer11
VisionAlignerMLP11
VisionEmbeddings11
VisionEncoder11
VisionModel11
LlamaModel11
LlamaRotaryEmbedding11

Config changes

12 fields changed, 82 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size204864
text_config.intermediate_size5632128
text_config.num_attention_heads164
text_config.num_hidden_layers242
text_config.num_key_value_heads164
vision_config.hidden_size102464
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
vision_config.projection_dim204864
vq_config.embed_dim864
vq_config.projection_dim204864
+
\ No newline at end of file diff --git a/shrink/LCO-Embedding-Omni-3B-mic.html b/shrink/LCO-Embedding-Omni-3B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..2fbe0f857e38f829102a4bda829c8fea63d372a4 --- /dev/null +++ b/shrink/LCO-Embedding-Omni-3B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/LCO-Embedding-Omni-3B-mic@1e770f7015e573f2c4287893af7c6eb0c1d45c33 ← LCO-Embedding/LCO-Embedding-Omni-3B@73434565c33d032551639362f7fc91fa3c6f065f · Qwen2_5OmniThinkerForConditionalGeneration · random weights

+
Original4.7Bparameters
Fixture21.1Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.layers

Original · 32
Fixture · 2
KindOriginalFixture
Qwen2_5OmniAudioEncoderLayer322✓ kept

model.visual.blocks

Original · 32
Fixture · 32
KindOriginalFixture
Qwen2_5OmniVisionBlock3232✓ kept

model.language_model.layers

Original · 36
Fixture · 2
KindOriginalFixture
Qwen2_5OmniDecoderLayer362✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers2.8B59.0%74.2K0.4%
model.visual.blocks630.5M13.4%1.3M6.3%
model.audio_tower.layers629.6M13.4%66.8K0.3%
model.language_model311.2M6.6%9.7M46.0%
lm_head311.2M6.6%9.7M46.0%
model.visual38.2M0.8%157.6K0.7%
model.audio_tower8.0M0.2%41.4K0.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen2_5_omni_thinkerqwen2_5_omni_thinker✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
audio_configmodel_typeqwen2_5_omni_audio_encoderqwen2_5_omni_audio_encoder✓ kept
audio_confignum_mel_bins128128✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen2_5_omni_vision_encoderqwen2_5_omni_vision_encoder✓ kept
vision_confighidden_actsilusilu✓ kept
vision_configpatch_size1414✓ kept
text_configattention styleGQA (16 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2_5_omni_textqwen2_5_omni_text✓ kept
text_configvocab_size151936151936✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2_5OmniThinker omitted).

ClassOriginalFixture
Linear672254
Qwen2_5OmniRMSNorm13870
SiLUActivation6834
LayerNorm655
Qwen2MLP362
Qwen2_5OmniAttention362
Qwen2_5OmniDecoderLayer362
GELUActivation322
Qwen2_5OmniAudioAttention322
Qwen2_5OmniAudioEncoderLayer322
Qwen2_5OmniMLP3232
Qwen2_5OmniVisionAttention3232
Qwen2_5OmniVisionBlock3232
ModuleList33
Conv1d22
Embedding22
AvgPool1d11
Conv3d11
GELU11
Qwen2_5OmniAudioEncoder11
Qwen2_5OmniPatchMerger11
Qwen2_5OmniRotaryEmbedding11
ForConditionalGeneration11
Model11
TextModel11
Qwen2_5OmniVisionEncoder11
Qwen2_5OmniVisionRotaryEmbedding11
Qwen2_5_VisionPatchEmbed11
Sequential11
SinusoidsPositionEmbedding11

Config changes

16 fields changed, 102 unchanged.

FieldOriginalFixture
audio_config.d_model128064
audio_config.encoder_attention_heads204
audio_config.encoder_ffn_dim5120128
audio_config.encoder_layers322
audio_config.output_dim204864
text_config.hidden_size204864
text_config.intermediate_size11008128
text_config.layer_types36 entries: 36× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers362
text_config.rope_parameters{"mrope_section": [16, 24, 24], "rope_type": "default", "type": "default", "r…{"mrope_section": [2, 3, 3], "rope_theta": 1000000.0, "rope_type": "default",…
vision_config.embed_dim128064
vision_config.hidden_size128064
vision_config.intermediate_size3420128
vision_config.num_heads164
vision_config.out_hidden_size204864
+
\ No newline at end of file diff --git a/shrink/LFM2-8B-A1B-mic.html b/shrink/LFM2-8B-A1B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..2374bbb352d035c84326b8a69b3cc008eea8f545 --- /dev/null +++ b/shrink/LFM2-8B-A1B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/LFM2-8B-A1B-mic@02493cd540778260b98790f375fb2070e8acd824 ← LiquidAI/LFM2-8B-A1B@c1c44ff9fc00db3ebf4516970563f5f383d23670 · Lfm2MoeForCausalLM · random weights

+
Original8.3Bparameters
Fixture4.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 4
KindOriginalFixture
conv, Conv1d, MLP …22✓ kept
is_causal=True, Attention, Experts …61✓ kept
conv, Conv1d, Experts …161✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers8.2B98.4%161.4K3.7%
model.embed_tokens134.2M1.6%4.2M96.3%
model.embedding_norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-4 of 32 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typelfm2_moelfm2_moe✓ kept
modelvocab_size6553665536✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings128000128000✓ kept

Module classes

Instances of each class in the built model (prefix Lfm2Moe omitted).

ClassOriginalFixture
Linear6717
RMSNorm6111
DecoderLayer244
Experts222
SparseMoeBlock222
TopKRouter222
Conv1d183
ShortConv183
Attention61
MLP22
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

9 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size7168128
layer_types24 entries: 18× conv, 6× full_attention["conv", "conv", "full_attention", "conv"]
moe_intermediate_size179232
num_attention_heads324
num_experts324
num_experts_per_tok42
num_hidden_layers244
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/LFM2.5-230M-Base-mic.html b/shrink/LFM2.5-230M-Base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ff18db627fa25b7f9da28d9edaaf1c96f40c5bb4 --- /dev/null +++ b/shrink/LFM2.5-230M-Base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/LFM2.5-230M-Base-mic@d6697c673a52ed87ae4e8ed607e5b6a1ea6f7a8d ← LiquidAI/LFM2.5-230M-Base@9d2be5519834990d30996f878b6771cccbd24f2c · Lfm2ForCausalLM · random weights

+
Original229.7Mparameters
Fixture4.3Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 14
Fixture · 2
KindOriginalFixture
conv, Conv1d, ShortConv81✓ kept
is_causal=True, Attention61✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers162.6M70.8%78.3K1.8%
model.embed_tokens67.1M29.2%4.2M98.2%
model.embedding_norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typelfm2lfm2✓ kept
modelvocab_size6553665536✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings128000128000✓ kept

Module classes

Instances of each class in the built model (prefix Lfm2 omitted).

ClassOriginalFixture
Linear8313
RMSNorm417
DecoderLayer142
MLP142
Conv1d81
ShortConv81
Attention61
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

7 fields changed, 41 unchanged.

FieldOriginalFixture
hidden_size102464
intermediate_size2560128
layer_types14 entries: 8× conv, 6× full_attention["conv", "full_attention"]
num_attention_heads164
num_heads164
num_hidden_layers142
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/LFM2.5-VL-450M-mic.html b/shrink/LFM2.5-VL-450M-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..2391e81249a633171a7f2fb31f3fed94cece319a --- /dev/null +++ b/shrink/LFM2.5-VL-450M-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/LFM2.5-VL-450M-mic@27b8f6b75e00ddd9758961d5abac08622f2b6d73 ← LiquidAI/LFM2.5-VL-450M@fc6221ca597f3315e4f82fc2df606783267b34ba · Lfm2VlForConditionalGeneration · random weights

+
Original448.7Mparameters
Fixture5.1Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
Siglip2EncoderLayer122✓ kept

model.language_model.layers

Original · 16
Fixture · 2
KindOriginalFixture
conv, Conv1d, Lfm2ShortConv101✓ kept
is_causal=True, Lfm2Attention61✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers287.4M64.0%127.5K2.5%
model.vision_tower.encoder.layers85.1M19.0%66.9K1.3%
model.language_model67.1M15.0%4.2M82.0%
model.multi_modal_projector8.4M1.9%657.5K12.9%
model.vision_tower788.7K0.2%65.7K1.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typelfm2_vllfm2_vl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typesiglip2_vision_modelsiglip2_vision_model✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typelfm2lfm2✓ kept
text_configvocab_size6553665536✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings128000128000✓ kept

Module classes

Instances of each class in the built model (prefix Lfm2Vl omitted).

ClassOriginalFixture
Linear16828
Lfm2RMSNorm457
LayerNorm255
Lfm2DecoderLayer162
Lfm2MLP162
GELUTanh122
Siglip2Attention122
Siglip2EncoderLayer122
Siglip2MLP122
Conv1d101
Lfm2ShortConv101
Lfm2Attention61
Embedding22
ModuleList22
GELUActivation11
Lfm2Model11
Lfm2RotaryEmbedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
Siglip2Encoder11
Siglip2VisionEmbeddings11
Siglip2VisionModel11

Config changes

11 fields changed, 77 unchanged.

FieldOriginalFixture
text_config.hidden_size102464
text_config.intermediate_size6656128
text_config.layer_types16 entries: 10× conv, 6× full_attention["conv", "full_attention"]
text_config.num_attention_heads164
text_config.num_heads164
text_config.num_hidden_layers162
text_config.num_key_value_heads82
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/LLaVA-NeXT-Video-7B-hf-mic.html b/shrink/LLaVA-NeXT-Video-7B-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..8712bf054fc039a3f36c4c156a63eacd9637c5dc --- /dev/null +++ b/shrink/LLaVA-NeXT-Video-7B-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/LLaVA-NeXT-Video-7B-hf-mic@e025a3d15d2cc35a893c1362a237f82b09b90410 ← llava-hf/LLaVA-NeXT-Video-7B-hf@f417d9edeb69a9eaa88283780332d00ce3c66593 · LlavaNextVideoForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original7.1Bparameters
Fixture4.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
CLIPEncoderLayer242✓ kept

model.language_model.layers

Original · 32
Fixture · 2
KindOriginalFixture
LlamaDecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers6.5B91.7%82.2K1.9%
model.vision_tower.encoder.layers302.3M4.3%66.9K1.5%
model.language_model131.3M1.9%2.1M47.3%
lm_head131.3M1.9%2.1M47.3%
model.multi_modal_projector21.0M0.3%8.3K0.2%
model.vision_tower1.2M0.0%74.9K1.7%
model4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typellava_next_videollava_next_video✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
vision_configmodel_typeclip_vision_modelclip_vision_model✓ kept
vision_configvocab_size3200032000✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size336336✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typelinearlinear✓ kept
text_configmodel_typellamallama✓ kept
text_configvocab_size3206432064✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix LlavaNextVideo omitted).

ClassOriginalFixture
Linear37129
LlamaRMSNorm655
LayerNorm506
LlamaAttention322
LlamaDecoderLayer322
LlamaMLP322
SiLUActivation322
CLIPAttention242
CLIPEncoderLayer242
CLIPMLP242
QuickGELUActivation242
Embedding22
ModuleList22
AvgPool2d11
CLIPEncoder11
CLIPVisionEmbeddings11
CLIPVisionModel11
Conv2d11
GELUActivation11
LlamaModel11
LlamaRotaryEmbedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
Pooler11

Config changes

11 fields changed, 67 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size409664
text_config.intermediate_size11008128
text_config.num_attention_heads324
text_config.num_hidden_layers322
text_config.num_key_value_heads324
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
vision_config.projection_dim76832
+
\ No newline at end of file diff --git a/shrink/Laguna-XS.2-mic.html b/shrink/Laguna-XS.2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c23042c055589605a4078249c313dc1c3547892b --- /dev/null +++ b/shrink/Laguna-XS.2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Laguna-XS.2-mic@21bbfb128fc8f6764e660376a3482ec8b6e8c93b ← poolside/Laguna-XS.2@a397bde04501591d0ac3d74a5d9d0a4ec298ffb8 · LagunaForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original33.4Bparameters
Fixture13.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 40
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, SparseMoeBlock, TopKRouter391✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers33.0B98.8%319.0K2.4%
lm_head205.5M0.6%6.4M48.8%
model.embed_tokens205.5M0.6%6.4M48.8%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (48 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-8 of 256 expertstop-2 of 4 experts✓ kept
modelmodel_typelagunalaguna✓ kept
modelvocab_size100352100352✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Laguna omitted).

ClassOriginalFixture
Linear32117
RMSNorm1619
SiLUActivation793
Attention402
DecoderLayer402
MLP402
Experts391
SparseMoeBlock391
TopKRouter391
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

13 fields changed, 31 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size204864
intermediate_size8192128
layer_types40 entries: 30× sliding_attention, 10× full_attention["full_attention", "sliding_attention"]
mlp_layer_types40 entries: 39× sparse, 1× dense["dense", "sparse"]
moe_intermediate_size51232
num_attention_heads484
num_attention_heads_per_layer40 entries: 30× 64, 10× 48[48, 64]
num_experts2564
num_experts_per_tok82
num_hidden_layers402
num_key_value_heads82
shared_expert_intermediate_size512128
+
\ No newline at end of file diff --git a/shrink/Llama-3.2-11B-Vision-Instruct-mic.html b/shrink/Llama-3.2-11B-Vision-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6d29513779a2b4e6c49af710a43dd8489701d378 --- /dev/null +++ b/shrink/Llama-3.2-11B-Vision-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Llama-3.2-11B-Vision-Instruct-mic@8071268efa52824fc95b35bb2c1499946ec1bb23 ← unsloth/Llama-3.2-11B-Vision-Instruct@677b0c1b7008230a0fb88708c5550748e72b9a83 · MllamaForConditionalGeneration · overfit weights

+
Original10.7Bparameters
Fixture20.7Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_model.transformer.layers

Original · 32
Fixture · 2
KindOriginalFixture
VisionEncoderLayer322✓ kept

model.vision_model.global_transformer.layers

Original · 8
Fixture · 8
KindOriginalFixture
VisionEncoderLayer88✓ kept

model.language_model.layers

Original · 40
Fixture · 2
KindOriginalFixture
is_causal=True, SelfAttentionDecoderLayer, TextSelfAttention321✓ kept
CrossAttentionDecoderLayer, TextCrossAttention81✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers8.7B81.8%74.0K0.4%
model.vision_model.transformer.layers629.5M5.9%66.4K0.3%
model.language_model525.4M4.9%8.2M39.7%
lm_head525.3M4.9%8.2M39.7%
model.vision_model.global_transformer.layers157.4M1.5%265.7K1.3%
model.vision_model76.7M0.7%3.8M18.5%
model.multi_modal_projector31.5M0.3%12.4K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemllamamllama✓ kept
vision_configmodel_typemllama_vision_modelmllama_vision_model✓ kept
vision_configtie_word_embeddingsTrueTrue✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size560560✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typellama3llama3✓ kept
text_configmodel_typemllama_text_modelmllama_text_model✓ kept
text_configvocab_size128256128256✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Mllama omitted).

ClassOriginalFixture
Linear52276
TextRMSNorm977
LayerNorm8222
GELUActivation4010
TextMLP402
VisionAttention4010
VisionEncoderLayer4010
VisionMLP4010
SiLUActivation402
SelfAttentionDecoderLayer321
TextSelfAttention321
CrossAttentionDecoderLayer81
TextCrossAttention81
Embedding44
ModuleList33
PrecomputedAspectRatioEmbedding22
VisionEncoder22
Conv2d11
ForConditionalGeneration11
Model11
PrecomputedPositionEmbedding11
RotaryEmbedding11
TextModel11
VisionModel11

Config changes

11 fields changed, 85 unchanged.

FieldOriginalFixture
text_config.cross_attention_layers8 entries[1]
text_config.hidden_size409664
text_config.intermediate_size14336128
text_config.num_attention_heads324
text_config.num_hidden_layers402
text_config.num_key_value_heads82
vision_config.hidden_size128064
vision_config.intermediate_layers_indices[3, 7, 15, 23, 30][0, 1]
vision_config.intermediate_size5120128
vision_config.num_hidden_layers322
vision_config.vision_output_dim7680192
+
\ No newline at end of file diff --git a/shrink/Llama-4-Scout-17B-16E-Instruct-mic.html b/shrink/Llama-4-Scout-17B-16E-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d2ea3191c3d69eca8c021ef546e51e11941a283f --- /dev/null +++ b/shrink/Llama-4-Scout-17B-16E-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Llama-4-Scout-17B-16E-Instruct-mic@18ed0f73576cf32d488b1b776bba7891007dcf12 ← RedHatAI/Llama-4-Scout-17B-16E-Instruct@5996646120a69f5f182866bb56a8f1573f367604 · Llama4ForConditionalGeneration · random weights

+
Original108.6Bparameters
Fixture44.7Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

vision_model.model.layers

Original · 34
Fixture · 2
KindOriginalFixture
VisionEncoderLayer342✓ kept

language_model.model.layers

Original · 48
Fixture · 4
KindOriginalFixture
TextL2Norm363✓ kept
no TextL2Norm121✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
language_model.model.layers105.7B97.3%542.2K1.2%
language_model.model1.0B1.0%12.9M28.9%
language_model.lm_head1.0B1.0%12.9M28.9%
vision_model.model.layers809.5M0.7%100.0K0.2%
vision_model.vision_adapter39.8M0.0%17.8M39.9%
multi_modal_projector.linear_121.0M0.0%262.1K0.6%
vision_model.patch_embedding827.9K0.0%37.6K0.1%
3 others819.5K0.0%37.2K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typellama4llama4✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
vision_configRoPE typedefaultdefault✓ kept
vision_configmodel_typellama4_vision_modelllama4_vision_model✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size336336✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (40 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configMoE routingtop-1 of 16 expertstop-1 of 4 experts✓ kept
text_configRoPE typellama3llama3✓ kept
text_configmodel_typellama4_textllama4_text✓ kept
text_configvocab_size202048202048✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings1048576010485760✓ kept

Module classes

Instances of each class in the built model (prefix Llama4 omitted).

ClassOriginalFixture
Linear54545
TextRMSNorm979
SiLUActivation968
LayerNorm706
Router484
TextAttention484
TextDecoderLayer484
TextExperts484
TextMLP484
TextMoe484
TextL2Norm363
GELU353
VisionAttention342
VisionEncoderLayer342
VisionMLP342
ModuleList22
Embedding11
ForCausalLM11
ForConditionalGeneration11
MultiModalProjector11
TextModel11
TextRotaryEmbedding11
UnfoldConvolution11
VisionEncoder11
VisionMLP211
VisionModel11
VisionPixelShuffleMLP11
VisionRotaryEmbedding11
Unfold11

Config changes

14 fields changed, 75 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size512064
text_config.intermediate_size8192128
text_config.layer_types48 entries: 36× chunked_attention, 12× full_attention["chunked_attention", "chunked_attention", "chunked_attention", "full_attenti…
text_config.moe_layers48 entries[0, 1, 2, 3]
text_config.no_rope_layers48 entries: 36× 1, 12× 0[1, 1, 1, 0]
text_config.num_attention_heads404
text_config.num_hidden_layers484
text_config.num_key_value_heads82
text_config.num_local_experts164
vision_config.hidden_size140864
vision_config.intermediate_size5632256
vision_config.num_attention_heads164
vision_config.num_hidden_layers342
+
\ No newline at end of file diff --git a/shrink/MOSS-Transcribe-Diarize-HF-mic.html b/shrink/MOSS-Transcribe-Diarize-HF-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..880461065b8c36b732acc078d2614727a26c5d78 --- /dev/null +++ b/shrink/MOSS-Transcribe-Diarize-HF-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/MOSS-Transcribe-Diarize-HF-mic@10010f1a0105941db4ce5363f4e724a85f053c64 ← itazap/MOSS-Transcribe-Diarize-HF@df4bdbe3c5376de5029005b69a301286b1bb7f35 · MossTranscribeDiarizeForConditionalGeneration · random weights

+
Original908.5Mparameters
Fixture10.0Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.layers

Original · 24
Fixture · 2
KindOriginalFixture
AudioLayer242✓ kept

model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
Qwen3DecoderLayer282✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers440.5M48.5%74.0K0.7%
model.audio_tower.layers302.3M33.3%66.8K0.7%
model.language_model155.6M17.1%9.7M97.1%
model.multi_modal_projector5.2M0.6%20.7K0.2%
model.audio_tower4.9M0.5%123.9K1.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemoss_transcribe_diarizemoss_transcribe_diarize✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
audio_configmodel_typemoss_transcribe_diarize_audiomoss_transcribe_diarize_audio✓ kept
audio_confignum_mel_bins8080✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3qwen3✓ kept
text_configvocab_size151936151936✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix MossTranscribeDiarize omitted).

ClassOriginalFixture
Linear34329
Qwen3RMSNorm1139
LayerNorm506
SiLUActivation293
Qwen3Attention282
Qwen3DecoderLayer282
Qwen3MLP282
GELUActivation242
AudioAttention242
AudioLayer242
Conv1d22
Embedding22
ModuleList22
AudioModel11
ForConditionalGeneration11
Model11
MultiModalProjector11
Qwen3Model11
Qwen3RotaryEmbedding11

Config changes

11 fields changed, 60 unchanged.

FieldOriginalFixture
audio_config.hidden_size102464
audio_config.intermediate_size4096128
audio_config.num_attention_heads164
audio_config.num_hidden_layers242
text_config.head_dim12816
text_config.hidden_size102464
text_config.intermediate_size3072128
text_config.layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers282
text_config.num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/MiniCPM-V-4.6-mic.html b/shrink/MiniCPM-V-4.6-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..22cfd6680cd203674380172de5db33c9dc18cd56 --- /dev/null +++ b/shrink/MiniCPM-V-4.6-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/MiniCPM-V-4.6-mic@0ab6a30ad4aeae45c8ad56b7859397c24bca47e8 ← openbmb/MiniCPM-V-4.6@36f34a661a4bd35d0dc2294cb044d2584646c7d3 · MiniCPMV4_6ForConditionalGeneration · random weights

+
Original1.3Bparameters
Fixture17.3Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
VisionEncoderLayer272✓ kept

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, Qwen3_5GatedDeltaNet …181✓ kept
is_causal=True, Qwen3_5Attention61✓ kept

model.merger.mlp

Original · 1
Fixture · 1
KindOriginalFixture
GELU11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers498.1M38.3%748.0K4.3%
model.vision_tower.encoder.layers411.5M31.6%66.9K0.4%
model.language_model254.0M19.5%15.9M91.7%
model.vision_tower110.8M8.5%533.1K3.1%
model.merger.mlp26.0M2.0%82.8K0.5%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeminicpmv4_6minicpmv4_6✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelimage_size11201120✓ kept
modelpatch_size1414✓ kept
text_configattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3_5_textqwen3_5_text✓ kept
text_configvocab_size248094248094✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configmodel_typeminicpmv4_6_visionminicpmv4_6_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size980980✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix MiniCPMV4_6 omitted).

ClassOriginalFixture
Linear35736
Qwen3_5RMSNorm617
LayerNorm588
GELUTanh283
VisionAttention283
VisionEncoderLayer272
VisionMLP272
Qwen3_5DecoderLayer242
Qwen3_5MLP242
SiLUActivation242
Conv1d181
Qwen3_5GatedDeltaNet181
Qwen3_5RMSNormGated181
Qwen3_5Attention61
ModuleList33
Embedding22
Conv2d11
GELU11
DownsampleMLP11
ForConditionalGeneration11
Merger11
Model11
ViTWindowAttentionMerger11
VisionEmbeddings11
VisionEncoder11
VisionModel11
Qwen3_5TextModel11
Qwen3_5TextRotaryEmbedding11

Config changes

10 fields changed, 73 unchanged.

FieldOriginalFixture
text_config.head_dim25616
text_config.hidden_size102464
text_config.intermediate_size3584128
text_config.layer_types24 entries: 18× linear_attention, 6× full_attention["linear_attention", "full_attention"]
text_config.num_attention_heads84
text_config.num_hidden_layers242
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
+
\ No newline at end of file diff --git a/shrink/MiniCPM3-4B-mic.html b/shrink/MiniCPM3-4B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..816529da0456dc0394f117c07d50395341ab89bf --- /dev/null +++ b/shrink/MiniCPM3-4B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/MiniCPM3-4B-mic@874f11d622cb165e995468f15d2f43f242b52b4a ← openbmb/MiniCPM3-4B@d6b14ddaefdb11c624dd75c3c779549bc90b08cb · MiniCPM3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original4.1Bparameters
Fixture4.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 62
Fixture · 2
KindOriginalFixture
DecoderLayer622✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers3.9B95.4%70.0K1.5%
model.embed_tokens188.0M4.6%4.7M98.5%
model.norm2.6K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (40 heads, 40 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typelongropelongrope✓ kept
modelmodel_typeminicpm3minicpm3✓ kept
modelvocab_size7344873448✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix MiniCPM3 omitted).

ClassOriginalFixture
Linear49717
RMSNorm2499
Attention622
DecoderLayer622
MLP622
SiLUActivation622
ForCausalLM11
Model11
RotaryEmbedding11
ScaledWordEmbedding11
ModuleList11

Config changes

12 fields changed, 28 unchanged.

FieldOriginalFixture
head_dim328
hidden_size256064
intermediate_size6400128
kv_lora_rank25616
num_attention_heads404
num_hidden_layers622
num_key_value_heads404
q_lora_rank76816
qk_nope_head_dim6416
qk_rope_head_dim328
rope_parameters{"type": "longrope", "long_factor": [1.0591234137867171, 1.1241891283591912, …{"long_factor": [1.0591234137867171, 2.093982484148734, 10.475458000005451, 1…
v_head_dim6416
+
\ No newline at end of file diff --git a/shrink/MiniMax-M2.5-mic.html b/shrink/MiniMax-M2.5-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ac2a79ff7cd61e012eccd0e431980651640ee654 --- /dev/null +++ b/shrink/MiniMax-M2.5-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/MiniMax-M2.5-mic@5e9d65abcedbbc965c77d1f07ffe7fba04f5d512 ← MiniMaxAI/MiniMax-M2.5@2515a3ea0afec1dd22d0c7794b3a91557804d195 · MiniMaxM2ForCausalLM · random weights

+
Original228.7Bparameters
Fixture25.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 62
Fixture · 2
KindOriginalFixture
DecoderLayer622✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers227.5B99.5%222.1K0.9%
lm_head614.6M0.3%12.8M49.6%
model.embed_tokens614.6M0.3%12.8M49.6%
model.norm3.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (48 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-8 of 256 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeminimax_m2minimax_m2✓ kept
modelvocab_size200064200064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings196608196608✓ kept

Module classes

Instances of each class in the built model (prefix MiniMaxM2 omitted).

ClassOriginalFixture
Linear2499
RMSNorm2499
Attention622
DecoderLayer622
Experts622
SparseMoeBlock622
TopKRouter622
SiLUActivation622
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

10 fields changed, 34 unchanged.

FieldOriginalFixture
attn_type_list62 entries: 62× 1[1, 1]
head_dim12816
hidden_size307264
intermediate_size1536128
num_attention_heads484
num_experts_per_tok82
num_hidden_layers622
num_key_value_heads82
num_local_experts2564
quantization_config{"activation_scheme": "dynamic", "fmt": "float8_e4m3fn", "quant_method": "fp8…—
+
\ No newline at end of file diff --git a/shrink/MiniMax-M3-MXFP8-mic.html b/shrink/MiniMax-M3-MXFP8-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1ff4a8c52631fcbd09d27959a93e36941a804e77 --- /dev/null +++ b/shrink/MiniMax-M3-MXFP8-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/MiniMax-M3-MXFP8-mic@314c24fd31f3764227458c8fe5aa7750eb65f6b8 ← MiniMaxAI/MiniMax-M3-MXFP8@d2be410f483297907301ec94fdf0ca5385f9b169 · MiniMaxM3SparseForConditionalGeneration · random weights

+
Original427.0Bparameters
Fixture31.0Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.layers

Original · 32
Fixture · 2
KindOriginalFixture
MiniMaxM3VLVisionEncoderLayer322✓ kept

model.language_model.layers

Original · 60
Fixture · 2
KindOriginalFixture
no MiniMaxM3VLExperts31✓ kept
MiniMaxM3VLExperts, MiniMaxM3VLIndexer, MiniMaxM3VLSparseMoeBlock …571✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers423.7B99.2%2.5M8.2%
model.language_model1.2B0.3%12.8M41.2%
lm_head1.2B0.3%12.8M41.2%
model.vision_tower.layers629.7M0.1%66.9K0.2%
model.multi_modal_projector234.4M0.1%2.8M8.9%
model.vision_tower1.5M0.0%75.4K0.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeminimax_m3_vlminimax_m3_vl✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeminimax_m3_vl_visionminimax_m3_vl_vision✓ kept
vision_configvocab_size3200032000✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size20162016✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (64 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
text_configMoE routingtop-4 of 128 expertstop-2 of 4 experts✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeminimax_m3_vl_textminimax_m3_vl_text✓ kept
text_configvocab_size200064200064✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings10485761048576✓ kept

Module classes

Instances of each class in the built model (prefix MiniMaxM3Sparse omitted).

ClassOriginalFixture
Linear67131
MiniMaxM3VLRMSNorm35511
LayerNorm655
MiniMaxM3VLAttention602
MiniMaxM3VLDecoderLayer602
MiniMaxM3VLDenseMLP602
MiniMaxM3VLExperts571
MiniMaxM3VLIndexer571
MiniMaxM3VLSparseMoeBlock571
MiniMaxM3VLTopKRouter571
GELUActivation344
MiniMaxM3VLVisionAttention322
MiniMaxM3VLVisionEncoderLayer322
MiniMaxM3VLVisionMLP322
ModuleList22
Conv3d11
Embedding11
ForConditionalGeneration11
MiniMaxM3VLModel11
MiniMaxM3VLMultiModalProjector11
MiniMaxM3VLRotaryEmbedding11
MiniMaxM3VLTextModel11
MiniMaxM3VLVisionEmbeddings11
MiniMaxM3VLVisionModel11
MiniMaxM3VLVisionRotaryEmbedding11

Config changes

21 fields changed, 91 unchanged.

FieldOriginalFixture
merged_hidden_size24576256
quantization_config{"quant_method": "mxfp8", "activation_scheme": "dynamic", "weight_block_size"…—
text_config.head_dim12816
text_config.hidden_size614464
text_config.index_block_size1288
text_config.index_n_heads42
text_config.index_topk_blocks164
text_config.intermediate_size3072128
text_config.layer_types60 entries: 57× minimax_m3_sparse, 3× full_attention["full_attention", "minimax_m3_sparse"]
text_config.mlp_layer_types60 entries: 57× sparse, 3× dense["dense", "sparse"]
text_config.num_attention_heads644
text_config.num_experts_per_tok42
text_config.num_hidden_layers602
text_config.num_key_value_heads42
text_config.num_local_experts1284
text_config.shared_intermediate_size3072128
vision_config.hidden_size128064
vision_config.intermediate_size5120128
vision_config.num_attention_heads164
vision_config.num_hidden_layers322
vision_config.projection_dim614464
+
\ No newline at end of file diff --git a/shrink/Ministral-3-3B-Instruct-2512-mic.html b/shrink/Ministral-3-3B-Instruct-2512-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..e31c7a9607dc3696edda5e7f3873b250e23e6895 --- /dev/null +++ b/shrink/Ministral-3-3B-Instruct-2512-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Ministral-3-3B-Instruct-2512-mic@444a971de7a3a92574df14dcdd5dde549e0d660f ← mistralai/Ministral-3-3B-Instruct-2512@b35d4dfe56c142746f54dbd64f579faab2744308 · Mistral3ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original3.8Bparameters
Fixture8.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.transformer.layers

Original · 24
Fixture · 2
KindOriginalFixture
PixtralAttentionLayer242✓ kept

model.language_model.layers

Original · 26
Fixture · 2
KindOriginalFixture
Ministral3DecoderLayer262✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers3.0B78.6%74.0K0.9%
model.vision_tower.transformer.layers402.7M10.5%82.2K1.0%
model.language_model402.7M10.5%8.4M97.5%
model.multi_modal_projector16.8M0.4%24.6K0.3%
model.vision_tower603.1K0.0%37.7K0.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemistral3mistral3✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typepixtralpixtral✓ kept
vision_confighidden_actsilusilu✓ kept
vision_configimage_size15401540✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typeyarnyarn✓ kept
text_configmodel_typeministral3ministral3✓ kept
text_configvocab_size131072131072✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Mistral3 omitted).

ClassOriginalFixture
Linear35432
Ministral3RMSNorm535
SiLUActivation504
PixtralRMSNorm495
Ministral3Attention262
Ministral3DecoderLayer262
Ministral3MLP262
PixtralAttention242
PixtralAttentionLayer242
PixtralMLP242
ModuleList22
Conv2d11
Embedding11
GELUActivation11
Ministral3Model11
Ministral3RotaryEmbedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
PatchMerger11
RMSNorm11
PixtralTransformer11
PixtralVisionModel11
PixtralVisionRotaryEmbedding11

Config changes

12 fields changed, 53 unchanged.

FieldOriginalFixture
quantization_config{"activation_scheme": "static", "dequantize": false, "modules_to_not_convert"…—
text_config.head_dim12816
text_config.hidden_size307264
text_config.intermediate_size9216128
text_config.num_attention_heads324
text_config.num_hidden_layers262
text_config.num_key_value_heads82
vision_config.head_dim6416
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/Mistral-7B-Instruct-v0.2-mic.html b/shrink/Mistral-7B-Instruct-v0.2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1233543a12b96facaed9566e580bbeb4ef95d505 --- /dev/null +++ b/shrink/Mistral-7B-Instruct-v0.2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Mistral-7B-Instruct-v0.2-mic@90938461b4cb2497a78ea7f817f89df453996848 ← mistralai/Mistral-7B-Instruct-v0.2@63a8b081895390a26e140280378bc85ec8bce07a · MistralForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original7.2Bparameters
Fixture8.4Mparameters
Layer stacks1compared
Findings1to review

⚠ To review

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers7.0B96.4%246.3K2.9%
model.embed_tokens131.1M1.8%4.1M48.5%
lm_head131.1M1.8%4.1M48.5%
model.norm4.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typemistralmistral✓ kept
modelvocab_size3200032000✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings32768512⚠ changed

Module classes

Instances of each class in the built model (prefix Mistral omitted).

ClassOriginalFixture
Linear22515
RMSNorm655
Attention322
DecoderLayer322
MLP322
SiLUActivation322
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

7 fields changed, 21 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size4096128
intermediate_size14336256
max_position_embeddings32768512
num_attention_heads324
num_hidden_layers322
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/Mixtral-8x7B-Instruct-v0.1-mic.html b/shrink/Mixtral-8x7B-Instruct-v0.1-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..7dd8050beb1d5fd1f0caeaebaf5d93df23c146dd --- /dev/null +++ b/shrink/Mixtral-8x7B-Instruct-v0.1-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Mixtral-8x7B-Instruct-v0.1-mic@9c86dd7f51c866a4511616932943f95f6d163e66 ← mistralai/Mixtral-8x7B-Instruct-v0.1@eba92302a2861cdc0098cc54bc9f17cb2c47eb61 · MixtralForCausalLM · random weights

+
Original46.7Bparameters
Fixture4.3Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers46.4B99.4%222.0K5.1%
lm_head131.1M0.3%2.0M47.4%
model.embed_tokens131.1M0.3%2.0M47.4%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-2 of 8 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typemixtralmixtral✓ kept
modelvocab_size3200032000✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix Mixtral omitted).

ClassOriginalFixture
Linear1299
RMSNorm655
Attention322
DecoderLayer322
Experts322
SparseMoeBlock322
TopKRouter322
SiLUActivation322
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

6 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size409664
intermediate_size14336128
num_attention_heads324
num_hidden_layers322
num_key_value_heads82
num_local_experts84
+
\ No newline at end of file diff --git a/shrink/NVIDIA-Nemotron-3-Nano-4B-BF16-mic.html b/shrink/NVIDIA-Nemotron-3-Nano-4B-BF16-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..60f8b259be959c1d26f30b277721e97c627c9000 --- /dev/null +++ b/shrink/NVIDIA-Nemotron-3-Nano-4B-BF16-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/NVIDIA-Nemotron-3-Nano-4B-BF16-mic@9e2cf8579314aef2d07fb651a0e47989c49ce98d ← nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16@dfaf35de3e30f1867dd8dbc38a7fc9fb52d3914f · NemotronHForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original4.0Bparameters
Fixture49.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 42
Fixture · 42
KindOriginalFixture
linear_attention, Conv1d, Mamba2Mixer …2121✓ kept
MLP, ReLUSquaredActivation1717✓ kept
is_causal=True, Attention44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers3.2B79.3%32.8M66.1%
lm_head411.0M10.3%8.4M16.9%
model.embeddings411.0M10.3%8.4M16.9%
model.norm_f3.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (40 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-2 of 8 expertstop-2 of 4 experts✓ kept
modelmodel_typenemotron_hnemotron_h✓ kept
modelvocab_size131072131072✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix NemotronH omitted).

ClassOriginalFixture
Linear9393
RMSNorm4343
Block4242
Conv1d2121
Mamba2Mixer2121
RMSNormGated2121
SiLUActivation2121
MLP1717
ReLUSquaredActivation1717
Attention44
Embedding11
ModuleList11
ForCausalLM11
Model11

Config changes

9 fields changed, 58 unchanged.

FieldOriginalFixture
chunk_size2568
head_dim12816
hidden_size313664
intermediate_size12544128
moe_intermediate_size768832
n_routed_experts84
num_attention_heads404
num_key_value_heads82
ssm_state_size12816
+
\ No newline at end of file diff --git a/shrink/Nemotron-3-Embed-1B-BF16-mic.html b/shrink/Nemotron-3-Embed-1B-BF16-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6f6adaadb9b384ef5d36477d5c7fbd666980c7d8 --- /dev/null +++ b/shrink/Nemotron-3-Embed-1B-BF16-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Nemotron-3-Embed-1B-BF16-mic@645864f9759d320c610786a2270ecb18e982534a ← nvidia/Nemotron-3-Embed-1B-BF16@c0c9fea93ea424587517f2c59e20db9f1d6bf615 · Ministral3Model · random weights

+
Original1.1Bparameters
Fixture8.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

layers

Original · 16
Fixture · 2
KindOriginalFixture
DecoderLayer162✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
layers872.5M76.5%74.0K0.9%
embed_tokens268.4M23.5%8.4M99.1%
norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (24 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typeministral3ministral3✓ kept
modelvocab_size131072131072✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Ministral3 omitted).

ClassOriginalFixture
Linear11214
RMSNorm335
Attention162
DecoderLayer162
MLP162
SiLUActivation162
Embedding11
Model11
RotaryEmbedding11
ModuleList11

Config changes

6 fields changed, 26 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size204864
intermediate_size6144128
num_attention_heads244
num_hidden_layers162
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/OLMo-1B-hf-mic.html b/shrink/OLMo-1B-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..629d5d1a54013f4a5fdd744195b2e53bbedc9f61 --- /dev/null +++ b/shrink/OLMo-1B-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/OLMo-1B-hf-mic@87c81bd7d9f93663d9906bbde0737125e4d85c54 ← allenai/OLMo-1B-hf@aee7752d9c08ee4775e9b0091426d8410e8f6a89 · OlmoForCausalLM · random weights

+
Original1.2Bparameters
Fixture3.3Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 16
Fixture · 2
KindOriginalFixture
DecoderLayer162✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers1.1B91.2%81.9K2.5%
model.embed_tokens103.0M8.8%3.2M97.5%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeolmoolmo✓ kept
modelvocab_size5030450304✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Olmo omitted).

ClassOriginalFixture
Linear11315
LayerNorm335
Attention162
DecoderLayer162
MLP162
SiLUActivation162
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

5 fields changed, 23 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size8192128
num_attention_heads164
num_hidden_layers162
num_key_value_heads164
+
\ No newline at end of file diff --git a/shrink/OLMo-2-0425-1B-mic.html b/shrink/OLMo-2-0425-1B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..30f3e4376c6fb1219c1719d9d8feca661d30cc59 --- /dev/null +++ b/shrink/OLMo-2-0425-1B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/OLMo-2-0425-1B-mic@7a6eea1e741066708957df80693b23000613b907 ← allenai/OLMo-2-0425-1B@a1847dff35000b4271fa70afc5db10fd29fedbdf · Olmo2ForCausalLM · random weights

+
Original1.5Bparameters
Fixture12.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 16
Fixture · 2
KindOriginalFixture
DecoderLayer162✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers1.1B72.3%82.4K0.6%
model.embed_tokens205.5M13.8%6.4M49.7%
lm_head205.5M13.8%6.4M49.7%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeolmo2olmo2✓ kept
modelvocab_size100352100352✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix Olmo2 omitted).

ClassOriginalFixture
Linear11315
RMSNorm659
Attention162
DecoderLayer162
MLP162
SiLUActivation162
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

5 fields changed, 22 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size8192128
num_attention_heads164
num_hidden_layers162
num_key_value_heads164
+
\ No newline at end of file diff --git a/shrink/OLMoE-1B-7B-0924-mic.html b/shrink/OLMoE-1B-7B-0924-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b7697681bb69d4e281ce6de6e45207a3d6973324 --- /dev/null +++ b/shrink/OLMoE-1B-7B-0924-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/OLMoE-1B-7B-0924-mic@abd7fb026a08bdb27dfa8ff4d6a1680721f1e85a ← allenai/OLMoE-1B-7B-0924@6d84c48581ece794365f2b8e9cfb043c68ade9c5 · OlmoeForCausalLM · random weights

+
Original6.9Bparameters
Fixture6.7Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 16
Fixture · 2
KindOriginalFixture
DecoderLayer162✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers6.7B97.0%230.4K3.5%
model.embed_tokens103.0M1.5%3.2M48.3%
lm_head103.0M1.5%3.2M48.3%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-8 of 64 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeolmoeolmoe✓ kept
modelvocab_size5030450304✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix Olmoe omitted).

ClassOriginalFixture
Linear659
RMSNorm659
Attention162
DecoderLayer162
Experts162
SparseMoeBlock162
TopKRouter162
SiLUActivation162
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

7 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size1024128
num_attention_heads164
num_experts644
num_experts_per_tok82
num_hidden_layers162
num_key_value_heads164
+
\ No newline at end of file diff --git a/shrink/Olmo-3-7B-Instruct-mic.html b/shrink/Olmo-3-7B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..5867734cfec34930f34907058694e15ea6e0e110 --- /dev/null +++ b/shrink/Olmo-3-7B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Olmo-3-7B-Instruct-mic@3d2269c8c387b9dec2f5a987d2739464ad990224 ← allenai/Olmo-3-7B-Instruct@6e5971d9eba42665f5bd5a0fcf047f299ce1dccc · Olmo3ForCausalLM · random weights

+
Original7.3Bparameters
Fixture12.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
sliding_attention241✓ kept
full_attention81✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers6.5B88.7%82.4K0.6%
model.embed_tokens410.7M5.6%6.4M49.7%
lm_head410.7M5.6%6.4M49.7%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
modelmodel_typeolmo3olmo3✓ kept
modelvocab_size100278100278✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings6553665536✓ kept

Module classes

Instances of each class in the built model (prefix Olmo3 omitted).

ClassOriginalFixture
Linear22515
RMSNorm1299
Attention322
DecoderLayer322
MLP322
SiLUActivation322
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

6 fields changed, 23 unchanged.

FieldOriginalFixture
hidden_size409664
intermediate_size11008128
layer_types32 entries: 24× sliding_attention, 8× full_attention["sliding_attention", "full_attention"]
num_attention_heads324
num_hidden_layers322
num_key_value_heads324
+
\ No newline at end of file diff --git a/shrink/Phi-3.5-MoE-0.8B-A0.2B-mic.html b/shrink/Phi-3.5-MoE-0.8B-A0.2B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..14ec08c9b3ba91deac9a1d00dce9ff466cfa9780 --- /dev/null +++ b/shrink/Phi-3.5-MoE-0.8B-A0.2B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Phi-3.5-MoE-0.8B-A0.2B-mic@38df14197e6a9ed50ccfe370498b9764d8dcadda ← inference-optimization/Phi-3.5-MoE-0.8B-A0.2B@f6258a2026894c90bffd3c0cfb11c42490935bb8 · PhimoeForCausalLM · random weights

+
Original802.6Mparameters
Fixture4.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 4
Fixture · 2
KindOriginalFixture
DecoderLayer42✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers671.2M83.6%222.6K5.1%
lm_head65.7M8.2%2.1M47.8%
model.embed_tokens65.7M8.2%2.1M47.1%
model.norm4.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-2 of 8 expertstop-2 of 4 experts✓ kept
modelRoPE typelongropelongrope✓ kept
modelmodel_typephimoephimoe✓ kept
modelvocab_size3206432064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Phimoe omitted).

ClassOriginalFixture
Linear179
LayerNorm95
Attention42
DecoderLayer42
Experts42
SparseMoeBlock42
TopKRouter42
SiLUActivation42
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

7 fields changed, 31 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size3200128
num_attention_heads164
num_hidden_layers42
num_key_value_heads42
num_local_experts84
rope_parameters{"long_factor": [1.0199999809265137, 1.0299999713897705, 1.0399999618530273, …{"long_factor": [1.0199999809265137, 1.059999942779541, 1.4899998903274536, 1…
+
\ No newline at end of file diff --git a/shrink/Phi-3.5-mini-instruct-mic.html b/shrink/Phi-3.5-mini-instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..097a62a59c1293d59b9008a2e4351a1bb461971d --- /dev/null +++ b/shrink/Phi-3.5-mini-instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Phi-3.5-mini-instruct-mic@0c7964e6c77b965e4cccc04ccb4f4d4a20a9ff81 ← microsoft/Phi-3.5-mini-instruct@2fe192450127e6a83f7441aef6e3ca586c338b77 · Phi3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original3.8Bparameters
Fixture4.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers3.6B94.8%82.2K2.0%
lm_head98.5M2.6%2.1M49.0%
model.embed_tokens98.5M2.6%2.1M49.0%
model.norm3.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typelongropelongrope✓ kept
modelmodel_typephi3phi3✓ kept
modelvocab_size3206432064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Phi3 omitted).

ClassOriginalFixture
Linear1299
RMSNorm655
Dropout644
Attention322
DecoderLayer322
MLP322
SiLUActivation322
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

6 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size307264
intermediate_size8192128
num_attention_heads324
num_hidden_layers322
num_key_value_heads324
rope_parameters{"long_factor": [1.0800000429153442, 1.1100000143051147, 1.1399999856948853, …{"long_factor": [1.0800000429153442, 1.6200000047683716, 7.700000286102295, 3…
+
\ No newline at end of file diff --git a/shrink/Phi-4-multimodal-instruct-mic.html b/shrink/Phi-4-multimodal-instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a797629e9b7e17d67e6bff65cd85c596301b627e --- /dev/null +++ b/shrink/Phi-4-multimodal-instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Phi-4-multimodal-instruct-mic@721c204bb9a6c7113710f11eb53f6798c3b87039 ← microsoft/Phi-4-multimodal-instruct@b5b5a5f60533515297d0e14ece86ed80d4b13b19 · Phi4MultimodalForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original4.7Bparameters
Fixture16.6Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

model.embed_tokens_extend.image_embed.img_processor.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
VisionEncoderLayer272✓ kept

model.embed_tokens_extend.audio_embed.encoder.encoders

Original · 24
Fixture · 2
KindOriginalFixture
AudioConformerEncoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers3.2B67.9%74.0K0.4%
model.embed_tokens614.6M13.0%12.8M77.3%
model.embed_tokens_extend.audio_embed.encoder.encoders428.6M9.0%671.2K4.1%
model.embed_tokens_extend.image_embed.img_processor.encoder.layers411.5M8.7%66.9K0.4%
model.embed_tokens_extend67.9M1.4%3.0M17.8%
model.norm3.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (24 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typelongropelongrope✓ kept
modelmodel_typephi4_multimodalphi4_multimodal✓ kept
modelvocab_size200064200064✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept
vision_configmodel_typephi4_multimodal_visionphi4_multimodal_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size448448✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
audio_configmodel_typephi4_multimodal_audiophi4_multimodal_audio✓ kept

Module classes

Instances of each class in the built model (prefix Phi4Multimodal omitted).

ClassOriginalFixture
Linear49246
LayerNorm17616
Dropout13913
Conv1d968
SiLU968
RMSNorm655
AudioMLP484
Attention322
DecoderLayer322
MLP322
SiLUActivation322
GELUTanh283
VisionMLP283
VisionAttention272
VisionEncoderLayer272
AudioAttention242
AudioConformerEncoderLayer242
AudioConvModule242
AudioDepthWiseSeparableConv1d242
AudioGluPointWiseConv242
Conv2d66
Embedding33
ModuleList33
AvgPool2d11
MultiheadAttention11
NonDynamicallyQuantizableLinear11
AudioEmbedding11
AudioMeanVarianceNormLayer11
AudioModel11
AudioNemoConvSubsampling11
AudioRelativeAttentionBias11
FeatureEmbedding11
ForCausalLM11
ImageEmbedding11
Model11
RotaryEmbedding11
VisionEmbeddings11
VisionEncoder11
VisionModel11
VisionMultiheadAttentionPoolingHead11
ReLU11
Sequential11

Config changes

15 fields changed, 78 unchanged.

FieldOriginalFixture
audio_config.chunk_size-18
audio_config.hidden_size102464
audio_config.intermediate_size1536128
audio_config.num_attention_heads164
audio_config.num_blocks242
hidden_size307264
intermediate_size8192128
num_attention_heads244
num_hidden_layers322
num_key_value_heads82
rope_parameters{"long_factor": [1, 1.118320672, 1.250641126, 1.398617824, 1.564103225, 1.749…{"long_factor": [1, 2.446418898, 5.984965424, 14.64173252, 32.1, 32.71], "ori…
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
+
\ No newline at end of file diff --git a/shrink/Qwen1.5-MoE-A2.7B-mic.html b/shrink/Qwen1.5-MoE-A2.7B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..feed41be511ef8ba6219f9d10e3106efbec6abad --- /dev/null +++ b/shrink/Qwen1.5-MoE-A2.7B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen1.5-MoE-A2.7B-mic@2fd4813071f2c23b77666d8c796ff80235d42b55 ← Qwen/Qwen1.5-MoE-A2.7B@1a758c50ecb6350748b9ce0a99d2352fd9fc11c9 · Qwen2MoeForCausalLM · random weights

+
Original14.3Bparameters
Fixture19.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers13.7B95.7%132.4K0.7%
model.embed_tokens311.2M2.2%9.7M49.7%
lm_head311.2M2.2%9.7M49.7%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-4 of 60 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen2_moeqwen2_moe✓ kept
modelvocab_size151936151936✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2Moe omitted).

ClassOriginalFixture
Linear19317
RMSNorm495
SiLUActivation484
Attention242
DecoderLayer242
Experts242
MLP242
SparseMoeBlock242
TopKRouter242
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

10 fields changed, 30 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size5632128
layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
moe_intermediate_size140832
num_attention_heads164
num_experts604
num_experts_per_tok42
num_hidden_layers242
num_key_value_heads164
shared_expert_intermediate_size5632128
+
\ No newline at end of file diff --git a/shrink/Qwen2-VL-2B-Instruct-mic.html b/shrink/Qwen2-VL-2B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..690097fa88e9a6eb7c992fb9033f92ff306a77a6 --- /dev/null +++ b/shrink/Qwen2-VL-2B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen2-VL-2B-Instruct-mic@743a11f21777bbaacd3519d20014517268130159 ← Qwen/Qwen2-VL-2B-Instruct@895c3a49bc3fa70a340399125c650a463535e71c · Qwen2VLForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original2.2Bparameters
Fixture10.1Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 32
Fixture · 2
KindOriginalFixture
VisionBlock322✓ kept

model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
DecoderLayer282✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers1.3B59.3%74.2K0.7%
model.visual.blocks629.7M28.5%100.0K1.0%
model.language_model233.4M10.6%9.7M96.7%
model.visual35.6M1.6%157.6K1.6%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen2_vlqwen2_vl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (12 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2_vl_textqwen2_vl_text✓ kept
text_configvocab_size151936151936✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen2_vl_visionqwen2_vl_vision✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configpatch_size1414✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2VL omitted).

ClassOriginalFixture
Linear32725
LayerNorm655
RMSNorm575
QuickGELUActivation322
VisionBlock322
VisionAttention322
VisionMlp322
Qwen2MLP282
Attention282
DecoderLayer282
SiLUActivation282
ModuleList22
Conv3d11
Embedding11
GELU11
PatchEmbed11
PatchMerger11
ForConditionalGeneration11
Model11
RotaryEmbedding11
TextModel11
VisionRotaryEmbedding11
Qwen2VisionTransformerPretrainedModel11
Sequential11

Config changes

10 fields changed, 57 unchanged.

FieldOriginalFixture
text_config.hidden_size153664
text_config.intermediate_size8960128
text_config.layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads124
text_config.num_hidden_layers282
text_config.rope_parameters{"type": "mrope", "mrope_section": [16, 24, 24], "rope_theta": 1000000.0, "ro…{"mrope_section": [2, 3, 3], "rope_theta": 1000000.0, "rope_type": "default",…
vision_config.depth322
vision_config.embed_dim128064
vision_config.hidden_size153664
vision_config.num_heads164
+
\ No newline at end of file diff --git a/shrink/Qwen3-0.6B-mic.html b/shrink/Qwen3-0.6B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c922ea44176f803a343dac6d8f0cbf105377c3c6 --- /dev/null +++ b/shrink/Qwen3-0.6B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3-0.6B-mic@f3c69d34835d4cf1d9aba9a08cd6af8282aae6a7 ← Qwen/Qwen3-0.6B@c1899de289a04d12100db370d81485cdf75e47ca · Qwen3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original596.0Mparameters
Fixture9.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 28
Fixture · 2
KindOriginalFixture
DecoderLayer282✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers440.5M73.9%74.0K0.8%
model.embed_tokens155.6M26.1%9.7M99.2%
model.norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen3qwen3✓ kept
modelvocab_size151936151936✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings4096040960✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3 omitted).

ClassOriginalFixture
Linear19715
RMSNorm1139
Attention282
DecoderLayer282
MLP282
SiLUActivation282
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

7 fields changed, 25 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size102464
intermediate_size3072128
layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
num_attention_heads164
num_hidden_layers282
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/Qwen3-30B-A3B-mic.html b/shrink/Qwen3-30B-A3B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..aa65446848e3a1bac86aa50a17ac13094f70a271 --- /dev/null +++ b/shrink/Qwen3-30B-A3B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3-30B-A3B-mic@02a209fca46248ff0b3da72e3b190428138b2449 ← Qwen/Qwen3-30B-A3B@ad44e777bcd18fa416d9da3bd8f70d33ebb85d39 · Qwen3MoeForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original30.5Bparameters
Fixture19.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 48
Fixture · 2
KindOriginalFixture
DecoderLayer482✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers29.9B98.0%74.6K0.4%
model.embed_tokens311.2M1.0%9.7M49.8%
lm_head311.2M1.0%9.7M49.8%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-8 of 128 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen3_moeqwen3_moe✓ kept
modelvocab_size151936151936✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings4096040960✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3Moe omitted).

ClassOriginalFixture
Linear1939
RMSNorm1939
Attention482
DecoderLayer482
Experts482
SparseMoeBlock482
TopKRouter482
SiLUActivation482
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

9 fields changed, 30 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size204864
intermediate_size6144128
moe_intermediate_size76832
num_attention_heads324
num_experts_per_tok82
num_hidden_layers482
num_key_value_heads42
num_local_experts1284
+
\ No newline at end of file diff --git a/shrink/Qwen3-ASR-0.6B-hf-mic.html b/shrink/Qwen3-ASR-0.6B-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c86e23146a081607cbf2341597151941b7d23610 --- /dev/null +++ b/shrink/Qwen3-ASR-0.6B-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3-ASR-0.6B-hf-mic@6b969c14b8cf776fa7152fa143a3c0dcc6a30b40 ← Qwen/Qwen3-ASR-0.6B-hf@7f1569a48a89f3e3f4dc3a5c9d28bddd903bc76c · Qwen3ASRForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original782.4Mparameters
Fixture14.5Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.layers

Original · 18
Fixture · 2
KindOriginalFixture
AudioEncoderLayer182✓ kept

model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
Qwen3DecoderLayer282✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers440.5M56.3%74.0K0.5%
model.audio_tower.layers173.6M22.2%66.9K0.5%
model.language_model155.6M19.9%9.7M67.0%
model.audio_tower11.0M1.4%4.6M32.0%
model.multi_modal_projector1.7M0.2%8.3K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen3_asrqwen3_asr✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
audio_configmodel_typeqwen3_asr_encoderqwen3_asr_encoder✓ kept
audio_configmax_position_embeddings1313✓ kept
audio_confignum_mel_bins128128✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3qwen3✓ kept
text_configvocab_size151936151936✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings6553665536✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3ASR omitted).

ClassOriginalFixture
Linear30830
Qwen3RMSNorm1139
LayerNorm375
Qwen3Attention282
Qwen3DecoderLayer282
Qwen3MLP282
SiLUActivation282
GELUActivation193
AudioAttention182
AudioEncoderLayer182
Conv2d33
ModuleList22
Embedding11
Encoder11
ForConditionalGeneration11
Model11
MultiModalProjector11
Qwen3Model11
Qwen3RotaryEmbedding11
SinusoidsPositionEmbedding11

Config changes

13 fields changed, 62 unchanged.

FieldOriginalFixture
audio_config.d_model89664
audio_config.encoder_attention_heads144
audio_config.encoder_ffn_dim3584128
audio_config.encoder_layers182
audio_config.num_key_value_heads144
audio_config.output_dim102464
text_config.head_dim12816
text_config.hidden_size102464
text_config.intermediate_size3072128
text_config.layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers282
text_config.num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/Qwen3-Next-80B-A3B-Instruct-mic.html b/shrink/Qwen3-Next-80B-A3B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9f73633c9e94019abd58e630c7b78afe76724c2c --- /dev/null +++ b/shrink/Qwen3-Next-80B-A3B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3-Next-80B-A3B-Instruct-mic@69466af2a651a5263712f1430d3baf98b0e16463 ← Qwen/Qwen3-Next-80B-A3B-Instruct@9c7f2fbe84465e40164a94cc16cd30b6999b0cc7 · Qwen3NextForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original79.7Bparameters
Fixture20.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 48
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, GatedDeltaNet …361✓ kept
is_causal=True, Attention121✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers79.1B99.2%1.2M5.8%
lm_head311.2M0.4%9.7M47.1%
model.embed_tokens311.2M0.4%9.7M47.1%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-10 of 512 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen3_nextqwen3_next✓ kept
modelvocab_size151936151936✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3Next omitted).

ClassOriginalFixture
Linear34916
RMSNorm1217
SiLUActivation964
DecoderLayer482
Experts482
MLP482
SparseMoeBlock482
TopKRouter482
Conv1d361
GatedDeltaNet361
RMSNormGated361
Attention121
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

10 fields changed, 34 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size204864
intermediate_size5120128
layer_types48 entries: 36× linear_attention, 12× full_attention["linear_attention", "full_attention"]
moe_intermediate_size51232
num_attention_heads164
num_experts5124
num_experts_per_tok102
num_hidden_layers482
shared_expert_intermediate_size512128
+
\ No newline at end of file diff --git a/shrink/Qwen3-VL-2B-Instruct-mic.html b/shrink/Qwen3-VL-2B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6b8c942f827dc941454bc337b615089f30c05ea0 --- /dev/null +++ b/shrink/Qwen3-VL-2B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3-VL-2B-Instruct-mic@7e045dfc87cda2240c98f5ae78e8bb377a08dc38 ← Qwen/Qwen3-VL-2B-Instruct@89644892e4d85e24eaac8bacfd4f463576704203 · Qwen3VLForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original2.1Bparameters
Fixture11.2Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 24
Fixture · 24
KindOriginalFixture
VisionBlock2424✓ kept

model.visual.deepstack_merger_list

Original · 3
Fixture · 3
KindOriginalFixture
GELU33✓ kept

model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
TextDecoderLayer282✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers1.4B66.2%74.0K0.7%
model.language_model311.2M14.6%9.7M87.0%
model.visual.blocks302.3M14.2%803.3K7.2%
model.visual.deepstack_merger_list75.5M3.6%248.3K2.2%
model.visual29.1M1.4%328.2K2.9%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen3_vlqwen3_vl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3_vl_textqwen3_vl_text✓ kept
text_configvocab_size151936151936✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen3_vl_visionqwen3_vl_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configpatch_size1616✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3VL omitted).

ClassOriginalFixture
Linear301119
TextRMSNorm1139
LayerNorm5252
TextAttention282
TextDecoderLayer282
TextMLP282
SiLUActivation282
GELUTanh2424
VisionAttention2424
VisionBlock2424
VisionMLP2424
GELU44
VisionPatchMerger44
ModuleList33
Embedding22
Conv3d11
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
VisionModel11
VisionPatchEmbed11
VisionRotaryEmbedding11

Config changes

11 fields changed, 54 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size204864
text_config.intermediate_size6144128
text_config.num_attention_heads164
text_config.num_hidden_layers282
text_config.num_key_value_heads82
text_config.rope_parameters{"mrope_interleaved": true, "mrope_section": [24, 20, 20], "rope_type": "defa…{"mrope_interleaved": true, "mrope_section": [3, 3, 2], "rope_theta": 5000000…
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_heads164
vision_config.out_hidden_size204864
+
\ No newline at end of file diff --git a/shrink/Qwen3-VL-30B-A3B-Instruct-mic.html b/shrink/Qwen3-VL-30B-A3B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..eac4522f115731506fdb57e3bd45f21423c4665b --- /dev/null +++ b/shrink/Qwen3-VL-30B-A3B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3-VL-30B-A3B-Instruct-mic@fce9290a8553fe0d943eb0e9c8e577bc5e7e3631 ← Qwen/Qwen3-VL-30B-A3B-Instruct@9c4b90e1e4ba969fd3b5378b57d966d725f1b86c · Qwen3VLMoeForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original31.1Bparameters
Fixture21.0Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 27
Fixture · 27
KindOriginalFixture
VisionBlock2727✓ kept

model.visual.deepstack_merger_list

Original · 3
Fixture · 3
KindOriginalFixture
GELU33✓ kept

model.language_model.layers

Original · 48
Fixture · 2
KindOriginalFixture
TextDecoderLayer482✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers29.9B96.3%74.6K0.4%
model.visual.blocks411.5M1.3%903.7K4.3%
model.language_model311.2M1.0%9.7M46.3%
lm_head311.2M1.0%9.7M46.3%
model.visual.deepstack_merger_list92.1M0.3%248.3K1.2%
model.visual35.1M0.1%328.2K1.6%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen3_vl_moeqwen3_vl_moe✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleGQA (32 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
text_configMoE routingtop-8 of 128 expertstop-2 of 4 experts✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3_vl_moe_textqwen3_vl_moe_text✓ kept
text_configvocab_size151936151936✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen3_vl_moe_visionqwen3_vl_moe_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configpatch_size1616✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3VLMoe omitted).

ClassOriginalFixture
Linear309125
TextRMSNorm1939
LayerNorm5858
TextAttention482
TextDecoderLayer482
TextExperts482
TextSparseMoeBlock482
TextTopKRouter482
SiLUActivation482
GELUTanh2727
VisionAttention2727
VisionBlock2727
VisionMLP2727
GELU44
VisionPatchMerger44
ModuleList33
Embedding22
Conv3d11
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
VisionModel11
VisionPatchEmbed11
VisionRotaryEmbedding11

Config changes

14 fields changed, 60 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size204864
text_config.intermediate_size6144128
text_config.moe_intermediate_size76832
text_config.num_attention_heads324
text_config.num_experts_per_tok82
text_config.num_hidden_layers482
text_config.num_key_value_heads42
text_config.num_local_experts1284
text_config.rope_parameters{"mrope_interleaved": true, "mrope_section": [24, 20, 20], "rope_type": "defa…{"mrope_interleaved": true, "mrope_section": [3, 3, 2], "rope_theta": 5000000…
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_heads164
vision_config.out_hidden_size204864
+
\ No newline at end of file diff --git a/shrink/Qwen3.5-0.8B-text-only-mic.html b/shrink/Qwen3.5-0.8B-text-only-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..eab5fc6ce005615e3c5af4448ef06b58efa64036 --- /dev/null +++ b/shrink/Qwen3.5-0.8B-text-only-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3.5-0.8B-text-only-mic@6fbae6fc1ebdd102c3eb6a308aa9c8e9a73ac9e5 ← principled-intelligence/Qwen3.5-0.8B-text-only@d692a5787e0534f0fd3484d7a516bd3c2d23dbed · Qwen3_5ForCausalLM · random weights

+
Original752.4Mparameters
Fixture16.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, GatedDeltaNet …181✓ kept
is_causal=True, Attention61✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers498.1M66.2%748.0K4.5%
model.embed_tokens254.3M33.8%15.9M95.5%
model.norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen3_5_textqwen3_5_text✓ kept
modelvocab_size248320248320✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3_5 omitted).

ClassOriginalFixture
Linear18716
RMSNorm617
DecoderLayer242
MLP242
SiLUActivation242
Conv1d181
GatedDeltaNet181
RMSNormGated181
Attention61
Embedding11
ModuleList11
ForCausalLM11
TextModel11
TextRotaryEmbedding11

Config changes

7 fields changed, 33 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size102464
intermediate_size3584128
layer_types24 entries: 18× linear_attention, 6× full_attention["linear_attention", "full_attention"]
num_attention_heads84
num_hidden_layers242
rope_parameters{"mrope_interleaved": true, "mrope_section": [11, 11, 10], "partial_rotary_fa…{"mrope_interleaved": true, "mrope_section": [3, 3, 2], "partial_rotary_facto…
+
\ No newline at end of file diff --git a/shrink/Qwen3.5-35B-A3B-mic.html b/shrink/Qwen3.5-35B-A3B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a8cc190e6437096bce5ba05f628a0120c12ec6a3 --- /dev/null +++ b/shrink/Qwen3.5-35B-A3B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3.5-35B-A3B-mic@8197a27e48d360625a51c9ddf03148b0e186f558 ← Qwen/Qwen3.5-35B-A3B@59d61f3ce65a6d9863b86d2e96597125219dc754 · Qwen3_5MoeForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original35.1Bparameters
Fixture34.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 27
Fixture · 27
KindOriginalFixture
VisionBlock2727✓ kept

model.language_model.layers

Original · 40
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, GatedDeltaNet …301✓ kept
is_causal=True, Attention101✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers33.6B95.8%1.2M3.5%
model.language_model508.6M1.4%15.9M46.4%
lm_head508.6M1.4%15.9M46.4%
model.visual.blocks411.5M1.2%903.7K2.6%
model.visual35.1M0.1%328.2K1.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen3_5_moeqwen3_5_moe✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleGQA (16 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configMoE routingtop-8 of 256 expertstop-2 of 4 experts✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen3_5_moe_textqwen3_5_moe_text✓ kept
text_configvocab_size248320248320✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen3_5_moe_visionqwen3_5_moe_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configpatch_size1616✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3_5Moe omitted).

ClassOriginalFixture
Linear461128
RMSNorm1017
SiLUActivation804
LayerNorm5555
DecoderLayer402
Experts402
MLP402
SparseMoeBlock402
TopKRouter402
Conv1d301
GatedDeltaNet301
RMSNormGated301
GELUTanh2727
VisionAttention2727
VisionBlock2727
VisionMLP2727
Attention101
Embedding22
ModuleList22
Conv3d11
GELU11
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
VisionModel11
VisionPatchEmbed11
VisionPatchMerger11
VisionRotaryEmbedding11

Config changes

14 fields changed, 68 unchanged.

FieldOriginalFixture
text_config.head_dim25616
text_config.hidden_size204864
text_config.layer_types40 entries: 30× linear_attention, 10× full_attention["linear_attention", "full_attention"]
text_config.moe_intermediate_size51232
text_config.num_attention_heads164
text_config.num_experts2564
text_config.num_experts_per_tok82
text_config.num_hidden_layers402
text_config.rope_parameters{"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "defa…{"mrope_interleaved": true, "mrope_section": [3, 3, 2], "partial_rotary_facto…
text_config.shared_expert_intermediate_size512128
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_heads164
vision_config.out_hidden_size204864
+
\ No newline at end of file diff --git a/shrink/Qwen3.8-1.0B-A0.6B-mic.html b/shrink/Qwen3.8-1.0B-A0.6B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..7072956badebe32c77bcd8112678eab91e9a0207 --- /dev/null +++ b/shrink/Qwen3.8-1.0B-A0.6B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3.8-1.0B-A0.6B-mic@9633d99d303ac2051fd49702bc4781e0f930cfcc ← inference-optimization/Qwen3.8-1.0B-A0.6B@36531b2b4eab12e9cf7b7b9cbfce0f0a0bb8b719 · Qwen3_5MoeForCausalLM · random weights

+
Original966.1Mparameters
Fixture32.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 8
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, GatedDeltaNet …61✓ kept
is_causal=True, Attention21✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers457.6M47.4%353.3K1.1%
model.embed_tokens254.3M26.3%15.9M49.5%
lm_head254.3M26.3%15.9M49.5%
model.norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-2 of 16 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen3_5_moe_textqwen3_5_moe_text✓ kept
modelvocab_size248320248320✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings262144262144✓ kept

Module classes

Instances of each class in the built model (prefix Qwen3_5Moe omitted).

ClassOriginalFixture
Linear7118
RMSNorm217
SiLUActivation164
DecoderLayer82
Experts82
MLP82
SparseMoeBlock82
TopKRouter82
Conv1d61
GatedDeltaNet61
RMSNormGated61
Attention21
Embedding11
ModuleList11
ForCausalLM11
TextModel11
TextRotaryEmbedding11

Config changes

8 fields changed, 37 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size102464
layer_types8 entries: 6× linear_attention, 2× full_attention["linear_attention", "full_attention"]
moe_intermediate_size102432
num_attention_heads84
num_experts164
num_hidden_layers82
shared_expert_intermediate_size1024128
+
\ No newline at end of file diff --git a/shrink/Qwen3.8-Flash-Next-mic.html b/shrink/Qwen3.8-Flash-Next-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b87488c936c4a924eb552c2ba6eb5a272f35613c --- /dev/null +++ b/shrink/Qwen3.8-Flash-Next-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Qwen3.8-Flash-Next-mic@9b40023b0010df89774011881d27eb6165fd2ca9 ← Qwen/Qwen3.8-Flash-Next@de4b8e4d43b917e7706784d8bb445c9af86a3540 · Qwen4ExpForConditionalGeneration · random weights

+
Original177.4Bparameters
Fixture359.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 27
Fixture · 27
KindOriginalFixture
VisionBlock2727✓ kept

model.language_model.layers

Original · 48
Fixture · 4
KindOriginalFixture
linear_attention, Conv1d, TextGatedDeltaNet …352✓ kept
linear_attention, Conv1d, Embedding …11✓ kept
indexed_attention, TextAttention, TextQSAIndexer121✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers175.7B99.0%326.1M90.8%
model.language_model642.3M0.4%16.1M4.5%
lm_head635.7M0.4%15.9M4.4%
model.visual.blocks411.5M0.2%903.7K0.3%
model.visual37.5M0.0%328.2K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen4_expqwen4_exp✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleGQA (24 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configMoE routingtop-10 of 512 expertstop-2 of 4 experts✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen4_exp_textqwen4_exp_text✓ kept
text_configvocab_size248320248320✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen4_exp_visionqwen4_exp_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configpatch_size1616✓ kept

Module classes

Instances of each class in the built model (prefix Qwen4Exp omitted).

ClassOriginalFixture
Linear835175
TextRMSNorm14816
TextGatedResidual979
SiLUActivation968
LayerNorm5555
TextDecoderLayer484
TextExperts484
TextMLP484
TextSparseMoeBlock484
TextTopKRouter484
Conv1d374
TextGatedDeltaNet363
TextRMSNormGated363
GELUTanh2727
VisionAttention2727
VisionBlock2727
VisionMLP2727
TextAttention121
TextQSAIndexer121
Embedding33
ModuleList22
Conv3d11
GELU11
ForConditionalGeneration11
Model11
TextModel11
TextNGramEmbedding11
TextPLELayer11
TextRotaryEmbedding11
VisionModel11
VisionPatchEmbed11
VisionPatchMerger11
VisionRotaryEmbedding11

Config changes

15 fields changed, 86 unchanged.

FieldOriginalFixture
text_config.head_dim25616
text_config.hidden_size256064
text_config.layer_types48 entries: 36× linear_attention, 12× indexed_attention["linear_attention", "linear_attention", "linear_attention", "indexed_attenti…
text_config.moe_intermediate_size64032
text_config.num_attention_heads244
text_config.num_experts5124
text_config.num_experts_per_tok102
text_config.num_hidden_layers484
text_config.ple_embed_dim256016
text_config.rope_parameters{"mrope_interleaved": true, "mrope_section": [11, 11, 10], "partial_rotary_fa…{"mrope_interleaved": true, "mrope_section": [3, 3, 2], "partial_rotary_facto…
text_config.shared_expert_intermediate_size640128
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_heads164
vision_config.out_hidden_size256064
+
\ No newline at end of file diff --git a/shrink/Seed-OSS-36B-Instruct-mic.html b/shrink/Seed-OSS-36B-Instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..91deea27e15834e150d01acba6953c054c6c2b6e --- /dev/null +++ b/shrink/Seed-OSS-36B-Instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Seed-OSS-36B-Instruct-mic@5a7c613134e50c88bce20805ea4b02458007b844 ← ByteDance-Seed/Seed-OSS-36B-Instruct@497f1dca95ebdec98e41d517b9f060ee753c902f · SeedOssForCausalLM · random weights

+
Original36.2Bparameters
Fixture19.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 64
Fixture · 2
KindOriginalFixture
DecoderLayer642✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers34.6B95.6%74.2K0.4%
lm_head794.3M2.2%9.9M49.8%
model.embed_tokens794.3M2.2%9.9M49.8%
model.norm5.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (80 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeseed_ossseed_oss✓ kept
modelvocab_size155136155136✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings524288524288✓ kept

Module classes

Instances of each class in the built model (prefix SeedOss omitted).

ClassOriginalFixture
Linear44915
RMSNorm1295
Attention642
DecoderLayer642
MLP642
SiLUActivation642
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

6 fields changed, 26 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size512064
intermediate_size27648128
num_attention_heads804
num_hidden_layers642
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/SmolLM3-3B-mic.html b/shrink/SmolLM3-3B-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c63f06f8f36abb976c3cef22ba5239aea3c44edf --- /dev/null +++ b/shrink/SmolLM3-3B-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/SmolLM3-3B-mic@717fbb55a2a1e454d1de0cd85e1c944183b0cbd7 ← HuggingFaceTB/SmolLM3-3B@a07cc9a04f16550a088caea529712d1d335b0ac1 · SmolLM3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original3.1Bparameters
Fixture35.2Mparameters
Layer stacks1compared
Findings1to review

⚠ To review

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 36
Fixture · 4
KindOriginalFixture
DecoderLayer364✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.8B91.5%2.4M6.7%
model.embed_tokens262.7M8.5%32.8M93.3%
model.norm2.0K0.0%2560.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typesmollm3smollm3✓ kept
modelvocab_size128256128256✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings65536512⚠ changed

Module classes

Instances of each class in the built model (prefix SmolLM3 omitted).

ClassOriginalFixture
Linear25329
RMSNorm739
SiLUActivation364
Attention364
DecoderLayer364
MLP364
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

9 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size2048256
intermediate_size11008512
layer_types36 entries: 36× full_attention["full_attention", "full_attention", "full_attention", "full_attention"]
max_position_embeddings65536512
max_window_layers283
no_rope_layers36 entries: 27× 1, 9× 0[1, 1, 1, 0]
num_attention_heads164
num_hidden_layers364
num_key_value_heads42
+
\ No newline at end of file diff --git a/shrink/Unlimited-OCR-mic.html b/shrink/Unlimited-OCR-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..e6ac2290e86344ae880f772365a6e98c7d2c9d35 --- /dev/null +++ b/shrink/Unlimited-OCR-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Unlimited-OCR-mic@7b86520360914f84047e85b7d0b11109baf6d934 ← baidu/Unlimited-OCR@8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3 · UnlimitedOcrForConditionalGeneration · random weights

+
Original3.3Bparameters
Fixture18.6Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.sam_encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
SamMLPBlock122✓ kept

model.vision_tower.vision_encoder.encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
EncoderLayer242✓ kept

model.language_model.layers

Original · 12
Fixture · 2
KindOriginalFixture
no TextExperts11✓ kept
TextExperts, TextMoe, TextTopkRouter111✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers2.6B78.1%94.7K0.5%
model.vision_tower.vision_encoder.encoder.layers302.3M9.1%66.9K0.4%
model.language_model165.5M5.0%8.3M44.5%
lm_head165.5M5.0%8.3M44.5%
model.vision_tower.sam_encoder.layers85.1M2.6%828.2K4.5%
model.vision_tower10.7M0.3%1.0M5.5%
model.multi_modal_projector2.6M0.1%8.3K0.0%
1 others2.6K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (10 heads, 10 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-6 of 64 expertstop-2 of 4 experts✓ kept
modelmodel_typeunlimited_ocrunlimited_ocr✓ kept
modelvocab_size129280129280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelmax_position_embeddings3276832768✓ kept
vision_configmodel_typeunlimited_ocr_visionunlimited_ocr_vision✓ kept
vision_configimage_size10241024✓ kept
vision_config.sam_configmodel_typeunlimited_ocr_sam_vision_modelunlimited_ocr_sam_vision_model✓ kept
vision_config.sam_confighidden_actgelugelu✓ kept
vision_config.sam_configimage_size10241024✓ kept
vision_config.sam_configpatch_size1616✓ kept
vision_config.sam_confignum_channels33✓ kept
vision_config.encoder_configmodel_typeunlimited_ocr_vision_encoderunlimited_ocr_vision_encoder✓ kept
vision_config.encoder_confighidden_actquick_geluquick_gelu✓ kept
vision_config.encoder_configimage_size224224✓ kept
vision_config.encoder_configpatch_size1414✓ kept
vision_config.encoder_confignum_channels33✓ kept
text_configattention styleMHA (10 heads, 10 KV)MHA (4 heads, 4 KV)✓ kept
text_configMoE routingtop-6 of 64 expertstop-2 of 4 experts✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeunlimited_ocr_textunlimited_ocr_text✓ kept
text_configvocab_size129280129280✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept
projector_configmodel_typemlp_projectormlp_projector✓ kept

Module classes

Instances of each class in the built model (prefix UnlimitedOcr omitted).

ClassOriginalFixture
Linear27836
LayerNorm739
TextRMSNorm255
QuickGELUActivation242
Attention242
EncoderLayer242
MLP242
SiLUActivation233
GELUActivation122
SamMLPBlock122
SamVisionLayer122
SamVisionSdpaAttention122
TextAttention122
TextDecoderLayer122
TextMLP122
TextExperts111
TextMoe111
TextTopkRouter111
Conv2d55
ModuleList33
Embedding22
SamLayerNorm22
Encoder11
ForConditionalGeneration11
Model11
SamPatchEmbeddings11
SamVisionEncoder11
SamVisionNeck11
SamVisionProj11
TextModel11
TextRotaryEmbedding11
VisionEmbeddings11
VisionEncoder11
VisionModel11

Config changes

30 fields changed, 128 unchanged.

FieldOriginalFixture
hidden_size128064
intermediate_size6848128
moe_intermediate_size89632
n_routed_experts644
num_attention_heads104
num_experts_per_tok62
num_hidden_layers122
num_key_value_heads104
text_config.head_dim12816
text_config.hidden_size128064
text_config.intermediate_size6848128
text_config.layer_types12 entries: 12× reference_sliding_attention["reference_sliding_attention", "reference_sliding_attention"]
text_config.mlp_layer_types12 entries: 11× sparse, 1× dense["dense", "sparse"]
text_config.moe_intermediate_size89632
text_config.n_routed_experts644
text_config.num_attention_heads104
text_config.num_experts_per_tok62
text_config.num_hidden_layers122
text_config.num_key_value_heads104
text_config.v_head_dim12816
v_head_dim12816
vision_config.encoder_config.hidden_size102464
vision_config.encoder_config.intermediate_size4096128
vision_config.encoder_config.num_attention_heads164
vision_config.encoder_config.num_hidden_layers242
vision_config.sam_config.downsample_channels[512, 1024][32, 64]
vision_config.sam_config.hidden_size76864
vision_config.sam_config.initializer_range1e-100.02
vision_config.sam_config.num_attention_heads124
vision_config.sam_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/VibeVoice-1.5B-hf-mic.html b/shrink/VibeVoice-1.5B-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..fdf306855c6ed028a3044a9c867c32380a089a2d --- /dev/null +++ b/shrink/VibeVoice-1.5B-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/VibeVoice-1.5B-hf-mic@a651225b62eeb6b3aa47c4f0600111b0055ab257 ← vibevoice/VibeVoice-1.5B-hf@d4cd82eb4371bf3e3d088e1ea7fa4eefb60449bf · VibeVoiceForConditionalGeneration · random weights

+
Original2.7Bparameters
Fixture268.3Mparameters
Layer stacks8compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.encoder.stem.stage

Original · 3
Fixture · 1
KindOriginalFixture
AcousticTokenizerConvNext1dLayer31✓ kept

model.audio_tower.encoder.conv_layers

Original · 6
Fixture · 6
KindOriginalFixture
AcousticTokenizerEncoderLayer66✓ kept

model.audio_tower.decoder.stem.stage

Original · 8
Fixture · 1
KindOriginalFixture
AcousticTokenizerConvNext1dLayer81✓ kept

model.audio_tower.decoder.conv_layers

Original · 6
Fixture · 6
KindOriginalFixture
AcousticTokenizerDecoderLayer66✓ kept

model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer282✓ kept

model.semantic_tokenizer_encoder.stem.stage

Original · 3
Fixture · 1
KindOriginalFixture
AcousticTokenizerConvNext1dLayer31✓ kept

model.semantic_tokenizer_encoder.conv_layers

Original · 6
Fixture · 6
KindOriginalFixture
AcousticTokenizerEncoderLayer66✓ kept

model.diffusion_head.layers

Original · 4
Fixture · 2
KindOriginalFixture
Linear42✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers1.3B48.5%74.2K0.0%
model.audio_tower.encoder.conv_layers342.8M12.7%85.2M31.8%
model.semantic_tokenizer_encoder.conv_layers342.8M12.7%85.2M31.8%
model.audio_tower.decoder.stem.stage268.7M9.9%33.6M12.5%
model.language_model233.4M8.6%9.7M3.6%
model.diffusion_head.layers113.3M4.2%73.9K0.0%
model.audio_tower.decoder.conv_layers74.1M2.7%51.6M19.2%
8 others18.8M0.7%2.8M1.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevibevoicevibevoice✓ kept
modelvocab_size151936151936✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
audio_configmodel_typevibevoice_acoustic_tokenizervibevoice_acoustic_tokenizer✓ kept
audio_confighidden_actgelugelu✓ kept
semantic_model_configmodel_typevibevoice_acoustic_tokenizer_encodervibevoice_acoustic_tokenizer_encoder✓ kept
semantic_model_confighidden_actgelugelu✓ kept
text_configattention styleGQA (12 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size151936151936✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings6553665536✓ kept
diffusion_head_configmodel_typevibevoice_diffusionvibevoice_diffusion✓ kept
diffusion_head_confighidden_actsilusilu✓ kept

Module classes

Instances of each class in the built model (prefix VibeVoice omitted).

ClassOriginalFixture
Linear37975
AcousticTokenizerRMSNorm15642
Conv1d9639
AcousticTokenizerCausalConv1d9639
GELUActivation7821
AcousticTokenizerConvNext1dLayer7821
AcousticTokenizerFeedForward7821
Qwen2RMSNorm575
SiLUActivation388
Qwen2Attention282
Qwen2DecoderLayer282
Qwen2MLP282
ModuleList2626
AcousticTokenizerEncoderLayer1212
ConvTranspose1d66
AcousticTokenizerCausalConvTranspose1d66
AcousticTokenizerDecoderLayer66
RMSNorm64
DiffusionHeadAdaLayerNorm42
MLP42
AcousticTokenizerEncoderModel22
AcousticTokenizerEncoderStem22
MultiModalProjector22
Embedding11
Qwen2Model11
Qwen2RotaryEmbedding11
AcousticTokenizerDecoderModel11
AcousticTokenizerDecoderStem11
AcousticTokenizerModel11
DiffusionHead11
DiffusionHeadFinalLayer11
DiffusionHeadMLP11
DiffusionHeadSinusoidalEmbedding11
ForConditionalGeneration11
Model11

Config changes

11 fields changed, 98 unchanged.

FieldOriginalFixture
audio_config.depths7 entries: 6× 3, 1× 87 entries: 7× 1
diffusion_head_config.hidden_size153664
diffusion_head_config.intermediate_size4608128
diffusion_head_config.num_hidden_layers42
semantic_model_config.depths7 entries: 6× 3, 1× 87 entries: 7× 1
semantic_model_config.hidden_size12864
text_config.hidden_size153664
text_config.intermediate_size8960128
text_config.layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads124
text_config.num_hidden_layers282
+
\ No newline at end of file diff --git a/shrink/Voxtral-Mini-3B-2507-mic.html b/shrink/Voxtral-Mini-3B-2507-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6bedf6367706cb32ddc4ac87c066572cfaf2c034 --- /dev/null +++ b/shrink/Voxtral-Mini-3B-2507-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/Voxtral-Mini-3B-2507-mic@88954b6754a54ae7b39c94a53b59d3d54313fae9 ← mistralai/Voxtral-Mini-3B-2507@3060fe34b35ba5d44202ce9ff3c097642914f8f3 · VoxtralForConditionalGeneration · random weights

+
Original4.7Bparameters
Fixture17.1Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.layers

Original · 32
Fixture · 2
KindOriginalFixture
EncoderLayer322✓ kept

model.language_model.layers

Original · 30
Fixture · 2
KindOriginalFixture
LlamaDecoderLayer302✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers3.2B68.6%74.0K0.4%
model.audio_tower.layers629.6M13.5%99.8K0.6%
model.language_model402.7M8.6%8.4M49.0%
lm_head402.7M8.6%8.4M49.0%
model.multi_modal_projector25.2M0.5%20.5K0.1%
model.audio_tower7.3M0.2%133.1K0.8%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevoxtralvoxtral✓ kept
modelvocab_size131072131072✓ kept
audio_configattention styleMHA (20 heads, 20 KV)MHA (4 heads, 4 KV)✓ kept
audio_configmodel_typevoxtral_encodervoxtral_encoder✓ kept
audio_configvocab_size5186651866✓ kept
audio_confignum_mel_bins128128✓ kept
text_configattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typellamallama✓ kept
text_configvocab_size131072131072✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Voxtral omitted).

ClassOriginalFixture
Linear40529
LayerNorm655
LlamaRMSNorm615
GELUActivation333
Attention322
EncoderLayer322
LlamaAttention302
LlamaDecoderLayer302
LlamaMLP302
SiLUActivation302
Conv1d22
Embedding22
ModuleList22
AvgPool1d11
LlamaModel11
LlamaRotaryEmbedding11
Encoder11
ForConditionalGeneration11
Model11
MultiModalProjector11

Config changes

13 fields changed, 56 unchanged.

FieldOriginalFixture
audio_config.head_dim6416
audio_config.hidden_size128064
audio_config.intermediate_size5120256
audio_config.num_attention_heads204
audio_config.num_hidden_layers322
audio_config.num_key_value_heads204
hidden_size307264
text_config.head_dim12816
text_config.hidden_size307264
text_config.intermediate_size8192128
text_config.num_attention_heads324
text_config.num_hidden_layers302
text_config.num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/albert-base-v2-mic.html b/shrink/albert-base-v2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d49bb5e130b7d36a9f9b9f6d9dcef8a3351d8832 --- /dev/null +++ b/shrink/albert-base-v2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/albert-base-v2-mic@258e9f08fe272ff4b05d6823ad031e0ba86d9be6 ← albert/albert-base-v2@8e2f239c5f8a2c0f253781ca60135db913e5c80c · AlbertForMaskedLM · random weights

+
Original11.2Mparameters
Fixture4.0Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

albert.encoder.albert_layer_groups

Original · 1
Fixture · 1
KindOriginalFixture
Layer11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
albert.encoder.albert_layer_groups7.1M63.2%33.5K0.8%
albert.embeddings3.9M34.8%3.9M98.0%
albert.encoder99.1K0.9%8.3K0.2%
predictions.dense98.4K0.9%8.3K0.2%
predictions30.0K0.3%30.0K0.8%
predictions.LayerNorm2560.0%2560.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typealbertalbert✓ kept
modelvocab_size3000030000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_newgelu_new✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix Albert omitted).

ClassOriginalFixture
Linear99
Dropout44
LayerNorm44
Embedding33
ModuleList22
NewGELUActivation22
Attention11
Embeddings11
ForMaskedLM11
Layer11
LayerGroup11
MLMHead11
Model11
Transformer11

Config changes

4 fields changed, 29 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/audio-flamingo-3-hf-mic.html b/shrink/audio-flamingo-3-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..e768ebcb5bab6d114b2a3b36dde26de304b1dd8b --- /dev/null +++ b/shrink/audio-flamingo-3-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/audio-flamingo-3-hf-mic@5e785e0943d8a895cad2acdfc3d7a4366f961920 ← nvidia/audio-flamingo-3-hf@7d4bae64ee29878af6504ae6f6bb3e40492838ad · AudioFlamingo3ForConditionalGeneration · random weights

+
Original8.3Bparameters
Fixture19.7Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.layers

Original · 32
Fixture · 2
KindOriginalFixture
EncoderLayer322✓ kept

model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer282✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers6.5B78.9%74.2K0.4%
model.audio_tower.layers629.6M7.6%66.8K0.3%
model.language_model543.6M6.6%9.7M49.3%
lm_head543.6M6.6%9.7M49.3%
model.multi_modal_projector17.4M0.2%8.3K0.0%
model.audio_tower7.3M0.1%133.1K0.7%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeaudioflamingo3audioflamingo3✓ kept
audio_configmodel_typeaudioflamingo3_encoderaudioflamingo3_encoder✓ kept
audio_confignum_mel_bins128128✓ kept
text_configattention styleGQA (28 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size151672151672✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix AudioFlamingo3 omitted).

ClassOriginalFixture
Linear39129
LayerNorm655
Qwen2RMSNorm575
GELUActivation333
Attention322
EncoderLayer322
Qwen2Attention282
Qwen2DecoderLayer282
Qwen2MLP282
SiLUActivation282
Conv1d22
Embedding22
ModuleList22
Encoder11
ForConditionalGeneration11
Model11
MultiModalProjector11
AvgPool1d11
Qwen2Model11
Qwen2RotaryEmbedding11

Config changes

10 fields changed, 55 unchanged.

FieldOriginalFixture
audio_config.hidden_size128064
audio_config.intermediate_size5120128
audio_config.num_attention_heads204
audio_config.num_hidden_layers322
text_config.hidden_size358464
text_config.intermediate_size18944128
text_config.layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads284
text_config.num_hidden_layers282
text_config.num_key_value_heads42
+
\ No newline at end of file diff --git a/shrink/aya-expanse-8b-ungated-mic.html b/shrink/aya-expanse-8b-ungated-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c3bb972f76e54b54b79db8eaff1c840aae963d94 --- /dev/null +++ b/shrink/aya-expanse-8b-ungated-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/aya-expanse-8b-ungated-mic@ed87e2b6202ba7f881df3e5b8a9859126103bcec ← adamo1139/aya-expanse-8b-ungated@871465ab4030a036a24433b5d100d640f5142999 · CohereForCausalLM · random weights

+
Original8.0Bparameters
Fixture16.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers7.0B86.9%73.9K0.4%
model.embed_tokens1.0B13.1%16.4M99.6%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typecoherecohere✓ kept
modelvocab_size256000256000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Cohere omitted).

ClassOriginalFixture
Linear22515
LayerNorm333
Attention322
DecoderLayer322
MLP322
SiLUActivation322
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

5 fields changed, 24 unchanged.

FieldOriginalFixture
hidden_size409664
intermediate_size14336128
num_attention_heads324
num_hidden_layers322
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/bart-base-mic.html b/shrink/bart-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..acb846b251acf6642693a1b1d6b51102123a05e7 --- /dev/null +++ b/shrink/bart-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/bart-base-mic@1d300e47ad358f5882f422d8c0cfdbc62d975c7b ← facebook/bart-base@aadd2ab0ae0c8268c7c9693540e9904811f36177 · BartForConditionalGeneration · overfit weights · built before the shrink rule (no recorded recipe)

+
Original139.4Mparameters
Fixture3.5Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
EncoderLayer62✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.decoder.layers56.7M40.7%100.5K2.9%
model.encoder.layers42.5M30.5%66.9K1.9%
model.shared38.6M27.7%3.2M91.5%
model.encoder789.5K0.6%65.8K1.9%
model.decoder789.5K0.6%65.8K1.9%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebartbart✓ kept
modelvocab_size5026550265✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings10241024✓ kept

Module classes

Instances of each class in the built model (prefix Bart omitted).

ClassOriginalFixture
Linear9733
LayerNorm3212
Attention186
GELUActivation124
DecoderLayer62
EncoderLayer62
ScaledWordEmbedding33
LearnedPositionalEmbedding22
ModuleList22
Decoder11
Encoder11
ForConditionalGeneration11
Model11

Config changes

7 fields changed, 35 unchanged.

FieldOriginalFixture
d_model76864
decoder_attention_heads124
decoder_ffn_dim3072128
decoder_layers62
encoder_attention_heads124
encoder_ffn_dim3072128
encoder_layers62
+
\ No newline at end of file diff --git a/shrink/beit-base-patch16-224-mic.html b/shrink/beit-base-patch16-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f193860c8172173566e2a351907a1ff34639c50b --- /dev/null +++ b/shrink/beit-base-patch16-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/beit-base-patch16-224-mic@1a760472d6b5a9ada187942e594ec0220135fd38 ← microsoft/beit-base-patch16-224@f02e8f77db4703e3fbd3766e3375a4619c5a4863 · BeitForImageClassification · random weights

+
Original86.5Mparameters
Fixture187.3Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

beit.layers

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
beit.layers85.2M98.4%72.9K38.9%
classifier769.0K0.9%65.0K34.7%
beit.embeddings591.4K0.7%49.3K26.3%
beit.pooler1.5K0.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebeitbeit✓ kept
modelvocab_size81928192✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Beit omitted).

ClassOriginalFixture
Linear7313
LayerNorm255
Dropout133
Attention122
Layer122
MLP122
RelativePositionBias122
GELUActivation122
DropPath111
Identity22
Embeddings11
ForImageClassification11
Model11
PatchEmbeddings11
Pooler11
Conv2d11
ModuleList11

Config changes

6 fields changed, 35 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
out_features["stage12"]["stage2"]
out_indices[12][2]
+
\ No newline at end of file diff --git a/shrink/bert-base-uncased-mic.html b/shrink/bert-base-uncased-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a12e79d2fe1ce99fa5f1604df098a9626f2003a8 --- /dev/null +++ b/shrink/bert-base-uncased-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/bert-base-uncased-mic@b22d1695360ee0c7764b138cc9f00107ed1c3b8a ← google-bert/bert-base-uncased@86b5e0934494bd15c9632b12f734a8a67f723594 · BertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original109.5Mparameters
Fixture2.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

bert.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
bert.encoder.layer85.1M77.7%66.9K3.2%
bert.embeddings23.8M21.8%2.0M95.1%
cls.predictions622.6K0.6%34.8K1.7%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebertbert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix Bert omitted).

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
Embeddings11
Encoder11
ForMaskedLM11
LMPredictionHead11
Model11
OnlyMLMHead11
PredictionHeadTransform11
ModuleList11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/bert-mic.html b/shrink/bert-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4ff4eb2b7ae482fd18e90c558a2d08237f664ba3 --- /dev/null +++ b/shrink/bert-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/bert-mic@55802f5bb3e27f6c6effb21b38bbcf867d1a0cdd ← google-bert/bert-base-uncased@86b5e0934494bd15c9632b12f734a8a67f723594 · BertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original109.5Mparameters
Fixture2.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

bert.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
bert.encoder.layer85.1M77.7%66.9K3.2%
bert.embeddings23.8M21.8%2.0M95.1%
cls.predictions622.6K0.6%34.8K1.7%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebertbert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix Bert omitted).

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
Embeddings11
Encoder11
ForMaskedLM11
LMPredictionHead11
Model11
OnlyMLMHead11
PredictionHeadTransform11
ModuleList11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/bert2bert-cnn_dailymail-fp16-mic.html b/shrink/bert2bert-cnn_dailymail-fp16-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..93bae9ffe536e81fdfb42ab89e68bdae4bcbd8a7 --- /dev/null +++ b/shrink/bert2bert-cnn_dailymail-fp16-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/bert2bert-cnn_dailymail-fp16-mic@4dc2839f1cfebb971828d84d932fed961be06b92 ← patrickvonplaten/bert2bert-cnn_dailymail-fp16@51b5d5cac0fa0ed09ed505df5800579996a2fe12 · EncoderDecoderModel · random weights · built before the shrink rule (no recorded recipe)

+
Original247.4Mparameters
Fixture4.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
BertLayer122✓ kept

decoder.bert.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
BertLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
decoder.bert.encoder.layer113.4M45.9%100.5K2.4%
encoder.encoder.layer85.1M34.4%66.9K1.6%
decoder.bert23.8M9.6%2.0M47.5%
encoder.embeddings23.8M9.6%2.0M47.5%
decoder.cls622.6K0.3%34.8K0.8%
encoder.pooler590.6K0.2%4.2K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeencoder-decoderencoder-decoder✓ kept
encodermodel_typebertbert✓ kept
encodervocab_size3052230522✓ kept
encodertie_word_embeddingsTrueTrue✓ kept
encoderhidden_actgelugelu✓ kept
encodermax_position_embeddings512512✓ kept
decodermodel_typebertbert✓ kept
decodervocab_size3052230522✓ kept
decodertie_word_embeddingsTrueTrue✓ kept
decoderhidden_actgelugelu✓ kept
decodermax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix EncoderDecoder omitted).

ClassOriginalFixture
Linear19535
Dropout9818
LayerNorm6313
BertAttention366
BertSelfOutput366
GELUActivation255
BertIntermediate244
BertLayer244
BertOutput244
BertSelfAttention244
BertCrossAttention122
Embedding66
BertEmbeddings22
BertEncoder22
BertModel22
ModuleList22
BertLMHeadModel11
BertLMPredictionHead11
BertOnlyMLMHead11
BertPooler11
BertPredictionHeadTransform11
Model11
Tanh11

Config changes

9 fields changed, 79 unchanged.

FieldOriginalFixture
decoder.hidden_size76864
decoder.intermediate_size3072128
decoder.num_attention_heads124
decoder.num_hidden_layers122
encoder.hidden_size76864
encoder.intermediate_size3072128
encoder.num_attention_heads124
encoder.num_hidden_layers122
pad_token_idnull0
+
\ No newline at end of file diff --git a/shrink/bigbird-roberta-base-mic.html b/shrink/bigbird-roberta-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c9ee6fcd19e38b51cffb5fb762b75a916eec1ed4 --- /dev/null +++ b/shrink/bigbird-roberta-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/bigbird-roberta-base-mic@5c8d7c34dc917be7de46595c2fc895c9d25f8d2b ← google/bigbird-roberta-base@5a145f7852cba9bd431386a58137bf8a29903b90 · BigBirdForPreTraining · random weights

+
Original128.1Mparameters
Fixture3.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

bert.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
bert.encoder.layer85.1M66.4%66.9K1.9%
bert.embeddings41.8M32.6%3.5M96.5%
cls.predictions642.5K0.5%54.6K1.5%
bert.pooler590.6K0.5%4.2K0.1%
cls.seq_relationship1.5K0.0%1300.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebig_birdbig_bird✓ kept
modelvocab_size5035850358✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_newgelu_new✓ kept
modelmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix BigBird omitted).

ClassOriginalFixture
Linear7616
LayerNorm266
Dropout255
NewGELUActivation133
Attention122
BlockSparseAttention122
Intermediate122
Layer122
Output122
SelfOutput122
Embedding33
Embeddings11
Encoder11
ForPreTraining11
LMPredictionHead11
Model11
PreTrainingHeads11
PredictionHeadTransform11
ModuleList11
Tanh11

Config changes

4 fields changed, 33 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/blenderbot-400M-distill-mic.html b/shrink/blenderbot-400M-distill-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a72a13c65dee217f0a40514b880694dba8f8bf5b --- /dev/null +++ b/shrink/blenderbot-400M-distill-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/blenderbot-400M-distill-mic@3971683a079bd80db6eb44a0aa2d427b8d53d030 ← facebook/blenderbot-400M-distill@eaaf64e3be20ad1f1fb0bdf689565ba52c97eafe · BlenderbotForConditionalGeneration · random weights

+
Original364.8Mparameters
Fixture696.6Kparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 2
Fixture · 2
KindOriginalFixture
EncoderLayer22✓ kept

model.decoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
DecoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.decoder.layers314.9M86.3%100.5K14.4%
model.encoder.layers39.4M10.8%66.9K9.6%
model.shared10.3M2.8%512.5K73.6%
model.decoder166.4K0.0%8.3K1.2%
model.encoder166.4K0.0%8.3K1.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeblenderbotblenderbot✓ kept
modelvocab_size80088008✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings128128✓ kept

Module classes

Instances of each class in the built model (prefix Blenderbot omitted).

ClassOriginalFixture
Linear13333
LayerNorm4212
Attention266
GELUActivation144
DecoderLayer122
ScaledWordEmbedding33
EncoderLayer22
LearnedPositionalEmbedding22
ModuleList22
Decoder11
Encoder11
ForConditionalGeneration11
Model11

Config changes

6 fields changed, 43 unchanged.

FieldOriginalFixture
d_model128064
decoder_attention_heads324
decoder_ffn_dim5120128
decoder_layers122
encoder_attention_heads324
encoder_ffn_dim5120128
+
\ No newline at end of file diff --git a/shrink/bloomz-560m-mic.html b/shrink/bloomz-560m-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9e07c2b98ee90da0211289ecb007942100a90011 --- /dev/null +++ b/shrink/bloomz-560m-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/bloomz-560m-mic@1fa586c833eadf22565c7300a184de964d067039 ← bigscience/bloomz-560m@a2845d7e13dd12efae154a9f1c63fcc2e0cc4b05 · BloomForCausalLM · random weights

+
Original559.2Mparameters
Fixture16.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

transformer.h

Original · 24
Fixture · 2
KindOriginalFixture
Block242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
transformer.h302.3M54.1%100.0K0.6%
transformer.word_embeddings256.9M45.9%16.1M99.4%
transformer.word_embeddings_layernorm2.0K0.0%1280.0%
transformer.ln_f2.0K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebloombloom✓ kept
modelvocab_size250880250880✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix Bloom omitted).

ClassOriginalFixture
Linear979
LayerNorm506
Attention242
Block242
Gelu242
MLP242
Dropout242
ForCausalLM11
Model11
Embedding11
ModuleList11

Config changes

3 fields changed, 31 unchanged.

FieldOriginalFixture
hidden_size102464
n_head164
n_layer242
+
\ No newline at end of file diff --git a/shrink/camembert-base-mic.html b/shrink/camembert-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4659603d4b2a5da3f1e0f0d2e613494d63a56a6e --- /dev/null +++ b/shrink/camembert-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/camembert-base-mic@20f8ae1a74c39ea94985475b75af352499fe19ff ← almanach/camembert-base@a75967561c78f2aa81cc41045378d3b4ee25af9e · CamembertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original110.7Mparameters
Fixture2.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

roberta.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
roberta.encoder.layer85.1M76.9%66.9K3.1%
lm_head.decoder24.6M22.2%2.0M93.8%
lm_head.dense590.6K0.5%4.2K0.2%
roberta.embeddings397.1K0.4%33.1K1.5%
lm_head32.0K0.0%32.0K1.5%
lm_head.layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecamembertcamembert✓ kept
modelvocab_size3200532005✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

Instances of each class in the built model (prefix Camembert omitted).

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
GELUActivation122
Embedding33
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11
ModuleList11

Config changes

4 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/canine-c-mic.html b/shrink/canine-c-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..e7692c3e8d857fc364e9371a80805af1385f3d90 --- /dev/null +++ b/shrink/canine-c-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/canine-c-mic@74effe6821673648251eccbcce73a671448d42f9 ← google/canine-c@dc0eaffdff3fa9161613311c7096eeb3e133ee19 · CanineModel · random weights

+
Original132.1Mparameters
Fixture2.3Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

initial_char_encoder.layer

Original · 1
Fixture · 1
KindOriginalFixture
Layer11✓ kept

encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

final_char_encoder.layer

Original · 1
Fixture · 1
KindOriginalFixture
Layer11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
encoder.layer85.1M64.4%66.9K2.9%
char_embeddings.char_position_embeddings12.6M9.5%1.0M45.9%
initial_char_encoder.layer7.1M5.4%33.5K1.5%
final_char_encoder.layer7.1M5.4%33.5K1.5%
projection.conv4.7M3.6%32.8K1.4%
chars_to_molecules.conv2.4M1.8%16.4K0.7%
char_embeddings.HashBucketCodepointEmbedder_11.6M1.2%131.1K5.7%
12 others11.6M8.8%923.1K40.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecaninecanine✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings1638416384✓ kept

Module classes

Instances of each class in the built model (prefix Canine omitted).

ClassOriginalFixture
Linear8525
Dropout4414
LayerNorm3111
GELUActivation166
Attention144
Intermediate144
Layer144
Output144
SelfAttention144
SelfOutput144
Embedding1010
Encoder33
ModuleList33
Conv1d22
Embeddings11
Model11
Pooler11
CharactersToMolecules11
ConvProjection11
Tanh11

Config changes

4 fields changed, 24 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/chinese-clip-vit-base-patch16-mic.html b/shrink/chinese-clip-vit-base-patch16-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..caa66ff032180fac2d4ee19f25a96cec823b6ab2 --- /dev/null +++ b/shrink/chinese-clip-vit-base-patch16-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/chinese-clip-vit-base-patch16-mic@e4f19250757a82c065b189e77bbffde2acdfe746 ← OFA-Sys/chinese-clip-vit-base-patch16@36e679e65c2a2fead755ae21162091293ad37834 · ChineseCLIPModel · random weights

+
Original188.3Mparameters
Fixture1.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
TextLayer122✓ kept

vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
VisionLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
text_model.encoder.layer85.1M45.2%66.9K4.2%
vision_model.encoder.layers85.1M45.2%66.9K4.2%
text_model.embeddings16.6M8.8%1.4M87.4%
vision_model.embeddings741.9K0.4%61.8K3.9%
text_projection393.2K0.2%2.0K0.1%
visual_projection393.2K0.2%2.0K0.1%
vision_model.pre_layrnorm1.5K0.0%1280.0%
2 others1.5K0.0%1290.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typechinese_clipchinese_clip✓ kept
text_configmodel_typechinese_clip_text_modelchinese_clip_text_model✓ kept
text_configvocab_size2112821128✓ kept
text_confighidden_actgelugelu✓ kept
text_configmax_position_embeddings512512✓ kept
vision_configmodel_typechinese_clip_vision_modelchinese_clip_vision_model✓ kept
vision_configtie_word_embeddingsTrueTrue✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size224224✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix ChineseCLIP omitted).

ClassOriginalFixture
Linear14626
LayerNorm5111
Dropout377
TextAttention122
TextIntermediate122
TextLayer122
TextOutput122
TextSelfAttention122
TextSelfOutput122
VisionAttention122
VisionLayer122
VisionMLP122
GELUActivation122
QuickGELUActivation122
Embedding44
ModuleList22
Model11
TextEmbeddings11
TextEncoder11
TextModel11
VisionEmbeddings11
VisionEncoder11
VisionModel11
Conv2d11

Config changes

10 fields changed, 74 unchanged.

FieldOriginalFixture
projection_dim51232
text_config.hidden_size76864
text_config.intermediate_size3072128
text_config.num_attention_heads124
text_config.num_hidden_layers122
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
vision_config.projection_dim51232
+
\ No newline at end of file diff --git a/shrink/clap-htsat-fused-mic.html b/shrink/clap-htsat-fused-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9ee12b4cf7066e99c91e06b5c76e67da655401b6 --- /dev/null +++ b/shrink/clap-htsat-fused-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/clap-htsat-fused-mic@fb8962e8a171e9824f1f2b920fe20ea46a28895c ← laion/clap-htsat-fused@365dea6ef167def6676140ed93bbc43f84dabb28 · ClapModel · random weights · built before the shrink rule (no recorded recipe)

+
Original153.5Mparameters
Fixture3.7Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
TextLayer122✓ kept

audio_model.audio_encoder.layers

Original · 4
Fixture · 4
KindOriginalFixture
AudioPatchMerging33✓ kept
no AudioPatchMerging11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
text_model.encoder.layer85.1M55.4%66.9K1.8%
text_model.embeddings39.0M25.4%3.3M89.0%
audio_model.audio_encoder.layers27.5M17.9%321.6K8.8%
text_model.pooler590.6K0.4%4.2K0.1%
audio_projection.linear1393.7K0.3%4.1K0.1%
text_projection.linear1393.7K0.3%2.1K0.1%
text_projection.linear2262.7K0.2%1.1K0.0%
4 others280.8K0.2%2.9K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeclapclap✓ kept
text_configmodel_typeclap_text_modelclap_text_model✓ kept
text_configvocab_size5026550265✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actgelugelu✓ kept
text_configmax_position_embeddings514514✓ kept
audio_configmodel_typeclap_audio_modelclap_audio_model✓ kept
audio_configtie_word_embeddingsTrueTrue✓ kept
audio_confighidden_actgelugelu✓ kept
audio_configpatch_size44✓ kept
audio_confignum_mel_bins6464✓ kept

Module classes

Instances of each class in the built model (prefix Clap omitted).

ClassOriginalFixture
Linear15244
Dropout7319
LayerNorm5418
GELUActivation246
AudioAttention124
AudioIntermediate124
AudioLayer124
AudioOutput124
AudioSelfAttention124
AudioSelfOutput124
TextAttention122
TextIntermediate122
TextLayer122
TextOutput122
TextSelfAttention122
TextSelfOutput122
Identity124
Conv2d66
ModuleList66
BatchNorm2d55
AudioStage44
ReLU44
AudioPatchMerging33
Embedding33
ProjectionLayer22
Sequential22
AdaptiveAvgPool1d11
AdaptiveAvgPool2d11
AudioAFFBlock11
AudioEncoder11
AudioModel11
AudioPatchEmbed11
Model11
TextEmbeddings11
TextEncoder11
TextModel11
TextPooler11
Sigmoid11
Tanh11

Config changes

13 fields changed, 106 unchanged.

FieldOriginalFixture
audio_config.depths[2, 2, 6, 2][1, 1, 1, 1]
audio_config.hidden_size768128
audio_config.patch_embeds_hidden_size9616
audio_config.projection_dim51232
audio_config.projection_hidden_size768128
hidden_size76864
num_hidden_layers166
projection_dim51232
text_config.hidden_size76864
text_config.intermediate_size3072128
text_config.num_attention_heads124
text_config.num_hidden_layers122
text_config.projection_dim51232
+
\ No newline at end of file diff --git a/shrink/clip-mic.html b/shrink/clip-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..890c00fc01b609f6fc104b1128ba2188c8aa680c --- /dev/null +++ b/shrink/clip-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/clip-mic@44c8d8042c6d0355f856d0b8549f5f8270ab9640 ← openai/clip-vit-base-patch32@3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268 · CLIPModel · random weights · built before the shrink rule (no recorded recipe)

+
Original151.3Mparameters
Fixture3.5Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vision_model.encoder.layers85.1M56.2%66.9K1.9%
text_model.encoder.layers37.8M25.0%66.9K1.9%
text_model.embeddings25.3M16.7%3.2M90.4%
vision_model.embeddings2.4M1.6%199.9K5.7%
visual_projection393.2K0.3%2.0K0.1%
text_projection262.1K0.2%2.0K0.1%
vision_model.pre_layrnorm1.5K0.0%1280.0%
3 others2.6K0.0%2570.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeclipclip✓ kept
text_configmodel_typeclip_text_modelclip_text_model✓ kept
text_configvocab_size4940849408✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actquick_geluquick_gelu✓ kept
text_configmax_position_embeddings7777✓ kept
vision_configmodel_typeclip_vision_modelclip_vision_model✓ kept
vision_configtie_word_embeddingsTrueTrue✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size224224✓ kept
vision_configpatch_size3232✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix CLIP omitted).

ClassOriginalFixture
Linear14626
LayerNorm5111
Attention244
EncoderLayer244
MLP244
QuickGELUActivation244
Embedding33
Encoder22
ModuleList22
Model11
TextEmbeddings11
TextModel11
VisionEmbeddings11
VisionModel11
Conv2d11

Config changes

11 fields changed, 80 unchanged.

FieldOriginalFixture
projection_dim51232
text_config.hidden_size51264
text_config.intermediate_size2048128
text_config.num_attention_heads84
text_config.num_hidden_layers122
text_config.projection_dim51232
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
vision_config.projection_dim51232
+
\ No newline at end of file diff --git a/shrink/clip-vit-base-patch32-mic.html b/shrink/clip-vit-base-patch32-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..69945ba23e38fb02d26e87da91828784ccfebc4b --- /dev/null +++ b/shrink/clip-vit-base-patch32-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/clip-vit-base-patch32-mic@51ae90d9c34bf49fafe02004f9b4b1c2062cd278 ← openai/clip-vit-base-patch32@3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268 · CLIPModel · random weights · built before the shrink rule (no recorded recipe)

+
Original151.3Mparameters
Fixture3.5Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vision_model.encoder.layers85.1M56.2%66.9K1.9%
text_model.encoder.layers37.8M25.0%66.9K1.9%
text_model.embeddings25.3M16.7%3.2M90.4%
vision_model.embeddings2.4M1.6%199.9K5.7%
visual_projection393.2K0.3%2.0K0.1%
text_projection262.1K0.2%2.0K0.1%
vision_model.pre_layrnorm1.5K0.0%1280.0%
3 others2.6K0.0%2570.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeclipclip✓ kept
text_configmodel_typeclip_text_modelclip_text_model✓ kept
text_configvocab_size4940849408✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actquick_geluquick_gelu✓ kept
text_configmax_position_embeddings7777✓ kept
vision_configmodel_typeclip_vision_modelclip_vision_model✓ kept
vision_configtie_word_embeddingsTrueTrue✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size224224✓ kept
vision_configpatch_size3232✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix CLIP omitted).

ClassOriginalFixture
Linear14626
LayerNorm5111
Attention244
EncoderLayer244
MLP244
QuickGELUActivation244
Embedding33
Encoder22
ModuleList22
Model11
TextEmbeddings11
TextModel11
VisionEmbeddings11
VisionModel11
Conv2d11

Config changes

11 fields changed, 80 unchanged.

FieldOriginalFixture
projection_dim51232
text_config.hidden_size51264
text_config.intermediate_size2048128
text_config.num_attention_heads84
text_config.num_hidden_layers122
text_config.projection_dim51232
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
vision_config.projection_dim51232
+
\ No newline at end of file diff --git a/shrink/clip-vit-base-patch32-vision-mic.html b/shrink/clip-vit-base-patch32-vision-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a7f21c695960ce9066a7d9a0e99c20decf316c74 --- /dev/null +++ b/shrink/clip-vit-base-patch32-vision-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/clip-vit-base-patch32-vision-mic@b1084cb8a6e683e107ed57c9657c25ddbf107137 ← kunalkanaujiya/clip-vit-base-patch32-vision@4c3ca43dcae1f63f1cda22eeabd99674c894d2b7 · CLIPVisionModelWithProjection · random weights

+
Original87.8Mparameters
Fixture269.1Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
CLIPEncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vision_model.encoder.layers85.1M96.8%66.9K24.9%
vision_model.embeddings2.4M2.7%199.9K74.3%
visual_projection393.2K0.4%2.0K0.8%
vision_model.post_layernorm1.5K0.0%1280.0%
vision_model.pre_layrnorm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeclip_vision_modelclip_vision_model✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actquick_geluquick_gelu✓ kept
modelimage_size224224✓ kept
modelpatch_size3232✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix CLIPVision omitted).

ClassOriginalFixture
Linear7313
LayerNorm266
CLIPAttention122
CLIPEncoderLayer122
CLIPMLP122
QuickGELUActivation122
CLIPEncoder11
Embeddings11
Model11
ModelWithProjection11
Conv2d11
Embedding11
ModuleList11

Config changes

5 fields changed, 35 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
projection_dim51232
+
\ No newline at end of file diff --git a/shrink/clipseg-rd64-refined-mic.html b/shrink/clipseg-rd64-refined-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..450a8ba0290472569f27d5df117a90e9233eaf2e --- /dev/null +++ b/shrink/clipseg-rd64-refined-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/clipseg-rd64-refined-mic@5be0dc861834231292b5d365fffc3d3e1d268cd0 ← CIDAS/clipseg-rd64-refined@999e0328d9e10b484360c477313983f9afdd7050 · CLIPSegForImageSegmentation · random weights

+
Original150.7Mparameters
Fixture4.3Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

clip.text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

clip.vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

decoder.layers

Original · 3
Fixture · 3
KindOriginalFixture
DecoderLayer33✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
clip.vision_model.encoder.layers85.1M56.4%66.9K1.6%
clip.text_model.encoder.layers37.8M25.1%66.9K1.6%
clip.text_model25.3M16.8%3.2M73.7%
decoder.layers843.5K0.6%843.5K19.6%
clip.vision_model745.0K0.5%62.1K1.4%
clip.visual_projection393.2K0.3%2.0K0.0%
clip.text_projection262.1K0.2%2.0K0.0%
5 others283.6K0.2%86.9K2.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeclipsegclipseg✓ kept
text_configmodel_typeclipseg_text_modelclipseg_text_model✓ kept
text_configvocab_size4940849408✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actquick_geluquick_gelu✓ kept
text_configmax_position_embeddings7777✓ kept
vision_configmodel_typeclipseg_vision_modelclipseg_vision_model✓ kept
vision_configtie_word_embeddingsTrueTrue✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size224224✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix CLIPSeg omitted).

ClassOriginalFixture
Linear16949
LayerNorm5717
Attention277
MLP277
EncoderLayer244
QuickGELUActivation244
ReLU55
ModuleList44
DecoderLayer33
Embedding33
Encoder22
Conv2d22
ConvTranspose2d22
Decoder11
ForImageSegmentation11
Model11
TextEmbeddings11
TextModel11
VisionEmbeddings11
VisionModel11
Sequential11

Config changes

10 fields changed, 89 unchanged.

FieldOriginalFixture
extract_layers[3, 6, 9][0, 1, 1]
projection_dim51232
text_config.hidden_size51264
text_config.intermediate_size2048128
text_config.num_attention_heads84
text_config.num_hidden_layers122
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/conv-bert-base-mic.html b/shrink/conv-bert-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f187c8b42013eb8df3f3c72ae4b143cfa71e5fb6 --- /dev/null +++ b/shrink/conv-bert-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/conv-bert-base-mic@939ec1a4a34866f8fe836950538ad5ba620139ef ← YituTech/conv-bert-base@5cb451936b5c4a96562d8b146de85f64f9cf2c22 · ConvBertModel · random weights

+
Original105.7Mparameters
Fixture24.0Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
encoder.layer81.8M77.4%65.1K0.3%
embeddings.word_embeddings23.4M22.2%23.4M97.9%
embeddings.position_embeddings393.2K0.4%393.2K1.6%
embeddings.token_type_embeddings1.5K0.0%1.5K0.0%
embeddings.LayerNorm1.5K0.0%1.5K0.0%
embeddings_project00.0%49.2K0.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeconvbertconvbert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix ConvBert omitted).

ClassOriginalFixture
Linear9617
Dropout377
LayerNorm255
Conv1d244
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
GELUActivation122
SeparableConv1D122
Unfold122
Embedding33
Embeddings11
Encoder11
Model11
ModuleList11

Config changes

4 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/convnext-tiny-224-mic.html b/shrink/convnext-tiny-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..96c413cea742ccd44d8dce19f40b083b1eb2a4fa --- /dev/null +++ b/shrink/convnext-tiny-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/convnext-tiny-224-mic@f5dae79dc4935e97ae29a9414541fa8d790454ee ← facebook/convnext-tiny-224@6166b7613034066690a621d8bf25ffdf181a34f0 · ConvNextForImageClassification · random weights

+
Original28.6Mparameters
Fixture361.5Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

convnext.encoder.stages

Original · 4
Fixture · 4
KindOriginalFixture
Layer44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
convnext.encoder.stages27.8M97.3%231.5K64.0%
classifier769.0K2.7%129.0K35.7%
convnext.embeddings4.9K0.0%8160.2%
convnext.layernorm1.5K0.0%2560.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeconvnextconvnext✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelpatch_size44✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix ConvNext omitted).

ClassOriginalFixture
Linear379
Conv2d228
LayerNorm228
Layer184
GELUActivation184
Identity184
ModuleList99
Stage44
Embeddings11
Encoder11
ForImageClassification11
Model11
LayerNorm11

Config changes

2 fields changed, 21 unchanged.

FieldOriginalFixture
depths[3, 3, 9, 3][1, 1, 1, 1]
hidden_sizes[96, 192, 384, 768][16, 32, 64, 128]
+
\ No newline at end of file diff --git a/shrink/convnextv2-nano-1k-224-mic.html b/shrink/convnextv2-nano-1k-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..8a82dda42f7e0f5f2666be925c3bb5fa47679545 --- /dev/null +++ b/shrink/convnextv2-nano-1k-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/convnextv2-nano-1k-224-mic@df320ec01c275577e0266bbffdecd6eec693d41b ← facebook/convnextv2-nano-1k-224@5fd38629f57580835f733e36a7da810d5c8df9ec · ConvNextV2ForImageClassification · random weights

+
Original15.6Mparameters
Fixture363.2Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

convnextv2.encoder.stages

Original · 4
Fixture · 4
KindOriginalFixture
Layer44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
convnextv2.encoder.stages15.0M95.9%233.1K64.2%
classifier641.0K4.1%129.0K35.5%
convnextv2.embeddings4.1K0.0%8160.2%
convnextv2.layernorm1.3K0.0%2560.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeconvnextv2convnextv2✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelpatch_size44✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix ConvNextV2 omitted).

ClassOriginalFixture
Linear299
Conv2d188
LayerNorm188
GRN144
Layer144
GELUActivation144
Identity144
ModuleList99
Stage44
Embeddings11
Encoder11
ForImageClassification11
Model11
LayerNorm11

Config changes

2 fields changed, 20 unchanged.

FieldOriginalFixture
depths[2, 2, 8, 2][1, 1, 1, 1]
hidden_sizes[80, 160, 320, 640][16, 32, 64, 128]
+
\ No newline at end of file diff --git a/shrink/csm-1b-mic.html b/shrink/csm-1b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..14ac9a1a9fa957b7d2c7dac67239d6729b92f961 --- /dev/null +++ b/shrink/csm-1b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/csm-1b-mic@ceb9f9aebdb8fe8d8aca3a3c51091ae2527893ca ← unsloth/csm-1b@39e8c756bec133ad7eb9ea1097c84a2bd891c949 · CsmForConditionalGeneration · random weights

+
Original1.6Bparameters
Fixture39.7Mparameters
Layer stacks6compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

backbone_model.layers

Original · 16
Fixture · 2
KindOriginalFixture
DecoderLayer162✓ kept

depth_decoder.model.layers

Original · 4
Fixture · 2
KindOriginalFixture
DecoderLayer42✓ kept

codec_model.encoder.encoder_transformer.layers

Original · 8
Fixture · 2
KindOriginalFixture
MimiTransformerLayer82✓ kept

codec_model.decoder.decoder_transformer.layers

Original · 8
Fixture · 2
KindOriginalFixture
MimiTransformerLayer82✓ kept

codec_model.quantizer.semantic_residual_vector_quantizer.layers

Original · 1
Fixture · 1
KindOriginalFixture
MimiEuclideanCodebook11✓ kept

codec_model.quantizer.acoustic_residual_vector_quantizer.layers

Original · 31
Fixture · 31
KindOriginalFixture
MimiEuclideanCodebook3131✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
backbone_model.layers973.1M59.6%74.0K0.2%
embed_text_tokens262.7M16.1%8.2M20.7%
backbone_model.embed_tokens134.4M8.2%4.2M10.6%
depth_decoder.model.layers111.2M6.8%74.0K0.2%
depth_decoder.codebooks_head65.1M4.0%4.1M10.2%
codec_model.encoder.encoder_transformer.layers25.2M1.5%66.3K0.2%
codec_model.decoder.decoder_transformer.layers25.2M1.5%66.3K0.2%
6 others35.2M2.2%23.0M57.8%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typellama3llama3✓ kept
modelmodel_typecsmcsm✓ kept
modelvocab_size20512051✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept
depth_decoder_configattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
depth_decoder_configRoPE typellama3llama3✓ kept
depth_decoder_configmodel_typecsm_depth_decoder_modelcsm_depth_decoder_model✓ kept
depth_decoder_configvocab_size20512051✓ kept
depth_decoder_confighidden_actsilusilu✓ kept
depth_decoder_configmax_position_embeddings3333✓ kept
codec_configattention styleMHA (8 heads, 8 KV)MHA (4 heads, 4 KV)✓ kept
codec_configRoPE typedefaultdefault✓ kept
codec_configmodel_typemimimimi✓ kept
codec_configtie_word_embeddingsTrueTrue✓ kept
codec_confighidden_actgelugelu✓ kept
codec_configmax_position_embeddings80008000✓ kept
codec_configsampling_rate2400024000✓ kept

Module classes

Instances of each class in the built model (prefix Csm omitted).

ClassOriginalFixture
Linear23854
RMSNorm4210
LayerNorm328
MimiEuclideanCodebook3232
MimiLayerScale328
MimiVectorQuantization3232
Conv1d2929
ELU2626
MimiConv1d2525
Attention204
DecoderLayer204
MLP204
SiLUActivation204
GELUActivation164
MimiAttention164
MimiMLP164
MimiTransformerLayer164
ModuleList1616
Identity88
MimiResnetBlock88
ConvTranspose1d55
MimiConvTranspose1d55
Embedding33
RotaryEmbedding22
MimiResidualVectorQuantizer22
MimiRotaryEmbedding22
MimiTransformerModel22
BackboneModel11
BackboneModelEmbeddings11
CodebooksHead11
DepthDecoderForCausalLM11
DepthDecoderModel11
ForConditionalGeneration11
MimiDecoder11
MimiDecoderModel11
MimiEncoder11
MimiEncoderModel11
MimiModel11
MimiSplitResidualVectorQuantizer11

Config changes

19 fields changed, 96 unchanged.

FieldOriginalFixture
codec_config.head_dim6416
codec_config.hidden_size51264
codec_config.intermediate_size2048128
codec_config.num_attention_heads84
codec_config.num_hidden_layers82
codec_config.num_key_value_heads84
codec_config.upsample_groups51264
depth_decoder_config.backbone_hidden_size204864
depth_decoder_config.head_dim12816
depth_decoder_config.hidden_size102464
depth_decoder_config.intermediate_size8192128
depth_decoder_config.num_attention_heads84
depth_decoder_config.num_hidden_layers42
head_dim6416
hidden_size204864
intermediate_size8192128
num_attention_heads324
num_hidden_layers162
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/deberta-large-mnli-mic.html b/shrink/deberta-large-mnli-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..470e83f0a51f7f70ed6ae6cfb245351ce12c2c60 --- /dev/null +++ b/shrink/deberta-large-mnli-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/deberta-large-mnli-mic@58e79989780438ce43238a30ec6c3453ea288907 ← microsoft/deberta-large-mnli@7296194b9009373def4f7c5dad292651e4b5cf4e · DebertaForSequenceClassification · overfit weights

+
Original406.2Mparameters
Fixture3.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

deberta.encoder.layer

Original · 24
Fixture · 2
KindOriginalFixture
Layer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
deberta.encoder.layer352.6M86.8%83.3K2.5%
deberta.embeddings51.5M12.7%3.2M95.5%
pooler.dense1.0M0.3%4.2K0.1%
deberta.encoder1.0M0.3%65.5K1.9%
classifier3.1K0.0%1950.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedebertadeberta✓ kept
modelvocab_size5026550265✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix Deberta omitted).

ClassOriginalFixture
Linear14614
Dropout9911
LayerNorm495
Attention242
Intermediate242
Layer242
Output242
SelfOutput242
DisentangledSelfAttention242
GELUActivation242
Embedding22
ContextPooler11
Embeddings11
Encoder11
ForSequenceClassification11
Model11
ModuleList11

Config changes

5 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_size102464
intermediate_size4096128
num_attention_heads164
num_hidden_layers242
pooler_hidden_size102464
+
\ No newline at end of file diff --git a/shrink/detr-mic.html b/shrink/detr-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..2886151593bd808df0539005f80a16ebbbb6d01b --- /dev/null +++ b/shrink/detr-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/detr-mic@47543c8af7646760a74482fedf00ec00fd8735e1 ← facebook/detr-resnet-50@1d5f47bd3bdd2c4bbfa585418ffe6da5028b4c0b · DetrForObjectDetection · random weights · built before the shrink rule (no recorded recipe)

+
Original41.5Mparameters
Fixture23.8Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
EncoderLayer62✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.backbone23.5M56.5%23.5M98.7%
model.decoder.layers9.5M22.8%100.5K0.4%
model.encoder.layers7.9M19.0%66.9K0.3%
model.input_projection524.5K1.3%131.1K0.6%
bbox_predictor.layers132.6K0.3%8.6K0.0%
model.query_position_embeddings25.6K0.1%6.4K0.0%
class_labels_classifier23.6K0.1%6.0K0.0%
1 others5120.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedetrdetr✓ kept
modelmax_position_embeddings10241024✓ kept
modelnum_channels33✓ kept
backbone_configmodel_typetimm_backbonetimm_backbone✓ kept
backbone_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Detr omitted).

ClassOriginalFixture
Linear10036
ReLU6153
Conv2d5454
FrozenBatchNorm2d5353
Identity3232
LayerNorm3111
Bottleneck1616
MLP124
SelfAttention124
Sequential88
CrossAttention62
DecoderLayer62
EncoderLayer62
ModuleList33
ConvEncoder11
Decoder11
Encoder11
ForObjectDetection11
MLPPredictionHead11
Model11
SinePositionEmbedding11
Embedding11
FeatureListNet11
MaxPool2d11

Config changes

10 fields changed, 48 unchanged.

FieldOriginalFixture
backbone_config.out_featuresnull["layer4"]
backbone_config.out_indices[1, 2, 3, 4][-1]
backbone_config.stage_names—["act1", "layer1", "layer2", "layer3", "layer4"]
d_model25664
decoder_attention_heads84
decoder_ffn_dim2048128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim2048128
encoder_layers62
+
\ No newline at end of file diff --git a/shrink/dinov2-small-mic.html b/shrink/dinov2-small-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..0a197f34b46ad830643925490d21fa4376bb35dd --- /dev/null +++ b/shrink/dinov2-small-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/dinov2-small-mic@770cc8e9a4eccc42eb2f4ea67371b9997d0395d5 ← facebook/dinov2-small@ed25f3a31f01632728cabb09d1542f84ab7b0056 · Dinov2Model · random weights · built before the shrink rule (no recorded recipe)

+
Original22.1Mparameters
Fixture225.9Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
encoder.layer21.3M96.6%100.2K44.4%
embeddings526.8K2.4%87.8K38.9%
embeddings.patch_embeddings226.2K1.0%37.7K16.7%
layernorm7680.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedinov2dinov2✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size518518✓ kept
modelpatch_size1414✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Dinov2 omitted).

ClassOriginalFixture
Linear7212
LayerNorm255
LayerScale244
Attention122
Layer122
MLP122
GELUActivation122
Identity122
Conv2d11
Embeddings11
Encoder11
Model11
PatchEmbeddings11
Dropout11
ModuleList11

Config changes

5 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size38464
num_attention_heads64
num_hidden_layers122
out_features["stage12"]["stage2"]
out_indices[12][2]
+
\ No newline at end of file diff --git a/shrink/dinov2-with-registers-base-mic.html b/shrink/dinov2-with-registers-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..19736b64d13838fb5b2121b1a461664a2a168c45 --- /dev/null +++ b/shrink/dinov2-with-registers-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/dinov2-with-registers-base-mic@186e99a19d6165f6a42c2794175a5d87d8781984 ← facebook/dinov2-with-registers-base@a1d738ccfa7ae170945f210395d99dde8adb1805 · Dinov2WithRegistersModel · random weights

+
Original86.6Mparameters
Fixture226.1Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
encoder.layer85.1M98.3%100.2K44.3%
embeddings1.1M1.2%88.1K38.9%
embeddings.patch_embeddings452.4K0.5%37.7K16.7%
layernorm1.5K0.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedinov2_with_registersdinov2_with_registers✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size518518✓ kept
modelpatch_size1414✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Dinov2WithRegisters omitted).

ClassOriginalFixture
Linear7212
LayerNorm255
LayerScale244
Attention122
Layer122
MLP122
GELUActivation122
Identity122
Conv2d11
Embeddings11
Encoder11
Model11
PatchEmbeddings11
Dropout11
ModuleList11

Config changes

5 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_size76864
num_attention_heads124
num_hidden_layers122
out_features["stage12"]["stage2"]
out_indices[12][2]
+
\ No newline at end of file diff --git a/shrink/dinov3-vitl16-pretrain-lvd1689m-mic.html b/shrink/dinov3-vitl16-pretrain-lvd1689m-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..19e75966d1501e6818d3914e10df586c4ddf0398 --- /dev/null +++ b/shrink/dinov3-vitl16-pretrain-lvd1689m-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/dinov3-vitl16-pretrain-lvd1689m-mic@ba70f2bd5556b75212ed9bdd17efebacf33b37ae ← camenduru/dinov3-vitl16-pretrain-lvd1689m@3c276edd87d6f6e569ff0c4400e086807d0f3881 · DINOv3ViTModel · random weights

+
Original303.1Mparameters
Fixture116.8Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layer

Original · 24
Fixture · 2
KindOriginalFixture
Layer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layer302.3M99.7%67.1K57.4%
embeddings.patch_embeddings787.5K0.3%49.2K42.1%
embeddings6.1K0.0%3840.3%
norm2.0K0.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedinov3_vitdinov3_vit✓ kept
modelhidden_actgelugelu✓ kept
modelrope_theta100.0100.0✓ kept
modelimage_size224224✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix DINOv3ViT omitted).

ClassOriginalFixture
Linear14412
LayerNorm495
LayerScale484
Attention242
Layer242
MLP242
GELUActivation242
Identity242
Conv2d11
Embeddings11
Encoder11
Model11
RopePositionEmbedding11
ModuleList11

Config changes

6 fields changed, 32 unchanged.

FieldOriginalFixture
hidden_size102464
intermediate_size4096128
num_attention_heads164
num_hidden_layers242
out_features["stage24"]["stage2"]
out_indices[24][2]
+
\ No newline at end of file diff --git a/shrink/distilbert-base-uncased-mic.html b/shrink/distilbert-base-uncased-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c28b7989061d081ff6f006362deeaf41024c20ff --- /dev/null +++ b/shrink/distilbert-base-uncased-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/distilbert-base-uncased-mic@c65e2b7864ac5e15a46a61bdb7c1c89da10ab09c ← distilbert/distilbert-base-uncased@12040accade4e8a0f71eabdb258fecc2e7e948be · DistilBertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original67.0Mparameters
Fixture2.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

distilbert.transformer.layer

Original · 6
Fixture · 2
KindOriginalFixture
TransformerBlock62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
distilbert.transformer.layer42.5M63.5%66.9K3.2%
distilbert.embeddings23.8M35.6%2.0M95.1%
vocab_transform590.6K0.9%4.2K0.2%
vocab_projector30.5K0.0%30.5K1.5%
vocab_layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedistilbertdistilbert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix DistilBert omitted).

ClassOriginalFixture
Linear3814
LayerNorm146
Dropout135
GELUActivation73
SelfAttention62
FFN62
TransformerBlock62
Embedding22
CrossEntropyLoss11
ForMaskedLM11
Model11
Embeddings11
ModuleList11
Transformer11

Config changes

4 fields changed, 23 unchanged.

FieldOriginalFixture
dim76864
hidden_dim3072128
n_heads124
n_layers62
+
\ No newline at end of file diff --git a/shrink/docling-layout-heron-mic.html b/shrink/docling-layout-heron-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9edd384edb7bf99920a032106bde8482c37ee562 --- /dev/null +++ b/shrink/docling-layout-heron-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/docling-layout-heron-mic@a4c39589d12b25a98e2c975388b2629748602771 ← docling-project/docling-layout-heron@8f39ad3c0b4c58e9c2d2c84a38465abf757272d8 · RTDetrV2ForObjectDetection · random weights

+
Original42.8Mparameters
Fixture10.9Mparameters
Layer stacks11compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.backbone.model.encoder.stages

Original · 4
Fixture · 4
KindOriginalFixture
no AvgPool2d11✓ kept
AvgPool2d33✓ kept

model.encoder_input_proj

Original · 3
Fixture · 3
KindOriginalFixture
Conv2d33✓ kept

model.encoder.aifi

Original · 1
Fixture · 1
KindOriginalFixture
AIFILayer11✓ kept

model.encoder.lateral_convs

Original · 2
Fixture · 2
KindOriginalFixture
ConvNormLayer22✓ kept

model.encoder.fpn_blocks

Original · 2
Fixture · 2
KindOriginalFixture
RepVggBlock22✓ kept

model.encoder.downsample_convs

Original · 2
Fixture · 2
KindOriginalFixture
ConvNormLayer22✓ kept

model.encoder.pan_blocks

Original · 2
Fixture · 2
KindOriginalFixture
RepVggBlock22✓ kept

model.decoder_input_proj

Original · 3
Fixture · 3
KindOriginalFixture
Conv2d33✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

model.decoder.bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.backbone.model.encoder.stages23.4M54.8%32.4K0.3%
model.decoder.layers6.0M14.0%102.6K0.9%
model.encoder.fpn_blocks4.5M10.4%4.5M41.0%
model.encoder.pan_blocks4.5M10.4%4.5M41.0%
model.encoder.downsample_convs1.2M2.8%1.2M10.8%
model.encoder_input_proj919.0K2.1%58.9K0.5%
model.decoder.bbox_embed795.7K1.9%17.2K0.2%
9 others1.5M3.5%566.5K5.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typert_detr_v2rt_detr_v2✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
backbone_configmodel_typert_detr_resnetrt_detr_resnet✓ kept
backbone_confighidden_actrelurelu✓ kept
backbone_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix RTDetrV2 omitted).

ClassOriginalFixture
Linear12149
Conv2d9761
ReLU5717
Identity5632
FrozenBatchNorm2d5519
RTDetrResNetConvLayer5115
BatchNorm2d4242
ConvNormLayer3636
Sequential3523
ModuleList2820
SiLUActivation2424
LayerNorm219
RTDetrResNetBottleNeckLayer164
MLPPredictionHead146
RepVggBlock1212
MLP73
SelfAttention73
DecoderLayer62
MultiscaleDeformableAttention62
RTDetrResNetShortCut44
RTDetrResNetStage44
CSPRepLayer44
AvgPool2d33
Embedding11
GELUActivation11
MaxPool2d11
RTDetrResNetBackbone11
RTDetrResNetEmbeddings11
RTDetrResNetEncoder11
AIFILayer11
ConvEncoder11
Decoder11
EncoderLayer11
ForObjectDetection11
HybridEncoder11
Model11
SinePositionEmbedding11

Config changes

9 fields changed, 74 unchanged.

FieldOriginalFixture
backbone_config.depths[3, 4, 6, 3][1, 1, 1, 1]
backbone_config.hidden_sizes[256, 512, 1024, 2048][16, 32, 64, 128]
d_model25664
decoder_attention_heads84
decoder_ffn_dim1024128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim1024128
encoder_in_channels[512, 1024, 2048][32, 64, 128]
+
\ No newline at end of file diff --git a/shrink/dpt-large-mic.html b/shrink/dpt-large-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..29b3939f17a9357532f83137f01cdb30389f6bd3 --- /dev/null +++ b/shrink/dpt-large-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/dpt-large-mic@fef05122ed4bc80c9abd66c8dfb177787005eb45 ← Intel/dpt-large@bc15f29aa3a80d532f2ed650b5e16ac48d8958f9 · DPTForDepthEstimation · overfit weights

+
Original343.0Mparameters
Fixture1.0Mparameters
Layer stacks4compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

dpt.encoder.layer

Original · 24
Fixture · 4
KindOriginalFixture
ViTLayer244✓ kept

neck.reassemble_stage.layers

Original · 4
Fixture · 4
KindOriginalFixture
ConvTranspose2d22✓ kept
no ConvTranspose2d22✓ kept

neck.reassemble_stage.readout_projects

Original · 4
Fixture · 4
KindOriginalFixture
Linear44✓ kept

neck.fusion_stage.layers

Original · 4
Fixture · 4
KindOriginalFixture
FeatureFusionLayer44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
dpt.encoder.layer302.3M88.1%133.9K12.8%
neck.reassemble_stage.layers14.4M4.2%56.6K5.4%
neck.fusion_stage.layers9.7M2.8%607.5K58.1%
neck.reassemble_stage.readout_projects8.4M2.4%33.0K3.2%
neck.convs6.5M1.9%101.4K9.7%
dpt.embeddings1.4M0.4%86.2K8.2%
head.head332.0K0.1%27.7K2.7%
1 others2.0K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedptdpt✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size384384✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix DPT omitted).

ClassOriginalFixture
Linear14828
Dropout499
LayerNorm499
Conv2d3333
GELUActivation288
SelfAttention244
ViTAttention244
ViTIntermediate244
ViTLayer244
ViTOutput244
ViTSelfOutput244
ReLU1818
PreActResidualLayer88
ModuleList55
Sequential55
FeatureFusionLayer44
ReassembleLayer44
ConvTranspose2d22
DepthEstimationHead11
FeatureFusionStage11
ForDepthEstimation11
Model11
Neck11
ReassembleStage11
ViTEmbeddings11
ViTEncoder11
ViTPatchEmbeddings11
Identity11
Upsample11

Config changes

7 fields changed, 34 unchanged.

FieldOriginalFixture
backbone_out_indices[5, 11, 17, 23][0, 1, 2, 3]
fusion_hidden_size25664
hidden_size102464
intermediate_size4096128
neck_hidden_sizes[256, 512, 1024, 1024][16, 32, 64, 64]
num_attention_heads164
num_hidden_layers244
+
\ No newline at end of file diff --git a/shrink/electra-small-discriminator-mic.html b/shrink/electra-small-discriminator-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1d1848adc3a0cc204a4e2fc8e7a3f6e3b858c729 --- /dev/null +++ b/shrink/electra-small-discriminator-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/electra-small-discriminator-mic@ac7792ec804c827b79e2d41cc27764deb121a907 ← google/electra-small-discriminator@fa8239aadc095e9164941d05878b98afe9b953c3 · ElectraForPreTraining · random weights · built before the shrink rule (no recorded recipe)

+
Original13.5Mparameters
Fixture4.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

electra.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
electra.encoder.layer9.5M69.9%66.9K1.7%
electra.embeddings4.0M29.3%4.0M98.0%
discriminator_predictions.dense65.8K0.5%4.2K0.1%
electra.embeddings_project33.0K0.2%8.3K0.2%
discriminator_predictions.dense_prediction2570.0%650.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeelectraelectra✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix Electra omitted).

ClassOriginalFixture
Linear7515
Dropout377
LayerNorm255
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
DiscriminatorPredictions11
Embeddings11
Encoder11
ForPreTraining11
Model11
ModuleList11

Config changes

3 fields changed, 32 unchanged.

FieldOriginalFixture
hidden_size25664
intermediate_size1024128
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/embeddinggemma-2-mic.html b/shrink/embeddinggemma-2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..3c6421de6fa2d5ce2706e849f217426dbbb07bef --- /dev/null +++ b/shrink/embeddinggemma-2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/embeddinggemma-2-mic@154c2d84cda18ee708d45273b3e509a34dc9d5cb ← google/embeddinggemma-2@f9972ac22e696a105c482202646979e33e4b5a1e · EmbeddingGemma2Model · random weights

+
Original744.4Mparameters
Fixture19.4Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

vision_tower.encoder.layers

Original · 16
Fixture · 2
KindOriginalFixture
Gemma4VisionEncoderLayer162✓ kept

language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
EncoderLayer242✓ kept

audio_tower.layers

Original · 12
Fixture · 2
KindOriginalFixture
Gemma4AudioLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
audio_tower.layers302.2M40.6%198.4K1.0%
vision_tower.encoder.layers151.0M20.3%82.5K0.4%
language_model.embed_tokens134.2M18.0%16.8M86.7%
language_model.layers130.1M17.5%521.9K2.7%
vision_tower.patch_embedder16.3M2.2%1.4M7.0%
language_model.ple6.3M0.8%66.0K0.3%
audio_tower.output_proj1.6M0.2%99.8K0.5%
5 others2.7M0.4%255.3K1.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeembedding_gemma2embedding_gemma2✓ kept
text_configattention styleGQA (4 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configmodel_typeembedding_gemma2_textembedding_gemma2_text✓ kept
text_configvocab_size262144262144✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configattention styleMHA (12 heads, 12 KV)MHA (4 heads, 4 KV)✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typegemma4_visiongemma4_vision✓ kept
vision_configmax_position_embeddings131072131072✓ kept
vision_configpatch_size1616✓ kept
audio_configmodel_typegemma4_audiogemma4_audio✓ kept
audio_confighidden_actsilusilu✓ kept

Module classes

Instances of each class in the built model (prefix EmbeddingGemma2 omitted).

ClassOriginalFixture
Linear46761
Gemma4ClippableLinear23234
Gemma4RMSNorm22032
RMSNorm19620
GELUTanh646
SiLUActivation366
Attention242
EncoderLayer242
MLP242
TextPLEBlock242
Gemma4AudioFeedForward244
Gemma4VisionAttention162
Gemma4VisionEncoderLayer162
Gemma4VisionMLP162
Gemma4AudioAttention122
Gemma4AudioCausalConv1d122
Gemma4AudioLayer122
Gemma4AudioLightConv1d122
ModuleList33
Conv2d22
MultimodalEmbedder22
Gemma4AudioSubSampleConvProjectionLayer22
LayerNorm22
ReLU22
Model11
RotaryEmbedding11
TextModel11
TextPLE11
TextScaledWordEmbedding11
Gemma4AudioModel11
Gemma4AudioRelPositionalEncoding11
Gemma4AudioSubSampleConvProjection11
Gemma4VisionEncoder11
Gemma4VisionModel11
Gemma4VisionPatchEmbedder11
Gemma4VisionPooler11
Gemma4VisionRotaryEmbedding11

Config changes

19 fields changed, 89 unchanged.

FieldOriginalFixture
audio_config.hidden_size102464
audio_config.num_attention_heads84
audio_config.num_hidden_layers122
text_config.head_dim25616
text_config.hidden_size51264
text_config.intermediate_size2048128
text_config.layer_types24 entries: 20× sliding_attention, 4× full_attention["sliding_attention", "full_attention"]
text_config.num_hidden_layers242
text_config.per_layer_config.05{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.1—{"head_dim": 512, "num_key_value_heads": 1}
text_config.per_layer_config.11{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.17{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.23{"head_dim": 512, "num_key_value_heads": 1}—
vision_config.head_dim6416
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers162
vision_config.num_key_value_heads124
+
\ No newline at end of file diff --git a/shrink/esm2_t6_8M_UR50D-mic.html b/shrink/esm2_t6_8M_UR50D-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ff7449cfd49e2d875c9e6d623d2040eaef4077b6 --- /dev/null +++ b/shrink/esm2_t6_8M_UR50D-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/esm2_t6_8M_UR50D-mic@4b96e1d6e983ef0096ac5ca7257ccb03fdd256ca ← facebook/esm2_t6_8M_UR50D@c731040fcd8d73dceaa04b0a8e6329b345b0f5df · EsmForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original7.5Mparameters
Fixture73.5Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

esm.encoder.layer

Original · 6
Fixture · 2
KindOriginalFixture
Layer62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
esm.encoder.layer7.4M98.5%66.9K91.1%
lm_head.dense102.7K1.4%4.2K5.7%
esm.embeddings10.6K0.1%2.1K2.9%
lm_head.layer_norm6400.0%1280.2%
esm.encoder6400.0%1280.2%
esm.contact_head1210.0%90.0%
lm_head330.0%330.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeesmesm✓ kept
modelvocab_size3333✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings10261026✓ kept
modelrope_theta10000.010000.0✓ kept

Module classes

Instances of each class in the built model (prefix Esm omitted).

ClassOriginalFixture
Linear3915
LayerNorm146
Dropout135
Attention62
Intermediate62
Layer62
Output62
SelfAttention62
SelfOutput62
Embedding11
ContactPredictionHead11
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11
RotaryEmbedding11
ModuleList11
Sigmoid11

Config changes

4 fields changed, 32 unchanged.

FieldOriginalFixture
hidden_size32064
intermediate_size1280128
num_attention_heads204
num_hidden_layers62
+
\ No newline at end of file diff --git a/shrink/falcon-7b-mic.html b/shrink/falcon-7b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..63d30c5c1cfa99307e9408d346871377ecee1e71 --- /dev/null +++ b/shrink/falcon-7b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/falcon-7b-mic@c2ffcf79ca756a8157331b274fea56a5485a34d0 ← tiiuae/falcon-7b@ec89142b67d748a1865ea4451372db8313ada0d8 · FalconForCausalLM · random weights

+
Original6.9Bparameters
Fixture8.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

transformer.h

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
transformer.h6.6B95.7%4.7M52.9%
transformer.word_embeddings295.5M4.3%4.2M47.1%
transformer.ln_f9.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelRoPE typedefaultdefault✓ kept
modelmodel_typefalconfalcon✓ kept
modelvocab_size6502465024✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Falcon omitted).

ClassOriginalFixture
Linear1288
LayerNorm333
Dropout322
Attention322
DecoderLayer322
MLP322
GELUActivation322
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
Linear11
ModuleList11

Config changes

3 fields changed, 32 unchanged.

FieldOriginalFixture
hidden_size454464
num_attention_heads714
num_hidden_layers322
+
\ No newline at end of file diff --git a/shrink/fnet-base-mic.html b/shrink/fnet-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f33490964dd6ac942fba63d30f4c662f915e939b --- /dev/null +++ b/shrink/fnet-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/fnet-base-mic@0b11088ebc19ded28553b5f9b49c0c66d5d4c346 ← google/fnet-base@d89b6fad3cf5384848b783dc480f9685f49d008c · FNetForPreTraining · random weights

+
Original83.5Mparameters
Fixture2.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

fnet.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
fnet.encoder.layer56.7M67.9%33.7K1.6%
fnet.embeddings25.6M30.6%2.1M96.6%
cls.predictions624.1K0.7%36.3K1.7%
fnet.pooler590.6K0.7%4.2K0.2%
cls.seq_relationship1.5K0.0%1300.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typefnetfnet✓ kept
modelvocab_size3200032000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_newgelu_new✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix FNet omitted).

ClassOriginalFixture
Linear299
LayerNorm266
Dropout133
NewGELUActivation133
BasicFourierTransform122
BasicOutput122
FourierTransform122
Intermediate122
Layer122
Output122
Embedding33
Embeddings11
Encoder11
ForPreTraining11
LMPredictionHead11
Model11
Pooler11
PreTrainingHeads11
PredictionHeadTransform11
ModuleList11
Tanh11

Config changes

3 fields changed, 25 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/gemma-2-2b-it-mic.html b/shrink/gemma-2-2b-it-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b1eb4b85463874281129a3e83eda961e67674f9d --- /dev/null +++ b/shrink/gemma-2-2b-it-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gemma-2-2b-it-mic@e3af84449295759dc428e54735fc829837f32d81 ← google/gemma-2-2b-it@299a8560bedf22ed1c72a8a11e7dce4a7f9f51f8 · Gemma2ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original2.6Bparameters
Fixture16.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 26
Fixture · 2
KindOriginalFixture
sliding_attention131✓ kept
full_attention131✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.0B77.4%74.2K0.5%
model.embed_tokens589.8M22.6%16.4M99.5%
model.norm2.3K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (8 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegemma2gemma2✓ kept
modelvocab_size256000256000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Gemma2 omitted).

ClassOriginalFixture
Linear18315
RMSNorm1059
GELUTanh262
Attention262
DecoderLayer262
MLP262
ForCausalLM11
Model11
RotaryEmbedding11
TextScaledWordEmbedding11
ModuleList11

Config changes

7 fields changed, 29 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size230464
intermediate_size9216128
layer_types26 entries: 13× sliding_attention, 13× full_attention["sliding_attention", "full_attention"]
num_attention_heads84
num_hidden_layers262
num_key_value_heads42
+
\ No newline at end of file diff --git a/shrink/gemma-2b-mic.html b/shrink/gemma-2b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1e377fe171b87006277293aa2e277bf5d5e969d2 --- /dev/null +++ b/shrink/gemma-2b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gemma-2b-mic@7ce6a0c1274da42dd2eb5c07e703e6198b444783 ← google/gemma-2b@9cf48e52b224239de00d483ec8eb84fb8d0f3a3a · GemmaForCausalLM · random weights

+
Original2.5Bparameters
Fixture16.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 18
Fixture · 2
KindOriginalFixture
DecoderLayer182✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.0B79.1%69.9K0.4%
model.embed_tokens524.3M20.9%16.4M99.6%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMQA (8 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegemmagemma✓ kept
modelvocab_size256000256000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Gemma omitted).

ClassOriginalFixture
Linear12715
RMSNorm375
GELUTanh182
Attention182
DecoderLayer182
MLP182
ForCausalLM11
Model11
RotaryEmbedding11
TextScaledWordEmbedding11
ModuleList11

Config changes

5 fields changed, 24 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size204864
intermediate_size16384128
num_attention_heads84
num_hidden_layers182
+
\ No newline at end of file diff --git a/shrink/gemma-3n-E2B-it-mic.html b/shrink/gemma-3n-E2B-it-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..2f17c10c11a8b5893413abeea5c0434a2eb56e39 --- /dev/null +++ b/shrink/gemma-3n-E2B-it-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gemma-3n-E2B-it-mic@bd78bb3f74709093f27ded6bdf0d329ffcf01493 ← google/gemma-3n-E2B-it@5e092ebca197cdcd8d8b195040accf22693501bc · Gemma3nForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original5.4Bparameters
Fixture581.1Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.language_model.layers

Original · 30
Fixture · 4
KindOriginalFixture
sliding_attention242✓ kept
full_attention62✓ kept

model.audio_tower.conformer

Original · 12
Fixture · 12
KindOriginalFixture
AudioConformerBlock1212✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model2.6B47.8%285.3M49.1%
model.language_model.layers1.8B34.0%306.6K0.1%
model.audio_tower.conformer679.7M12.5%1.2M0.2%
model.vision_tower294.1M5.4%294.1M50.6%
model.embed_vision4.5M0.1%12.4K0.0%
model.embed_audio3.3M0.1%12.4K0.0%
model.audio_tower1.6M0.0%103.7K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegemma3ngemma3n✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (8 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configmodel_typegemma3n_textgemma3n_text✓ kept
text_configvocab_size262400262400✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings3276832768✓ kept
vision_configmodel_typegemma3n_visiongemma3n_vision✓ kept
vision_configvocab_size128128✓ kept
audio_configmodel_typegemma3n_audiogemma3n_audio✓ kept
audio_configvocab_size128128✓ kept

Module classes

Instances of each class in the built model (prefix Gemma3n omitted).

ClassOriginalFixture
Linear543195
Identity525525
RMSNorm396152
Conv2d251251
RmsNormAct2d155155
Sequential137137
ConvNormAct116116
LayerScale2d8181
Dropout6666
GELUTanh608
GELU5656
UniversalInvertedResidual4949
Conv2dSame3333
MobileAttention3333
MultiQueryAttention2d3333
TextAltUp304
TextAttention304
TextDecoderLayer304
TextLaurelBlock304
TextMLP304
RmsNorm2d2929
AudioConformerFeedForward2424
Conv1d1212
AudioAttention1212
AudioConformerAttention1212
AudioConformerBlock1212
AudioConformerLightConv1d1212
AudioRelativePositionEmbedding1212
ModuleList44
EdgeResidual33
Embedding22
AudioCumulativeGroupNorm22
AudioSSCPConvBlock22
MultimodalEmbedder22
TextScaledWordEmbedding22
ReLU22
AudioEncoder11
AudioSubSampleConvProjection11
ForConditionalGeneration11
Model11
RotaryEmbedding11
TextModel11
MobileNetV5Encoder11
MobileNetV5MultiScaleFusionAdapter11
TimmWrapperModel11

Config changes

10 fields changed, 96 unchanged.

FieldOriginalFixture
audio_config.hidden_size153664
text_config.activation_sparsity_pattern30 entries: 20× 0.0, 10× 0.95[0.95, 0.95, 0.0, 0.0]
text_config.head_dim25616
text_config.hidden_size204864
text_config.intermediate_size30 entries: 30× 8192[128, 128, 128, 128]
text_config.layer_types30 entries: 24× sliding_attention, 6× full_attention["sliding_attention", "full_attention", "sliding_attention", "full_attention"]
text_config.num_attention_heads84
text_config.num_hidden_layers304
text_config.num_kv_shared_layers102
vision_config.hidden_size204864
+
\ No newline at end of file diff --git a/shrink/gemma-4-12B-it-mic.html b/shrink/gemma-4-12B-it-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..eef052cef266a8836dd2abda5facc49bad800fa3 --- /dev/null +++ b/shrink/gemma-4-12B-it-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gemma-4-12B-it-mic@a190e22989d3fddef2c51348c8b282c409c20dc3 ← google/gemma-4-12B-it@707f0a3b8a3c7ad586ed01e27eafbad8a27dd0f7 · Gemma4UnifiedForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original12.0Bparameters
Fixture52.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.language_model.layers

Original · 48
Fixture · 2
KindOriginalFixture
sliding_attention401✓ kept
full_attention81✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers10.9B91.1%357.9K0.7%
model.language_model1.0B8.4%16.8M31.9%
model.embed_vision49.9M0.4%35.4M67.3%
model.embed_audio2.5M0.0%41.0K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegemma4_unifiedgemma4_unified✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configmodel_typegemma4_unified_textgemma4_unified_text✓ kept
text_configvocab_size262144262144✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings262144262144✓ kept
vision_configmodel_typegemma4_unified_visiongemma4_unified_vision✓ kept
vision_configpatch_size1616✓ kept
audio_configmodel_typegemma4_unified_audiogemma4_unified_audio✓ kept

Module classes

Instances of each class in the built model (prefix Gemma4Unified omitted).

ClassOriginalFixture
RMSNorm33917
Linear33217
GELUTanh482
TextAttention482
TextDecoderLayer482
TextMLP482
LayerNorm33
MultimodalEmbedder22
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
TextScaledWordEmbedding11
VisionEmbedder11
ModuleList11

Config changes

16 fields changed, 82 unchanged.

FieldOriginalFixture
text_config.head_dim25616
text_config.hidden_size384064
text_config.intermediate_size15360128
text_config.layer_types48 entries: 40× sliding_attention, 8× full_attention["sliding_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers482
text_config.num_key_value_heads82
text_config.per_layer_config.05{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.1—{"head_dim": 512, "num_key_value_heads": 1}
text_config.per_layer_config.11{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.17{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.23{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.29{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.35{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.41{"head_dim": 512, "num_key_value_heads": 1}—
text_config.per_layer_config.47{"head_dim": 512, "num_key_value_heads": 1}—
+
\ No newline at end of file diff --git a/shrink/gemma-4-E2B-it-mic.html b/shrink/gemma-4-E2B-it-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..58bced955280ab819bd00832bf014a7859361fda --- /dev/null +++ b/shrink/gemma-4-E2B-it-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gemma-4-E2B-it-mic@633dbd103d5cfb02c5946a85c614858cabd17053 ← google/gemma-4-E2B-it@3e22461f65e89153144f8adb70e3b8c2cc9845a7 · Gemma4ForConditionalGeneration · random weights

+
Original5.1Bparameters
Fixture288.1Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 16
Fixture · 2
KindOriginalFixture
VisionEncoderLayer162✓ kept

model.language_model.layers

Original · 35
Fixture · 4
KindOriginalFixture
sliding_attention282✓ kept
full_attention72✓ kept

model.audio_tower.layers

Original · 12
Fixture · 2
KindOriginalFixture
AudioLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model2.8B54.2%285.3M99.0%
model.language_model.layers1.9B36.5%889.6K0.3%
model.audio_tower.layers302.2M5.9%198.4K0.1%
model.vision_tower.encoder.layers151.0M3.0%82.5K0.0%
model.vision_tower16.3M0.3%1.4M0.5%
model.audio_tower2.7M0.1%203.6K0.1%
model.embed_audio2.4M0.0%98.3K0.0%
1 others1.2M0.0%4.1K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegemma4gemma4✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleMQA (8 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
text_configmodel_typegemma4_textgemma4_text✓ kept
text_configvocab_size262144262144✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings131072131072✓ kept
vision_configattention styleMHA (12 heads, 12 KV)MHA (4 heads, 4 KV)✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typegemma4_visiongemma4_vision✓ kept
vision_configmax_position_embeddings131072131072✓ kept
vision_configpatch_size1616✓ kept
audio_configmodel_typegemma4_audiogemma4_audio✓ kept
audio_confighidden_actsilusilu✓ kept

Module classes

Instances of each class in the built model (prefix Gemma4 omitted).

ClassOriginalFixture
Linear52675
RMSNorm46464
ClippableLinear23234
GELUTanh8610
SiLUActivation366
TextAttention354
TextDecoderLayer354
TextMLP354
AudioFeedForward244
VisionAttention162
VisionEncoderLayer162
VisionMLP162
AudioAttention122
AudioCausalConv1d122
AudioLayer122
AudioLightConv1d122
ModuleList33
Conv2d22
AudioSubSampleConvProjectionLayer22
MultimodalEmbedder22
TextScaledWordEmbedding22
LayerNorm22
ReLU22
AudioModel11
AudioRelPositionalEncoding11
AudioSubSampleConvProjection11
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
VisionEncoder11
VisionModel11
VisionPatchEmbedder11
VisionPooler11
VisionRotaryEmbedding11

Config changes

25 fields changed, 102 unchanged.

FieldOriginalFixture
audio_config.hidden_size102464
audio_config.num_attention_heads84
audio_config.num_hidden_layers122
text_config.head_dim25616
text_config.hidden_size153664
text_config.intermediate_size6144128
text_config.layer_types35 entries: 28× sliding_attention, 7× full_attention["sliding_attention", "full_attention", "sliding_attention", "full_attention"]
text_config.num_attention_heads84
text_config.num_hidden_layers354
text_config.num_kv_shared_layers202
text_config.per_layer_config.04{"head_dim": 512}—
text_config.per_layer_config.09{"head_dim": 512}—
text_config.per_layer_config.1—{"head_dim": 512}
text_config.per_layer_config.14{"head_dim": 512}—
text_config.per_layer_config.19{"head_dim": 512}—
text_config.per_layer_config.24{"head_dim": 512}—
text_config.per_layer_config.29{"head_dim": 512}—
text_config.per_layer_config.3—{"head_dim": 512}
text_config.per_layer_config.34{"head_dim": 512}—
vision_config.head_dim6416
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers162
vision_config.num_key_value_heads124
+
\ No newline at end of file diff --git a/shrink/gemma3-mic.html b/shrink/gemma3-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..fb6d4c038ab2baa1bac305c4196fb5c178e236aa --- /dev/null +++ b/shrink/gemma3-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gemma3-mic@97b8077b83d60421590191ff1d19535224e77dce ← google/gemma-3-4b-it@093f9f388b31de276ce2de164bdc2081324b9767 · Gemma3ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original4.3Bparameters
Fixture17.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
SiglipEncoderLayer272✓ kept

model.language_model.layers

Original · 34
Fixture · 2
KindOriginalFixture
sliding_attention291✓ kept
full_attention51✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers3.2B74.6%74.3K0.4%
model.language_model671.3M15.6%16.8M97.4%
model.vision_tower.encoder.layers411.5M9.6%66.9K0.4%
model.vision_tower5.4M0.1%300.0K1.7%
model.multi_modal_projector3.0M0.1%4.2K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegemma3gemma3✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (8 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
text_configmodel_typegemma3_textgemma3_text✓ kept
text_configvocab_size262208262208✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings131072131072✓ kept
vision_configmodel_typesiglip_vision_modelsiglip_vision_model✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size896896✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Gemma3 omitted).

ClassOriginalFixture
Linear40127
RMSNorm20614
GELUTanh614
LayerNorm555
Attention342
DecoderLayer342
MLP342
SiglipAttention272
SiglipEncoderLayer272
SiglipMLP272
ModuleList22
AvgPool2d11
Conv2d11
Embedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
RotaryEmbedding11
TextModel11
TextScaledWordEmbedding11
SiglipEncoder11
SiglipVisionEmbeddings11
SiglipVisionModel11

Config changes

11 fields changed, 60 unchanged.

FieldOriginalFixture
text_config.head_dim25616
text_config.hidden_size256064
text_config.intermediate_size10240128
text_config.layer_types34 entries: 29× sliding_attention, 5× full_attention["sliding_attention", "full_attention"]
text_config.num_attention_heads84
text_config.num_hidden_layers342
text_config.num_key_value_heads42
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
+
\ No newline at end of file diff --git a/shrink/got_ocr2-mic.html b/shrink/got_ocr2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b6330eaf5661fc0ca6294c75e588a05eca4496d5 --- /dev/null +++ b/shrink/got_ocr2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/got_ocr2-mic@5bfaf853e15a6fdf1c253e1368b81df3ed528ab5 ← stepfun-ai/GOT-OCR-2.0-hf@d3017ef2c2c1395888c8d635c5e0508bcb0ac78d · GotOcr2ForConditionalGeneration · overfit weights · built before the shrink rule (no recorded recipe)

+
Original560.5Mparameters
Fixture13.0Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.layers

Original · 12
Fixture · 2
KindOriginalFixture
MLPBlock122✓ kept

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers308.4M55.0%82.6K0.6%
model.language_model155.5M27.7%9.7M74.6%
model.vision_tower.layers85.1M15.2%828.2K6.4%
model.multi_modal_projector6.9M1.2%1.5M11.4%
model.vision_tower4.5M0.8%918.6K7.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegot_ocr2got_ocr2✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typegot_ocr2_visiongot_ocr2_vision✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size10241024✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept
text_configattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size151860151860✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix GotOcr2 omitted).

ClassOriginalFixture
Linear21824
Qwen2RMSNorm495
LayerNorm244
Qwen2Attention242
Qwen2DecoderLayer242
Qwen2MLP242
SiLUActivation242
GELUActivation122
MLPBlock122
VisionAttention122
VisionLayer122
Conv2d55
LayerNorm22
ModuleList22
Embedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
PatchEmbeddings11
VisionEncoder11
VisionNeck11
Qwen2Model11
Qwen2RotaryEmbedding11

Config changes

9 fields changed, 60 unchanged.

FieldOriginalFixture
text_config.hidden_size102464
text_config.intermediate_size2816128
text_config.layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers242
text_config.num_key_value_heads164
vision_config.hidden_size76864
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/gpt2-mic.html b/shrink/gpt2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f224fe762bb8393eb12e210e5d9d47ec3299587c --- /dev/null +++ b/shrink/gpt2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gpt2-mic@0168ed11cf4c9161437d47f144bdf52cdfeddd20 ← openai-community/gpt2@607a30d783dfa663caf39e06633721c8d4cfcd7e · GPT2LMHeadModel · random weights · built before the shrink rule (no recorded recipe)

+
Original124.4Mparameters
Fixture3.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

transformer.h

Original · 12
Fixture · 2
KindOriginalFixture
GPT2Block122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
transformer.h85.1M68.3%100.0K3.0%
transformer.wte38.6M31.0%3.2M95.1%
transformer.wpe786.4K0.6%65.5K1.9%
transformer.ln_f1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegpt2gpt2✓ kept
modelvocab_size5025750257✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix GPT2LMHead omitted).

ClassOriginalFixture
Conv1D488
Dropout377
LayerNorm255
GPT2Attention122
GPT2Block122
GPT2MLP122
NewGELUActivation122
Embedding22
Model11
GPT2Model11
Linear11
ModuleList11

Config changes

3 fields changed, 34 unchanged.

FieldOriginalFixture
n_embd76864
n_head124
n_layer122
+
\ No newline at end of file diff --git a/shrink/gpt_oss-mic.html b/shrink/gpt_oss-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d6c621519e8ecb3e9ca0ad152e11fcf0972f3847 --- /dev/null +++ b/shrink/gpt_oss-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/gpt_oss-mic@8fea014b7848db31a7032015195dc9b6947e63e2 ← openai/gpt-oss-20b@6cee5e81ee83917806bbde320786a8fb61efebee · GptOssForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original20.9Bparameters
Fixture26.0Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
sliding_attention121✓ kept
full_attention121✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers19.8B94.5%224.9K0.9%
model.embed_tokens579.1M2.8%12.9M49.6%
lm_head579.1M2.8%12.9M49.6%
model.norm2.9K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (64 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-4 of 32 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typegpt_ossgpt_oss✓ kept
modelvocab_size201088201088✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix GptOss omitted).

ClassOriginalFixture
Linear979
RMSNorm495
Attention242
DecoderLayer242
Experts242
MLP242
TopKRouter242
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

10 fields changed, 29 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size288064
intermediate_size2880128
layer_types24 entries: 12× sliding_attention, 12× full_attention["sliding_attention", "full_attention"]
num_attention_heads644
num_experts_per_tok42
num_hidden_layers242
num_key_value_heads82
num_local_experts324
quantization_config{"modules_to_not_convert": ["model.layers.*.self_attn", "model.layers.*.mlp.r…null
+
\ No newline at end of file diff --git a/shrink/granite-3.0-1b-a400m-instruct-mic.html b/shrink/granite-3.0-1b-a400m-instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..dff7523263bfdcf620b8ab1d9c6ffe86d33cb977 --- /dev/null +++ b/shrink/granite-3.0-1b-a400m-instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/granite-3.0-1b-a400m-instruct-mic@94e400b500716487cbda1a86a26a33f232758f04 ← ibm-granite/granite-3.0-1b-a400m-instruct@ffec3c35bdfd97a06f0b4cd5fcc92cd9b1584445 · GraniteMoeForCausalLM · random weights

+
Original1.3Bparameters
Fixture3.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers1.3B96.2%222.0K6.6%
model.embed_tokens50.3M3.8%3.1M93.4%
model.norm1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (16 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-8 of 32 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegranitemoegranitemoe✓ kept
modelvocab_size4915549155✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix GraniteMoe omitted).

ClassOriginalFixture
Linear979
RMSNorm495
Attention242
DecoderLayer242
Experts242
MoE242
TopKRouter242
SiLUActivation242
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

7 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_size102464
intermediate_size512128
num_attention_heads164
num_experts_per_tok82
num_hidden_layers242
num_key_value_heads82
num_local_experts324
+
\ No newline at end of file diff --git a/shrink/granite-3.1-2b-instruct-mic.html b/shrink/granite-3.1-2b-instruct-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9c85849bd0f880618b8d046fa4f28c906d8fa093 --- /dev/null +++ b/shrink/granite-3.1-2b-instruct-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/granite-3.1-2b-instruct-mic@fa907c0d3e051d2f91f3a595f80bc9b97a72fccf ← ibm-granite/granite-3.1-2b-instruct@bbc2aed595bd38bd770263dc3ab831db9794441d · GraniteForCausalLM · random weights

+
Original2.5Bparameters
Fixture3.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 40
Fixture · 2
KindOriginalFixture
DecoderLayer402✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.4B96.0%74.0K2.3%
model.embed_tokens100.7M4.0%3.1M97.7%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegranitegranite✓ kept
modelvocab_size4915549155✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Granite omitted).

ClassOriginalFixture
Linear28115
RMSNorm815
Attention402
DecoderLayer402
MLP402
SiLUActivation402
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

5 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size8192128
num_attention_heads324
num_hidden_layers402
num_key_value_heads82
+
\ No newline at end of file diff --git a/shrink/granite-4.0-1b-speech-mic.html b/shrink/granite-4.0-1b-speech-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..bcabce79aade033a92bf61dc60f370e454af710b --- /dev/null +++ b/shrink/granite-4.0-1b-speech-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/granite-4.0-1b-speech-mic@15329050e1ffa3cdc15c7448cc320dc19106dff7 ← ibm-granite/granite-4.0-1b-speech@bd87ab862416353633ea431fe49b1614003623c5 · GraniteSpeechForConditionalGeneration · random weights

+
Original2.3Bparameters
Fixture14.7Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 16
Fixture · 2
KindOriginalFixture
ConformerBlock162✓ kept

model.projector.qformer.encoder.layer

Original · 2
Fixture · 2
KindOriginalFixture
Blip2QFormerLayer22✓ kept

model.language_model.layers

Original · 40
Fixture · 2
KindOriginalFixture
GraniteDecoderLayer402✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers1.4B61.7%74.0K0.5%
model.encoder.layers439.3M19.0%1.5M10.4%
model.language_model205.5M8.9%6.4M43.8%
lm_head205.5M8.9%6.4M43.8%
model.projector.qformer.encoder.layer33.6M1.5%116.9K0.8%
model.projector2.1M0.1%4.5K0.0%
model.encoder878.9K0.0%110.2K0.8%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegranite_speechgranite_speech✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
text_configattention styleGQA (16 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typegranitegranite✓ kept
text_configvocab_size100353100353✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings40964096✓ kept
encoder_configmodel_typegranite_speech_encodergranite_speech_encoder✓ kept
projector_configmodel_typeblip_2_qformerblip_2_qformer✓ kept
projector_configvocab_size3052230522✓ kept
projector_confighidden_actgelugelu✓ kept
projector_configmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix GraniteSpeech omitted).

ClassOriginalFixture
Linear41753
LayerNorm8717
GraniteRMSNorm815
Dropout7115
Conv1d486
SiLU486
GraniteAttention402
GraniteDecoderLayer402
GraniteMLP402
SiLUActivation402
ConformerFeedForward324
Embedding173
BatchNorm1d162
GLU162
ConformerAttention162
ConformerBlock162
ConformerConvModule162
ConformerDepthWiseConv1d162
Blip2QFormerAttention44
Blip2QFormerMultiHeadAttention44
Blip2QFormerSelfOutput44
ModuleList33
Blip2QFormerIntermediate22
Blip2QFormerLayer22
Blip2QFormerOutput22
GELUActivation22
Blip2QFormerEncoder11
Blip2QFormerModel11
GraniteModel11
GraniteRotaryEmbedding11
CTCEncoder11
EncoderProjector11
ForConditionalGeneration11
Model11

Config changes

12 fields changed, 82 unchanged.

FieldOriginalFixture
encoder_config.hidden_dim1024128
encoder_config.num_heads84
encoder_config.num_layers162
projector_config.encoder_hidden_size1024128
projector_config.hidden_size102464
projector_config.intermediate_size4096128
projector_config.num_attention_heads164
text_config.hidden_size204864
text_config.intermediate_size4096128
text_config.num_attention_heads164
text_config.num_hidden_layers402
text_config.num_key_value_heads42
+
\ No newline at end of file diff --git a/shrink/granite-4.0-h-350m-mic.html b/shrink/granite-4.0-h-350m-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..41c6bdece42772da3827d55a35af75582e549044 --- /dev/null +++ b/shrink/granite-4.0-h-350m-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/granite-4.0-h-350m-mic@83dded3d062dd73ed2432e033e86c43d784a5b92 ← ibm-granite/granite-4.0-h-350m@3b17b717b8f2f5d305b0a92c1491e239aeda19c8 · GraniteMoeHybridForCausalLM · random weights

+
Original340.3Mparameters
Fixture6.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
linear_attention, Conv1d, MambaLayer …281✓ kept
is_causal=True, Attention41✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers263.3M77.4%89.8K1.4%
model.embed_tokens77.1M22.6%6.4M98.6%
model.norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (12 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegranitemoehybridgranitemoehybrid✓ kept
modelvocab_size100352100352✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix GraniteMoeHybrid omitted).

ClassOriginalFixture
Linear13711
RMSNorm655
SiLUActivation603
DecoderLayer322
MLP322
Conv1d281
MambaLayer281
RMSNormGated281
Attention41
Embedding11
ForCausalLM11
Model11
ModuleList11

Config changes

11 fields changed, 39 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size2048128
layer_types32 entries: 28× linear_attention, 4× full_attention["linear_attention", "full_attention"]
mamba_chunk_size2568
mamba_d_head3216
mamba_d_state12816
mamba_n_heads488
num_attention_heads124
num_hidden_layers322
num_key_value_heads42
shared_intermediate_size2048128
+
\ No newline at end of file diff --git a/shrink/granite-docling-258M-mic.html b/shrink/granite-docling-258M-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..580e5b01d8744daf3e50a4a982c28f717f09f151 --- /dev/null +++ b/shrink/granite-docling-258M-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/granite-docling-258M-mic@100175103449d7ed8e24b4d0cbd79e15671b781c ← ibm-granite/granite-docling-258M@982fe3b40f2fa73c365bdb1bcacf6c81b7184bfe · Idefics3ForConditionalGeneration · random weights

+
Original257.5Mparameters
Fixture6.7Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

model.text_model.layers

Original · 30
Fixture · 2
KindOriginalFixture
LlamaDecoderLayer302✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.text_model.layers106.2M41.2%74.0K1.1%
model.vision_model.encoder.layers85.1M33.0%66.9K1.0%
model.text_model57.8M22.4%6.4M95.2%
model.connector7.1M2.7%65.5K1.0%
model.vision_model1.4M0.5%114.9K1.7%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeidefics3idefics3✓ kept
modelvocab_size100352100352✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typeidefics3_visionidefics3_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size512512✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (9 heads, 3 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typellamallama✓ kept
text_configvocab_size100352100352✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Idefics3 omitted).

ClassOriginalFixture
Linear28428
LlamaRMSNorm615
LlamaAttention302
LlamaDecoderLayer302
LlamaMLP302
SiLUActivation302
LayerNorm255
GELUTanh122
EncoderLayer122
VisionAttention122
VisionMLP122
Embedding22
ModuleList22
Conv2d11
Connector11
Encoder11
ForConditionalGeneration11
Model11
SimpleMLP11
VisionEmbeddings11
VisionTransformer11
LlamaModel11
LlamaRotaryEmbedding11

Config changes

10 fields changed, 59 unchanged.

FieldOriginalFixture
text_config.head_dim6416
text_config.hidden_size57664
text_config.intermediate_size1536128
text_config.num_attention_heads94
text_config.num_hidden_layers302
text_config.num_key_value_heads32
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/granite-vision-4.1-4b-mic.html b/shrink/granite-vision-4.1-4b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b8c0dabce39859153d47819d3c29ca64957ac993 --- /dev/null +++ b/shrink/granite-vision-4.1-4b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/granite-vision-4.1-4b-mic@a6d32301c1b54aa5ef889d46d64998c1fb01c7df ← ibm-granite/granite-vision-4.1-4b@37d591f06319e8f1638b5adcf58bdf50e0f84f7a · Granite4VisionForConditionalGeneration · random weights

+
Original4.0Bparameters
Fixture7.2Mparameters
Layer stacks4compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
SiglipEncoderLayer272✓ kept

model.language_model.layers

Original · 40
Fixture · 2
KindOriginalFixture
TextDecoderLayer402✓ kept

model.layerwise_projectors

Original · 4
Fixture · 4
KindOriginalFixture
Blip2QFormerLayer44✓ kept

model.spatial_projectors

Original · 4
Fixture · 4
KindOriginalFixture
Blip2QFormerLayer44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers3.1B78.7%74.0K1.0%
model.vision_tower.encoder.layers411.5M10.3%66.9K0.9%
model.language_model256.9M6.4%6.4M89.7%
model.spatial_projectors83.1M2.1%239.1K3.3%
model.layerwise_projectors83.1M2.1%239.1K3.3%
model.vision_tower16.8M0.4%119.6K1.7%
model2.6K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegranite4_visiongranite4_vision✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typesiglip_vision_modelsiglip_vision_model✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size384384✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (40 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typegranitegranite✓ kept
text_configvocab_size100352100352✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept
qformer_configmodel_typeblip_2_qformerblip_2_qformer✓ kept
qformer_configvocab_size3052230522✓ kept
qformer_confighidden_actgelugelu✓ kept
qformer_configmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Granite4Vision omitted).

ClassOriginalFixture
Linear533117
LayerNorm9646
TextRMSNorm815
Dropout4040
TextAttention402
TextDecoderLayer402
TextMLP402
SiLUActivation402
GELUTanh283
SiglipMLP283
SiglipAttention272
SiglipEncoderLayer272
Blip2QFormerAttention1616
Blip2QFormerMultiHeadAttention1616
Blip2QFormerSelfOutput1616
ModuleList1212
Blip2QFormerEncoder88
Blip2QFormerIntermediate88
Blip2QFormerLayer88
Blip2QFormerModel88
Blip2QFormerOutput88
GELUActivation88
WindowQFormerDownsampler88
Embedding22
Conv2d11
ForConditionalGeneration11
Model11
TextModel11
TextRotaryEmbedding11
MultiheadAttention11
NonDynamicallyQuantizableLinear11
SiglipEncoder11
SiglipMultiheadAttentionPoolingHead11
SiglipVisionEmbeddings11
SiglipVisionModel11

Config changes

15 fields changed, 86 unchanged.

FieldOriginalFixture
deepstack_layer_map[[-19, 9], [-13, 6], [-7, 3], [-1, 0]][[-3, 0], [-2, 0], [-2, 0], [-1, 0]]
qformer_config.encoder_hidden_size115264
qformer_config.hidden_size115264
qformer_config.intermediate_size3072128
qformer_config.num_attention_heads181
spatial_target_layers[12, 15, 18, 21][0, 1]
text_config.hidden_size256064
text_config.intermediate_size8192128
text_config.num_attention_heads404
text_config.num_hidden_layers402
text_config.num_key_value_heads82
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
+
\ No newline at end of file diff --git a/shrink/grounding-dino-tiny-mic.html b/shrink/grounding-dino-tiny-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ec55da07e3f7ceaecfc57368f75bdd7863e314f6 --- /dev/null +++ b/shrink/grounding-dino-tiny-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/grounding-dino-tiny-mic@fb35353454540cd677db5cdcf3df93a1b60cca4a ← IDEA-Research/grounding-dino-tiny@a2bb814dd30d776dcf7e30523b00659f4f141c71 · GroundingDinoForObjectDetection · random weights · built before the shrink rule (no recorded recipe)

+
Original172.3Mparameters
Fixture7.7Mparameters
Layer stacks7compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.backbone.conv_encoder.model.swin.encoder.layers

Original · 4
Fixture · 4
KindOriginalFixture
SwinPatchMerging33✓ kept
no SwinPatchMerging11✓ kept

model.input_proj_vision

Original · 4
Fixture · 4
KindOriginalFixture
Conv2d44✓ kept

model.text_backbone.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
BertLayer122✓ kept

model.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
FusionLayer62✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

model.decoder.bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.text_backbone.encoder.layer85.1M49.4%66.9K0.9%
model.backbone.conv_encoder.model.swin.encoder.layers27.5M16.0%4.9M63.4%
model.text_backbone23.8M13.8%2.0M25.7%
model.encoder.layers21.9M12.7%176.4K2.3%
model.decoder.layers10.9M6.3%142.3K1.8%
model.input_proj_vision2.1M1.2%353.0K4.6%
model.query_position_embeddings230.4K0.1%57.6K0.7%
8 others736.2K0.4%44.5K0.6%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegrounding-dinogrounding-dino✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
backbone_configmodel_typeswinswin✓ kept
backbone_confighidden_actgelugelu✓ kept
backbone_configimage_size224224✓ kept
backbone_configpatch_size44✓ kept
backbone_confignum_channels33✓ kept
text_configmodel_typebertbert✓ kept
text_configvocab_size3052230522✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actgelugelu✓ kept
text_configmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix GroundingDino omitted).

ClassOriginalFixture
Linear382122
LayerNorm11943
Dropout6818
ModuleList2618
GELUActivation246
MultiheadAttention186
ReLU186
MLPPredictionHead146
BertAttention122
BertIntermediate122
BertLayer122
BertOutput122
BertSelfAttention122
BertSelfOutput122
MultiscaleDeformableAttention124
MultiScaleDeformableAttention124
SwinAttention124
SwinLayer124
SwinMLP124
SwinRelativePositionBias124
SwinDropPath113
ContrastiveEmbedding73
BiMultiHeadAttention62
DecoderLayer62
DeformableLayer62
DropPath62
EncoderLayer62
FusionLayer62
TextEnhancerLayer62
Conv2d55
Embedding44
GroupNorm44
Sequential44
SwinStage44
SwinPatchMerging33
BertEmbeddings11
BertEncoder11
BertModel11
ConvEncoder11
ConvModel11
Decoder11
Encoder11
ForObjectDetection11
Model11
SinePositionEmbedding11
Identity11
ModuleDict11
SwinBackbone11
SwinEmbeddings11
SwinEncoder11
SwinModel11
SwinPatchEmbeddings11

Config changes

16 fields changed, 91 unchanged.

FieldOriginalFixture
backbone_config.depths[2, 2, 6, 2][1, 1, 1, 1]
backbone_config.embed_dim9664
backbone_config.hidden_size76864
backbone_config.num_heads[3, 6, 12, 24][2, 4, 8, 16]
backbone_config.num_layers42
d_model25664
decoder_attention_heads84
decoder_ffn_dim2048128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim2048128
encoder_layers62
text_config.hidden_size76864
text_config.intermediate_size3072128
text_config.num_attention_heads124
text_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/hubert-large-ls960-ft-mic.html b/shrink/hubert-large-ls960-ft-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f4934d24388da3bfbab107a08beefd7c43f5e80b --- /dev/null +++ b/shrink/hubert-large-ls960-ft-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/hubert-large-ls960-ft-mic@5f4ea3f40f370b2a93c05c17a1ea550648a1d8b7 ← facebook/hubert-large-ls960-ft@ece5fabbf034c1073acae96d5401b25be96709d8 · HubertForCTC · overfit weights · built before the shrink rule (no recorded recipe)

+
Original315.5Mparameters
Fixture45.0Kparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

hubert.feature_extractor.conv_layers

Original · 7
Fixture · 7
KindOriginalFixture
LayerNormConvLayer77✓ kept

hubert.encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
Linear242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
hubert.encoder.layers302.3M95.8%17.1K38.0%
hubert.encoder8.4M2.7%8.3K18.5%
hubert.feature_extractor.conv_layers4.2M1.3%17.4K38.6%
hubert.feature_projection526.3K0.2%1.1K2.5%
lm_head32.8K0.0%1.1K2.3%
hubert1.0K0.0%320.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typehuberthubert✓ kept
modelvocab_size3232✓ kept
modelhidden_actgelugelu✓ kept

Module classes

Instances of each class in the built model (prefix Hubert omitted).

ClassOriginalFixture
Linear14614
Dropout759
LayerNorm5713
GELUActivation3210
Attention242
EncoderLayerStableLayerNorm242
FeedForward242
Conv1d77
LayerNormConvLayer77
ModuleList22
EncoderStableLayerNorm11
FeatureEncoder11
FeatureProjection11
ForCTC11
Model11
PositionalConvEmbedding11
SamePadLayer11
ModuleDict11
ParametrizationList11
ParametrizedConv1d11
_WeightNorm11

Config changes

7 fields changed, 46 unchanged.

FieldOriginalFixture
conv_dim7 entries: 7× 5127 entries: 7× 32
hidden_size102432
intermediate_size409664
num_attention_heads164
num_conv_pos_embedding_groups164
num_conv_pos_embeddings12832
num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/internvl-mic.html b/shrink/internvl-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d866be01dd0aeed19a19b4dc773611206e5747f1 --- /dev/null +++ b/shrink/internvl-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/internvl-mic@9bf394da9450b552cff318878bcdee131e669a91 ← OpenGVLab/InternVL3-1B-hf@014c0583a0d4bedf29fbe2dbff4f865eb998e171 · InternVLForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original802.3Mparameters
Fixture10.0Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layer

Original · 24
Fixture · 2
KindOriginalFixture
VisionLayer242✓ kept

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers357.9M44.6%74.2K0.7%
model.vision_tower.encoder.layer302.4M37.7%67.2K0.7%
model.language_model135.9M16.9%9.7M97.3%
model.multi_modal_projector4.5M0.6%21.1K0.2%
model.vision_tower1.7M0.2%103.4K1.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeinternvlinternvl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typeinternvl_visioninternvl_vision✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size[448, 448][448, 448]✓ kept
vision_configpatch_size[14, 14][14, 14]✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (14 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedynamicdynamic✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size151674151674✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix InternVL omitted).

ClassOriginalFixture
Linear31529
Identity737
LayerNorm495
Qwen2RMSNorm495
Dropout253
GELUActivation253
VisionAttention242
VisionLayer242
VisionMLP242
Qwen2Attention242
Qwen2DecoderLayer242
Qwen2MLP242
SiLUActivation242
ModuleList22
Conv2d11
Embedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
VisionEmbeddings11
VisionEncoder11
VisionModel11
VisionPatchEmbeddings11
Qwen2Model11
Qwen2RotaryEmbedding11

Config changes

9 fields changed, 68 unchanged.

FieldOriginalFixture
text_config.hidden_size89664
text_config.intermediate_size4864128
text_config.layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads144
text_config.num_hidden_layers242
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/jina-embeddings-v3-hf-mic.html b/shrink/jina-embeddings-v3-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..8915da9eb00119a472135c93e0e9e87be198ef9e --- /dev/null +++ b/shrink/jina-embeddings-v3-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/jina-embeddings-v3-hf-mic@7288a7adb5335fb7805f7c28ffa3efd588b8be67 ← jinaai/jina-embeddings-v3-hf@d18862d9a48706220815554fac3ebb4dfa46fc28 · JinaEmbeddingsV3Model · random weights

+
Original559.4Mparameters
Fixture16.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

layers

Original · 24
Fixture · 2
KindOriginalFixture
Layer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
layers302.3M54.0%66.9K0.4%
embeddings.word_embeddings256.0M45.8%16.0M99.6%
pooler.dense1.0M0.2%4.2K0.0%
embeddings.LayerNorm2.0K0.0%1280.0%
embeddings.token_type_embeddings1.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelRoPE typedefaultdefault✓ kept
modelmodel_typejina_embeddings_v3jina_embeddings_v3✓ kept
modelvocab_size250002250002✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings81948194✓ kept

Module classes

Instances of each class in the built model (prefix JinaEmbeddingsV3 omitted).

ClassOriginalFixture
Linear14513
Dropout495
LayerNorm495
GELUActivation242
Attention242
Layer242
MLP242
Embedding22
Embeddings11
Model11
Pooler11
RotaryEmbedding11
ModuleList11
Tanh11

Config changes

4 fields changed, 38 unchanged.

FieldOriginalFixture
hidden_size102464
intermediate_size4096128
num_attention_heads164
num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/language-perceiver-mic.html b/shrink/language-perceiver-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4c15f4e047e34c75869f55529ecdf898579c4be5 --- /dev/null +++ b/shrink/language-perceiver-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/language-perceiver-mic@6c70b7e085e8e6fd4544e720e75ea0e0cbdd438a ← deepmind/language-perceiver@47a1ba43d8198ea10cf9a158fce114953e9441a1 · PerceiverForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original201.1Mparameters
Fixture194.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

perceiver.encoder.self_attends

Original · 26
Fixture · 26
KindOriginalFixture
Layer2626✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
perceiver.encoder.self_attends187.7M93.3%187.7M96.7%
perceiver.encoder6.4M3.2%5.4M2.8%
perceiver.decoder4.9M2.4%572.9K0.3%
perceiver.input_preprocessor1.8M0.9%147.8K0.1%
perceiver.embeddings327.7K0.2%327.7K0.2%
embedding_decoder2620.0%2620.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeperceiverperceiver✓ kept
modelvocab_size262262✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings20482048✓ kept
modelimage_size5656✓ kept

Module classes

Instances of each class in the built model (prefix Perceiver omitted).

ClassOriginalFixture
Linear168168
LayerNorm5858
Dropout2828
GELUActivation2828
Identity2828
Attention2828
Layer2828
MLP2828
SelfAttention2828
SelfOutput2828
Embedding22
ModuleList11
BasicDecoder11
EmbeddingDecoder11
Embeddings11
Encoder11
ForMaskedLM11
Model11
TextPreprocessor11
TrainablePositionEncoding11

Config changes

1 fields changed, 35 unchanged.

FieldOriginalFixture
d_model76864
+
\ No newline at end of file diff --git a/shrink/layoutlm-base-uncased-mic.html b/shrink/layoutlm-base-uncased-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..518865d49dfd45901791914153268d30b67f0b31 --- /dev/null +++ b/shrink/layoutlm-base-uncased-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/layoutlm-base-uncased-mic@7aa363dd7f97db6248afc704386db78edea79ae6 ← microsoft/layoutlm-base-uncased@30e3cdd39c11f09757b0fcf7598533d05052acef · LayoutLMForMaskedLM · random weights

+
Original113.3Mparameters
Fixture2.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

layoutlm.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
layoutlm.encoder.layer85.1M75.1%66.9K2.8%
layoutlm.embeddings27.0M23.8%2.2M95.5%
cls.predictions622.6K0.5%34.8K1.5%
layoutlm.pooler590.6K0.5%4.2K0.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typelayoutlmlayoutlm✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix LayoutLM omitted).

ClassOriginalFixture
Linear7515
Dropout377
LayerNorm266
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding77
Embeddings11
Encoder11
ForMaskedLM11
LMPredictionHead11
Model11
OnlyMLMHead11
Pooler11
PredictionHeadTransform11
ModuleList11
Tanh11

Config changes

4 fields changed, 25 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/llama-mic.html b/shrink/llama-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..58c7cd961f5f9fd4cc6dec3a59f3351ddf316ff7 --- /dev/null +++ b/shrink/llama-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/llama-mic@8231ab98d1dd670f702753a80097b854fb5e91b5 ← HuggingFaceTB/SmolLM2-135M@93efa2f097d58c2a74874c7e644dbc9b0cee75a2 · LlamaForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original134.5Mparameters
Fixture3.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 30
Fixture · 2
KindOriginalFixture
DecoderLayer302✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers106.2M79.0%74.0K2.3%
model.embed_tokens28.3M21.0%3.1M97.7%
model.norm5760.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (9 heads, 3 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typellamallama✓ kept
modelvocab_size4915249152✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Llama omitted).

ClassOriginalFixture
Linear21115
RMSNorm615
Attention302
DecoderLayer302
MLP302
SiLUActivation302
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

6 fields changed, 26 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size57664
intermediate_size1536128
num_attention_heads94
num_hidden_layers302
num_key_value_heads32
+
\ No newline at end of file diff --git a/shrink/llava-mic.html b/shrink/llava-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..0040252a3a4a2726e009eb78841d19093e2ce5bb --- /dev/null +++ b/shrink/llava-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/llava-mic@dab442b1a1f407ad1083d0a1b5cf11dc99c02294 ← llava-hf/llava-1.5-7b-hf@b234b804b114d9e37bb655e11cbbb5f5e971b7a9 · LlavaForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original7.1Bparameters
Fixture4.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
CLIPEncoderLayer242✓ kept

model.language_model.layers

Original · 32
Fixture · 2
KindOriginalFixture
LlamaDecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers6.5B91.7%82.2K1.9%
model.vision_tower.encoder.layers302.3M4.3%66.9K1.5%
model.language_model131.3M1.9%2.1M47.3%
lm_head131.3M1.9%2.1M47.3%
model.multi_modal_projector21.0M0.3%8.3K0.2%
model.vision_tower1.2M0.0%74.9K1.7%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typellavallava✓ kept
modelvocab_size3206432064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
vision_configmodel_typeclip_vision_modelclip_vision_model✓ kept
vision_configvocab_size3200032000✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size336336✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typellamallama✓ kept
text_configvocab_size3206432064✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix Llava omitted).

ClassOriginalFixture
Linear37129
LlamaRMSNorm655
LayerNorm506
LlamaAttention322
LlamaDecoderLayer322
LlamaMLP322
SiLUActivation322
CLIPAttention242
CLIPEncoderLayer242
CLIPMLP242
QuickGELUActivation242
Embedding22
ModuleList22
CLIPEncoder11
CLIPVisionEmbeddings11
CLIPVisionModel11
Conv2d11
GELUActivation11
LlamaModel11
LlamaRotaryEmbedding11
ForConditionalGeneration11
Model11
MultiModalProjector11

Config changes

11 fields changed, 61 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size409664
text_config.intermediate_size11008128
text_config.num_attention_heads324
text_config.num_hidden_layers322
text_config.num_key_value_heads324
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
vision_config.projection_dim76832
+
\ No newline at end of file diff --git a/shrink/llava-onevision-qwen2-0.5b-ov-hf-mic.html b/shrink/llava-onevision-qwen2-0.5b-ov-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..711d257983e23ba0cd7525dc8085c66a7144e069 --- /dev/null +++ b/shrink/llava-onevision-qwen2-0.5b-ov-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/llava-onevision-qwen2-0.5b-ov-hf-mic@c8d8d3c952d7ba613a1c76b3eb2d1641b8fd053f ← llava-hf/llava-onevision-qwen2-0.5b-ov-hf@74dd0bf867a4cda7950c17663794267c60cf4b40 · LlavaOnevisionForConditionalGeneration · random weights

+
Original893.7Mparameters
Fixture10.0Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 26
Fixture · 2
KindOriginalFixture
SiglipEncoderLayer262✓ kept

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.vision_tower.encoder.layers396.2M44.3%66.9K0.7%
model.language_model.layers357.9M40.0%74.2K0.7%
model.language_model136.2M15.2%9.7M97.7%
model.multi_modal_projector1.8M0.2%8.3K0.1%
model.vision_tower1.5M0.2%84.5K0.8%
model8960.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typellava_onevisionllava_onevision✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typesiglip_vision_modelsiglip_vision_model✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size384384✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (14 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size152000152000✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix LlavaOnevision omitted).

ClassOriginalFixture
Linear32729
LayerNorm535
Qwen2RMSNorm495
GELUTanh262
SiglipAttention262
SiglipEncoderLayer262
SiglipMLP262
Qwen2Attention242
Qwen2DecoderLayer242
Qwen2MLP242
SiLUActivation242
Embedding22
ModuleList22
Conv2d11
GELUActivation11
ForConditionalGeneration11
Model11
MultiModalProjector11
Qwen2Model11
Qwen2RotaryEmbedding11
SiglipEncoder11
SiglipVisionEmbeddings11
SiglipVisionModel11

Config changes

9 fields changed, 61 unchanged.

FieldOriginalFixture
text_config.hidden_size89664
text_config.intermediate_size4864128
text_config.layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads144
text_config.num_hidden_layers242
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers262
+
\ No newline at end of file diff --git a/shrink/llava-v1.6-mistral-7b-hf-mic.html b/shrink/llava-v1.6-mistral-7b-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..7d67417ef6db69f92e4c14147d497db15a3b7d2a --- /dev/null +++ b/shrink/llava-v1.6-mistral-7b-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/llava-v1.6-mistral-7b-hf-mic@2575b1c20c7676e7707d37ef750132fd64d1fc03 ← llava-hf/llava-v1.6-mistral-7b-hf@2424fdd47412fccc66d91719126b420e9fbd7065 · LlavaNextForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original7.6Bparameters
Fixture4.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
CLIPEncoderLayer242✓ kept

model.language_model.layers

Original · 32
Fixture · 2
KindOriginalFixture
MistralDecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers7.0B92.2%74.0K1.7%
model.vision_tower.encoder.layers302.3M4.0%66.9K1.5%
model.language_model131.3M1.7%2.1M47.4%
lm_head131.3M1.7%2.1M47.4%
model.multi_modal_projector21.0M0.3%8.3K0.2%
model.vision_tower1.2M0.0%74.9K1.7%
model4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typellava_nextllava_next✓ kept
modelvocab_size3206432064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
vision_configmodel_typeclip_vision_modelclip_vision_model✓ kept
vision_configvocab_size3200032000✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size336336✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typemistralmistral✓ kept
text_configvocab_size3206432064✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

Instances of each class in the built model (prefix LlavaNext omitted).

ClassOriginalFixture
Linear37129
MistralRMSNorm655
LayerNorm506
MistralAttention322
MistralDecoderLayer322
MistralMLP322
SiLUActivation322
CLIPAttention242
CLIPEncoderLayer242
CLIPMLP242
QuickGELUActivation242
Embedding22
ModuleList22
CLIPEncoder11
CLIPVisionEmbeddings11
CLIPVisionModel11
Conv2d11
GELUActivation11
ForConditionalGeneration11
Model11
MultiModalProjector11
MistralModel11
MistralRotaryEmbedding11

Config changes

11 fields changed, 60 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size409664
text_config.intermediate_size14336128
text_config.num_attention_heads324
text_config.num_hidden_layers322
text_config.num_key_value_heads82
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
vision_config.projection_dim76864
+
\ No newline at end of file diff --git a/shrink/long-t5-tglobal-base-mic.html b/shrink/long-t5-tglobal-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..47259b441c2c222f3b9511d84c5cc7b40783571f --- /dev/null +++ b/shrink/long-t5-tglobal-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/long-t5-tglobal-base-mic@04d69ed32e31d0ce673622fa6832568a878efb1d ← google/long-t5-tglobal-base@aecb1376e5bd78db32ebc5c9deb257449b9e2b21 · LongT5ForConditionalGeneration · random weights

+
Original222.9Mparameters
Fixture2.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.block

Original · 12
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding111✓ kept

decoder.block

Original · 12
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding111✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
decoder.block113.3M50.8%115.2K5.1%
encoder.block85.0M38.1%82.6K3.7%
shared24.7M11.1%2.1M91.2%
encoder.final_layer_norm7680.0%640.0%
decoder.final_layer_norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typelongt5longt5✓ kept
modelvocab_size3212832128✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix LongT5 omitted).

ClassOriginalFixture
Linear21737
Dropout8616
LayerNorm7414
ModuleList266
Attention244
Block244
DenseGatedActDense244
LayerFF244
NewGELUActivation244
LayerCrossAttention122
LayerSelfAttention122
LayerTransientGlobalSelfAttention122
TransientGlobalAttention122
Embedding66
Stack22
ForConditionalGeneration11

Config changes

6 fields changed, 31 unchanged.

FieldOriginalFixture
d_ff2048128
d_kv6416
d_model76864
num_decoder_layers122
num_heads124
num_layers122
+
\ No newline at end of file diff --git a/shrink/longformer-base-4096-mic.html b/shrink/longformer-base-4096-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..78f48dcedb382268dc3c738f47850e39e109cda5 --- /dev/null +++ b/shrink/longformer-base-4096-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/longformer-base-4096-mic@5e8ae916a995900686949962df7210f7676e90fd ← allenai/longformer-base-4096@301e6a42cb0d9976a6d6a26a079fef81c18aa895 · LongformerForMaskedLM · random weights

+
Original148.7Mparameters
Fixture3.6Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

longformer.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
longformer.encoder.layer106.3M71.5%91.9K2.5%
longformer.embeddings41.8M28.1%3.5M96.0%
lm_head.dense590.6K0.4%4.2K0.1%
lm_head50.3K0.0%50.3K1.4%
lm_head.layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typelongformerlongformer✓ kept
modelvocab_size5026550265✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings40984098✓ kept

Module classes

Instances of each class in the built model (prefix Longformer omitted).

ClassOriginalFixture
Linear11020
LayerNorm266
Dropout255
GELUActivation122
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11
ModuleList11

Config changes

5 fields changed, 26 unchanged.

FieldOriginalFixture
attention_window12 entries: 12× 512[512, 512]
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/luke-base-mic.html b/shrink/luke-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..27dec0fefcd754da93c8646ee4c0b3a98fa03f38 --- /dev/null +++ b/shrink/luke-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/luke-base-mic@39d0a41c62c207695ca9fda87542f953dc1d0b56 ← studio-ousia/luke-base@7438924defd9f3c2018d63c16073bf4bcb6a70aa · LukeForMaskedLM · random weights

+
Original314.4Mparameters
Fixture135.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

luke.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
luke.entity_embeddings128.6M40.9%128.0M94.7%
luke.encoder.layer106.3M33.8%91.9K0.1%
luke.embeddings39.0M12.4%3.3M2.4%
lm_head.decoder38.6M12.3%3.2M2.4%
luke.pooler590.6K0.2%4.2K0.0%
lm_head.dense590.6K0.2%4.2K0.0%
entity_predictions500.0K0.2%500.0K0.4%
3 others249.2K0.1%67.5K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typelukeluke✓ kept
modelvocab_size5026750267✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

Instances of each class in the built model (prefix Luke omitted).

ClassOriginalFixture
Linear11424
Dropout388
LayerNorm288
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding66
CrossEntropyLoss11
EntityPredictionHead11
EntityPredictionHeadTransform11
Embeddings11
Encoder11
EntityEmbeddings11
ForMaskedLM11
LMHead11
Model11
Pooler11
ModuleList11
Tanh11

Config changes

4 fields changed, 29 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-mic.html b/shrink/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d3f1bf15da14a499799c07086e4f4267da127180 --- /dev/null +++ b/shrink/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7-mic@b088660049cbac11aedecd214c7612c0717f466c ← MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7@b5113eb38ab63efdd7f280f8c144ea8b13f978ce · DebertaV2ForSequenceClassification · overfit weights · built before the shrink rule (no recorded recipe)

+
Original278.8Mparameters
Fixture16.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

deberta.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
deberta.embeddings192.8M69.1%16.1M99.4%
deberta.encoder.layer85.1M30.5%66.9K0.4%
pooler.dense590.6K0.2%4.2K0.0%
deberta.encoder394.8K0.1%32.9K0.2%
classifier2.3K0.0%1950.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedeberta-v2deberta-v2✓ kept
modelvocab_size251000251000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix DebertaV2 omitted).

ClassOriginalFixture
Linear7414
Dropout5111
LayerNorm266
Attention122
Intermediate122
Layer122
Output122
SelfOutput122
DisentangledSelfAttention122
GELUActivation122
Embedding22
ContextPooler11
Embeddings11
Encoder11
ForSequenceClassification11
Model11
ModuleList11

Config changes

5 fields changed, 31 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
pooler_hidden_size76864
+
\ No newline at end of file diff --git a/shrink/mamba-130m-hf-mic.html b/shrink/mamba-130m-hf-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..be92ba4d4f582ce6690e1735958321b72eb02ce9 --- /dev/null +++ b/shrink/mamba-130m-hf-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mamba-130m-hf-mic@049c3bff1eb71679fcc5bf5ffcd2c99dc505f11b ← state-spaces/mamba-130m-hf@1e76775f628fbf1350fbe4dbb3d971ba64af25a1 · MambaForCausalLM · random weights

+
Original129.1Mparameters
Fixture3.3Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

backbone.layers

Original · 24
Fixture · 2
KindOriginalFixture
Block242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
backbone.layers90.5M70.1%87.9K2.7%
backbone.embeddings38.6M29.9%3.2M97.3%
backbone.norm_f7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemambamamba✓ kept
modelvocab_size5028050280✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept

Module classes

Instances of each class in the built model (prefix Mamba omitted).

ClassOriginalFixture
Linear979
RMSNorm253
Conv1d242
Block242
Mixer242
SiLUActivation242
Embedding11
ForCausalLM11
Model11
ModuleList11

Config changes

5 fields changed, 38 unchanged.

FieldOriginalFixture
d_model76864
hidden_size76864
intermediate_size1536128
n_layer242
num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/mask2former-swin-tiny-coco-instance-mic.html b/shrink/mask2former-swin-tiny-coco-instance-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f9bb51daebcc014e3cb45044902fc61626f6eb51 --- /dev/null +++ b/shrink/mask2former-swin-tiny-coco-instance-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mask2former-swin-tiny-coco-instance-mic@851c4b7fb35cc3ef537b77c5ad1164f3f1747f3a ← facebook/mask2former-swin-tiny-coco-instance@22c4a2f15dc88149b8b8d9f4d42c54431fbd66f6 · Mask2FormerForUniversalSegmentation · random weights

+
Original47.4Mparameters
Fixture8.0Mparameters
Layer stacks4compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.pixel_level_module.encoder.swin.encoder.layers

Original · 4
Fixture · 4
KindOriginalFixture
SwinPatchMerging33✓ kept
no SwinPatchMerging11✓ kept

model.pixel_level_module.decoder.input_projections

Original · 3
Fixture · 3
KindOriginalFixture
Conv2d33✓ kept

model.pixel_level_module.decoder.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
FormerPixelDecoderEncoderLayer62✓ kept

model.transformer_module.decoder.layers

Original · 9
Fixture · 1
KindOriginalFixture
FormerMaskedAttentionDecoderLayer91✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.pixel_level_module.encoder.swin.encoder.layers27.5M58.0%4.9M60.7%
model.transformer_module.decoder.layers14.2M30.0%659.3K8.2%
model.pixel_level_module.decoder.encoder.layers4.4M9.3%1.4M17.3%
model.pixel_level_module691.3K1.5%680.0K8.4%
model.pixel_level_module.decoder.input_projections346.4K0.7%231.7K2.9%
model.transformer_module249.9K0.5%191.0K2.4%
class_predictor20.8K0.0%10.4K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemask2formermask2former✓ kept
backbone_configmodel_typeswinswin✓ kept
backbone_configtie_word_embeddingsTrueTrue✓ kept
backbone_confighidden_actgelugelu✓ kept
backbone_configimage_size224224✓ kept
backbone_configpatch_size44✓ kept
backbone_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Mask2 omitted).

ClassOriginalFixture
Linear16949
LayerNorm7325
Dropout135
GELUActivation124
ReLU124
SwinAttention124
SwinLayer124
SwinMLP124
SwinRelativePositionBias124
SwinDropPath113
FormerAttention91
FormerMaskedAttentionDecoderLayer91
ModuleList99
MultiheadAttention91
NonDynamicallyQuantizableLinear91
Sequential85
Conv2d710
FormerPixelDecoderEncoderLayer62
FormerPixelDecoderEncoderMultiscaleDeformableAttention62
GroupNorm55
SwinStage44
Embedding33
FormerPredictionBlock33
SwinPatchMerging33
Identity22
FormerSinePositionEmbedding22
FormerForUniversalSegmentation11
FormerHungarianMatcher11
FormerLoss11
FormerMLPPredictionHead11
FormerMaskPredictor11
FormerMaskedAttentionDecoder11
FormerModel11
FormerPixelDecoder11
FormerPixelDecoderEncoderOnly11
FormerPixelLevelModule11
FormerTransformerModule11
ModuleDict11
SwinBackbone11
SwinEmbeddings11
SwinEncoder11
SwinModel11
SwinPatchEmbeddings11

Config changes

9 fields changed, 78 unchanged.

FieldOriginalFixture
backbone_config.depths[2, 2, 6, 2][1, 1, 1, 1]
backbone_config.embed_dim9664
backbone_config.hidden_size76864
backbone_config.num_heads[3, 6, 12, 24][2, 4, 8, 16]
backbone_config.num_layers42
decoder_layers102
encoder_layers62
hidden_dim256128
num_attention_heads84
+
\ No newline at end of file diff --git a/shrink/mbart-large-50-mic.html b/shrink/mbart-large-50-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b8488ce8874038d045b13df332dad58d9d79ab5f --- /dev/null +++ b/shrink/mbart-large-50-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mbart-large-50-mic@ef21bcc00bb0aac630f0218f55b5c88b59a01fb5 ← facebook/mbart-large-50@4ef55a20b36c6903b832e38f0604ab4bdf22c7d6 · MBartForConditionalGeneration · random weights

+
Original610.9Mparameters
Fixture16.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

model.decoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
DecoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.shared256.1M41.9%16.0M98.2%
model.decoder.layers201.6M33.0%100.5K0.6%
model.encoder.layers151.2M24.7%66.9K0.4%
model.decoder1.1M0.2%65.9K0.4%
model.encoder1.1M0.2%65.9K0.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typembartmbart✓ kept
modelvocab_size250054250054✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings10241024✓ kept

Module classes

Instances of each class in the built model (prefix MBart omitted).

ClassOriginalFixture
Linear19333
LayerNorm6414
Attention366
GELUActivation244
DecoderLayer122
EncoderLayer122
ScaledWordEmbedding33
LearnedPositionalEmbedding22
ModuleList22
Decoder11
Encoder11
ForConditionalGeneration11
Model11

Config changes

7 fields changed, 38 unchanged.

FieldOriginalFixture
d_model102464
decoder_attention_heads164
decoder_ffn_dim4096128
decoder_layers122
encoder_attention_heads164
encoder_ffn_dim4096128
encoder_layers122
+
\ No newline at end of file diff --git a/shrink/mistral3-mic.html b/shrink/mistral3-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..80113077c29cb2a5f0db7e33e08e50933a585032 --- /dev/null +++ b/shrink/mistral3-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mistral3-mic@ad30ba063d8bf5a68e71a54668e8eb4a8ebd2a94 ← mistralai/Mistral-Small-3.1-24B-Instruct-2503@68faf511d618ef198fef186659617cfd2eb8e33a · Mistral3ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original23.3Bparameters
Fixture8.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.transformer.layers

Original · 24
Fixture · 2
KindOriginalFixture
PixtralAttentionLayer242✓ kept

model.language_model.layers

Original · 40
Fixture · 2
KindOriginalFixture
MistralDecoderLayer402✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers22.2B95.2%74.0K0.9%
model.language_model671.1M2.9%8.4M97.5%
model.vision_tower.transformer.layers402.7M1.7%82.2K1.0%
model.multi_modal_projector35.7M0.2%24.6K0.3%
model.vision_tower603.1K0.0%37.7K0.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemistral3mistral3✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typepixtralpixtral✓ kept
vision_confighidden_actsilusilu✓ kept
vision_configimage_size15401540✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleGQA (32 heads, 8 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typemistralmistral✓ kept
text_configvocab_size131072131072✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Mistral3 omitted).

ClassOriginalFixture
Linear45232
MistralRMSNorm815
SiLUActivation644
PixtralRMSNorm495
MistralAttention402
MistralDecoderLayer402
MistralMLP402
PixtralAttention242
PixtralAttentionLayer242
PixtralMLP242
ModuleList22
Conv2d11
Embedding11
GELUActivation11
ForConditionalGeneration11
Model11
MultiModalProjector11
PatchMerger11
RMSNorm11
MistralModel11
MistralRotaryEmbedding11
PixtralTransformer11
PixtralVisionModel11
PixtralVisionRotaryEmbedding11

Config changes

11 fields changed, 53 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size512064
text_config.intermediate_size32768128
text_config.num_attention_heads324
text_config.num_hidden_layers402
text_config.num_key_value_heads82
vision_config.head_dim6416
vision_config.hidden_size102464
vision_config.intermediate_size4096128
vision_config.num_attention_heads164
vision_config.num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/mm_grounding_dino_tiny_o365v1_goldg_v3det-mic.html b/shrink/mm_grounding_dino_tiny_o365v1_goldg_v3det-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..861b0e2d0074e58017616f9cba85aba458673894 --- /dev/null +++ b/shrink/mm_grounding_dino_tiny_o365v1_goldg_v3det-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mm_grounding_dino_tiny_o365v1_goldg_v3det-mic@3b6c70187a273832016dad164af1af9a796a0bbd ← openmmlab-community/mm_grounding_dino_tiny_o365v1_goldg_v3det@ef2053aa1e0cc9d9cee1df31ca919ee9aae4fc8e · MMGroundingDinoForObjectDetection · random weights · built before the shrink rule (no recorded recipe)

+
Original172.9Mparameters
Fixture7.7Mparameters
Layer stacks7compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.backbone.conv_encoder.model.swin.encoder.layers

Original · 4
Fixture · 4
KindOriginalFixture
SwinPatchMerging33✓ kept
no SwinPatchMerging11✓ kept

model.input_proj_vision

Original · 4
Fixture · 4
KindOriginalFixture
Conv2d44✓ kept

model.text_backbone.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
BertLayer122✓ kept

model.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
FusionLayer62✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

model.decoder.bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.text_backbone.encoder.layer85.1M49.2%66.9K0.9%
model.backbone.conv_encoder.model.swin.encoder.layers27.5M15.9%4.9M63.3%
model.text_backbone23.8M13.8%2.0M25.7%
model.encoder.layers21.9M12.7%176.4K2.3%
model.decoder.layers10.9M6.3%142.3K1.8%
model.input_proj_vision2.1M1.2%353.0K4.6%
model.decoder.bbox_embed795.7K0.5%17.2K0.2%
9 others834.0K0.5%93.5K1.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemm-grounding-dinomm-grounding-dino✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
backbone_configmodel_typeswinswin✓ kept
backbone_confighidden_actgelugelu✓ kept
backbone_configimage_size224224✓ kept
backbone_configpatch_size44✓ kept
backbone_confignum_channels33✓ kept
text_configmodel_typebertbert✓ kept
text_configvocab_size3052230522✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actgelugelu✓ kept
text_configmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix MMGroundingDino omitted).

ClassOriginalFixture
Linear382122
LayerNorm11943
Dropout6818
ModuleList2719
GELUActivation246
MultiheadAttention186
ReLU186
MLPPredictionHead146
ContrastiveEmbedding135
BertAttention122
BertIntermediate122
BertLayer122
BertOutput122
BertSelfAttention122
BertSelfOutput122
MultiscaleDeformableAttention124
MultiScaleDeformableAttention124
SwinAttention124
SwinLayer124
SwinMLP124
SwinRelativePositionBias124
SwinDropPath113
BiMultiHeadAttention62
DecoderLayer62
DeformableLayer62
DropPath62
EncoderLayer62
FusionLayer62
TextEnhancerLayer62
Conv2d55
Embedding44
GroupNorm44
Sequential44
SwinStage44
SwinPatchMerging33
BertEmbeddings11
BertEncoder11
BertModel11
Identity11
ConvEncoder11
ConvModel11
Decoder11
Encoder11
ForObjectDetection11
Model11
SinePositionEmbedding11
ModuleDict11
SwinBackbone11
SwinEmbeddings11
SwinEncoder11
SwinModel11
SwinPatchEmbeddings11

Config changes

16 fields changed, 93 unchanged.

FieldOriginalFixture
backbone_config.depths[2, 2, 6, 2][1, 1, 1, 1]
backbone_config.embed_dim9664
backbone_config.hidden_size76864
backbone_config.num_heads[3, 6, 12, 24][2, 4, 8, 16]
backbone_config.num_layers42
d_model25664
decoder_attention_heads84
decoder_ffn_dim2048128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim2048128
encoder_layers62
text_config.hidden_size76864
text_config.intermediate_size3072128
text_config.num_attention_heads124
text_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/mms-tts-eng-mic.html b/shrink/mms-tts-eng-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ec735a3c26ef02520a0466cc4e36799c3afd571e --- /dev/null +++ b/shrink/mms-tts-eng-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mms-tts-eng-mic@9594dd28deb20d0502c494434c3c5f55b4833451 ← facebook/mms-tts-eng@c71de0fe7204c83f1c10820a7d696d0b450048ba · VitsModel · random weights

+
Original36.3Mparameters
Fixture16.3Mparameters
Layer stacks5compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_encoder.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
EncoderLayer62✓ kept

flow.flows

Original · 4
Fixture · 4
KindOriginalFixture
ResidualCouplingLayer44✓ kept

decoder.resblocks

Original · 12
Fixture · 12
KindOriginalFixture
HifiGanResidualBlock1212✓ kept

posterior_encoder.wavenet.in_layers

Original · 16
Fixture · 16
KindOriginalFixture
ModuleDict1616✓ kept

posterior_encoder.wavenet.res_skip_layers

Original · 16
Fixture · 16
KindOriginalFixture
ModuleDict1616✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
decoder.resblocks11.0M30.2%11.0M67.2%
flow.flows7.1M19.6%827.5K5.1%
text_encoder.encoder.layers6.2M17.1%133.1K0.8%
posterior_encoder.wavenet.in_layers5.9M16.3%659.5K4.0%
decoder.upsampler2.7M7.3%2.7M16.3%
posterior_encoder.wavenet.res_skip_layers1.2M3.2%130.9K0.8%
decoder.conv_pre688.6K1.9%688.6K4.2%
13 others1.6M4.3%254.4K1.6%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevitsvits✓ kept
modelvocab_size3838✓ kept
modelhidden_actrelurelu✓ kept
modelsampling_rate1600016000✓ kept

Module classes

Instances of each class in the built model (prefix Vits omitted).

ClassOriginalFixture
Conv1d177169
ModuleList8080
LayerNorm7264
ModuleDict6464
ParametrizationList6464
ParametrizedConv1d6464
_WeightNorm6464
Dropout2719
Linear248
HifiGanResidualBlock1212
DilatedDepthSeparableConv1010
ConvFlow88
ReLU62
Attention62
EncoderLayer62
FeedForward62
WaveNet55
ConvTranspose1d44
ResidualCouplingLayer44
ElementwiseAffine22
Embedding11
Encoder11
HifiGan11
Model11
PosteriorEncoder11
ResidualCouplingBlock11
StochasticDurationPredictor11
TextEncoder11

Config changes

4 fields changed, 50 unchanged.

FieldOriginalFixture
ffn_dim768128
hidden_size19264
num_attention_heads24
num_hidden_layers62
+
\ No newline at end of file diff --git a/shrink/mobilenet_v2_1.0_224-mic.html b/shrink/mobilenet_v2_1.0_224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..518e0d792ba5e1c726795f59388f893caaf2fbec --- /dev/null +++ b/shrink/mobilenet_v2_1.0_224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mobilenet_v2_1.0_224-mic@91fe07b79191cf1d586a0b7cf0a6e910730a21b6 ← google/mobilenet_v2_1.0_224@75e607b00aeae1297cc89d026a118bce012f5c5a · MobileNetV2ForImageClassification · overfit weights

+
Original3.5Mparameters
Fixture3.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

mobilenet_v2.layer

Original · 16
Fixture · 16
KindOriginalFixture
ConvLayer1616✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
mobilenet_v2.layer1.8M51.6%1.8M51.6%
classifier1.3M36.6%1.3M36.6%
mobilenet_v2.conv_1x1412.2K11.8%412.2K11.8%
mobilenet_v2.conv_stem1.8K0.1%1.8K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemobilenet_v2mobilenet_v2✓ kept
modelhidden_actrelu6relu6✓ kept
modelimage_size224224✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix MobileNetV2 omitted).

ClassOriginalFixture
BatchNorm2d5252
Conv2d5252
ConvLayer5252
ReLU63535
InvertedResidual1616
AdaptiveAvgPool2d11
Dropout11
Linear11
ForImageClassification11
Model11
Stem11
ModuleList11

Config changes

1 fields changed, 23 unchanged.

FieldOriginalFixture
problem_typenullsingle_label_classification
+
\ No newline at end of file diff --git a/shrink/mobilevit-xx-small-mic.html b/shrink/mobilevit-xx-small-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b3c8b101e5ac998c8a9f65797e3b4ea438fdeaaa --- /dev/null +++ b/shrink/mobilevit-xx-small-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mobilevit-xx-small-mic@1d4aa4d88fb85d89dc12a8e52ffcd0c66cf855ec ← apple/mobilevit-xx-small@6703997f9e940e312a04b8b7c26463d631c0d1f8 · MobileViTForImageClassification · overfit weights · built before the shrink rule (no recorded recipe)

+
Original1.3Mparameters
Fixture895.3Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

mobilevit.encoder.layer

Original · 5
Fixture · 5
KindOriginalFixture
MobileNetLayer22✓ kept
LayerNorm, Linear, Attention …33✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
mobilevit.encoder.layer924.3K72.7%547.6K61.2%
classifier321.0K25.2%321.0K35.9%
mobilevit.conv_1x1_exp26.2K2.1%26.2K2.9%
mobilevit.conv_stem4640.0%4640.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemobilevitmobilevit✓ kept
modelhidden_actsilusilu✓ kept
modelimage_size256256✓ kept
modelpatch_size22✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix MobileViT omitted).

ClassOriginalFixture
Linear5555
Conv2d3535
ConvLayer3535
SiLUActivation3434
BatchNorm2d3232
Dropout2828
LayerNorm2121
Attention99
Intermediate99
Output99
SelfAttention99
SelfOutput99
TransformerLayer99
InvertedResidual77
ModuleList66
Layer33
Transformer33
MobileNetLayer22
Encoder11
ForImageClassification11
Model11

Config changes

2 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_sizes[64, 80, 96][16, 32, 64]
problem_typenullsingle_label_classification
+
\ No newline at end of file diff --git a/shrink/modernbert-mic.html b/shrink/modernbert-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..13e6a1a22a1da2c74bc10c3035fa4c5b359c0cbb --- /dev/null +++ b/shrink/modernbert-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/modernbert-mic@59688bef85e5803f4ebc8a02227907e465355a30 ← answerdotai/ModernBERT-base@8949b909ec900327062f0ebf497f51aef5e6f0c8 · ModernBertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original149.7Mparameters
Fixture3.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 22
Fixture · 2
KindOriginalFixture
full_attention81✓ kept
sliding_attention141✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers110.3M73.7%82.1K2.4%
model.embeddings38.7M25.8%3.2M95.9%
head.dense589.8K0.4%4.1K0.1%
decoder50.4K0.0%50.4K1.5%
head.norm7680.0%640.0%
model.final_norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemodernbertmodernbert✓ kept
modelvocab_size5036850368✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix ModernBert omitted).

ClassOriginalFixture
Linear9010
LayerNorm466
Dropout233
GELUActivation233
Identity233
Attention222
EncoderLayer222
MLP222
Embedding11
Embeddings11
ForMaskedLM11
Model11
PredictionHead11
RotaryEmbedding11
ModuleList11

Config changes

5 fields changed, 41 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size1152128
layer_types22 entries: 14× sliding_attention, 8× full_attention["full_attention", "sliding_attention"]
num_attention_heads124
num_hidden_layers222
+
\ No newline at end of file diff --git a/shrink/mpnet-base-mic.html b/shrink/mpnet-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1467b58ce16e82074eba17af415b1319479ba436 --- /dev/null +++ b/shrink/mpnet-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mpnet-base-mic@9d98c3d72a6cae57a9f3ed7f52cf9144628a5f6e ← microsoft/mpnet-base@6996ce1e91bd2a9c7d7f61daec37463394f73f09 · MPNetForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original109.5Mparameters
Fixture2.1Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

mpnet.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
mpnet.encoder.layer85.1M77.7%66.9K3.2%
mpnet.embeddings23.8M21.8%2.0M95.1%
lm_head.dense590.6K0.5%4.2K0.2%
lm_head30.5K0.0%30.5K1.5%
lm_head.layer_norm1.5K0.0%1280.0%
mpnet.encoder3840.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typempnetmpnet✓ kept
modelvocab_size3052730527✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

Instances of each class in the built model (prefix MPNet omitted).

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation122
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
Embedding33
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11
ModuleList11

Config changes

4 fields changed, 21 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/mt5-small-mic.html b/shrink/mt5-small-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..412612abd83efc7b559519552d309ef3589fbe72 --- /dev/null +++ b/shrink/mt5-small-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/mt5-small-mic@13bc3e6cb33e75d32f533822c690e2115f739038 ← google/mt5-small@73fb5dbe4756edadc8fbe8c769b0a109493acf7a · MT5ForConditionalGeneration · random weights

+
Original172.1Mparameters
Fixture16.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.block

Original · 8
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding71✓ kept

decoder.block

Original · 8
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding71✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
shared128.1M74.4%16.0M98.8%
decoder.block25.2M14.6%115.2K0.7%
encoder.block18.9M11.0%82.3K0.5%
encoder.final_layer_norm5120.0%640.0%
decoder.final_layer_norm5120.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemt5mt5✓ kept
modelvocab_size250112250112✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix MT5 omitted).

ClassOriginalFixture
Linear14537
Dropout5816
LayerNorm4212
Attention246
ModuleList186
Block164
DenseGatedActDense164
LayerFF164
LayerSelfAttention164
NewGELUActivation164
LayerCrossAttention82
Embedding55
Stack22
ForConditionalGeneration11

Config changes

6 fields changed, 27 unchanged.

FieldOriginalFixture
d_ff1024128
d_kv6416
d_model51264
num_decoder_layers82
num_heads64
num_layers82
+
\ No newline at end of file diff --git a/shrink/nllb-200-distilled-600M-mic.html b/shrink/nllb-200-distilled-600M-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..0400cce4f9c438e636af5f1a2cd431dfa7bef402 --- /dev/null +++ b/shrink/nllb-200-distilled-600M-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/nllb-200-distilled-600M-mic@fcaaa8d89cb3bc751afd9c7511e8f2975319ea14 ← facebook/nllb-200-distilled-600M@f8d333a098d19b4fd9a8b18f94170487ad3f821d · M2M100ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original615.1Mparameters
Fixture16.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

model.decoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
DecoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.shared262.4M42.7%16.4M99.0%
model.decoder.layers201.6M32.8%100.5K0.6%
model.encoder.layers151.2M24.6%66.9K0.4%
model.decoder2.0K0.0%1280.0%
model.encoder2.0K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typem2m_100m2m_100✓ kept
modelvocab_size256206256206✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings10241024✓ kept

Module classes

Instances of each class in the built model (prefix M2M100 omitted).

ClassOriginalFixture
Linear19333
LayerNorm6212
Attention366
ReLU244
DecoderLayer122
EncoderLayer122
ScaledWordEmbedding33
SinusoidalPositionalEmbedding22
ModuleList22
Decoder11
Encoder11
ForConditionalGeneration11
Model11

Config changes

7 fields changed, 26 unchanged.

FieldOriginalFixture
d_model102464
decoder_attention_heads164
decoder_ffn_dim4096128
decoder_layers122
encoder_attention_heads164
encoder_ffn_dim4096128
encoder_layers122
+
\ No newline at end of file diff --git a/shrink/nomic-embed-text-v1.5-mic.html b/shrink/nomic-embed-text-v1.5-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..7406f935e0a1a829a7de204fabab9b6cc4b93b3d --- /dev/null +++ b/shrink/nomic-embed-text-v1.5-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/nomic-embed-text-v1.5-mic@2cbaf2971908b9ad612ba5d9b74e819440dc5344 ← nomic-ai/nomic-embed-text-v1.5@e9b6763023c676ca8431644204f50c2b100d9aab · NomicBertModel · random weights · built before the shrink rule (no recorded recipe)

+
Original136.7Mparameters
Fixture2.0Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

layers

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
layers113.3M82.9%82.4K4.0%
embeddings.word_embeddings23.4M17.1%2.0M95.9%
embeddings.token_type_embeddings1.5K0.0%1280.0%
embeddings.LayerNorm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelRoPE typedefaultdefault✓ kept
modelmodel_typenomic_bertnomic_bert✓ kept
modelvocab_size3052830528✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix NomicBert omitted).

ClassOriginalFixture
Linear8414
Dropout255
LayerNorm255
Attention122
Layer122
MLP122
SiLUActivation122
Embedding22
ModuleList11
Embeddings11
Model11
RotaryEmbedding11

Config changes

9 fields changed, 57 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size76864
intermediate_size3072128
n_embd76864
n_head124
n_inner3072128
n_layer122
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/opt-125m-mic.html b/shrink/opt-125m-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6915e01cb6127ae4afd9519120512f3843e334f5 --- /dev/null +++ b/shrink/opt-125m-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/opt-125m-mic@30dda77b685d9eb9cbf9efebdfdb2a5f14028349 ← facebook/opt-125m@27dcfa74d334bc871f3234de431e71c6eeba5dd6 · OPTForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original125.2Mparameters
Fixture38.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.decoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
DecoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.decoder.layers85.1M67.9%66.9K0.2%
model.decoder40.2M32.1%38.8M99.8%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeoptopt✓ kept
modelvocab_size5027250272✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix OPT omitted).

ClassOriginalFixture
Linear7315
LayerNorm255
Attention122
DecoderLayer122
ReLU122
Embedding11
ModuleList11
Decoder11
ForCausalLM11
LearnedPositionalEmbedding11
Model11

Config changes

4 fields changed, 28 unchanged.

FieldOriginalFixture
ffn_dim3072128
hidden_size76864
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/opus-mt-fr-en-mic.html b/shrink/opus-mt-fr-en-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..a828bcf2b9c1b16fd7d9279aaabc39ecff260e63 --- /dev/null +++ b/shrink/opus-mt-fr-en-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/opus-mt-fr-en-mic@d09105cda74d27a8ab952466f1810a83cc412893 ← Helsinki-NLP/opus-mt-fr-en@c4aed37b318c763fd177aa449b44e3b783cc6c02 · MarianMTModel · overfit weights · built before the shrink rule (no recorded recipe)

+
Original75.1Mparameters
Fixture4.0Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
MarianEncoderLayer62✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
MarianDecoderLayer62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.shared30.5M40.6%3.8M94.2%
model.decoder.layers25.2M33.6%100.5K2.5%
model.encoder.layers18.9M25.2%66.9K1.7%
model.decoder262.1K0.3%32.8K0.8%
model.encoder262.1K0.3%32.8K0.8%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemarianmarian✓ kept
modelvocab_size5951459514✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix MarianMT omitted).

ClassOriginalFixture
Linear9733
LayerNorm3010
MarianAttention186
SiLU124
MarianDecoderLayer62
MarianEncoderLayer62
Embedding33
MarianSinusoidalPositionalEmbedding22
ModuleList22
MarianDecoder11
MarianEncoder11
Model11
MarianModel11

Config changes

7 fields changed, 38 unchanged.

FieldOriginalFixture
d_model51264
decoder_attention_heads84
decoder_ffn_dim2048128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim2048128
encoder_layers62
+
\ No newline at end of file diff --git a/shrink/owlv2-base-patch16-ensemble-mic.html b/shrink/owlv2-base-patch16-ensemble-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..678cd41688ae11348678352cf9266223dbbad308 --- /dev/null +++ b/shrink/owlv2-base-patch16-ensemble-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/owlv2-base-patch16-ensemble-mic@de5f6eb0e6f68273b883bf046cd0b1dc76bce3ad ← google/owlv2-base-patch16-ensemble@cfd3195ba4ea9592eec887ded089f4c08eff231d · Owlv2ForObjectDetection · random weights

+
Original155.0Mparameters
Fixture3.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

owlv2.text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

owlv2.vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
owlv2.vision_model.encoder.layers85.1M54.9%66.9K1.9%
owlv2.text_model.encoder.layers37.8M24.4%66.9K1.9%
owlv2.text_model25.3M16.3%3.2M87.7%
owlv2.vision_model3.4M2.2%279.9K7.8%
box_head.dense0590.6K0.4%4.2K0.1%
objectness_head.dense1590.6K0.4%4.2K0.1%
box_head.dense1590.6K0.4%4.2K0.1%
10 others1.6M1.1%17.1K0.5%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeowlv2owlv2✓ kept
text_configmodel_typeowlv2_text_modelowlv2_text_model✓ kept
text_configvocab_size4940849408✓ kept
text_confighidden_actquick_geluquick_gelu✓ kept
text_configmax_position_embeddings1616✓ kept
vision_configmodel_typeowlv2_vision_modelowlv2_vision_model✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size960960✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Owlv2 omitted).

ClassOriginalFixture
Linear15535
LayerNorm5212
Attention244
EncoderLayer244
MLP244
QuickGELUActivation244
Embedding33
GELU22
ModuleList22
BoxPredictionHead22
Encoder22
Conv2d11
ELU11
ClassPredictionHead11
ForObjectDetection11
Model11
TextEmbeddings11
TextTransformer11
VisionEmbeddings11
VisionTransformer11
Sigmoid11

Config changes

9 fields changed, 47 unchanged.

FieldOriginalFixture
projection_dim51264
text_config.hidden_size51264
text_config.intermediate_size2048128
text_config.num_attention_heads84
text_config.num_hidden_layers122
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/owlvit-base-patch32-mic.html b/shrink/owlvit-base-patch32-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..0f7aa3b44631582b0125220905439b3c29c16665 --- /dev/null +++ b/shrink/owlvit-base-patch32-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/owlvit-base-patch32-mic@09d714a0dd1f21dcf214cb144777eb72042a08d0 ← google/owlvit-base-patch32@cbc355fb364588351c5d51c7f74465e8e7ec6f72 · OwlViTForObjectDetection · random weights

+
Original153.2Mparameters
Fixture3.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

owlvit.text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

owlvit.vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
owlvit.vision_model.encoder.layers85.1M55.5%66.9K1.9%
owlvit.text_model.encoder.layers37.8M24.7%66.9K1.9%
owlvit.text_model25.3M16.5%3.2M89.1%
owlvit.vision_model2.8M1.8%233.9K6.6%
box_head.dense1590.6K0.4%4.2K0.1%
box_head.dense0590.6K0.4%4.2K0.1%
class_head.dense0393.7K0.3%4.2K0.1%
7 others661.5K0.4%8.7K0.2%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeowlvitowlvit✓ kept
text_configmodel_typeowlvit_text_modelowlvit_text_model✓ kept
text_configvocab_size4940849408✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actquick_geluquick_gelu✓ kept
text_configmax_position_embeddings1616✓ kept
vision_configmodel_typeowlvit_vision_modelowlvit_vision_model✓ kept
vision_configtie_word_embeddingsTrueTrue✓ kept
vision_confighidden_actquick_geluquick_gelu✓ kept
vision_configimage_size768768✓ kept
vision_configpatch_size3232✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix OwlViT omitted).

ClassOriginalFixture
Linear15232
LayerNorm5212
Attention244
EncoderLayer244
MLP244
QuickGELUActivation244
Embedding33
ModuleList22
Encoder22
Conv2d11
ELU11
GELU11
BoxPredictionHead11
ClassPredictionHead11
ForObjectDetection11
Model11
TextEmbeddings11
TextTransformer11
VisionEmbeddings11
VisionTransformer11
Sigmoid11

Config changes

9 fields changed, 84 unchanged.

FieldOriginalFixture
projection_dim51264
text_config.hidden_size51264
text_config.intermediate_size2048128
text_config.num_attention_heads84
text_config.num_hidden_layers122
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/paligemma-3b-pt-224-mic.html b/shrink/paligemma-3b-pt-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b3fed4df6136af4ca480293bbe604262e1b9b16b --- /dev/null +++ b/shrink/paligemma-3b-pt-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/paligemma-3b-pt-224-mic@adfd7e09d295b39ddf4dbeb88ffdb645139b72d8 ← leo009/paligemma-3b-pt-224@39996beb6fb17c5d16a50d3ef8f7a96ad9d03986 · PaliGemmaForConditionalGeneration · random weights

+
Original2.9Bparameters
Fixture16.7Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
SiglipEncoderLayer272✓ kept

model.language_model.layers

Original · 18
Fixture · 2
KindOriginalFixture
GemmaDecoderLayer182✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers2.0B67.8%69.9K0.4%
model.language_model526.8M18.0%16.5M98.8%
model.vision_tower.encoder.layers411.5M14.1%66.9K0.4%
model.multi_modal_projector2.4M0.1%4.2K0.0%
model.vision_tower975.7K0.0%54.2K0.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typepaligemmapaligemma✓ kept
modelvocab_size257216257216✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typesiglip_vision_modelsiglip_vision_model✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size224224✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleMQA (8 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typegemmagemma✓ kept
text_configvocab_size257216257216✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
text_configmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix PaliGemma omitted).

ClassOriginalFixture
Linear29028
LayerNorm555
GELUTanh454
GemmaRMSNorm375
SiglipAttention272
SiglipEncoderLayer272
SiglipMLP272
GemmaAttention182
GemmaDecoderLayer182
GemmaMLP182
ModuleList22
Conv2d11
Embedding11
GemmaModel11
GemmaRotaryEmbedding11
GemmaTextScaledWordEmbedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
SiglipEncoder11
SiglipVisionEmbeddings11
SiglipVisionModel11

Config changes

12 fields changed, 59 unchanged.

FieldOriginalFixture
hidden_size204864
projection_dim204864
text_config.head_dim25616
text_config.hidden_size204864
text_config.intermediate_size16384128
text_config.num_attention_heads84
text_config.num_hidden_layers182
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
vision_config.projection_dim204864
+
\ No newline at end of file diff --git a/shrink/pegasus-xsum-mic.html b/shrink/pegasus-xsum-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..46377c2db9c7c75d6700be162b9ecfa834f46eca --- /dev/null +++ b/shrink/pegasus-xsum-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/pegasus-xsum-mic@3703172718d029fd3c19c93391ed0e84937d6eb6 ← google/pegasus-xsum@8d8ffc158a3bee9fbb03afacdfc347c823c5ec8b · PegasusForConditionalGeneration · random weights

+
Original569.7Mparameters
Fixture6.4Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 16
Fixture · 2
KindOriginalFixture
EncoderLayer162✓ kept

model.decoder.layers

Original · 16
Fixture · 2
KindOriginalFixture
DecoderLayer162✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.decoder.layers268.7M47.2%100.5K1.6%
model.encoder.layers201.5M35.4%66.9K1.0%
model.shared98.4M17.3%6.2M96.3%
model.decoder526.3K0.1%32.9K0.5%
model.encoder526.3K0.1%32.9K0.5%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typepegasuspegasus✓ kept
modelvocab_size9610396103✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

Instances of each class in the built model (prefix Pegasus omitted).

ClassOriginalFixture
Linear25733
LayerNorm8212
Attention486
ReLU324
DecoderLayer162
EncoderLayer162
Embedding33
ModuleList22
SinusoidalPositionalEmbedding22
Decoder11
Encoder11
ForConditionalGeneration11
Model11

Config changes

7 fields changed, 38 unchanged.

FieldOriginalFixture
d_model102464
decoder_attention_heads164
decoder_ffn_dim4096128
decoder_layers162
encoder_attention_heads164
encoder_ffn_dim4096128
encoder_layers162
+
\ No newline at end of file diff --git a/shrink/phi-2-mic.html b/shrink/phi-2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c00a90aefe5e568348f0074aa69f899f1a887a27 --- /dev/null +++ b/shrink/phi-2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/phi-2-mic@af26f3c429a4d873dfe9c7fdc51fc78a845768fc ← microsoft/phi-2@810d367871c1d460086d9f82db8696f2e0a0fcd0 · PhiForCausalLM · random weights

+
Original2.8Bparameters
Fixture6.7Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.5B90.6%66.7K1.0%
lm_head131.1M4.7%3.3M49.9%
model.embed_tokens131.1M4.7%3.3M49.1%
model.final_layernorm5.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typephiphi✓ kept
modelvocab_size5120051200✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actgelu_newgelu_new✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Phi omitted).

ClassOriginalFixture
Linear19313
Dropout333
LayerNorm333
NewGELUActivation322
Attention322
DecoderLayer322
MLP322
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

5 fields changed, 24 unchanged.

FieldOriginalFixture
hidden_size256064
intermediate_size10240128
num_attention_heads324
num_hidden_layers322
num_key_value_heads324
+
\ No newline at end of file diff --git a/shrink/privacy-filter-mic.html b/shrink/privacy-filter-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..5ab27bdc56d6fccfaa924f67ed63b93b82364e28 --- /dev/null +++ b/shrink/privacy-filter-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/privacy-filter-mic@ad3dba8d001d1fe12c033288bf38745f9772c1b7 ← openai/privacy-filter@7ffa9a043d54d1be65afb281eddf0ffbe629385b · OpenAIPrivacyFilterForTokenClassification · random weights

+
Original1.4Bparameters
Fixture13.0Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 8
Fixture · 2
KindOriginalFixture
EncoderLayer82✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers1.3B90.8%224.9K1.7%
model.embed_tokens128.0M9.1%12.8M98.3%
score21.2K0.0%2.1K0.0%
model.norm6400.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (14 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelMoE routingtop-4 of 128 expertstop-2 of 4 experts✓ kept
modelRoPE typeyarnyarn✓ kept
modelmodel_typeopenai_privacy_filteropenai_privacy_filter✓ kept
modelvocab_size200064200064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix OpenAIPrivacyFilter omitted).

ClassOriginalFixture
Linear339
RMSNorm175
Attention82
EncoderLayer82
Experts82
MLP82
TopKRouter82
Dropout11
Embedding11
ModuleList11
ForTokenClassification11
Model11
RotaryEmbedding11

Config changes

7 fields changed, 32 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size64064
intermediate_size640128
num_attention_heads144
num_experts_per_tok42
num_hidden_layers82
num_local_experts1284
+
\ No newline at end of file diff --git a/shrink/pvt-tiny-224-mic.html b/shrink/pvt-tiny-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4658fa68c7a9c124c741f71d5988c7bd778239d0 --- /dev/null +++ b/shrink/pvt-tiny-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/pvt-tiny-224-mic@b1c239c03ea2b52e24e2e72cea4498c1932cc76b ← Zetatech/pvt-tiny-224@6a44ba96dda6a6f3e2b6913682acfa0071482e83 · PvtForImageClassification · overfit weights · built before the shrink rule (no recorded recipe)

+
Original13.2Mparameters
Fixture592.2Kparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

pvt.encoder.patch_embeddings

Original · 4
Fixture · 4
KindOriginalFixture
Conv2d44✓ kept

pvt.encoder.block

Original · 4
Fixture · 4
KindOriginalFixture
Conv2d33✓ kept
no Conv2d11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
pvt.encoder.block11.5M86.7%324.2K54.7%
pvt.encoder.patch_embeddings1.2M9.4%138.8K23.4%
classifier513.0K3.9%129.0K21.8%
pvt.encoder1.0K0.0%2560.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typepvtpvt✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Pvt omitted).

ClassOriginalFixture
Linear4925
Dropout2816
LayerNorm2716
Conv2d107
GELUActivation84
Identity84
Attention84
EfficientSelfAttention84
FFN84
Layer84
SelfOutput84
ModuleList66
PatchEmbeddings44
Encoder11
ForImageClassification11
Model11

Config changes

4 fields changed, 24 unchanged.

FieldOriginalFixture
depths[2, 2, 2, 2][1, 1, 1, 1]
hidden_sizes[64, 128, 320, 512][16, 32, 64, 128]
num_attention_heads[1, 2, 5, 8][1, 2, 4, 8]
problem_typenullsingle_label_classification
+
\ No newline at end of file diff --git a/shrink/pythia-160m-mic.html b/shrink/pythia-160m-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c4718eccf59726190ce034dcf1653bd3042e231d --- /dev/null +++ b/shrink/pythia-160m-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/pythia-160m-mic@f21c9ac8c4e817ebcf9cb2963749d2ff55b756e3 ← EleutherAI/pythia-160m@50f5173d932e8e61f858120bcb800b97af589f46 · GPTNeoXForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original162.3Mparameters
Fixture6.5Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

gpt_neox.layers

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
gpt_neox.layers85.1M52.4%66.9K1.0%
lm_head38.6M23.8%3.2M49.5%
gpt_neox.embed_in38.6M23.8%3.2M49.5%
gpt_neox.final_layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelRoPE typedefaultdefault✓ kept
modelmodel_typegpt_neoxgpt_neox✓ kept
modelvocab_size5030450304✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix GPTNeoX omitted).

ClassOriginalFixture
Linear499
Dropout255
LayerNorm255
GELUActivation122
Attention122
Layer122
MLP122
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

4 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/qwen2-mic.html b/shrink/qwen2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..03b1c2da376658cd8f585a276d00cb7f007d414b --- /dev/null +++ b/shrink/qwen2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/qwen2-mic@f9c74f62c62500474b51b9ae8b086be6bcff3621 ← Qwen/Qwen2-0.5B@91d2aff3f957f99e4c74c962f2f408dcc88a18d8 · Qwen2ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

+
Original494.0Mparameters
Fixture9.8Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers357.9M72.4%74.2K0.8%
model.embed_tokens136.1M27.6%9.7M99.2%
model.norm8960.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (14 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeqwen2qwen2✓ kept
modelvocab_size151936151936✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2 omitted).

ClassOriginalFixture
Linear16915
RMSNorm495
Attention242
DecoderLayer242
MLP242
SiLUActivation242
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

5 fields changed, 25 unchanged.

FieldOriginalFixture
hidden_size89664
intermediate_size4864128
layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
num_attention_heads144
num_hidden_layers242
+
\ No newline at end of file diff --git a/shrink/qwen2_5_omni-mic.html b/shrink/qwen2_5_omni-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4e6dba6e01577a461d1f9180cc8591c8d565d13c --- /dev/null +++ b/shrink/qwen2_5_omni-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/qwen2_5_omni-mic@72e87592273c7e7662ffb5e249400c12a3488549 ← Qwen/Qwen2.5-Omni-7B@ae9e1690543ffd5c0221dc27f79834d0294cba00 · Qwen2_5OmniForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original10.7Bparameters
Fixture170.4Mparameters
Layer stacks8compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

thinker.model.audio_tower.layers

Original · 32
Fixture · 2
KindOriginalFixture
AudioEncoderLayer322✓ kept

thinker.model.visual.blocks

Original · 32
Fixture · 32
KindOriginalFixture
VisionBlock3232✓ kept

thinker.model.language_model.layers

Original · 28
Fixture · 2
KindOriginalFixture
DecoderLayer282✓ kept

talker.model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

token2wav.code2wav_dit_model.input_embed.spk_encoder.blocks

Original · 4
Fixture · 4
KindOriginalFixture
no ModuleList11✓ kept
ModuleList, Res2NetBlock, Sigmoid …33✓ kept

token2wav.code2wav_dit_model.transformer_blocks

Original · 22
Fixture · 2
KindOriginalFixture
DiTDecoderLayer222✓ kept

token2wav.code2wav_bigvgan_model.ups

Original · 6
Fixture · 6
KindOriginalFixture
ModuleList66✓ kept

token2wav.code2wav_bigvgan_model.resblocks

Original · 18
Fixture · 18
KindOriginalFixture
AMPBlock1818✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
thinker.model.language_model.layers6.5B60.8%74.2K0.0%
talker.model.layers1.3B12.2%74.2K0.0%
thinker.model.visual.blocks630.5M5.9%1.3M0.8%
thinker.model.audio_tower.layers629.6M5.9%66.8K0.0%
thinker.model601.1M5.6%10.2M6.0%
thinker.lm_head545.0M5.1%9.7M5.7%
token2wav.code2wav_dit_model.transformer_blocks323.3M3.0%116.4K0.1%
8 others166.9M1.6%148.8M87.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen2_5_omniqwen2_5_omni✓ kept
thinker_configmodel_typeqwen2_5_omni_thinkerqwen2_5_omni_thinker✓ kept
thinker_configtie_word_embeddingsFalseFalse✓ kept
thinker_config.audio_configmodel_typeqwen2_5_omni_audio_encoderqwen2_5_omni_audio_encoder✓ kept
thinker_config.audio_configtie_word_embeddingsTrueTrue✓ kept
thinker_config.audio_confignum_mel_bins128128✓ kept
thinker_config.vision_configRoPE typeaxialaxial✓ kept
thinker_config.vision_configmodel_typeqwen2_5_omni_vision_encoderqwen2_5_omni_vision_encoder✓ kept
thinker_config.vision_configtie_word_embeddingsTrueTrue✓ kept
thinker_config.vision_confighidden_actsilusilu✓ kept
thinker_config.vision_configpatch_size1414✓ kept
thinker_config.text_configattention styleGQA (28 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
thinker_config.text_configRoPE typedefaultdefault✓ kept
thinker_config.text_configmodel_typeqwen2_5_omni_textqwen2_5_omni_text✓ kept
thinker_config.text_configvocab_size152064152064✓ kept
thinker_config.text_configtie_word_embeddingsFalseFalse✓ kept
thinker_config.text_confighidden_actsilusilu✓ kept
thinker_config.text_configmax_position_embeddings3276832768✓ kept
talker_configattention styleGQA (12 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
talker_configRoPE typedefaultdefault✓ kept
talker_configmodel_typeqwen2_5_omni_talkerqwen2_5_omni_talker✓ kept
talker_configvocab_size84488448✓ kept
talker_configtie_word_embeddingsFalseFalse✓ kept
talker_confighidden_actsilusilu✓ kept
talker_configmax_position_embeddings3276832768✓ kept
token2wav_configmodel_typeqwen2_5_omni_token2wavqwen2_5_omni_token2wav✓ kept
token2wav_config.dit_configRoPE typedefaultdefault✓ kept
token2wav_config.dit_configmodel_typeqwen2_5_omni_ditqwen2_5_omni_dit✓ kept
token2wav_config.dit_configtie_word_embeddingsTrueTrue✓ kept
token2wav_config.dit_configmax_position_embeddings3276832768✓ kept
token2wav_config.bigvgan_configmodel_typeqwen2_5_omni_bigvganqwen2_5_omni_bigvgan✓ kept
token2wav_config.bigvgan_configtie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2_5Omni omitted).

ClassOriginalFixture
Linear945289
RMSNorm17175
Conv1d132132
ModuleList11676
LayerNorm11010
AntiAliasedActivation1d109109
DownSample1d109109
SnakeBeta109109
UpSample1d109109
SiLUActivation8436
Qwen2MLP524
Attention524
DecoderLayer524
Dropout444
GELUActivation322
AudioAttention322
AudioEncoderLayer322
MLP3232
VisionAttention3232
VisionBlock3232
SiLU244
GELU233
DiTAttention222
DiTDecoderLayer222
DiTMLP222
Qwen2_5_OmniAdaLayerNormZero222
AMPBlock1818
ReLU1515
TimeDelayNetBlock1212
ConvTranspose1d66
Embedding44
Res2NetBlock33
Sigmoid33
SqueezeExcitationBlock33
SqueezeExcitationRes2NetBlock33
RotaryEmbedding22
AttentiveStatisticsPooling11
AvgPool1d11
Conv3d11
DiTCodecEmbedding11
DiTInputEmbedding11
DiTTimestepEmbedding11
ECAPA_TimeDelayNet11
AudioEncoder11
DiTRotaryEmbedding11
ForConditionalGeneration11
PatchMerger11
TalkerForConditionalGeneration11
TalkerModel11
ThinkerForConditionalGeneration11
ThinkerModel11
ThinkerTextModel11
Token2WavBigVGANModel11
Token2WavDiTModel11
Token2WavModel11
VisionEncoder11
VisionRotaryEmbedding11
Qwen2_5_OmniAdaLayerNormZero_Final11
Qwen2_5_VisionPatchEmbed11
Sequential11
SinusPositionEmbedding11
SinusoidsPositionEmbedding11
Tanh11

Config changes

30 fields changed, 281 unchanged.

FieldOriginalFixture
talker_config.head_dim12816
talker_config.hidden_size89664
talker_config.intermediate_size18944128
talker_config.layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
talker_config.num_attention_heads124
talker_config.num_hidden_layers242
talker_config.num_key_value_heads42
talker_config.rope_parameters{"mrope_section": [16, 24, 24], "rope_type": "default", "type": "default", "r…{"mrope_section": [2, 3, 3], "rope_theta": 1000000.0, "rope_type": "default",…
thinker_config.audio_config.d_model128064
thinker_config.audio_config.encoder_attention_heads204
thinker_config.audio_config.encoder_ffn_dim5120128
thinker_config.audio_config.encoder_layers322
thinker_config.text_config.hidden_size358464
thinker_config.text_config.intermediate_size18944128
thinker_config.text_config.layer_types28 entries: 28× full_attention["full_attention", "full_attention"]
thinker_config.text_config.num_attention_heads284
thinker_config.text_config.num_hidden_layers282
thinker_config.text_config.num_key_value_heads42
thinker_config.text_config.rope_parameters{"mrope_section": [16, 24, 24], "rope_type": "default", "type": "default", "r…{"mrope_section": [2, 3, 3], "rope_theta": 1000000.0, "rope_type": "default",…
thinker_config.vision_config.embed_dim128064
thinker_config.vision_config.hidden_size128064
thinker_config.vision_config.intermediate_size3420128
thinker_config.vision_config.num_heads164
thinker_config.vision_config.out_hidden_size358464
token2wav_config.dit_config.dim102464
token2wav_config.dit_config.emb_dim51264
token2wav_config.dit_config.head_dim6416
token2wav_config.dit_config.hidden_size102464
token2wav_config.dit_config.num_attention_heads164
token2wav_config.dit_config.num_hidden_layers222
+
\ No newline at end of file diff --git a/shrink/qwen2_5_vl-mic.html b/shrink/qwen2_5_vl-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..e3baac95a36415522c4d28f45bffc5cba3ed9cf5 --- /dev/null +++ b/shrink/qwen2_5_vl-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/qwen2_5_vl-mic@32d6627e4ea6fc3ba2fe84c2f3f06e7f5116245a ← Qwen/Qwen2.5-VL-3B-Instruct@66285546d2b821cf421d4f5eb2576359d3770cd3 · Qwen2_5_VLForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original3.8Bparameters
Fixture11.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.blocks

Original · 32
Fixture · 32
KindOriginalFixture
VisionBlock3232✓ kept

model.language_model.layers

Original · 36
Fixture · 2
KindOriginalFixture
DecoderLayer362✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers2.8B73.9%74.2K0.7%
model.visual.blocks630.5M16.8%1.3M11.8%
model.language_model311.2M8.3%9.7M86.1%
model.visual38.2M1.0%157.6K1.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen2_5_vlqwen2_5_vl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (16 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2_5_vl_textqwen2_5_vl_text✓ kept
text_configvocab_size151936151936✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings128000128000✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typeqwen2_5_vl_visionqwen2_5_vl_vision✓ kept
vision_confighidden_actsilusilu✓ kept
vision_configpatch_size1414✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2_5_VL omitted).

ClassOriginalFixture
Linear415177
RMSNorm13870
SiLUActivation6834
Qwen2MLP362
Attention362
DecoderLayer362
MLP3232
VisionAttention3232
VisionBlock3232
ModuleList22
Conv3d11
Embedding11
GELU11
ForConditionalGeneration11
Model11
PatchMerger11
RotaryEmbedding11
TextModel11
VisionRotaryEmbedding11
Qwen2_5_VisionPatchEmbed11
Qwen2_5_VisionTransformerPretrainedModel11
Sequential11

Config changes

10 fields changed, 60 unchanged.

FieldOriginalFixture
text_config.hidden_size204864
text_config.intermediate_size11008128
text_config.layer_types36 entries: 36× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers362
text_config.rope_parameters{"type": "mrope", "mrope_section": [16, 24, 24], "rope_theta": 1000000.0, "ro…{"mrope_section": [2, 3, 3], "rope_theta": 1000000.0, "rope_type": "default",…
vision_config.hidden_size128064
vision_config.intermediate_size3420128
vision_config.num_heads164
vision_config.out_hidden_size204864
+
\ No newline at end of file diff --git a/shrink/qwen2_audio-mic.html b/shrink/qwen2_audio-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..06bcd7037399c1dc29dc9f1cb49bec174bd81555 --- /dev/null +++ b/shrink/qwen2_audio-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/qwen2_audio-mic@c426549756a18dc16495239883efd38d9a66002b ← Qwen/Qwen2-Audio-7B@dd84470756e6277a71d4d7188773a43cde92696e · Qwen2AudioForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original8.4Bparameters
Fixture20.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.audio_tower.layers

Original · 32
Fixture · 2
KindOriginalFixture
EncoderLayer322✓ kept

model.language_model.layers

Original · 32
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer322✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model.layers6.5B77.1%82.6K0.4%
model.language_model639.1M7.6%10.0M49.3%
lm_head639.1M7.6%10.0M49.3%
model.audio_tower.layers629.6M7.5%66.8K0.3%
model.audio_tower7.3M0.1%133.1K0.7%
model.multi_modal_projector5.2M0.1%4.2K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeqwen2_audioqwen2_audio✓ kept
modelvocab_size156032156032✓ kept
audio_configmodel_typeqwen2_audio_encoderqwen2_audio_encoder✓ kept
audio_confignum_mel_bins128128✓ kept
text_configattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size156032156032✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings81928192✓ kept

Module classes

Instances of each class in the built model (prefix Qwen2Audio omitted).

ClassOriginalFixture
Linear41828
LayerNorm655
Qwen2RMSNorm655
GELUActivation322
Qwen2Attention322
Attention322
EncoderLayer322
Qwen2DecoderLayer322
Qwen2MLP322
SiLUActivation322
Conv1d22
Embedding22
ModuleList22
AvgPool1d11
Encoder11
ForConditionalGeneration11
Model11
MultiModalProjector11
Qwen2Model11
Qwen2RotaryEmbedding11

Config changes

10 fields changed, 55 unchanged.

FieldOriginalFixture
audio_config.d_model128064
audio_config.encoder_attention_heads204
audio_config.encoder_ffn_dim5120128
audio_config.encoder_layers322
text_config.hidden_size409664
text_config.intermediate_size11008128
text_config.layer_types32 entries: 32× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads324
text_config.num_hidden_layers322
text_config.num_key_value_heads324
+
\ No newline at end of file diff --git a/shrink/recurrentgemma-2b-mic.html b/shrink/recurrentgemma-2b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d7c40394b1071c02732fef4afea8930920e1b22b --- /dev/null +++ b/shrink/recurrentgemma-2b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/recurrentgemma-2b-mic@732c0b9399dcbbdb7c806f7043968c4aafea55c8 ← google/recurrentgemma-2b@3620f4ca9c5d16ee56c00180474a3201ec7f734a · RecurrentGemmaForCausalLM · random weights

+
Original2.7Bparameters
Fixture24.0Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 26
Fixture · 3
KindOriginalFixture
Conv1d, RecurrentBlock, Rglru182✓ kept
is_causal=True, Attention, RotaryEmbedding81✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.0B75.6%7.6M31.8%
model.embed_tokens655.4M24.4%16.4M68.2%
model.final_norm2.6K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMQA (10 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typerecurrent_gemmarecurrent_gemma✓ kept
modelvocab_size256000256000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix RecurrentGemma omitted).

ClassOriginalFixture
Linear16520
RMSNorm537
GELUTanh445
DecoderLayer263
Mlp263
Conv1d182
RecurrentBlock182
Rglru182
Attention81
RotaryEmbedding81
Embedding11
ModuleList11
ForCausalLM11
Model11

Config changes

5 fields changed, 30 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size256064
intermediate_size15360128
num_attention_heads104
num_hidden_layers263
+
\ No newline at end of file diff --git a/shrink/resnet-18-mic.html b/shrink/resnet-18-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..3a01319e205706b5825c3a4029cdfaa861ee70a6 --- /dev/null +++ b/shrink/resnet-18-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/resnet-18-mic@31e1f7325db335a5c638bb94f40f84dd9977277b ← microsoft/resnet-18@65a5785d9156231087c481e0c7dd33a5ff6f7e3e · ResNetForImageClassification · overfit weights

+
Original11.7Mparameters
Fixture438.5Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

resnet.encoder.stages

Original · 4
Fixture · 4
KindOriginalFixture
no ShortCut11✓ kept
ShortCut33✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
resnet.encoder.stages11.2M95.5%307.1K70.0%
classifier.1513.0K4.4%129.0K29.4%
resnet.embedder9.5K0.1%2.4K0.5%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeresnetresnet✓ kept
modelhidden_actrelurelu✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix ResNet omitted).

ClassOriginalFixture
BatchNorm2d2012
Conv2d2012
ReLU179
ConvLayer179
Identity135
Sequential139
BasicLayer84
Stage44
ShortCut33
AdaptiveAvgPool2d11
Flatten11
Linear11
MaxPool2d11
ModuleList11
Embeddings11
Encoder11
ForImageClassification11
Model11

Config changes

4 fields changed, 16 unchanged.

FieldOriginalFixture
depths[2, 2, 2, 2][1, 1, 1, 1]
embedding_size6416
hidden_sizes[64, 128, 256, 512][16, 32, 64, 128]
problem_typenullsingle_label_classification
+
\ No newline at end of file diff --git a/shrink/roberta-base-mic.html b/shrink/roberta-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..69b5c0ef8149550575e661f6a666dfcfd8195c91 --- /dev/null +++ b/shrink/roberta-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/roberta-base-mic@ff3c8d1292ae8885553023bad9a04744ced2effe ← FacebookAI/roberta-base@e2da8e2f811d1448a5b465c236feacd80ffbac7b · RobertaForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original124.7Mparameters
Fixture3.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

roberta.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
roberta.encoder.layer85.1M68.2%66.9K2.0%
roberta.embeddings39.0M31.3%3.3M96.4%
lm_head.dense590.6K0.5%4.2K0.1%
lm_head50.3K0.0%50.3K1.5%
lm_head.layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typerobertaroberta✓ kept
modelvocab_size5026550265✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

Instances of each class in the built model (prefix Roberta omitted).

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation122
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
ModuleList11
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11

Config changes

4 fields changed, 25 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/rtdetr_r50vd-mic.html b/shrink/rtdetr_r50vd-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ccf3a0b8f1ccc5a107158d265d44d03de3b8fa5c --- /dev/null +++ b/shrink/rtdetr_r50vd-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/rtdetr_r50vd-mic@5655fbe502f7ba0ce74c6037780272095348ca82 ← PekingU/rtdetr_r50vd@df939e661d8c52e80608d1ec566561aabd25a4e7 · RTDetrForObjectDetection · random weights · built before the shrink rule (no recorded recipe)

+
Original42.9Mparameters
Fixture10.9Mparameters
Layer stacks10compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.backbone.model.encoder.stages

Original · 4
Fixture · 4
KindOriginalFixture
no AvgPool2d11✓ kept
AvgPool2d33✓ kept

model.encoder_input_proj

Original · 3
Fixture · 3
KindOriginalFixture
Conv2d33✓ kept

model.encoder.aifi

Original · 1
Fixture · 1
KindOriginalFixture
AIFILayer11✓ kept

model.encoder.lateral_convs

Original · 2
Fixture · 2
KindOriginalFixture
ConvNormLayer22✓ kept

model.encoder.fpn_blocks

Original · 2
Fixture · 2
KindOriginalFixture
CSPRepLayer22✓ kept

model.encoder.downsample_convs

Original · 2
Fixture · 2
KindOriginalFixture
ConvNormLayer22✓ kept

model.encoder.pan_blocks

Original · 2
Fixture · 2
KindOriginalFixture
CSPRepLayer22✓ kept

model.decoder_input_proj

Original · 3
Fixture · 3
KindOriginalFixture
Conv2d33✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

model.decoder.bbox_embed

Original · 6
Fixture · 2
KindOriginalFixture
Linear62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.backbone.model.encoder.stages23.4M54.7%32.4K0.3%
model.decoder.layers6.0M13.9%102.6K0.9%
model.encoder.pan_blocks4.5M10.4%4.5M40.9%
model.encoder.fpn_blocks4.5M10.4%4.5M40.9%
model.encoder.downsample_convs1.2M2.8%1.2M10.8%
model.encoder_input_proj919.0K2.1%58.9K0.5%
model.decoder.bbox_embed795.7K1.9%17.2K0.2%
9 others1.6M3.8%582.8K5.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typert_detrrt_detr✓ kept
backbone_configmodel_typert_detr_resnetrt_detr_resnet✓ kept
backbone_confighidden_actrelurelu✓ kept
backbone_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix RTDetr omitted).

ClassOriginalFixture
Conv2d9761
Linear9741
ReLU5717
Identity5632
FrozenBatchNorm2d5519
ResNetConvLayer5115
BatchNorm2d4242
ConvNormLayer3636
Sequential3523
SiLUActivation2424
LayerNorm219
ModuleList2016
ResNetBottleNeckLayer164
RepVggBlock1212
MLPPredictionHead84
MLP73
SelfAttention73
MultiScaleDeformableAttention62
DecoderLayer62
MultiscaleDeformableAttention62
CSPRepLayer44
ResNetShortCut44
ResNetStage44
AvgPool2d33
Embedding11
GELUActivation11
MaxPool2d11
AIFILayer11
ConvEncoder11
Decoder11
EncoderLayer11
ForObjectDetection11
HybridEncoder11
Model11
ResNetBackbone11
ResNetEmbeddings11
ResNetEncoder11
SinePositionEmbedding11

Config changes

9 fields changed, 71 unchanged.

FieldOriginalFixture
backbone_config.depths[3, 4, 6, 3][1, 1, 1, 1]
backbone_config.hidden_sizes[256, 512, 1024, 2048][16, 32, 64, 128]
d_model25664
decoder_attention_heads84
decoder_ffn_dim1024128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim1024128
encoder_in_channels[512, 1024, 2048][32, 64, 128]
+
\ No newline at end of file diff --git a/shrink/sam2.1-hiera-tiny-mic.html b/shrink/sam2.1-hiera-tiny-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..ed0826efb64b01c39f110a0bc470ea16ebebac68 --- /dev/null +++ b/shrink/sam2.1-hiera-tiny-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/sam2.1-hiera-tiny-mic@e740a31c3d860e3d217f291ba1dc2a154a98090c ← facebook/sam2.1-hiera-tiny@de431c4043854a71d8101e17995dfe596bf101a5 · Sam2Model · overfit weights · built before the shrink rule (no recorded recipe)

+
Original31.4Mparameters
Fixture1.9Mparameters
Layer stacks3compared
Findings4to review

⚠ To review

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

vision_encoder.backbone.blocks

Original · 12
Fixture · 5
KindOriginalFixture
MultiScaleBlock125✓ kept

mask_decoder.transformer.layers

Original · 2
Fixture · 2
KindOriginalFixture
TwoWayAttentionBlock22✓ kept

mask_decoder.output_hypernetworks_mlps

Original · 4
Fixture · 4
KindOriginalFixture
ReLU44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vision_encoder.backbone.blocks26.8M85.3%1.2M61.2%
mask_decoder.transformer.layers3.2M10.0%398.3K21.0%
mask_decoder.output_hypernetworks_mlps559.2K1.8%140.4K7.4%
vision_encoder.neck369.7K1.2%62.0K3.3%
mask_decoder.iou_prediction_head132.6K0.4%33.5K1.8%
mask_decoder.transformer132.2K0.4%33.3K1.8%
mask_decoder.pred_obj_score_head131.8K0.4%33.2K1.7%
14 others131.7K0.4%37.3K2.0%

Preserved properties

ConfigPropertyOriginalFixture
modelRoPE typeaxialNone⚠ changed
modelmodel_typesam2_videosam2⚠ changed
modelimage_size10241024✓ kept
vision_configmodel_typesam2_vision_modelsam2_vision_model✓ kept
vision_confighidden_actgelugelu✓ kept
vision_config.backbone_configmodel_typesam2_hiera_det_modelsam2_hiera_det_model✓ kept
vision_config.backbone_configtie_word_embeddingsTrueTrue✓ kept
vision_config.backbone_confighidden_actgelugelu✓ kept
vision_config.backbone_configimage_size[1024, 1024][1024, 1024]✓ kept
vision_config.backbone_confignum_channels33✓ kept
prompt_encoder_configmodel_typesam2_video_prompt_encodersam2_prompt_encoder⚠ changed
prompt_encoder_confighidden_actgelugelu✓ kept
prompt_encoder_configimage_size10241024✓ kept
prompt_encoder_configpatch_size1616✓ kept
mask_decoder_configmodel_typesam2_video_mask_decodersam2_mask_decoder⚠ changed
mask_decoder_confighidden_actgelugelu✓ kept

Module classes

Instances of each class in the built model (prefix Sam2 omitted).

ClassOriginalFixture
Linear10173
LayerNorm3319
ModuleList2417
FeedForward2013
GELUActivation136
MultiScaleAttention125
MultiScaleBlock125
Conv2d1010
ReLU88
Attention77
Embedding66
LayerNorm33
ConvTranspose2d22
PositionalEmbedding22
TwoWayAttentionBlock22
GELU11
HieraDetModel11
MaskDecoder11
MaskEmbedding11
Model11
PatchEmbeddings11
PromptEncoder11
SinePositionEmbedding11
TwoWayTransformer11
VisionModel11
VisionNeck11

Config changes

18 fields changed, 134 unchanged.

FieldOriginalFixture
mask_decoder_config.hidden_size256128
mask_decoder_config.iou_head_hidden_dim256128
mask_decoder_config.mlp_dim2048256
mask_decoder_config.model_typesam2_video_mask_decodersam2_mask_decoder
mask_decoder_config.num_attention_heads84
max_cond_frame_num-1—
memory_attention_rope_theta—10000
model_typesam2_videosam2
prompt_encoder_config.hidden_size256128
prompt_encoder_config.model_typesam2_video_prompt_encodersam2_prompt_encoder
rope_parameters{"rope_theta": 10000, "rope_type": "axial"}—
vision_config.backbone_channel_list[768, 384, 192, 96][256, 128, 64, 32]
vision_config.backbone_config.blocks_per_stage[1, 2, 7, 2][1, 1, 2, 1]
vision_config.backbone_config.embed_dim_per_stage[96, 192, 384, 768][32, 64, 128, 256]
vision_config.backbone_config.global_attention_blocks[5, 7, 9][3]
vision_config.backbone_config.hidden_size9632
vision_config.backbone_config.num_attention_heads14
vision_config.fpn_hidden_size256128
+
\ No newline at end of file diff --git a/shrink/seamless-m4t-v2-large-mic.html b/shrink/seamless-m4t-v2-large-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f8c4608b5aa97379539dc6bd126e7dfb6f782917 --- /dev/null +++ b/shrink/seamless-m4t-v2-large-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/seamless-m4t-v2-large-mic@43e20937aec2b5592d27e162442c2db3532e010b ← facebook/seamless-m4t-v2-large@5f8cc790b19fc3f67a61c105133b20b34e3dcb76 · SeamlessM4Tv2Model · random weights

+
Original2.3Bparameters
Fixture95.0Mparameters
Layer stacks7compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_encoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
EncoderLayer242✓ kept

speech_encoder.encoder.layers

Original · 24
Fixture · 24
KindOriginalFixture
ConformerEncoderLayer2424✓ kept

speech_encoder.adapter.layers

Original · 1
Fixture · 1
KindOriginalFixture
ConformerAdapterLayer11✓ kept

text_decoder.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

t2u_model.model.encoder.layers

Original · 6
Fixture · 6
KindOriginalFixture
EncoderLayer66✓ kept

t2u_model.model.decoder.layers

Original · 6
Fixture · 6
KindOriginalFixture
TextToUnitDecoderLayer66✓ kept

vocoder.hifi_gan.resblocks

Original · 15
Fixture · 15
KindOriginalFixture
HifiGanResidualBlock1515✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
text_decoder.layers604.5M26.2%100.5K0.1%
speech_encoder.encoder.layers580.3M25.1%26.1M27.5%
text_encoder.layers503.7M21.8%66.9K0.1%
shared262.2M11.4%16.4M17.2%
t2u_model.model.encoder.layers125.9M5.5%6.4M6.8%
t2u_model.model.decoder.layers113.3M4.9%446.2K0.5%
speech_encoder.adapter.layers46.2M2.0%676.8K0.7%
13 others73.0M3.2%44.8M47.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeseamless_m4t_v2seamless_m4t_v2✓ kept
modelvocab_size256102256102✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings40964096✓ kept
modelsampling_rate1600016000✓ kept

Module classes

Instances of each class in the built model (prefix SeamlessM4Tv2 omitted).

ClassOriginalFixture
Linear649297
Dropout346214
LayerNorm302192
Conv1d182182
ReLU8822
Attention8418
SiLU7272
FeedForwardNetwork5410
ConformerFeedForward5050
ModuleList3838
Embedding3030
EncoderLayer308
GLU2525
ConformerSelfAttention2525
ConformerConvolutionModule2424
ConformerEncoderLayer2424
DecoderLayer242
HifiGanResidualBlock1515
TextToUnitDecoderLayer66
ConvTranspose1d55
SinusoidalPositionalEmbedding44
Encoder22
ScaledWordEmbedding22
VariancePredictor22
CodeHifiGan11
ConformerAdapter11
ConformerAdapterLayer11
ConformerEncoder11
ConformerFeatureProjection11
Decoder11
HifiGan11
Model11
SpeechEncoder11
TextToUnitDecoder11
TextToUnitForConditionalGeneration11
TextToUnitModel11

Config changes

7 fields changed, 77 unchanged.

FieldOriginalFixture
decoder_attention_heads164
decoder_ffn_dim8192128
decoder_layers242
encoder_attention_heads164
encoder_ffn_dim8192128
encoder_layers242
hidden_size102464
+
\ No newline at end of file diff --git a/shrink/segformer-b0-finetuned-ade-512-512-mic.html b/shrink/segformer-b0-finetuned-ade-512-512-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..44be066cc157ce4167228b1b073c32afe0f71cea --- /dev/null +++ b/shrink/segformer-b0-finetuned-ade-512-512-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/segformer-b0-finetuned-ade-512-512-mic@b49b77daf8758e1d1c6d7f37b58b535586bcf0fb ← nvidia/segformer-b0-finetuned-ade-512-512@489d5cd81a0b59fab9b7ea758d3548ebe99677da · SegformerForSemanticSegmentation · overfit weights · built before the shrink rule (no recorded recipe)

+
Original3.8Mparameters
Fixture787.3Kparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

segformer.stages

Original · 4
Fixture · 4
KindOriginalFixture
SequenceReduction33✓ kept
no SequenceReduction11✓ kept

decode_head.linear_projections

Original · 4
Fixture · 4
KindOriginalFixture
Linear44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
segformer.stages3.3M88.5%423.6K53.8%
decode_head.linear_fuse262.1K7.0%262.1K33.3%
decode_head.linear_projections132.1K3.5%62.5K7.9%
decode_head.classifier38.5K1.0%38.5K4.9%
decode_head.batch_norm5120.0%5120.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typesegformersegformer✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Segformer omitted).

ClassOriginalFixture
Linear5228
LayerNorm3019
Conv2d2013
Dropout179
GELUActivation84
Attention84
DepthWiseConv84
Layer84
MixMLP84
DropPath73
ModuleList66
SequenceReduction63
MLP44
OverlapPatchEmbeddings44
Stage44
BatchNorm2d11
Identity11
ReLU11
DecodeHead11
ForSemanticSegmentation11
Model11

Config changes

3 fields changed, 27 unchanged.

FieldOriginalFixture
depths[2, 2, 2, 2][1, 1, 1, 1]
hidden_sizes[32, 64, 160, 256][16, 32, 64, 128]
num_attention_heads[1, 2, 5, 8][1, 2, 4, 8]
+
\ No newline at end of file diff --git a/shrink/siglip-base-patch16-224-mic.html b/shrink/siglip-base-patch16-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..25f2d6db94b31567a36c62ae5c3352a341fd23a6 --- /dev/null +++ b/shrink/siglip-base-patch16-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/siglip-base-patch16-224-mic@13fcabe2240b7fb71b1d3f2889e4f71778df91eb ← google/siglip-base-patch16-224@7fd15f0689c79d79e38b1c2e2e2370a7bf2761ed · SiglipModel · random weights · built before the shrink rule (no recorded recipe)

+
Original203.2Mparameters
Fixture2.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

vision_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vision_model.encoder.layers85.1M41.9%66.9K2.9%
text_model.encoder.layers85.1M41.9%66.9K2.9%
text_model.embeddings24.6M12.1%2.1M89.8%
vision_model.head7.1M3.5%33.4K1.5%
vision_model.embeddings741.1K0.4%61.8K2.7%
text_model.head590.6K0.3%4.2K0.2%
vision_model.post_layernorm1.5K0.0%1280.0%
3 others1.5K0.0%1300.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typesiglipsiglip✓ kept
text_configmodel_typesiglip_text_modelsiglip_text_model✓ kept
text_configvocab_size3200032000✓ kept
text_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
text_configmax_position_embeddings6464✓ kept
vision_configmodel_typesiglip_vision_modelsiglip_vision_model✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size224224✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Siglip omitted).

ClassOriginalFixture
Linear14727
LayerNorm5111
GELUTanh255
MLP255
Attention244
EncoderLayer244
Embedding33
ModuleList22
Encoder22
Conv2d11
MultiheadAttention11
NonDynamicallyQuantizableLinear11
Model11
MultiheadAttentionPoolingHead11
TextEmbeddings11
TextModel11
VisionEmbeddings11
VisionModel11

Config changes

9 fields changed, 42 unchanged.

FieldOriginalFixture
text_config.hidden_size76864
text_config.intermediate_size3072128
text_config.num_attention_heads124
text_config.num_hidden_layers122
text_config.projection_size76864
vision_config.hidden_size76864
vision_config.intermediate_size3072128
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/smollm-1.7b-mic.html b/shrink/smollm-1.7b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..05b3456fdca44ea7679e07f6d83af47bef9407b8 --- /dev/null +++ b/shrink/smollm-1.7b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/smollm-1.7b-mic@fc0e707f0977de7e4095792e1b56203e3af7b5c6 ← HuggingFaceTB/SmolLM-1.7B@d7449ff7241c863f3e8accc475155f0f97afa011 · LlamaForCausalLM · built before the shrink rule (no recorded recipe)

+
Original1.7Bparameters
Fixture3.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers1.6B94.1%82.2K2.5%
model.embed_tokens100.7M5.9%3.1M97.5%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typellamallama✓ kept
modelvocab_size4915249152✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Llama omitted).

ClassOriginalFixture
Linear16915
RMSNorm495
Attention242
DecoderLayer242
MLP242
SiLUActivation242
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

7 fields changed, 23 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size204864
intermediate_size8192128
num_attention_heads324
num_hidden_layers242
num_key_value_heads324
pad_token_idnull0
+
\ No newline at end of file diff --git a/shrink/smollm-mic.html b/shrink/smollm-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..fa293815c2692cc796d58d1d27dd44b84c7f314c --- /dev/null +++ b/shrink/smollm-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/smollm-mic@d0da7b30e6c71b294e950e4abdbc7b858854bf28 ← HuggingFaceTB/SmolLM-135M@1d461723eec654e65efdc40cf49301c89c0c92f4 · LlamaForCausalLM · overfit weights · built before the shrink rule (no recorded recipe)

+
Original134.5Mparameters
Fixture3.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 30
Fixture · 2
KindOriginalFixture
DecoderLayer302✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers106.2M79.0%74.0K2.3%
model.embed_tokens28.3M21.0%3.1M97.7%
model.norm5760.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (9 heads, 3 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typellamallama✓ kept
modelvocab_size4915249152✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

Instances of each class in the built model (prefix Llama omitted).

ClassOriginalFixture
Linear21115
RMSNorm615
Attention302
DecoderLayer302
MLP302
SiLUActivation302
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

6 fields changed, 24 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size57664
intermediate_size1536128
num_attention_heads94
num_hidden_layers302
num_key_value_heads32
+
\ No newline at end of file diff --git a/shrink/smolvlm-mic.html b/shrink/smolvlm-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..61e5e69b36662c73bf9a6a1d57fd1ec550acb852 --- /dev/null +++ b/shrink/smolvlm-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/smolvlm-mic@8cefc6b12559831ef4a11f203b84848058513ee4 ← HuggingFaceTB/SmolVLM2-2.2B-Instruct@482adb537c021c86670beed01cd58990d01e72e4 · SmolVLMForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original2.2Bparameters
Fixture6.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_model.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
EncoderLayer272✓ kept

model.text_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
LlamaDecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.text_model.layers1.6B71.7%82.2K1.2%
model.vision_model.encoder.layers411.5M18.3%66.9K1.0%
model.text_model100.9M4.5%3.2M47.9%
lm_head100.9M4.5%3.2M47.9%
model.connector21.2M0.9%36.9K0.6%
model.vision_model1.5M0.1%84.5K1.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typesmolvlmsmolvlm✓ kept
modelvocab_size4928049280✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
vision_configmodel_typesmolvlm_visionsmolvlm_vision✓ kept
vision_configtie_word_embeddingsFalseFalse✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size384384✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept
text_configattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typellamallama✓ kept
text_configvocab_size4928049280✓ kept
text_configtie_word_embeddingsFalseFalse✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings81928192✓ kept
text_config.perceiver_configmodel_typevllama3vllama3✓ kept
text_config.perceiver_configtie_word_embeddingsTrueTrue✓ kept
text_config.perceiver_confighidden_actsilusilu✓ kept

Module classes

Instances of each class in the built model (prefix SmolVLM omitted).

ClassOriginalFixture
Linear33228
LayerNorm555
LlamaRMSNorm495
GELUTanh272
EncoderLayer272
VisionAttention272
VisionMLP272
LlamaAttention242
LlamaDecoderLayer242
LlamaMLP242
SiLUActivation242
Embedding22
ModuleList22
Conv2d11
LlamaModel11
LlamaRotaryEmbedding11
Connector11
Encoder11
ForConditionalGeneration11
Model11
SimpleMLP11
VisionEmbeddings11
VisionTransformer11

Config changes

10 fields changed, 127 unchanged.

FieldOriginalFixture
text_config.head_dim6416
text_config.hidden_size204864
text_config.intermediate_size8192128
text_config.num_attention_heads324
text_config.num_hidden_layers242
text_config.num_key_value_heads324
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
+
\ No newline at end of file diff --git a/shrink/speech_t5-mic.html b/shrink/speech_t5-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..21b97122e177722ec1fbb1b1f285161742a2fb40 --- /dev/null +++ b/shrink/speech_t5-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/speech_t5-mic@889b4e918f22534926a9817ffa5aa22df47af8df ← microsoft/speecht5_asr@53615c10408485422e09a12cda191a747f4bbe34 · SpeechT5ForSpeechToText · random weights · built before the shrink rule (no recorded recipe)

+
Original151.2Mparameters
Fixture4.4Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

speecht5.encoder.prenet.feature_encoder.conv_layers

Original · 7
Fixture · 7
KindOriginalFixture
GroupNorm, GroupNormConvLayer11✓ kept
NoLayerNormConvLayer66✓ kept

speecht5.encoder.wrapped_encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

speecht5.decoder.wrapped_decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
speecht5.encoder.wrapped_encoder.layers85.1M56.3%66.9K1.5%
speecht5.decoder.wrapped_decoder.layers56.7M37.5%100.5K2.3%
speecht5.encoder5.1M3.4%72.1K1.6%
speecht5.encoder.prenet.feature_encoder.conv_layers4.2M2.8%4.2M94.5%
speecht5.decoder62.2K0.0%5.2K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typespeecht5speecht5✓ kept
modelvocab_size8181✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelnum_mel_bins8080✓ kept

Module classes

Instances of each class in the built model (prefix SpeechT5 omitted).

ClassOriginalFixture
Linear13434
Dropout5715
LayerNorm4412
GELUActivation2612
Attention246
FeedForward184
EncoderLayer122
Conv1d77
DecoderLayer62
NoLayerNormConvLayer66
ModuleList33
Embedding22
SinusoidalPositionalEmbedding22
GroupNorm11
ModuleDict11
ParametrizationList11
ParametrizedConv1d11
Decoder11
DecoderWithTextPrenet11
Encoder11
EncoderWithSpeechPrenet11
FeatureEncoder11
FeatureProjection11
ForSpeechToText11
GroupNormConvLayer11
Model11
PositionalConvEmbedding11
RelativePositionalEncoding11
SamePadLayer11
SpeechEncoderPrenet11
TextDecoderPostnet11
TextDecoderPrenet11
_WeightNorm11

Config changes

7 fields changed, 60 unchanged.

FieldOriginalFixture
decoder_attention_heads124
decoder_ffn_dim3072128
decoder_layers62
encoder_attention_heads124
encoder_ffn_dim3072128
encoder_layers122
hidden_size76864
+
\ No newline at end of file diff --git a/shrink/stablelm-2-1_6b-mic.html b/shrink/stablelm-2-1_6b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f526688d83f8f49094820bf3fd8d21c5e3c272e1 --- /dev/null +++ b/shrink/stablelm-2-1_6b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/stablelm-2-1_6b-mic@eec0b53366b61c85645d4c7ec7618033265b6dd3 ← stabilityai/stablelm-2-1_6b@f499ead74c53749bd93cebc6ce8bc0d7bdf1eaef · StableLmForCausalLM · random weights

+
Original1.6Bparameters
Fixture12.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 24
Fixture · 2
KindOriginalFixture
DecoderLayer242✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers1.2B75.0%82.8K0.6%
model.embed_tokens205.5M12.5%6.4M49.7%
lm_head205.5M12.5%6.4M49.7%
model.norm4.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typestablelmstablelm✓ kept
modelvocab_size100352100352✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings40964096✓ kept

Module classes

Instances of each class in the built model (prefix StableLm omitted).

ClassOriginalFixture
Linear16915
LayerNorm495
Dropout242
SiLUActivation242
Attention242
DecoderLayer242
MLP242
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

5 fields changed, 25 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size5632128
num_attention_heads324
num_hidden_layers242
num_key_value_heads324
+
\ No newline at end of file diff --git a/shrink/starcoder2-3b-mic.html b/shrink/starcoder2-3b-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..1245c04b98582bdc602b8134fe88cffe13517d0f --- /dev/null +++ b/shrink/starcoder2-3b-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/starcoder2-3b-mic@f158c5574331920c1b49c8447d5bf4a4864df079 ← bigcode/starcoder2-3b@733247c55e3f73af49ce8e9c7949bf14af205928 · Starcoder2ForCausalLM · random weights

+
Original3.0Bparameters
Fixture3.2Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 30
Fixture · 2
KindOriginalFixture
DecoderLayer302✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.layers2.9B95.0%58.6K1.8%
model.embed_tokens151.0M5.0%3.1M98.2%
model.norm6.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (24 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typestarcoder2starcoder2✓ kept
modelvocab_size4915249152✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
modelmax_position_embeddings1638416384✓ kept

Module classes

Instances of each class in the built model (prefix Starcoder2 omitted).

ClassOriginalFixture
Linear18113
LayerNorm615
GELUTanh302
Attention302
DecoderLayer302
MLP302
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

4 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_size307264
intermediate_size12288128
num_attention_heads244
num_hidden_layers302
+
\ No newline at end of file diff --git a/shrink/swin-tiny-patch4-window7-224-mic.html b/shrink/swin-tiny-patch4-window7-224-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..8be256d14ccbb2058e3e3e8ae5868da737d6f69c --- /dev/null +++ b/shrink/swin-tiny-patch4-window7-224-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/swin-tiny-patch4-window7-224-mic@89ae45d56ca206c1ba47aee79182a5e98d039eb6 ← microsoft/swin-tiny-patch4-window7-224@d00d478bfaf1f417d34a1186673ad4b4be264c51 · SwinForImageClassification · random weights

+
Original28.3Mparameters
Fixture5.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

swin.encoder.layers

Original · 4
Fixture · 4
KindOriginalFixture
PatchMerging33✓ kept
no PatchMerging11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
swin.encoder.layers27.5M97.3%4.9M90.4%
classifier769.0K2.7%513.0K9.5%
swin.embeddings4.9K0.0%3.3K0.1%
swin.layernorm1.5K0.0%1.0K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeswinswin✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelpatch_size44✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Swin omitted).

ClassOriginalFixture
Linear7628
LayerNorm2913
Dropout135
GELUActivation124
Attention124
Layer124
MLP124
RelativePositionBias124
DropPath113
ModuleList55
Stage44
PatchMerging33
AdaptiveAvgPool1d11
Conv2d11
Identity11
Embeddings11
Encoder11
ForImageClassification11
Model11
PatchEmbeddings11

Config changes

5 fields changed, 27 unchanged.

FieldOriginalFixture
depths[2, 2, 6, 2][1, 1, 1, 1]
embed_dim9664
hidden_size76864
num_heads[3, 6, 12, 24][2, 4, 8, 16]
num_layers42
+
\ No newline at end of file diff --git a/shrink/swinv2-tiny-patch4-window16-256-mic.html b/shrink/swinv2-tiny-patch4-window16-256-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..da58802b06dd553b96d38969f43ca48bcf57f471 --- /dev/null +++ b/shrink/swinv2-tiny-patch4-window16-256-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/swinv2-tiny-patch4-window16-256-mic@8c997579b76fa9f22e2eb5f9e186497da2294e6c ← microsoft/swinv2-tiny-patch4-window16-256@f4d3075206f2ad5eda586c30d6b4d0500f312421 · Swinv2ForImageClassification · random weights

+
Original28.3Mparameters
Fixture5.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

swinv2.encoder.layers

Original · 4
Fixture · 4
KindOriginalFixture
PatchMerging33✓ kept
no PatchMerging11✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
swinv2.encoder.layers27.6M97.3%4.9M90.5%
classifier769.0K2.7%513.0K9.5%
swinv2.embeddings4.9K0.0%3.3K0.1%
swinv2.layernorm1.5K0.0%1.0K0.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeswinv2swinv2✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size256256✓ kept
modelpatch_size44✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Swinv2 omitted).

ClassOriginalFixture
Linear10036
Dropout3713
LayerNorm2913
GELUActivation124
ReLU124
Sequential124
Attention124
Intermediate124
Layer124
Output124
SelfAttention124
SelfOutput124
DropPath113
ModuleList55
Stage44
PatchMerging33
AdaptiveAvgPool1d11
Conv2d11
Identity11
Embeddings11
Encoder11
ForImageClassification11
Model11
PatchEmbeddings11

Config changes

5 fields changed, 28 unchanged.

FieldOriginalFixture
depths[2, 2, 6, 2][1, 1, 1, 1]
embed_dim9664
hidden_size76864
num_heads[3, 6, 12, 24][2, 4, 8, 16]
num_layers42
+
\ No newline at end of file diff --git a/shrink/t5-mic.html b/shrink/t5-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..60faae3d94baa6794f55a19b52beaf04730d8d3d --- /dev/null +++ b/shrink/t5-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/t5-mic@17a8c0b6ac87899e79dc2ab8a6b5567dc3948162 ← google-t5/t5-small@df1b051c49625cf57a3d0d8d3863ed4d13564fe4 · T5ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original60.5Mparameters
Fixture2.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.block

Original · 6
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding51✓ kept

decoder.block

Original · 6
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding51✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
decoder.block25.2M41.6%98.8K4.4%
encoder.block18.9M31.2%65.9K3.0%
shared16.4M27.2%2.1M92.6%
decoder.final_layer_norm5120.0%640.0%
encoder.final_layer_norm5120.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typet5t5✓ kept
modelvocab_size3212832128✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix T5 omitted).

ClassOriginalFixture
Linear9733
Dropout4416
LayerNorm3212
Attention186
ModuleList146
ReLU124
Block124
DenseActDense124
LayerFF124
LayerSelfAttention124
LayerCrossAttention62
Embedding55
Stack22
ForConditionalGeneration11

Config changes

6 fields changed, 29 unchanged.

FieldOriginalFixture
d_ff2048128
d_kv6416
d_model51264
num_decoder_layers62
num_heads84
num_layers62
+
\ No newline at end of file diff --git a/shrink/t5-small-mic.html b/shrink/t5-small-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..fd905b219f7d13ed807cc4609f7e5528a4f6f90e --- /dev/null +++ b/shrink/t5-small-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/t5-small-mic@4f5dcdc6040660035cd0f86a8867270fb7405f46 ← google-t5/t5-small@df1b051c49625cf57a3d0d8d3863ed4d13564fe4 · T5ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original60.5Mparameters
Fixture2.2Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.block

Original · 6
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding51✓ kept

decoder.block

Original · 6
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding51✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
decoder.block25.2M41.6%98.8K4.4%
encoder.block18.9M31.2%65.9K3.0%
shared16.4M27.2%2.1M92.6%
decoder.final_layer_norm5120.0%640.0%
encoder.final_layer_norm5120.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typet5t5✓ kept
modelvocab_size3212832128✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix T5 omitted).

ClassOriginalFixture
Linear9733
Dropout4416
LayerNorm3212
Attention186
ModuleList146
ReLU124
Block124
DenseActDense124
LayerFF124
LayerSelfAttention124
LayerCrossAttention62
Embedding55
Stack22
ForConditionalGeneration11

Config changes

6 fields changed, 29 unchanged.

FieldOriginalFixture
d_ff2048128
d_kv6416
d_model51264
num_decoder_layers62
num_heads84
num_layers62
+
\ No newline at end of file diff --git a/shrink/table_transformer-mic.html b/shrink/table_transformer-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..588886198c793d0593ca42181d5de2cb5056f86f --- /dev/null +++ b/shrink/table_transformer-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/table_transformer-mic@5b726b4a1f1b6488656b90260731a596ac3955fa ← microsoft/table-transformer-detection@2357cbe2b5a5d1c03e54f32764f06058933b65ab · TableTransformerForObjectDetection · random weights · built before the shrink rule (no recorded recipe)

+
Original28.8Mparameters
Fixture11.4Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
EncoderLayer62✓ kept

model.decoder.layers

Original · 6
Fixture · 2
KindOriginalFixture
DecoderLayer62✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.backbone11.2M38.8%11.2M98.2%
model.decoder.layers9.5M32.9%100.5K0.9%
model.encoder.layers7.9M27.4%66.9K0.6%
bbox_predictor.layers132.6K0.5%8.6K0.1%
model.input_projection131.3K0.5%32.8K0.3%
model.query_position_embeddings3.8K0.0%9600.0%
class_labels_classifier7710.0%1950.0%
2 others1.0K0.0%2560.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typetable-transformertable-transformer✓ kept
modelmax_position_embeddings10241024✓ kept
modelnum_channels33✓ kept
backbone_configmodel_typetimm_backbonetimm_backbone✓ kept
backbone_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix TableTransformer omitted).

ClassOriginalFixture
Linear10036
LayerNorm3212
ReLU2921
Conv2d2121
FrozenBatchNorm2d2020
Attention186
Identity1616
BasicBlock88
Sequential77
DecoderLayer62
EncoderLayer62
ModuleList33
Embedding11
FeatureListNet11
MaxPool2d11
ConvEncoder11
ConvModel11
Decoder11
Encoder11
ForObjectDetection11
MLPPredictionHead11
Model11
SinePositionEmbedding11

Config changes

10 fields changed, 48 unchanged.

FieldOriginalFixture
backbone_config.out_featuresnull["layer4"]
backbone_config.out_indices[1, 2, 3, 4][-1]
backbone_config.stage_names—["act1", "layer1", "layer2", "layer3", "layer4"]
d_model25664
decoder_attention_heads84
decoder_ffn_dim2048128
decoder_layers62
encoder_attention_heads84
encoder_ffn_dim2048128
encoder_layers62
+
\ No newline at end of file diff --git a/shrink/tibetan-ocr-mic.html b/shrink/tibetan-ocr-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c1e04ad68f5134f9961b83bb69d0fee03aa21f29 --- /dev/null +++ b/shrink/tibetan-ocr-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/tibetan-ocr-mic@78b84a91abf7da0acb2773e935fee059d6bbe227 ← BDRC/tibetan-ocr@50506eb6d8ed8738df86b448f6f6cdc688de29ea · PaddleOCRVLForConditionalGeneration · random weights

+
Original810.7Mparameters
Fixture535.7Kparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.visual.vision_model.encoder.layers

Original · 27
Fixture · 2
KindOriginalFixture
PaddleOCRVisionEncoderLayer272✓ kept

model.language_model.layers

Original · 26
Fixture · 2
KindOriginalFixture
PaddleOCRDecoderLayer262✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.visual.vision_model.encoder.layers411.5M50.8%66.9K12.5%
model.language_model.layers368.1M45.4%74.0K13.8%
model.projector26.0M3.2%82.4K15.4%
model.language_model3.6M0.4%227.9K42.5%
model.visual1.5M0.2%84.5K15.8%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typepaddleocr_vlpaddleocr_vl✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (16 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typepaddleocr_vl_textpaddleocr_vl_text✓ kept
text_configvocab_size35603560✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings131072131072✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typepaddleocr_vl_visionpaddleocr_vl_vision✓ kept
vision_confighidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
vision_configimage_size384384✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix PaddleOCRVL omitted).

ClassOriginalFixture
Linear34729
LayerNorm566
PaddleOCRRMSNorm535
GELUTanh272
PaddleOCRVisionAttention272
PaddleOCRVisionEncoderLayer272
PaddleOCRVisionMLP272
PaddleOCRAttention262
PaddleOCRDecoderLayer262
PaddleOCRMLP262
SiLUActivation262
Embedding22
ModuleList22
Conv2d11
GELUActivation11
PaddleOCRProjector11
PaddleOCRRotaryEmbedding11
PaddleOCRTextModel11
ForConditionalGeneration11
Model11
PaddleOCRVisionEmbeddings11
PaddleOCRVisionEncoder11
PaddleOCRVisionModel11
PaddleOCRVisionRotaryEmbedding11
PaddleOCRVisionTransformer11

Config changes

10 fields changed, 66 unchanged.

FieldOriginalFixture
text_config.head_dim12816
text_config.hidden_size102464
text_config.intermediate_size3072128
text_config.num_attention_heads164
text_config.num_hidden_layers262
text_config.rope_parameters{"mrope_section": [16, 24, 24], "rope_theta": 500000, "rope_type": "default",…{"mrope_section": [2, 3, 3], "rope_theta": 500000, "rope_type": "default", "t…
vision_config.hidden_size115264
vision_config.intermediate_size4304128
vision_config.num_attention_heads164
vision_config.num_hidden_layers272
+
\ No newline at end of file diff --git a/shrink/timesfm-2.0-500m-pytorch-mic.html b/shrink/timesfm-2.0-500m-pytorch-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..dd140682780b8e7663f45473f26e8af07b6bc92a --- /dev/null +++ b/shrink/timesfm-2.0-500m-pytorch-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/timesfm-2.0-500m-pytorch-mic@d9e2f9e3ea410197d1b0f1ef346cd0f1f33f693b ← google/timesfm-2.0-500m-pytorch@dc2443792ce5516872b89b37cf1bc058c3bf0c10 · TimesFmModelForPrediction · random weights · built before the shrink rule (no recorded recipe)

+
Original498.8Mparameters
Fixture344.4Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

decoder.layers

Original · 50
Fixture · 2
KindOriginalFixture
DecoderLayer502✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
decoder.layers492.1M98.7%66.8K19.4%
decoder.input_ff_layer1.8M0.4%20.7K6.0%
horizon_ff_layer.residual_layer1.6M0.3%83.2K24.2%
horizon_ff_layer.input_layer1.6M0.3%8.3K2.4%
horizon_ff_layer.output_layer1.6M0.3%165.1K47.9%
decoder.freq_emb3.8K0.0%1920.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typetimesfmtimesfm✓ kept

Module classes

Instances of each class in the built model (prefix TimesFm omitted).

ClassOriginalFixture
Linear30618
LayerNorm502
Attention502
DecoderLayer502
MLP502
RMSNorm502
SiLU22
ResidualBlock22
Embedding11
ModuleList11
Model11
ModelForPrediction11

Config changes

5 fields changed, 22 unchanged.

FieldOriginalFixture
head_dim8016
hidden_size128064
intermediate_size1280128
num_attention_heads164
num_hidden_layers502
+
\ No newline at end of file diff --git a/shrink/tiny-clip-text-2-mic.html b/shrink/tiny-clip-text-2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4dd5c459b903984e31080bb93cf0ed640ce6664a --- /dev/null +++ b/shrink/tiny-clip-text-2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/tiny-clip-text-2-mic@c9fce363d5426f2b2bad7bd285c55932c0055daa ← peft-internal-testing/tiny-clip-text-2@4fbb8d27f0fdda658bc80bbccbd3d749044ace78 · CLIPTextModelWithProjection · random weights

+
Original69.5Kparameters
Fixture138.0Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layers

Original · 5
Fixture · 2
KindOriginalFixture
CLIPEncoderLayer52✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
text_model.embeddings34.5K49.6%68.9K49.9%
text_model.encoder.layers33.9K48.8%66.9K48.5%
text_projection1.0K1.5%2.0K1.5%
text_model.final_layer_norm640.1%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeclip_text_modelclip_text_model✓ kept
modelvocab_size10001000✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings7777✓ kept

Module classes

Instances of each class in the built model (prefix CLIPText omitted).

ClassOriginalFixture
Linear3113
LayerNorm115
CLIPAttention52
CLIPEncoderLayer52
CLIPMLP52
GELUActivation52
Embedding22
CLIPEncoder11
Embeddings11
Model11
ModelWithProjection11
ModuleList11

Config changes

3 fields changed, 21 unchanged.

FieldOriginalFixture
hidden_size3264
intermediate_size37128
num_hidden_layers52
+
\ No newline at end of file diff --git a/shrink/tiny-random-aya-base-mic.html b/shrink/tiny-random-aya-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c3a43d891cf5b6539e161f1b1fecb84f48a4a5f6 --- /dev/null +++ b/shrink/tiny-random-aya-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/tiny-random-aya-base-mic@42e97ac577e1e82f7cac9918e3fc87f3c6585b98 ← optimum-intel-internal-testing/tiny-random-aya-base@e85478d37f912454b23ff2a9c7af16a960837644 · Cohere2ForCausalLM · random weights

+
Original1.1Mparameters
Fixture16.9Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.layers

Original · 2
Fixture · 2
KindOriginalFixture
DecoderLayer22✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.embed_tokens1.0M98.4%16.8M99.5%
model.layers16.5K1.6%82.0K0.5%
model.norm40.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (4 heads, 4 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typecohere2cohere2✓ kept
modelvocab_size262144262144✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings500000500000✓ kept

Module classes

Instances of each class in the built model (prefix Cohere2 omitted).

ClassOriginalFixture
Linear1515
LayerNorm33
Attention22
DecoderLayer22
MLP22
SiLUActivation22
ForCausalLM11
Model11
RotaryEmbedding11
Embedding11
ModuleList11

Config changes

3 fields changed, 40 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size464
intermediate_size5128
+
\ No newline at end of file diff --git a/shrink/tiny-random-muse-glimmer-mic.html b/shrink/tiny-random-muse-glimmer-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..e02972a65c3090ba249918bdca94fcd089b28ca0 --- /dev/null +++ b/shrink/tiny-random-muse-glimmer-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/tiny-random-muse-glimmer-mic@5d21eb327b8963e4a0e32c69882b7593c211b0e5 ← optimum-intel-internal-testing/tiny-random-muse-glimmer@cb70af191bbbf704a47b7d24dd5287d97dd60103 · MuseGlimmerForConditionalGeneration · random weights

+
Original13.5Mparameters
Fixture13.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.vision_tower.layers

Original · 4
Fixture · 2
KindOriginalFixture
VisionEncoderLayer42✓ kept

model.language_model.layers

Original · 4
Fixture · 2
KindOriginalFixture
TextDecoderLayer42✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.language_model12.9M95.6%12.9M97.4%
model.language_model.layers263.2K1.9%82.4K0.6%
model.vision_tower141.1K1.0%141.1K1.1%
model.vision_tower.layers133.9K1.0%66.9K0.5%
model.vision_adapter49.2K0.4%49.2K0.4%
model.vision_projection8.2K0.1%8.2K0.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemuse_glimmermuse_glimmer✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
text_configattention styleGQA (4 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typemuse_glimmer_textmuse_glimmer_text✓ kept
text_configvocab_size202048202048✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_configmax_position_embeddings131072131072✓ kept
vision_configRoPE typeaxialaxial✓ kept
vision_configmodel_typemuse_glimmer_visionmuse_glimmer_vision✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configmax_position_embeddings10241024✓ kept
vision_configpatch_size1414✓ kept

Module classes

Instances of each class in the built model (prefix MuseGlimmer omitted).

ClassOriginalFixture
Linear6133
TextCenteredRMSNorm168
LayerNorm106
RMSNorm75
GELUActivation53
TextAttention42
TextDecoderLayer42
TextMLP42
VisionAttention42
VisionEncoderLayer42
VisionMLP42
SiLUActivation42
ModuleList22
Embedding11
ForConditionalGeneration11
Model11
TextModel11
TextNormedEmbedding11
TextRotaryEmbedding11
VisionAdapter11
VisionModel11
VisionPatchEmbedder11
VisionRotaryEmbedding11

Config changes

6 fields changed, 67 unchanged.

FieldOriginalFixture
text_config.intermediate_size256128
text_config.layer_rope_theta[500000.0, 500000.0, 500000.0, 0][500000.0, 0]
text_config.layer_types["sliding_attention", "sliding_attention", "sliding_attention", "full_attenti…["sliding_attention", "full_attention"]
text_config.num_hidden_layers42
vision_config.layer_types["window_attention", "window_attention", "window_attention", "full_attention"]["window_attention", "full_attention"]
vision_config.num_hidden_layers42
+
\ No newline at end of file diff --git a/shrink/tiny_starcoder_py-mic.html b/shrink/tiny_starcoder_py-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..6ab1c9bd6dadd8bf6520af566ab52cbb0d6e6fb6 --- /dev/null +++ b/shrink/tiny_starcoder_py-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/tiny_starcoder_py-mic@0ad90af0e2e20c84f2462ee730f66722e2cec933 ← bigcode/tiny_starcoder_py@8547527bef0bc927268c1653cce6948c5c242dd1 · GPTBigCodeForCausalLM · random weights

+
Original164.1Mparameters
Fixture3.7Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

transformer.h

Original · 20
Fixture · 2
KindOriginalFixture
Block202✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
transformer.h120.1M73.2%54.5K1.5%
transformer.wte37.7M23.0%3.1M84.5%
transformer.wpe6.3M3.8%524.3K14.1%
transformer.ln_f1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegpt_bigcodegpt_bigcode✓ kept
modelvocab_size4915249152✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix GPTBigCode omitted).

ClassOriginalFixture
Linear819
Dropout415
LayerNorm415
GELUTanh202
Attention202
Block202
MLP202
Embedding22
ForCausalLM11
Model11
ModuleList11

Config changes

5 fields changed, 38 unchanged.

FieldOriginalFixture
n_embd76864
n_head124
n_inner3072128
n_layer202
num_key_value_heads12
+
\ No newline at end of file diff --git a/shrink/tipsv2-b14-mic.html b/shrink/tipsv2-b14-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f3a3da22d0bbe4c9f9c713ac57b6414e3e32c085 --- /dev/null +++ b/shrink/tipsv2-b14-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/tipsv2-b14-mic@1ba3c8e34558ed9711f0a5dcb5cfc965bca5f380 ← google/tipsv2-b14@ed1e4dc6b74bf3935ae099e9d5eb30fa96528454 · Tipsv2Model · random weights

+
Original195.9Mparameters
Fixture2.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

text_model.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
TextEncoderLayer122✓ kept

vision_model.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
VisionLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vision_model.encoder.layer85.1M43.4%100.2K4.3%
text_model.encoder.layers85.1M43.4%66.9K2.9%
text_model.embeddings24.6M12.5%2.0M88.3%
vision_model.embeddings1.2M0.6%103.5K4.5%
vision_model.layernorm1.5K0.0%1280.0%
text_model.final_layer_norm1.5K0.0%1280.0%
temperature10.0%10.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typetipsv2tipsv2✓ kept
text_configmodel_typetipsv2_text_modeltipsv2_text_model✓ kept
text_configvocab_size3200032000✓ kept
text_confighidden_actrelurelu✓ kept
text_configmax_position_embeddings6464✓ kept
vision_configmodel_typetipsv2_vision_modeltipsv2_vision_model✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size448448✓ kept
vision_configpatch_size1414✓ kept
vision_confignum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Tipsv2 omitted).

ClassOriginalFixture
Linear14424
LayerNorm5010
VisionLayerScale244
GELUActivation122
Identity122
ReLU122
MLP122
TextAttention122
TextEncoderLayer122
VisionAttention122
VisionLayer122
VisionMLP122
ModuleList22
Conv2d11
Dropout11
Embedding11
Model11
SinusoidalPositionalEmbedding11
TextEmbeddings11
TextEncoder11
TextModel11
VisionEmbeddings11
VisionEncoder11
VisionModel11
VisionPatchEmbeddings11

Config changes

9 fields changed, 59 unchanged.

FieldOriginalFixture
text_config.hidden_size76864
text_config.intermediate_size3072128
text_config.num_attention_heads124
text_config.num_hidden_layers122
vision_config.hidden_size76864
vision_config.num_attention_heads124
vision_config.num_hidden_layers122
vision_config.out_features["stage12"]["stage2"]
vision_config.out_indices[12][2]
+
\ No newline at end of file diff --git a/shrink/umt5-small-mic.html b/shrink/umt5-small-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..d2275de33f680a5d9cea13bc2a8271252a850f9d --- /dev/null +++ b/shrink/umt5-small-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/umt5-small-mic@3ea88ecd4caca76da9aeec8609c47d076387ddbb ← google/umt5-small@8c63c2b77efbf8e41206a2c8d994846cc9392360 · UMT5ForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)

+
Original175.3Mparameters
Fixture16.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

encoder.block

Original · 8
Fixture · 2
KindOriginalFixture
Block82✓ kept

decoder.block

Original · 8
Fixture · 2
KindOriginalFixture
Block82✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
shared131.3M74.9%16.4M98.8%
decoder.block25.2M14.4%115.3K0.7%
encoder.block18.9M10.8%82.4K0.5%
encoder.final_layer_norm5120.0%640.0%
decoder.final_layer_norm5120.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeumt5umt5✓ kept
modelvocab_size256384256384✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

Instances of each class in the built model (prefix UMT5 omitted).

ClassOriginalFixture
Linear14537
Dropout5816
LayerNorm4212
Attention246
Embedding197
ModuleList186
NewGELUActivation164
Block164
DenseGatedActDense164
LayerFF164
LayerSelfAttention164
LayerCrossAttention82
Stack22
ForConditionalGeneration11

Config changes

6 fields changed, 28 unchanged.

FieldOriginalFixture
d_ff1024128
d_kv6416
d_model51264
num_decoder_layers82
num_heads64
num_layers82
+
\ No newline at end of file diff --git a/shrink/vit-mic.html b/shrink/vit-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..3b8ad0f24ea49763c1800374cee54b3d3ee90e11 --- /dev/null +++ b/shrink/vit-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/vit-mic@d69cbc45edf98915b1e1af08807186c22b3152f0 ← google/vit-base-patch16-224@3f49326eb077187dfe1c2a2bb15fbd74e6ab91e3 · ViTForImageClassification · overfit weights · built before the shrink rule (no recorded recipe)

+
Original86.6Mparameters
Fixture194.0Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

vit.layers

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vit.layers85.1M98.3%66.9K34.5%
classifier769.0K0.9%65.0K33.5%
vit.embeddings742.7K0.9%61.9K31.9%
vit.layernorm1.5K0.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevitvit✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix ViT omitted).

ClassOriginalFixture
Linear7313
LayerNorm255
Dropout133
GELUActivation122
Attention122
Layer122
MLP122
Conv2d11
ModuleList11
Embeddings11
ForImageClassification11
Model11
PatchEmbeddings11

Config changes

5 fields changed, 20 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
problem_typenullsingle_label_classification
+
\ No newline at end of file diff --git a/shrink/vitmatte-small-composition-1k-mic.html b/shrink/vitmatte-small-composition-1k-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..86e9b5204dbc65a254ea0c095a521a2d0d1ef16a --- /dev/null +++ b/shrink/vitmatte-small-composition-1k-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/vitmatte-small-composition-1k-mic@61792a27445020e8ccc069e7fb01ffef9a499d39 ← hustvl/vitmatte-small-composition-1k@6a58ad7646403c1df626fbd746900aec7361ea1d · VitMatteForImageMatting · overfit weights

+
Original25.8Mparameters
Fixture1.6Mparameters
Layer stacks3compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

backbone.encoder.layer

Original · 12
Fixture · 3
KindOriginalFixture
no Conv2d82✓ kept
Conv2d, VitDetLayerNorm, VitDetResBottleneckBlock41✓ kept

decoder.convstream.convs

Original · 3
Fixture · 3
KindOriginalFixture
ReLU33✓ kept

decoder.fusion_blocks

Original · 4
Fixture · 4
KindOriginalFixture
FusionBlock44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
backbone.encoder.layer23.3M90.2%167.3K10.6%
decoder.fusion_blocks1.9M7.2%1.1M70.8%
backbone.embeddings469.2K1.8%78.2K5.0%
decoder.convstream.convs209.8K0.8%209.8K13.3%
decoder.matting_head4.7K0.0%4.7K0.3%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevitmattevitmatte✓ kept
backbone_configmodel_typevitdetvitdet✓ kept
backbone_confighidden_actgelugelu✓ kept
backbone_configimage_size512512✓ kept
backbone_configpatch_size1616✓ kept
backbone_confignum_channels44✓ kept

Module classes

Instances of each class in the built model (prefix VitMatte omitted).

ClassOriginalFixture
Linear4812
LayerNorm246
Conv2d2213
GELUActivation205
Dropout123
Identity123
VitDetAttention123
VitDetLayer123
VitDetLayerNorm123
VitDetMlp123
BatchNorm2d88
ReLU88
BasicConv3x377
VitDetResBottleneckBlock41
FusionBlock44
ModuleList33
Sequential11
VitDetBackbone11
VitDetEmbeddings11
VitDetEncoder11
ConvStream11
DetailCaptureModule11
ForImageMatting11
Head11

Config changes

6 fields changed, 39 unchanged.

FieldOriginalFixture
backbone_config.hidden_size38464
backbone_config.num_attention_heads64
backbone_config.num_hidden_layers123
backbone_config.out_features["stage12"]["stage3"]
backbone_config.out_indices[12][3]
hidden_size38464
+
\ No newline at end of file diff --git a/shrink/wav2vec2-base-960h-mic.html b/shrink/wav2vec2-base-960h-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..c25af61d71573745e4267eddb2f337878ef562bf --- /dev/null +++ b/shrink/wav2vec2-base-960h-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/wav2vec2-base-960h-mic@889c4c48f746571cbbdb9235e9746c3142ee0550 ← facebook/wav2vec2-base-960h@22aad52d435eb6dbaf354bdad9b0da84ce7d6156 · Wav2Vec2ForCTC · random weights · built before the shrink rule (no recorded recipe)

+
Original94.4Mparameters
Fixture4.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

wav2vec2.feature_extractor.conv_layers

Original · 7
Fixture · 7
KindOriginalFixture
GroupNorm, GroupNormConvLayer11✓ kept
NoLayerNormConvLayer66✓ kept

wav2vec2.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
wav2vec2.encoder.layers85.1M90.1%66.9K1.5%
wav2vec2.encoder4.7M5.0%33.1K0.8%
wav2vec2.feature_extractor.conv_layers4.2M4.4%4.2M96.9%
wav2vec2.feature_projection395.0K0.4%33.9K0.8%
lm_head24.6K0.0%2.1K0.0%
wav2vec27680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typewav2vec2wav2vec2✓ kept
modelvocab_size3232✓ kept
modelhidden_actgelugelu✓ kept

Module classes

Instances of each class in the built model (prefix Wav2Vec2 omitted).

ClassOriginalFixture
Linear7414
Dropout399
LayerNorm266
GELUActivation2010
Attention122
EncoderLayer122
FeedForward122
Conv1d77
NoLayerNormConvLayer66
ModuleList22
GroupNorm11
ModuleDict11
ParametrizationList11
ParametrizedConv1d11
Encoder11
FeatureEncoder11
FeatureProjection11
ForCTC11
GroupNormConvLayer11
Model11
PositionalConvEmbedding11
SamePadLayer11
_WeightNorm11

Config changes

4 fields changed, 64 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/wav2vec2-mic.html b/shrink/wav2vec2-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9015b8421b116721e6e39d96b52c2f41913fc965 --- /dev/null +++ b/shrink/wav2vec2-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/wav2vec2-mic@4cce7c54a33fa531f4800eb4dba71b23dda960a7 ← facebook/wav2vec2-base-960h@22aad52d435eb6dbaf354bdad9b0da84ce7d6156 · Wav2Vec2ForCTC · random weights · built before the shrink rule (no recorded recipe)

+
Original94.4Mparameters
Fixture4.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

wav2vec2.feature_extractor.conv_layers

Original · 7
Fixture · 7
KindOriginalFixture
GroupNorm, GroupNormConvLayer11✓ kept
NoLayerNormConvLayer66✓ kept

wav2vec2.encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
EncoderLayer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
wav2vec2.encoder.layers85.1M90.1%66.9K1.5%
wav2vec2.encoder4.7M5.0%33.1K0.8%
wav2vec2.feature_extractor.conv_layers4.2M4.4%4.2M96.9%
wav2vec2.feature_projection395.0K0.4%33.9K0.8%
lm_head24.6K0.0%2.1K0.0%
wav2vec27680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typewav2vec2wav2vec2✓ kept
modelvocab_size3232✓ kept
modelhidden_actgelugelu✓ kept

Module classes

Instances of each class in the built model (prefix Wav2Vec2 omitted).

ClassOriginalFixture
Linear7414
Dropout399
LayerNorm266
GELUActivation2010
Attention122
EncoderLayer122
FeedForward122
Conv1d77
NoLayerNormConvLayer66
ModuleList22
GroupNorm11
ModuleDict11
ParametrizationList11
ParametrizedConv1d11
Encoder11
FeatureEncoder11
FeatureProjection11
ForCTC11
GroupNormConvLayer11
Model11
PositionalConvEmbedding11
SamePadLayer11
_WeightNorm11

Config changes

4 fields changed, 64 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/wavlm-base-plus-mic.html b/shrink/wavlm-base-plus-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..8ece28cb7370b08f9f2358a6810984022a0cbe0b --- /dev/null +++ b/shrink/wavlm-base-plus-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/wavlm-base-plus-mic@55205db7dc5cdb00809d44f273506a349cc1d861 ← microsoft/wavlm-base-plus@4c66d4806a428f2e922ccfa1a962776e232d487b · WavLMModel · random weights

+
Original94.4Mparameters
Fixture4.3Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

feature_extractor.conv_layers

Original · 7
Fixture · 7
KindOriginalFixture
GroupNorm, GroupNormConvLayer11✓ kept
NoLayerNormConvLayer66✓ kept

encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
Embedding11✓ kept
no Embedding111✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
encoder.layers85.1M90.1%68.5K1.6%
encoder.pos_conv_embed4.7M5.0%33.0K0.8%
feature_extractor.conv_layers4.2M4.5%4.2M96.9%
feature_projection.projection394.0K0.4%32.8K0.8%
encoder.layer_norm1.5K0.0%1280.0%
feature_projection.layer_norm1.0K0.0%1.0K0.0%
masked_spec_embed7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typewavlmwavlm✓ kept
modelvocab_size3232✓ kept
modelhidden_actgelugelu✓ kept

Module classes

Instances of each class in the built model (prefix WavLM omitted).

ClassOriginalFixture
Linear8515
Dropout388
LayerNorm266
GELUActivation2010
Attention122
EncoderLayer122
FeedForward122
Conv1d77
NoLayerNormConvLayer66
ModuleList22
Embedding11
GroupNorm11
ModuleDict11
ParametrizationList11
ParametrizedConv1d11
Encoder11
FeatureEncoder11
FeatureProjection11
GroupNormConvLayer11
Model11
PositionalConvEmbedding11
SamePadLayer11
_WeightNorm11

Config changes

4 fields changed, 76 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/whisper-mic.html b/shrink/whisper-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..f747dd984e036c1195bcfae348f93629b88bf677 --- /dev/null +++ b/shrink/whisper-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/whisper-mic@1f40ed2753f5ba347b5bd1ba3624c971b9327ab8 ← openai/whisper-tiny@169d4a4341b33bc18d8881c4b69c2e104e1cc0af · WhisperForConditionalGeneration · overfit weights · built before the shrink rule (no recorded recipe)

+
Original37.8Mparameters
Fixture3.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 4
Fixture · 2
KindOriginalFixture
EncoderLayer42✓ kept

model.decoder.layers

Original · 4
Fixture · 2
KindOriginalFixture
DecoderLayer42✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.decoder20.1M53.2%3.3M92.0%
model.decoder.layers9.5M25.1%100.2K2.8%
model.encoder.layers7.1M18.8%66.8K1.8%
model.encoder1.1M2.9%123.9K3.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typewhisperwhisper✓ kept
modelvocab_size5186551865✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelnum_mel_bins8080✓ kept

Module classes

Instances of each class in the built model (prefix Whisper omitted).

ClassOriginalFixture
Linear6533
LayerNorm2212
Attention126
GELUActivation84
DecoderLayer42
EncoderLayer42
Conv1d22
Embedding22
ModuleList22
Decoder11
Encoder11
ForConditionalGeneration11
Model11
PositionalEmbedding11

Config changes

7 fields changed, 40 unchanged.

FieldOriginalFixture
d_model38464
decoder_attention_heads64
decoder_ffn_dim1536128
decoder_layers42
encoder_attention_heads64
encoder_ffn_dim1536128
encoder_layers42
+
\ No newline at end of file diff --git a/shrink/whisper-tiny-mic.html b/shrink/whisper-tiny-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..b638b3e4844e75b4ee1ec4e60d7e7e142ed46b5a --- /dev/null +++ b/shrink/whisper-tiny-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/whisper-tiny-mic@9d85803a8fb0226794764f4b12a4d4fd74d160ed ← openai/whisper-tiny@169d4a4341b33bc18d8881c4b69c2e104e1cc0af · WhisperForConditionalGeneration · overfit weights · built before the shrink rule (no recorded recipe)

+
Original37.8Mparameters
Fixture3.6Mparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

model.encoder.layers

Original · 4
Fixture · 2
KindOriginalFixture
EncoderLayer42✓ kept

model.decoder.layers

Original · 4
Fixture · 2
KindOriginalFixture
DecoderLayer42✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
model.decoder20.1M53.2%3.3M92.0%
model.decoder.layers9.5M25.1%100.2K2.8%
model.encoder.layers7.1M18.8%66.8K1.8%
model.encoder1.1M2.9%123.9K3.4%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typewhisperwhisper✓ kept
modelvocab_size5186551865✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelnum_mel_bins8080✓ kept

Module classes

Instances of each class in the built model (prefix Whisper omitted).

ClassOriginalFixture
Linear6533
LayerNorm2212
Attention126
GELUActivation84
DecoderLayer42
EncoderLayer42
Conv1d22
Embedding22
ModuleList22
Decoder11
Encoder11
ForConditionalGeneration11
Model11
PositionalEmbedding11

Config changes

7 fields changed, 40 unchanged.

FieldOriginalFixture
d_model38464
decoder_attention_heads64
decoder_ffn_dim1536128
decoder_layers42
encoder_attention_heads64
encoder_ffn_dim1536128
encoder_layers42
+
\ No newline at end of file diff --git a/shrink/xlm-roberta-base-mic.html b/shrink/xlm-roberta-base-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..9334051d71ca956227049428af881fceb00a2169 --- /dev/null +++ b/shrink/xlm-roberta-base-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/xlm-roberta-base-mic@934d2300ab3a3eb5acc9c187a91f51c325b31f06 ← FacebookAI/xlm-roberta-base@e73636d4f797dec63c3081bb6ed5c7b0bb3f2089 · XLMRobertaForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

+
Original278.3Mparameters
Fixture16.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

roberta.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
lm_head.decoder192.0M69.0%16.0M97.8%
roberta.encoder.layer85.1M30.6%66.9K0.4%
lm_head.dense590.6K0.2%4.2K0.0%
roberta.embeddings397.1K0.1%33.1K0.2%
lm_head250.0K0.1%250.0K1.5%
lm_head.layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typexlm-robertaxlm-roberta✓ kept
modelvocab_size250002250002✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

Instances of each class in the built model (prefix XLMRoberta omitted).

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation122
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
ModuleList11
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
+
\ No newline at end of file diff --git a/shrink/xlm-roberta-xl-mic.html b/shrink/xlm-roberta-xl-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..5e8c079b015017336d8275e1be3a110df8ce4937 --- /dev/null +++ b/shrink/xlm-roberta-xl-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/xlm-roberta-xl-mic@54cda088a6d8425f8172bc7e1b90f5958a43c1af ← facebook/xlm-roberta-xl@aa5d120255845efeebc9b7f42822a1dd0f9ece9d · XLMRobertaXLForMaskedLM · random weights

+
Original3.5Bparameters
Fixture16.4Mparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

roberta.encoder.layer

Original · 36
Fixture · 2
KindOriginalFixture
Layer362✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
roberta.encoder.layer2.8B81.3%66.9K0.4%
roberta.embeddings643.6M18.5%16.1M98.0%
lm_head.dense6.6M0.2%4.2K0.0%
lm_head250.9K0.0%250.9K1.5%
lm_head.layer_norm5.1K0.0%1280.0%
roberta.encoder5.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typexlm-roberta-xlxlm-roberta-xl✓ kept
modelvocab_size250880250880✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

Instances of each class in the built model (prefix XLMRobertaXL omitted).

ClassOriginalFixture
Linear21814
LayerNorm746
Dropout735
GELUActivation362
Attention362
Intermediate362
Layer362
Output362
SelfAttention362
SelfOutput362
Embedding33
ModuleList11
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size256064
intermediate_size10240128
num_attention_heads324
num_hidden_layers362
+
\ No newline at end of file diff --git a/shrink/yolos-small-mic.html b/shrink/yolos-small-mic.html new file mode 100644 index 0000000000000000000000000000000000000000..4276aa379e526e95afe7bbc30acfec0d9f0d103b --- /dev/null +++ b/shrink/yolos-small-mic.html @@ -0,0 +1,34 @@ + + +Shrunk architecture +
+

Shrunk architecture

huggingface-mic/yolos-small-mic@908c43a6393a98f01b4a828f7c3dc95052ee1f74 ← hustvl/yolos-small@3d8f7130d3ce4907cb206fe1c8485dc8fe8703de · YolosForObjectDetection · overfit weights

+
Original30.7Mparameters
Fixture379.7Kparameters
Layer stacks1compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

vit.encoder.layer

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
vit.encoder.layer21.3M69.4%66.9K17.6%
vit.encoder7.7M25.2%117.1K30.8%
vit.embeddings1.0M3.4%172.7K45.5%
class_labels_classifier.layers331.1K1.1%14.3K3.8%
bbox_predictor.layers297.2K1.0%8.6K2.3%
vit.layernorm7680.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeyolosyolos✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size[512, 864][512, 864]✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix Yolos omitted).

ClassOriginalFixture
Linear7818
Dropout255
LayerNorm255
GELUActivation122
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
ModuleList33
MLPPredictionHead22
Conv2d11
InterpolateInitialPositionEmbeddings11
InterpolateMidPositionEmbeddings11
Embeddings11
Encoder11
ForObjectDetection11
Model11
PatchEmbeddings11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size38464
intermediate_size1536128
num_attention_heads64
num_hidden_layers122
+
\ No newline at end of file