gemma-4-E4B-it-onw / engine.json
ryugyosoft's picture
v2: compact (4.3 GB)
1adb9f5 verified
Raw History Blame Contribute Delete
4.36 kB
{
"arch": "gemma4",
"T": 1024,
"sizes": [
1,
16,
64
],
"config": {
"attention_bias": false,
"attention_dropout": 0.0,
"attention_k_eq_v": false,
"bos_token_id": 2,
"dtype": "bfloat16",
"enable_moe_block": false,
"eos_token_id": 1,
"expert_intermediate_size": null,
"final_logit_softcapping": 30.0,
"global_head_dim": 512,
"head_dim": 256,
"hidden_activation": "gelu_pytorch_tanh",
"hidden_size": 2560,
"hidden_size_per_layer_input": 256,
"initializer_range": 0.02,
"intermediate_size": 10240,
"layer_types": [
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention"
],
"max_position_embeddings": 131072,
"model_type": "gemma4_text",
"moe_intermediate_size": null,
"num_attention_heads": 8,
"num_experts": null,
"num_global_key_value_heads": null,
"num_hidden_layers": 42,
"num_key_value_heads": 2,
"num_kv_shared_layers": 18,
"pad_token_id": 0,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"full_attention": {
"partial_rotary_factor": 0.25,
"rope_theta": 1000000.0,
"rope_type": "proportional"
},
"sliding_attention": {
"rope_theta": 10000.0,
"rope_type": "default"
}
},
"sliding_window": 512,
"tie_word_embeddings": true,
"top_k_experts": null,
"use_bidirectional_attention": null,
"use_cache": true,
"use_double_wide_mlp": false,
"vocab_size": 262144,
"vocab_size_per_layer_input": 262144
},
"segments": {
"seg00_S1.xml": {
"index": 0,
"consume_moe": null,
"router_layer": null,
"S": 1,
"slots": 0,
"head": false,
"bin": "seg00.bin"
},
"seg01_S1.xml": {
"index": 1,
"consume_moe": null,
"router_layer": null,
"S": 1,
"slots": 0,
"head": true,
"bin": "seg01.bin"
},
"seg00_S16.xml": {
"index": 0,
"consume_moe": null,
"router_layer": null,
"S": 16,
"slots": 0,
"head": false,
"bin": "seg00.bin"
},
"seg01_S16.xml": {
"index": 1,
"consume_moe": null,
"router_layer": null,
"S": 16,
"slots": 0,
"head": true,
"bin": "seg01.bin"
},
"seg00_S64.xml": {
"index": 0,
"consume_moe": null,
"router_layer": null,
"S": 64,
"slots": 0,
"head": false,
"bin": "seg00.bin"
},
"seg01_S64.xml": {
"index": 1,
"consume_moe": null,
"router_layer": null,
"S": 64,
"slots": 0,
"head": true,
"bin": "seg01.bin"
}
},
"masks": {
"sliding_window": 512
},
"host_inputs": {
"per_layer_inputs": {
"table": "ple",
"shape": [
42,
256
]
}
},
"vision": {
"type": "gemma",
"soft_tokens": 280,
"image_processor": {
"do_convert_rgb": true,
"do_normalize": false,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.0,
0.0,
0.0
],
"image_processor_type": "Gemma4ImageProcessor",
"image_seq_length": 280,
"image_std": [
1.0,
1.0,
1.0
],
"max_soft_tokens": 280,
"patch_size": 16,
"pooling_kernel_size": 3,
"resample": 3,
"rescale_factor": 0.00392156862745098
},
"image_token_id": 258880,
"pad_token_id": 0
},
"npu_vision_fallback": {
"NPU_USE_NPUW": "YES",
"NPUW_DEVICES": "NPU",
"NPUW_FOLD": "YES"
},
"tables": {
"ple": {
"bits": 4,
"group": 32
}
}
}