Skip to content
HALOWERK

Modellwerk

tensor grouped query head map

Map query heads to shared key-value heads and compute declared KV tensor element savings.

POST https://modell.halowerk.com/v1/tensor-grouped-query-head-map

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
query_headsintegerYes
kv_headsintegerYes
head_dimintegerYes
tokensintegerYes
layersintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "query_heads": {
      "type": "integer",
      "minimum": 1,
      "maximum": 256
    },
    "kv_heads": {
      "type": "integer",
      "minimum": 1,
      "maximum": 256
    },
    "head_dim": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1024
    },
    "tokens": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "layers": {
      "type": "integer",
      "minimum": 1,
      "maximum": 256
    }
  },
  "required": [
    "query_heads",
    "kv_heads",
    "head_dim",
    "tokens",
    "layers"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "query_heads": 8,
  "kv_heads": 2,
  "head_dim": 64,
  "tokens": 100,
  "layers": 2
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’