{
  "common": {
    "url": "blobs/sha256/f52f373b2c65b4fbd29a8dd66bc17cd3f5fd70db5f2b42b7d8e024cc20136497",
    "sha256": "f52f373b2c65b4fbd29a8dd66bc17cd3f5fd70db5f2b42b7d8e024cc20136497",
    "size": 7481,
    "unpacked_size": 29559
  },
  "configs": {
    "handwritten": {
      "max_new_tokens": 128
    },
    "printed": {
      "max_new_tokens": 128
    }
  },
  "id": "trocr",
  "manifest": {
    "core_api": 1,
    "core_max_exclusive": "1.0.0",
    "core_min": "0.1.0",
    "default": "trocr:printed",
    "display_name": "TrOCR",
    "entrypoint": "commons.adapter:Runtime",
    "id": "trocr",
    "license": "MIT AND Apache-2.0",
    "license_acceptance": {
      "required": false
    },
    "model_type": "common_model",
    "requires_features": [
      "box",
      "texts"
    ],
    "runtimes": {
      "macos-metal": {
        "accelerator": "mps",
        "arch": "arm64",
        "entrypoint": "inference.runtime:Backend",
        "lockfiles": [
          "models/macos-metal/runtime/requirements.lock"
        ],
        "os": "darwin",
        "path": "models/macos-metal",
        "platform": "macos-metal",
        "probe_imports": [
          "torch",
          "safetensors",
          "PIL",
          "numpy"
        ],
        "python": "3.11",
        "supported_devices": [
          "mps",
          "cpu"
        ],
        "wheels": []
      }
    },
    "schema_version": 2,
    "timeout_seconds": 600,
    "tools": [
      "tools/ocr_auto-type.json"
    ],
    "variants": {
      "handwritten": {
        "config": "configs/handwritten.json",
        "inference_weight_paths": [
          "model.safetensors"
        ],
        "languages": [
          "English"
        ],
        "supported_profiles": [
          "macos-metal"
        ],
        "weights": "weights/handwritten/weights.json"
      },
      "printed": {
        "config": "configs/printed.json",
        "inference_weight_paths": [
          "model.safetensors"
        ],
        "languages": [
          "English"
        ],
        "supported_profiles": [
          "macos-metal"
        ],
        "weights": "weights/printed/weights.json"
      }
    },
    "version": "0.0.3",
    "worker_protocol": 1
  },
  "overrides": {},
  "profiles": {
    "macos-metal": {
      "url": "blobs/sha256/5b62f35165f89896f0066419310783df7c0fe64dfda366fdccbb8374869e0243",
      "sha256": "5b62f35165f89896f0066419310783df7c0fe64dfda366fdccbb8374869e0243",
      "size": 25312,
      "unpacked_size": 65562
    }
  },
  "schema_version": 2,
  "version": "0.0.3",
  "weights": {
    "handwritten": [
      {
        "path": "config.json",
        "size": 4165,
        "sha256": "4c779f24e063c437c3dafd5b2e6c9f59f2fa2bd1dbb4ae6a30153bbbbf19e647",
        "url": "https://models.boat-annotation.com/blobs/sha256/4c779f24e063c437c3dafd5b2e6c9f59f2fa2bd1dbb4ae6a30153bbbbf19e647",
        "requires_token": false
      },
      {
        "path": "generation_config.json",
        "size": 190,
        "sha256": "41149cdcffec4d657f32dfcddd9b208037f01286c9e07945c724908c58ed0193",
        "url": "https://models.boat-annotation.com/blobs/sha256/41149cdcffec4d657f32dfcddd9b208037f01286c9e07945c724908c58ed0193",
        "requires_token": false
      },
      {
        "path": "preprocessor_config.json",
        "size": 224,
        "sha256": "2fcc0da9466ee00be0403b26027373039e032820ebac409e207b32e52e52119d",
        "url": "https://models.boat-annotation.com/blobs/sha256/2fcc0da9466ee00be0403b26027373039e032820ebac409e207b32e52e52119d",
        "requires_token": false
      },
      {
        "path": "tokenizer_config.json",
        "size": 1118,
        "sha256": "5a1356884c6ae736a621841535264ba7c5bebd52f169258add2c48fcbb32d50a",
        "url": "https://models.boat-annotation.com/blobs/sha256/5a1356884c6ae736a621841535264ba7c5bebd52f169258add2c48fcbb32d50a",
        "requires_token": false
      },
      {
        "path": "special_tokens_map.json",
        "size": 772,
        "sha256": "c611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00",
        "url": "https://models.boat-annotation.com/blobs/sha256/c611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00",
        "requires_token": false
      },
      {
        "path": "vocab.json",
        "size": 898822,
        "sha256": "06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab",
        "url": "https://models.boat-annotation.com/blobs/sha256/06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab",
        "requires_token": false
      },
      {
        "path": "merges.txt",
        "size": 456318,
        "sha256": "1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5",
        "url": "https://models.boat-annotation.com/blobs/sha256/1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5",
        "requires_token": false
      },
      {
        "path": "model.safetensors",
        "size": 1333384464,
        "sha256": "25a40cddc7e6120140a3d5b9e3dd3878a92ada7b4f312953ab22edc19c2a5acc",
        "url": "https://models.boat-annotation.com/blobs/sha256/25a40cddc7e6120140a3d5b9e3dd3878a92ada7b4f312953ab22edc19c2a5acc",
        "requires_token": false
      }
    ],
    "printed": [
      {
        "path": "config.json",
        "size": 4126,
        "sha256": "5bda1deab455661feb3d91906656e5600e2ca520d5c00a2a03836614b850c93e",
        "url": "https://models.boat-annotation.com/blobs/sha256/5bda1deab455661feb3d91906656e5600e2ca520d5c00a2a03836614b850c93e",
        "requires_token": false
      },
      {
        "path": "generation_config.json",
        "size": 190,
        "sha256": "41149cdcffec4d657f32dfcddd9b208037f01286c9e07945c724908c58ed0193",
        "url": "https://models.boat-annotation.com/blobs/sha256/41149cdcffec4d657f32dfcddd9b208037f01286c9e07945c724908c58ed0193",
        "requires_token": false
      },
      {
        "path": "preprocessor_config.json",
        "size": 224,
        "sha256": "2fcc0da9466ee00be0403b26027373039e032820ebac409e207b32e52e52119d",
        "url": "https://models.boat-annotation.com/blobs/sha256/2fcc0da9466ee00be0403b26027373039e032820ebac409e207b32e52e52119d",
        "requires_token": false
      },
      {
        "path": "tokenizer_config.json",
        "size": 1118,
        "sha256": "5a1356884c6ae736a621841535264ba7c5bebd52f169258add2c48fcbb32d50a",
        "url": "https://models.boat-annotation.com/blobs/sha256/5a1356884c6ae736a621841535264ba7c5bebd52f169258add2c48fcbb32d50a",
        "requires_token": false
      },
      {
        "path": "special_tokens_map.json",
        "size": 772,
        "sha256": "c611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00",
        "url": "https://models.boat-annotation.com/blobs/sha256/c611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00",
        "requires_token": false
      },
      {
        "path": "vocab.json",
        "size": 898822,
        "sha256": "06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab",
        "url": "https://models.boat-annotation.com/blobs/sha256/06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab",
        "requires_token": false
      },
      {
        "path": "merges.txt",
        "size": 456318,
        "sha256": "1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5",
        "url": "https://models.boat-annotation.com/blobs/sha256/1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5",
        "requires_token": false
      },
      {
        "path": "model.safetensors",
        "size": 1333384464,
        "sha256": "1cf4a6eedab26afaaf505f1c7f73d9634944924dbd1ed049d569db98039cd596",
        "url": "https://models.boat-annotation.com/blobs/sha256/1cf4a6eedab26afaaf505f1c7f73d9634944924dbd1ed049d569db98039cd596",
        "requires_token": false
      }
    ]
  }
}
