{
  "modelType": "transformer",
  "output": {
    "baseDir": "models/local",
    "modelBaseId": "qwen3-8-27b-text-source-q4_0-af32",
    "textOnly": true,
    "fast": false
  },
  "quantization": {
    "weights": "q4_0",
    "embeddings": "q4_0",
    "lmHead": "q6k",
    "vision": "f16",
    "projector": "f16",
    "modulesToNotConvert": [],
    "computePrecision": "f32",
    "q4kLayout": "row",
    "preserveSourceTensors": true,
    "sourceQuantizationFormat": "gguf"
  },
  "manifest": {
    "hashAlgorithm": "sha256",
    "eosTokenId": [
      248046,
      248044
    ],
    "artifactIdentity": {
      "sourceCheckpointId": "Qwen/Qwen3.8-27B",
      "sourceRepo": "unsloth/Qwen3.8-27B-GGUF",
      "sourceRevision": "4ca720788d1e01f1bff70c033e0d0028fd02e502",
      "artifactCompleteness": "complete"
    }
  },
  "inference": {
    "attention": {
      "queryPreAttnScalar": 256,
      "attnLogitSoftcapping": null,
      "slidingWindow": null,
      "queryKeyNorm": true,
      "valueNorm": false,
      "causal": true,
      "attentionBias": false,
      "attentionOutputGate": true,
      "outputGateType": "swish"
    },
    "normalization": {
      "rmsNormEps": 0.000001,
      "rmsNormWeightOffset": false,
      "postAttentionNorm": true,
      "preFeedforwardNorm": false,
      "postFeedforwardNorm": false,
      "linearNormGateActivation": "silu"
    },
    "ffn": {
      "activation": "silu",
      "gatedActivation": true,
      "branchMode": "auto",
      "useDoubleWideMlp": false,
      "swigluLimit": null
    },
    "rope": {
      "ropeTheta": 10000000,
      "ropeLocalTheta": null,
      "mropeInterleaved": true,
      "mropeSection": [
        11,
        11,
        10
      ],
      "partialRotaryFactor": 0.25,
      "ropeLocalPartialRotaryFactor": null,
      "ropeFrequencyBaseDim": null,
      "ropeLocalFrequencyBaseDim": null,
      "ropeScalingType": null,
      "ropeScalingFactor": 1,
      "ropeLocalScalingType": null,
      "ropeLocalScalingFactor": 1,
      "yarnBetaFast": null,
      "yarnBetaSlow": null,
      "yarnOriginalMaxPos": null,
      "ropeLocalYarnBetaFast": null,
      "ropeLocalYarnBetaSlow": null,
      "ropeLocalYarnOriginalMaxPos": null,
      "longropeShortFactor": null,
      "longropeLongFactor": null,
      "longropeOriginalMaxPos": null
    },
    "output": {
      "finalLogitSoftcapping": null,
      "tieWordEmbeddings": false,
      "scaleEmbeddings": false,
      "embeddingTranspose": false,
      "embeddingVocabSize": null,
      "embeddingPostprocessor": null,
      "embeddingScale": null,
      "logitInputScale": 1
    },
    "layerPattern": {
      "type": "custom",
      "globalPattern": null,
      "period": null,
      "offset": null,
      "layerTypes": [
        "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"
      ],
      "residualBranchScale": 1
    },
    "chatTemplate": {
      "type": "qwen",
      "enabled": true
    }
  },
  "session": {
    "compute": {
      "defaults": {
        "activationDtype": "f32",
        "mathDtype": "f32",
        "accumDtype": "f32",
        "outputDtype": "f32"
      }
    },
    "kvcache": {
      "kvDtype": "f16",
      "layout": "contiguous",
      "maxSeqLen": 4096,
      "pageSize": 256,
      "tiering": {
        "mode": "off",
        "hotWindow": 1024,
        "coldPageSize": 256,
        "coldDtype": "f16",
        "compression": {
          "mode": "none",
          "blockSize": 1,
          "bitWidth": 4,
          "prodMode": false
        },
        "gating": {
          "mode": "auto",
          "minAluBwRatio": 0
        }
      },
      "quantization": {
        "mode": "none",
        "bitWidth": 4,
        "prodMode": false
      }
    },
    "decodeLoop": {
      "batchSize": 1,
      "stopCheckMode": "per-token",
      "readbackInterval": 1,
      "readbackMode": "sequential",
      "submitLatencyThresholdMs": null,
      "ringTokens": 1,
      "ringStop": 1,
      "ringStaging": 1,
      "disableCommandBatching": false
    },
    "perLayerInputs": {
      "materialization": "auto",
      "rowCache": {
        "mode": "lru",
        "maxRows": 256,
        "maxBytes": 134217728,
        "decodedDtype": "f32"
      },
      "prefetch": {
        "mode": "next_token",
        "rowsAhead": 1
      },
      "gpuUpload": {
        "mode": "per_step_slices",
        "stagingRows": 2
      },
      "hotCache": {
        "mode": "prepared_tokens",
        "maxTokens": 1024,
        "maxBytes": 134217728,
        "outputDtype": "f32"
      }
    },
    "speculation": {
      "mode": "none",
      "tokens": 1,
      "verify": "greedy",
      "threshold": null,
      "rollbackOnReject": true
    },
    "prefillChunkSubmitMode": "async",
    "useFlashPrefillAttention": false,
    "useWideTileQ4KPrefill": false,
    "retainQ4KMaterialization": false,
    "useLinearAttentionABProjectionFusion": false,
    "useLinearAttentionQKVZProjectionFusion": false,
    "useLinearAttentionFusedDecodeCore": false
  },
  "largeWeights": {
    "gpuResidentOverrides": null
  },
  "execution": {
    "inlineKernelPath": true,
    "kernels": {
      "embed": {
        "kernel": "gather_q4_0.wgsl",
        "entry": "main",
        "digest": "sha256:5385c421ac8423132406168faeac5e2ede51ea1b3df6f6f19baa567e0dc9d0b5",
        "constants": {
          "WORKGROUP_SIZE": 256,
          "BLOCK_VALUES": 32,
          "BLOCK_BYTES": 18,
          "QUANT_FORMAT": 0
        }
      },
      "rmsnorm": {
        "kernel": "rmsnorm.wgsl",
        "entry": "main",
        "digest": "sha256:4f4d144735bdff86b8567346ba7ea7b82fe68a2ac9656ba1577106158af9bc7c"
      },
      "q4_decode_gemv": {
        "kernel": "matmul_q4_0.wgsl",
        "entry": "gemv",
        "digest": "sha256:96a3c0229daa90ade6496b3403a294dfd5944af671719c7be19fde680a0af789",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 32,
          "BLOCK_BYTES": 18,
          "QUANT_FORMAT": 0
        }
      },
      "rope": {
        "kernel": "rope.wgsl",
        "entry": "main",
        "digest": "sha256:923f9a96c941aee94119ecf04fa5b1508c77b7d927a7e6044ce6588b2d51a416"
      },
      "attn_decode": {
        "kernel": "attention_decode_online_f16kv.wgsl",
        "entry": "main",
        "digest": "sha256:c6d9f8c614a2a088cb533958007896391efb3e348377dc8095c409944c562912",
        "precision": {
          "kvDtype": "f16"
        }
      },
      "residual": {
        "kernel": "residual.wgsl",
        "entry": "main",
        "digest": "sha256:4dbfb0a9ca0fb6047a01618f0374b445c243774d039407acdf41b0711ea8eaf4"
      },
      "silu": {
        "kernel": "silu.wgsl",
        "entry": "main",
        "digest": "sha256:712787a59b032453b09f147be0d0c073266c47a7a12c3b746984aaf28075bedb",
        "constants": {
          "HAS_GATE": true
        }
      },
      "q4_prefill": {
        "kernel": "matmul_q4_0.wgsl",
        "entry": "prefill",
        "digest": "sha256:a2d4f69339562fb2d78efac15837a94059ef0dea97993974d4c48a144586c8bc",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 32,
          "BLOCK_BYTES": 18,
          "QUANT_FORMAT": 0
        }
      },
      "tiled": {
        "kernel": "matmul_q4_0.wgsl",
        "entry": "gemv",
        "digest": "sha256:96a3c0229daa90ade6496b3403a294dfd5944af671719c7be19fde680a0af789",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 256,
          "BLOCK_BYTES": 210,
          "QUANT_FORMAT": 3
        }
      },
      "attn_head256": {
        "kernel": "attention_head256_f16kv.wgsl",
        "entry": "main",
        "digest": "sha256:4e1eafa0a5e407c99714d04f0e75f3834e1156bcb25579892f248d95aae197da",
        "precision": {
          "kvDtype": "f16"
        }
      },
      "sample": {
        "kernel": "sample.wgsl",
        "entry": "sample_single_pass",
        "digest": "sha256:f2377b2a58c2eeb695a6f6f7ad877630bdba5e74d5dc1a8d919cd73b360d4870"
      },
      "gated_delta_conv": {
        "kernel": "gated_delta_conv.wgsl",
        "entry": "main",
        "digest": "sha256:001fb6cbb3529bf2210406a522405d1b80acd6e0ecc09a67114cdb770103c92a"
      },
      "gated_delta_recurrent": {
        "kernel": "gated_delta_recurrent_gguf.wgsl",
        "entry": "main",
        "digest": "sha256:5acdcaf797994c495b07ebf5b5b3676a74b0bb128529ef2b1dcdc5bd448fd362"
      },
      "source_control_f32": {
        "kernel": "matmul_f32.wgsl",
        "entry": "main",
        "digest": "sha256:b665cf1ef18ebf1d6fe490b84e9d1e962c130ccd34bdfac5616ba0e2ddb783b8"
      },
      "q4_1_decode": {
        "kernel": "matmul_q4_0.wgsl",
        "entry": "gemv",
        "digest": "sha256:96a3c0229daa90ade6496b3403a294dfd5944af671719c7be19fde680a0af789",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 32,
          "BLOCK_BYTES": 20,
          "QUANT_FORMAT": 1
        }
      },
      "q4_1_prefill": {
        "kernel": "matmul_q4_0.wgsl",
        "entry": "prefill",
        "digest": "sha256:a2d4f69339562fb2d78efac15837a94059ef0dea97993974d4c48a144586c8bc",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 32,
          "BLOCK_BYTES": 20,
          "QUANT_FORMAT": 1
        }
      },
      "q5k_gemv": {
        "kernel": "matmul_q5k.wgsl",
        "entry": "gemv",
        "digest": "sha256:cbffdb09bd95d355310bf39ea9de7268e7f77c102ae315424fc1c8d977224ef7",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 256,
          "BLOCK_BYTES": 176,
          "QUANT_FORMAT": 5
        }
      },
      "q5k_prefill": {
        "kernel": "matmul_q5k.wgsl",
        "entry": "prefill",
        "digest": "sha256:868ca7e096d8454b916d6b8a122ac7b32711d0a19d6bad2a336d8059024f22ef",
        "constants": {
          "WORKGROUP_SIZE": 128,
          "COLS_PER_WG": 4,
          "THREADS_PER_COL_GEMV": 32,
          "TILE_SIZE": 16,
          "BLOCK_VALUES": 256,
          "BLOCK_BYTES": 176,
          "QUANT_FORMAT": 5
        }
      }
    },
    "preLayer": [
      [
        "embed",
        "embed",
        "embed_tokens"
      ]
    ],
    "decode": [
      [
        "input_norm",
        "rmsnorm"
      ],
      [
        "q_proj",
        "q4_decode_gemv",
        "layer.{L}.self_attn.q_proj"
      ],
      [
        "k_proj",
        "q4_decode_gemv",
        "layer.{L}.self_attn.k_proj"
      ],
      [
        "v_proj",
        "q4_decode_gemv",
        "layer.{L}.self_attn.v_proj"
      ],
      [
        "rope_q",
        "rope"
      ],
      [
        "rope_k",
        "rope"
      ],
      [
        "attention",
        "attn_decode"
      ],
      [
        "o_proj",
        "q4_decode_gemv",
        "layer.{L}.self_attn.o_proj"
      ],
      [
        "attn_residual",
        "residual"
      ],
      [
        "post_attn_norm",
        "rmsnorm"
      ],
      [
        "gate_proj",
        "q4_decode_gemv",
        "layer.{L}.mlp.gate_proj"
      ],
      [
        "up_proj",
        "q4_decode_gemv",
        "layer.{L}.mlp.up_proj"
      ],
      [
        "activation",
        "silu"
      ],
      {
        "layers": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "steps": [
          [
            "down_proj",
            "q4_1_decode",
            "layer.{L}.mlp.down_proj"
          ]
        ]
      },
      {
        "layers": [
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35,
          36,
          37,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          46,
          47,
          48,
          49,
          50,
          51,
          52,
          53,
          54,
          55,
          56,
          57,
          58,
          59,
          60,
          61,
          62,
          63
        ],
        "steps": [
          [
            "down_proj",
            "q4_decode_gemv",
            "layer.{L}.mlp.down_proj"
          ]
        ]
      },
      [
        "ffn_residual",
        "residual"
      ],
      [
        "linear_a_proj",
        "source_control_f32",
        "layer.{L}.linear_attn.in_proj_a"
      ],
      [
        "linear_b_proj",
        "source_control_f32",
        "layer.{L}.linear_attn.in_proj_b"
      ],
      [
        "linear_qkv_proj",
        "q4_decode_gemv",
        "layer.{L}.linear_attn.in_proj_qkv"
      ],
      [
        "linear_z_proj",
        "q4_decode_gemv",
        "layer.{L}.linear_attn.in_proj_z"
      ],
      [
        "linear_out_proj",
        "q5k_gemv",
        "layer.{L}.linear_attn.out_proj"
      ]
    ],
    "prefill": [
      [
        "input_norm",
        "rmsnorm"
      ],
      [
        "q_proj",
        "q4_prefill",
        "layer.{L}.self_attn.q_proj"
      ],
      [
        "k_proj",
        "q4_prefill",
        "layer.{L}.self_attn.k_proj"
      ],
      [
        "v_proj",
        "q4_prefill",
        "layer.{L}.self_attn.v_proj"
      ],
      [
        "rope_q",
        "rope"
      ],
      [
        "rope_k",
        "rope"
      ],
      [
        "attention",
        "attn_head256"
      ],
      [
        "o_proj",
        "q4_prefill",
        "layer.{L}.self_attn.o_proj"
      ],
      [
        "attn_residual",
        "residual"
      ],
      [
        "post_attn_norm",
        "rmsnorm"
      ],
      [
        "gate_proj",
        "q4_prefill",
        "layer.{L}.mlp.gate_proj"
      ],
      [
        "up_proj",
        "q4_prefill",
        "layer.{L}.mlp.up_proj"
      ],
      [
        "activation",
        "silu"
      ],
      {
        "layers": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "steps": [
          [
            "down_proj",
            "q4_1_prefill",
            "layer.{L}.mlp.down_proj"
          ]
        ]
      },
      {
        "layers": [
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35,
          36,
          37,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          46,
          47,
          48,
          49,
          50,
          51,
          52,
          53,
          54,
          55,
          56,
          57,
          58,
          59,
          60,
          61,
          62,
          63
        ],
        "steps": [
          [
            "down_proj",
            "q4_prefill",
            "layer.{L}.mlp.down_proj"
          ]
        ]
      },
      [
        "ffn_residual",
        "residual"
      ],
      [
        "linear_a_proj",
        "source_control_f32",
        "layer.{L}.linear_attn.in_proj_a"
      ],
      [
        "linear_b_proj",
        "source_control_f32",
        "layer.{L}.linear_attn.in_proj_b"
      ],
      [
        "linear_qkv_proj",
        "q4_prefill",
        "layer.{L}.linear_attn.in_proj_qkv"
      ],
      [
        "linear_z_proj",
        "q4_prefill",
        "layer.{L}.linear_attn.in_proj_z"
      ],
      [
        "linear_out_proj",
        "q5k_prefill",
        "layer.{L}.linear_attn.out_proj"
      ]
    ],
    "postLayer": [
      [
        "final_norm",
        "rmsnorm"
      ],
      [
        "lm_head",
        "tiled",
        "lm_head"
      ],
      [
        "lm_head_prefill",
        "tiled",
        "lm_head"
      ],
      [
        "sample",
        "sample"
      ]
    ],
    "policies": {
      "unsupportedPrecision": "error",
      "dtypeTransition": "require_cast_step",
      "unresolvedKernel": "error"
    },
    "mechanismKernels": [
      "gated_delta_conv",
      "gated_delta_recurrent"
    ]
  }
}
