Skip to content
HALOWERK

Modellwerk

vocabulary bpe merge rank audit

Replay ranked symbolic byte-pair merges and return their deterministic application trace.

POST https://modell.halowerk.com/v1/vocabulary-bpe-merge-rank-audit

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
symbolsarrayYes
mergesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "symbols": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s0"
      },
      "maxItems": 128,
      "minItems": 1
    },
    "merges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "left": {
            "$ref": "#/$defs/s0"
          },
          "right": {
            "$ref": "#/$defs/s0"
          },
          "merged": {
            "$ref": "#/$defs/s0"
          },
          "rank": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "left",
          "right",
          "merged",
          "rank"
        ],
        "additionalProperties": false
      },
      "maxItems": 200,
      "minItems": 0
    }
  },
  "required": [
    "symbols",
    "merges"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w5:E8:input",
  "$defs": {
    "s0": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
    }
  }
}

Open original schema

Published input example

{
  "symbols": [
    "a",
    "b",
    "a",
    "b"
  ],
  "merges": [
    {
      "left": "a",
      "right": "b",
      "merged": "ab",
      "rank": 0
    },
    {
      "left": "ab",
      "right": "ab",
      "merged": "abab",
      "rank": 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 โ†’