Skip to content
HALOWERK

Modellwerk

tensor causal attention visibility

Return key-index visibility for supplied causal query positions with an optional sliding window and global prefix.

POST https://modell.halowerk.com/v1/tensor-causal-attention-visibility

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
query_positionsReferenceYes
key_positionsReferenceYes
windowintegerYes
global_prefixReferenceYes
Show full input schema
{
  "type": "object",
  "properties": {
    "query_positions": {
      "$ref": "#/$defs/s0"
    },
    "key_positions": {
      "$ref": "#/$defs/s0"
    },
    "window": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "global_prefix": {
      "$ref": "#/$defs/s1"
    }
  },
  "required": [
    "query_positions",
    "key_positions",
    "window",
    "global_prefix"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w5:E0:input",
  "$defs": {
    "s0": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s1"
      },
      "maxItems": 200,
      "minItems": 0
    },
    "s1": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    }
  }
}

Open original schema

Published input example

{
  "query_positions": [
    3
  ],
  "key_positions": [
    0,
    1,
    2,
    3,
    4
  ],
  "window": 2,
  "global_prefix": 1
}

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 โ†’