{ "format": "bubo_coreml_v1", "kv_mode": "delta", "architecture_family": "gemma4", "source_model": "google/gemma-4-E4B-it", "model_type": "gemma4_text", "conversion_profile": "auto-iphone-8gb", "execution_mode": "unified", "quantization": "int4", "quant_method": "palettize", "lut_mode": "kmeans", "group_size": 32, "per_channel_scale": false, "chunk_quantization": [ { "quant": "int6", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false }, { "quant": "int4", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false }, { "quant": "int4", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false }, { "quant": "int4", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false }, { "quant": "int4", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false }, { "quant": "int4", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false }, { "quant": "int6", "lut_mode": "kmeans", "quant_method": "palettize", "group_size": 32, "per_channel_scale": false } ], "lm_head_quantization": "int6", "lm_head_slices": 4, "lm_head_ranges": [ [ 0, 65536 ], [ 65536, 131072 ], [ 131072, 196608 ], [ 196608, 262144 ] ], "context_length": 2048, "prefill_batch_size": 16, "decode_batch_size": 16, "num_chunks": 7, "chunk_splits": [ [ 0, 6 ], [ 6, 12 ], [ 12, 18 ], [ 18, 24 ], [ 24, 30 ], [ 30, 36 ], [ 36, 42 ] ], "num_hidden_layers": 42, "hidden_size": 2560, "intermediate_size": 10240, "num_attention_heads": 8, "num_key_value_heads": 2, "head_dim": 256, "vocab_size": 262144, "rms_norm_eps": 1e-06, "rope_theta": 1000000.0, "bos_token_id": 2, "eos_token_ids": [ 1, 106, 50 ], "stateless": true, "auto_quant_plan": { "target_device": "iphone-8gb", "ram_budget_gb": 3.7, "estimated_active_ram_gb": 3.58, "estimated_disk_gb": 4.87, "default_quant": "int4", "default_lut_mode": "kmeans", "lm_head_quant": "int6", "lm_head_lut_mode": "fast_kmeans", "ple_quant": "int6", "vision_quant": "int6", "chunks": [ { "chunk_index": 0, "layer_start": 0, "layer_end": 6, "num_params": 571554310, "max_outlier_ratio": 20.22, "mean_outlier_ratio": 13.72, "int4_snr_db": 16.75, "int6_fast_snr_db": 28.35, "int6_exact_snr_db": 29.38, "chosen_quant": "int6", "chosen_lut_mode": "kmeans", "reason": "exact kmeans1d (outlier=20.2x, +1.0dB)" }, { "chunk_index": 1, "layer_start": 6, "layer_end": 12, "num_params": 571554310, "max_outlier_ratio": 10.76, "mean_outlier_ratio": 7.85, "int4_snr_db": 18.6, "int6_fast_snr_db": 29.73, "int6_exact_snr_db": 30.82, "chosen_quant": "int4", "chosen_lut_mode": "kmeans", "reason": "mixed INT4/INT6 within RAM budget; INT4 uses exact kmeans1d (SNR4=18.6dB, outlier=10.8x)" }, { "chunk_index": 2, "layer_start": 12, "layer_end": 18, "num_params": 571554310, "max_outlier_ratio": 13.56, "mean_outlier_ratio": 9.47, "int4_snr_db": 18.15, "int6_fast_snr_db": 29.84, "int6_exact_snr_db": 30.67, "chosen_quant": "int4", "chosen_lut_mode": "kmeans", "reason": "mixed INT4/INT6 within RAM budget; INT4 uses exact kmeans1d (SNR4=18.2dB, outlier=13.6x)" }, { "chunk_index": 3, "layer_start": 18, "layer_end": 24, "num_params": 571554310, "max_outlier_ratio": 13.34, "mean_outlier_ratio": 9.84, "int4_snr_db": 17.8, "int6_fast_snr_db": 29.03, "int6_exact_snr_db": 30.1, "chosen_quant": "int4", "chosen_lut_mode": "kmeans", "reason": "mixed INT4/INT6 within RAM budget; INT4 uses exact kmeans1d (SNR4=17.8dB, outlier=13.3x)" }, { "chunk_index": 4, "layer_start": 24, "layer_end": 30, "num_params": 571554310, "max_outlier_ratio": 12.35, "mean_outlier_ratio": 8.51, "int4_snr_db": 18.46, "int6_fast_snr_db": 29.81, "int6_exact_snr_db": 30.7, "chosen_quant": "int4", "chosen_lut_mode": "kmeans", "reason": "mixed INT4/INT6 within RAM budget; INT4 uses exact kmeans1d (SNR4=18.5dB, outlier=12.3x)" }, { "chunk_index": 5, "layer_start": 30, "layer_end": 36, "num_params": 571554310, "max_outlier_ratio": 15.14, "mean_outlier_ratio": 9.77, "int4_snr_db": 18.64, "int6_fast_snr_db": 29.84, "int6_exact_snr_db": 30.74, "chosen_quant": "int4", "chosen_lut_mode": "kmeans", "reason": "mixed INT4/INT6 within RAM budget; INT4 uses exact kmeans1d (SNR4=18.6dB, outlier=15.1x)" }, { "chunk_index": 6, "layer_start": 36, "layer_end": 42, "num_params": 571554310, "max_outlier_ratio": 11.13, "mean_outlier_ratio": 7.77, "int4_snr_db": 18.81, "int6_fast_snr_db": 30.17, "int6_exact_snr_db": 31.09, "chosen_quant": "int6", "chosen_lut_mode": "kmeans", "reason": "exact kmeans1d (final chunk)" } ] }, "global_head_dim": 512, "num_global_key_value_heads": 2, "rope_theta_local": 10000.0, "global_partial_rotary_factor": 0.25, "sliding_window": 512, "num_kv_shared_layers": 18, "ple_dim": 256, "vocab_size_ple": 262144, "kv_donor_sliding_chunk": 3, "kv_donor_sliding_local": 4, "kv_donor_full_chunk": 3, "kv_donor_full_local": 0, "chunk_meta": [ { "start": 0, "end": 6, "kv_shared": false, "sliding_indices": [ 0, 1, 2, 3, 4 ], "full_indices": [ 5 ] }, { "start": 6, "end": 12, "kv_shared": false, "sliding_indices": [ 6, 7, 8, 9, 10 ], "full_indices": [ 11 ] }, { "start": 12, "end": 18, "kv_shared": false, "sliding_indices": [ 12, 13, 14, 15, 16 ], "full_indices": [ 17 ] }, { "start": 18, "end": 24, "kv_shared": false, "sliding_indices": [ 18, 19, 20, 21, 22 ], "full_indices": [ 23 ] }, { "start": 24, "end": 30, "kv_shared": true, "sliding_indices": [ 24, 25, 26, 27, 28 ], "full_indices": [ 29 ] }, { "start": 30, "end": 36, "kv_shared": true, "sliding_indices": [ 30, 31, 32, 33, 34 ], "full_indices": [ 35 ] }, { "start": 36, "end": 42, "kv_shared": true, "sliding_indices": [ 36, 37, 38, 39, 40 ], "full_indices": [ 41 ] } ], "vision_enabled": true, "vision_image_size": 480, "vision_soft_tokens": 100, "boi_token_id": 255999, "image_token_id": 258880, "eoi_token_id": 258882 }