Download overlay/config.json from EliovpAI/Qwen3.8-27B-Quark-Qronos-INT4-W4A16-Paiton-RDNA4: direct link, hf CLI and curl.
- Browser
- Download file 16.3 kB
-
https://huggingface.co/EliovpAI/Qwen3.8-27B-Quark-Qronos-INT4-W4A16-Paiton-RDNA4/resolve/main/overlay/config.json
- Command line
-
hf download hf://EliovpAI/Qwen3.8-27B-Quark-Qronos-INT4-W4A16-Paiton-RDNA4/overlay/config.json
-
curl -L -o config.json https://huggingface.co/EliovpAI/Qwen3.8-27B-Quark-Qronos-INT4-W4A16-Paiton-RDNA4/resolve/main/overlay/config.json
16.3 kB
| { | |
| "architectures": [ | |
| "PaitonQwen38ForCausalLM", | |
| "Qwen3_5ForConditionalGeneration" | |
| ], | |
| "dtype": "bfloat16", | |
| "image_token_id": 248056, | |
| "language_model_only": true, | |
| "model_type": "qwen3_5", | |
| "text_config": { | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_output_gate": true, | |
| "bos_token_id": 248044, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 248044, | |
| "full_attention_interval": 4, | |
| "head_dim": 256, | |
| "hidden_act": "silu", | |
| "hidden_size": 5120, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 17408, | |
| "layer_types": [ | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention" | |
| ], | |
| "linear_conv_kernel_dim": 4, | |
| "linear_key_head_dim": 128, | |
| "linear_num_key_heads": 16, | |
| "linear_num_value_heads": 48, | |
| "linear_value_head_dim": 128, | |
| "mamba_ssm_dtype": "float32", | |
| "max_position_embeddings": 262144, | |
| "model_type": "qwen3_5_text", | |
| "mtp_num_hidden_layers": 1, | |
| "mtp_use_dedicated_embeddings": false, | |
| "num_attention_heads": 24, | |
| "num_hidden_layers": 64, | |
| "num_key_value_heads": 4, | |
| "output_gate_type": "swish", | |
| "pad_token_id": null, | |
| "partial_rotary_factor": 0.25, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "mrope_interleaved": true, | |
| "mrope_section": [ | |
| 11, | |
| 11, | |
| 10 | |
| ], | |
| "partial_rotary_factor": 0.25, | |
| "rope_theta": 10000000, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": false, | |
| "use_cache": true, | |
| "vocab_size": 248320, | |
| "decode_partition_size": 512, | |
| "kv_cache_block_size": 16 | |
| }, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.2.0", | |
| "video_token_id": 248057, | |
| "vision_config": { | |
| "deepstack_visual_indexes": [], | |
| "depth": 27, | |
| "dtype": "bfloat16", | |
| "hidden_act": "gelu_pytorch_tanh", | |
| "hidden_size": 1152, | |
| "in_channels": 3, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4304, | |
| "model_type": "qwen3_5", | |
| "num_heads": 16, | |
| "num_position_embeddings": 2304, | |
| "out_hidden_size": 5120, | |
| "patch_size": 16, | |
| "spatial_merge_size": 2, | |
| "temporal_patch_size": 2 | |
| }, | |
| "vision_end_token_id": 248054, | |
| "vision_start_token_id": 248053, | |
| "paiton_product_model_type": "qwen3_8", | |
| "paiton_source_quantization_config": { | |
| "algo_config": [ | |
| { | |
| "alpha": 0.001, | |
| "beta": 10000.0, | |
| "block_size": 128, | |
| "desc_act": true, | |
| "inside_layer_modules": [ | |
| "self_attn.q_proj", | |
| "self_attn.k_proj", | |
| "self_attn.v_proj", | |
| "self_attn.o_proj", | |
| "linear_attn.in_proj_qkv", | |
| "linear_attn.in_proj_a", | |
| "linear_attn.in_proj_b", | |
| "linear_attn.in_proj_z", | |
| "linear_attn.out_proj", | |
| "mlp.gate_proj", | |
| "mlp.up_proj", | |
| "mlp.down_proj" | |
| ], | |
| "model_decoder_layers": "model.language_model.layers", | |
| "name": "qronos", | |
| "static_groups": true | |
| } | |
| ], | |
| "exclude": [ | |
| "model.visual.pos_embed", | |
| "model.visual.blocks.0.attn.qkv", | |
| "model.visual.blocks.0.attn.proj", | |
| "model.visual.blocks.0.mlp.linear_fc1", | |
| "model.visual.blocks.0.mlp.linear_fc2", | |
| "model.visual.blocks.1.attn.qkv", | |
| "model.visual.blocks.1.attn.proj", | |
| "model.visual.blocks.1.mlp.linear_fc1", | |
| "model.visual.blocks.1.mlp.linear_fc2", | |
| "model.visual.blocks.2.attn.qkv", | |
| "model.visual.blocks.2.attn.proj", | |
| "model.visual.blocks.2.mlp.linear_fc1", | |
| "model.visual.blocks.2.mlp.linear_fc2", | |
| "model.visual.blocks.3.attn.qkv", | |
| "model.visual.blocks.3.attn.proj", | |
| "model.visual.blocks.3.mlp.linear_fc1", | |
| "model.visual.blocks.3.mlp.linear_fc2", | |
| "model.visual.blocks.4.attn.qkv", | |
| "model.visual.blocks.4.attn.proj", | |
| "model.visual.blocks.4.mlp.linear_fc1", | |
| "model.visual.blocks.4.mlp.linear_fc2", | |
| "model.visual.blocks.5.attn.qkv", | |
| "model.visual.blocks.5.attn.proj", | |
| "model.visual.blocks.5.mlp.linear_fc1", | |
| "model.visual.blocks.5.mlp.linear_fc2", | |
| "model.visual.blocks.6.attn.qkv", | |
| "model.visual.blocks.6.attn.proj", | |
| "model.visual.blocks.6.mlp.linear_fc1", | |
| "model.visual.blocks.6.mlp.linear_fc2", | |
| "model.visual.blocks.7.attn.qkv", | |
| "model.visual.blocks.7.attn.proj", | |
| "model.visual.blocks.7.mlp.linear_fc1", | |
| "model.visual.blocks.7.mlp.linear_fc2", | |
| "model.visual.blocks.8.attn.qkv", | |
| "model.visual.blocks.8.attn.proj", | |
| "model.visual.blocks.8.mlp.linear_fc1", | |
| "model.visual.blocks.8.mlp.linear_fc2", | |
| "model.visual.blocks.9.attn.qkv", | |
| "model.visual.blocks.9.attn.proj", | |
| "model.visual.blocks.9.mlp.linear_fc1", | |
| "model.visual.blocks.9.mlp.linear_fc2", | |
| "model.visual.blocks.10.attn.qkv", | |
| "model.visual.blocks.10.attn.proj", | |
| "model.visual.blocks.10.mlp.linear_fc1", | |
| "model.visual.blocks.10.mlp.linear_fc2", | |
| "model.visual.blocks.11.attn.qkv", | |
| "model.visual.blocks.11.attn.proj", | |
| "model.visual.blocks.11.mlp.linear_fc1", | |
| "model.visual.blocks.11.mlp.linear_fc2", | |
| "model.visual.blocks.12.attn.qkv", | |
| "model.visual.blocks.12.attn.proj", | |
| "model.visual.blocks.12.mlp.linear_fc1", | |
| "model.visual.blocks.12.mlp.linear_fc2", | |
| "model.visual.blocks.13.attn.qkv", | |
| "model.visual.blocks.13.attn.proj", | |
| "model.visual.blocks.13.mlp.linear_fc1", | |
| "model.visual.blocks.13.mlp.linear_fc2", | |
| "model.visual.blocks.14.attn.qkv", | |
| "model.visual.blocks.14.attn.proj", | |
| "model.visual.blocks.14.mlp.linear_fc1", | |
| "model.visual.blocks.14.mlp.linear_fc2", | |
| "model.visual.blocks.15.attn.qkv", | |
| "model.visual.blocks.15.attn.proj", | |
| "model.visual.blocks.15.mlp.linear_fc1", | |
| "model.visual.blocks.15.mlp.linear_fc2", | |
| "model.visual.blocks.16.attn.qkv", | |
| "model.visual.blocks.16.attn.proj", | |
| "model.visual.blocks.16.mlp.linear_fc1", | |
| "model.visual.blocks.16.mlp.linear_fc2", | |
| "model.visual.blocks.17.attn.qkv", | |
| "model.visual.blocks.17.attn.proj", | |
| "model.visual.blocks.17.mlp.linear_fc1", | |
| "model.visual.blocks.17.mlp.linear_fc2", | |
| "model.visual.blocks.18.attn.qkv", | |
| "model.visual.blocks.18.attn.proj", | |
| "model.visual.blocks.18.mlp.linear_fc1", | |
| "model.visual.blocks.18.mlp.linear_fc2", | |
| "model.visual.blocks.19.attn.qkv", | |
| "model.visual.blocks.19.attn.proj", | |
| "model.visual.blocks.19.mlp.linear_fc1", | |
| "model.visual.blocks.19.mlp.linear_fc2", | |
| "model.visual.blocks.20.attn.qkv", | |
| "model.visual.blocks.20.attn.proj", | |
| "model.visual.blocks.20.mlp.linear_fc1", | |
| "model.visual.blocks.20.mlp.linear_fc2", | |
| "model.visual.blocks.21.attn.qkv", | |
| "model.visual.blocks.21.attn.proj", | |
| "model.visual.blocks.21.mlp.linear_fc1", | |
| "model.visual.blocks.21.mlp.linear_fc2", | |
| "model.visual.blocks.22.attn.qkv", | |
| "model.visual.blocks.22.attn.proj", | |
| "model.visual.blocks.22.mlp.linear_fc1", | |
| "model.visual.blocks.22.mlp.linear_fc2", | |
| "model.visual.blocks.23.attn.qkv", | |
| "model.visual.blocks.23.attn.proj", | |
| "model.visual.blocks.23.mlp.linear_fc1", | |
| "model.visual.blocks.23.mlp.linear_fc2", | |
| "model.visual.blocks.24.attn.qkv", | |
| "model.visual.blocks.24.attn.proj", | |
| "model.visual.blocks.24.mlp.linear_fc1", | |
| "model.visual.blocks.24.mlp.linear_fc2", | |
| "model.visual.blocks.25.attn.qkv", | |
| "model.visual.blocks.25.attn.proj", | |
| "model.visual.blocks.25.mlp.linear_fc1", | |
| "model.visual.blocks.25.mlp.linear_fc2", | |
| "model.visual.blocks.26.attn.qkv", | |
| "model.visual.blocks.26.attn.proj", | |
| "model.visual.blocks.26.mlp.linear_fc1", | |
| "model.visual.blocks.26.mlp.linear_fc2", | |
| "model.visual.merger.linear_fc1", | |
| "model.visual.merger.linear_fc2", | |
| "lm_head", | |
| "mtp.fc", | |
| "mtp.layers.0.input_layernorm", | |
| "mtp.layers.0.mlp.down_proj", | |
| "mtp.layers.0.mlp.gate_proj", | |
| "mtp.layers.0.mlp.up_proj", | |
| "mtp.layers.0.post_attention_layernorm", | |
| "mtp.layers.0.self_attn.k_norm", | |
| "mtp.layers.0.self_attn.k_proj", | |
| "mtp.layers.0.self_attn.o_proj", | |
| "mtp.layers.0.self_attn.q_norm", | |
| "mtp.layers.0.self_attn.q_proj", | |
| "mtp.layers.0.self_attn.v_proj", | |
| "mtp.norm", | |
| "mtp.pre_fc_norm_embedding", | |
| "mtp.pre_fc_norm_hidden" | |
| ], | |
| "export": { | |
| "kv_cache_group": [], | |
| "min_kv_scale": 0.0, | |
| "pack_method": "reorder", | |
| "weight_format": "real_quantized", | |
| "weight_merge_groups": null | |
| }, | |
| "global_quant_config": { | |
| "bias": null, | |
| "input_tensors": null, | |
| "output_tensors": null, | |
| "target_device": null, | |
| "weight": { | |
| "block_size": null, | |
| "ch_axis": -1, | |
| "dtype": "int4", | |
| "enable_buffer_reuse": false, | |
| "group_size": 128, | |
| "is_dynamic": false, | |
| "is_scale_quant": false, | |
| "max_input_numel": 4194304, | |
| "mx_element_dtype": null, | |
| "observer_cls": "PerGroupMinMaxObserver", | |
| "qscheme": "per_group", | |
| "round_method": "half_even", | |
| "scale_calculation_mode": null, | |
| "scale_format": null, | |
| "scale_type": "float", | |
| "symmetric": true | |
| } | |
| }, | |
| "kv_cache_post_rope": false, | |
| "kv_cache_quant_config": {}, | |
| "layer_quant_config": {}, | |
| "layer_type_quant_config": {}, | |
| "quant_method": "quark", | |
| "quant_mode": "eager_mode", | |
| "softmax_quant_spec": null, | |
| "version": "0.13+945249db9d3" | |
| }, | |
| "paiton_qwen38_contract": { | |
| "version": 7, | |
| "product_model_type": "qwen3_8", | |
| "compatibility_api_model_type": "qwen3_5", | |
| "scope": "text-only", | |
| "multimodal": false, | |
| "mtp_speculative": false, | |
| "tp_size": 1, | |
| "source_num_hidden_layers": 64, | |
| "num_hidden_layers": 64, | |
| "num_gdn_layers": 48, | |
| "num_full_attention_layers": 16, | |
| "layer_schedule_sha256": "c08541c56cb9fe4f101a1307144bc68fe5ae23c03dda60d76a92c25e0a6ba47e", | |
| "max_batch_size": 1, | |
| "max_num_batched_tokens": 8192, | |
| "max_context_length": 8192, | |
| "kv_cache_block_size": 16, | |
| "kv_cache_physical_layout": "blocks_KV_tokens_heads_dim", | |
| "num_key_value_heads": 4, | |
| "head_dim": 256, | |
| "runtime_shell_parameters": [ | |
| { | |
| "name": "model.embed_tokens.weight", | |
| "dtype": "bfloat16", | |
| "shape": [ | |
| 248320, | |
| 5120 | |
| ] | |
| }, | |
| { | |
| "name": "lm_head.weight", | |
| "dtype": "bfloat16", | |
| "shape": [ | |
| 248320, | |
| 5120 | |
| ] | |
| } | |
| ], | |
| "position_ids_layout": "tokens", | |
| "decode_partition_size": 512, | |
| "activation_dtype": "bfloat16", | |
| "kv_cache_dtype": "bfloat16", | |
| "gdn_conv_state_dtype": "bfloat16", | |
| "gdn_recurrent_state_dtype": "float32", | |
| "gdn_conv_state_layout": "SD", | |
| "gdn_conv_state_shape": [ | |
| 3, | |
| 10240 | |
| ], | |
| "gdn_recurrent_state_shape": [ | |
| 48, | |
| 128, | |
| 128 | |
| ], | |
| "rotary_dim": 64, | |
| "rope_theta": 10000000, | |
| "mrope_section": [ | |
| 11, | |
| 11, | |
| 10 | |
| ], | |
| "rotary_inv_freq_binding": "compiler_owned", | |
| "quark_algorithm": "qronos", | |
| "quark_group_size": 128, | |
| "quark_checkpoint_weight_layout": "Kx(N/8)_packed_i32", | |
| "quark_checkpoint_scale_layout": "(K/128)xN_f32", | |
| "quark_checkpoint_scale_dtype": "float32", | |
| "quark_checkpoint_zero_point_layout": "(K/128)x(N/8)_packed_i32", | |
| "quark_kernel_scale_dtype": "bfloat16", | |
| "quark_kernel_layout": "paiton_w4a16_g128_v1", | |
| "quark_transform_version": "quark_qronos_reorder_signed_v1", | |
| "quark_linear_count": 496, | |
| "quark_layout_sha256": "932006b8be484158302de2def10fdb34f5006cfa84fad71b977a67905803ee15", | |
| "zero_centered_norm_transform": "gamma=1+checkpoint_bf16", | |
| "w4_decode_projection_merge": { | |
| "enabled": true, | |
| "op_version": 2, | |
| "decode_max_tokens": 5, | |
| "groups": [ | |
| "full_attention:q_proj+k_proj+v_proj", | |
| "mlp:gate_proj+up_proj", | |
| "gdn:in_proj_qkv+in_proj_z", | |
| "gdn:in_proj_b+in_proj_a" | |
| ], | |
| "weight_layout": "checkpoint_native_independent_buffers", | |
| "prefill_path": "per_projection", | |
| "mlp_epilogue": "bf16_silu_mul" | |
| }, | |
| "full_attention_preprocess_fusion": { | |
| "enabled": true, | |
| "op_version": 1, | |
| "layout": "q_gate_interleaved_per_head", | |
| "outputs": [ | |
| "q_norm", | |
| "k_norm", | |
| "gate" | |
| ], | |
| "value_path": "bypass", | |
| "rope_input_layout": "split_qkv", | |
| "full_attention_layers": 16 | |
| }, | |
| "gdn_tiled_decode": { | |
| "enabled": true, | |
| "op_version": 1, | |
| "decode_batch": 1, | |
| "decode_tokens": 1, | |
| "head_geometry": [ | |
| 16, | |
| 48, | |
| 128, | |
| 128 | |
| ], | |
| "state_dtype": "float32", | |
| "activation_and_output_dtype": "bfloat16", | |
| "reduction": "wave32_tree_fp32", | |
| "fallback": "generic_serial_k_for_m_not_1", | |
| "target": "gfx1201_r9700_32cu" | |
| }, | |
| "mlp_3bit_decode": { | |
| "enabled": true, | |
| "op_version": 1, | |
| "source_bits": 4, | |
| "decode_bits": 3, | |
| "source_quantized_range": [ | |
| -8, | |
| 7 | |
| ], | |
| "decode_quantized_range": [ | |
| -4, | |
| 3 | |
| ], | |
| "packing": "dense_lsb_first_32_values_per_3_i32", | |
| "shadow_linears": 192, | |
| "shadow_scale_dtype": "bfloat16", | |
| "decode_only": true, | |
| "prefill_uses_source_w4": true | |
| }, | |
| "qkv_3bit_decode": { | |
| "enabled": false, | |
| "op_version": 1, | |
| "shadow_linears": 144, | |
| "groups": [ | |
| "gdn:in_proj_qkv+in_proj_z", | |
| "full_attention:q_proj+k_proj+v_proj" | |
| ], | |
| "decode_only": true, | |
| "prefill_uses_source_w4": true | |
| }, | |
| "quark_kernel_scale_transform": { | |
| "version": 1, | |
| "source_dtype": "float32", | |
| "source_layout": "(K/128)xN_f32", | |
| "target_dtype": "bfloat16", | |
| "target_layout": "Nx(K/128)_bf16", | |
| "rounding": "round_to_nearest_even", | |
| "execution": "cpu_streaming_before_device_bind", | |
| "device_residency": "target_only", | |
| "scale_elements": 190238720, | |
| "source_bytes": 760954880, | |
| "target_bytes": 380477440 | |
| }, | |
| "w4_decode_skinny_output_projection": { | |
| "enabled": true, | |
| "op_version": 1, | |
| "input_size": 6144, | |
| "output_size": 5120, | |
| "scale_dtype": "bfloat16", | |
| "bias": false, | |
| "add": false, | |
| "decode_tokens": 1, | |
| "target": "gfx1201_r9700_32cu" | |
| }, | |
| "qronos_group_size": 128, | |
| "qronos_checkpoint_layout": "Kx(N/8)_packed_i32", | |
| "qronos_kernel_layout": "paiton_w4a16_g128_v1", | |
| "qronos_transform_version": "quark_qronos_reorder_signed_v1", | |
| "qronos_linear_count": 496, | |
| "qronos_layout_sha256": "932006b8be484158302de2def10fdb34f5006cfa84fad71b977a67905803ee15" | |
| } | |
| } |