{
  "common": {
    "url": "blobs/sha256/304336ee3520b6ee39e800b1d0786fb49e63a4264ac9177de6d04b94e348f9be",
    "sha256": "304336ee3520b6ee39e800b1d0786fb49e63a4264ac9177de6d04b94e348f9be",
    "size": 6867,
    "unpacked_size": 28125
  },
  "configs": {
    "medium": {
      "tag": "medium"
    },
    "small": {
      "tag": "small"
    },
    "tiny": {
      "tag": "tiny"
    }
  },
  "id": "pp-ocrv6",
  "manifest": {
    "core_api": 1,
    "core_max_exclusive": "1.0.0",
    "core_min": "0.1.0",
    "default": "pp-ocrv6:medium",
    "display_name": "PP-OCRv6",
    "entrypoint": "commons.adapter:Runtime",
    "id": "pp-ocrv6",
    "license": "Apache-2.0",
    "license_acceptance": {
      "required": false
    },
    "model_type": "common_model",
    "requires_features": [
      "box",
      "texts"
    ],
    "runtimes": {
      "linux-cpu": {
        "accelerator": "cpu",
        "arch": "amd64",
        "entrypoint": "inference.runtime:Backend",
        "lockfiles": [
          "models/linux-cpu/runtime/requirements.lock"
        ],
        "os": "linux",
        "path": "models/linux-cpu",
        "platform": "linux-cpu",
        "probe_imports": [
          "torch",
          "safetensors",
          "PIL"
        ],
        "python": "3.11",
        "supported_devices": [
          "cpu"
        ],
        "wheels": []
      },
      "linux-cuda126": {
        "accelerator": "cuda",
        "arch": "amd64",
        "entrypoint": "inference.runtime:Backend",
        "lockfiles": [
          "models/linux-cuda126/runtime/requirements.lock"
        ],
        "os": "linux",
        "path": "models/linux-cuda126",
        "platform": "linux-cuda126",
        "probe_imports": [
          "torch",
          "safetensors",
          "PIL"
        ],
        "python": "3.11",
        "supported_devices": [
          "cuda",
          "cpu"
        ],
        "wheels": []
      },
      "linux-cuda128": {
        "accelerator": "cuda",
        "arch": "amd64",
        "entrypoint": "inference.runtime:Backend",
        "lockfiles": [
          "models/linux-cuda128/runtime/requirements.lock"
        ],
        "os": "linux",
        "path": "models/linux-cuda128",
        "platform": "linux-cuda128",
        "probe_imports": [
          "torch",
          "safetensors",
          "PIL"
        ],
        "python": "3.11",
        "supported_devices": [
          "cuda",
          "cpu"
        ],
        "wheels": []
      },
      "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"
        ],
        "python": "3.11",
        "supported_devices": [
          "mps",
          "cpu"
        ],
        "wheels": []
      }
    },
    "schema_version": 2,
    "timeout_seconds": 600,
    "tools": [
      "tools/ocr_auto-type.json"
    ],
    "variants": {
      "medium": {
        "config": "configs/medium.json",
        "inference_weight_paths": [
          "model.safetensors"
        ],
        "languages": [
          "Chinese-Simplified",
          "Chinese-Traditional",
          "English",
          "Japanese",
          "Afrikaans",
          "Azerbaijani",
          "Bosnian",
          "Catalan",
          "Czech",
          "Welsh",
          "Danish",
          "German",
          "Spanish",
          "Estonian",
          "Basque",
          "Finnish",
          "French",
          "Irish",
          "Galician",
          "Croatian",
          "Hungarian",
          "Indonesian",
          "Icelandic",
          "Italian",
          "Kurdish",
          "Latin",
          "Luxembourgish",
          "Lithuanian",
          "Latvian",
          "Māori",
          "Malay",
          "Maltese",
          "Dutch",
          "Norwegian",
          "Occitan",
          "Polish",
          "Portuguese",
          "Quechua",
          "Romansh",
          "Romanian",
          "Slovak",
          "Slovenian",
          "Albanian",
          "Serbian-Latin",
          "Swedish",
          "Swahili",
          "Tagalog",
          "Turkish",
          "Uzbek",
          "Vietnamese"
        ],
        "supported_profiles": [
          "macos-metal"
        ],
        "weights": "weights/medium/weights.json"
      },
      "small": {
        "config": "configs/small.json",
        "inference_weight_paths": [
          "model.safetensors"
        ],
        "languages": [
          "Chinese-Simplified",
          "Chinese-Traditional",
          "English",
          "Japanese",
          "Afrikaans",
          "Azerbaijani",
          "Bosnian",
          "Catalan",
          "Czech",
          "Welsh",
          "Danish",
          "German",
          "Spanish",
          "Estonian",
          "Basque",
          "Finnish",
          "French",
          "Irish",
          "Galician",
          "Croatian",
          "Hungarian",
          "Indonesian",
          "Icelandic",
          "Italian",
          "Kurdish",
          "Latin",
          "Luxembourgish",
          "Lithuanian",
          "Latvian",
          "Māori",
          "Malay",
          "Maltese",
          "Dutch",
          "Norwegian",
          "Occitan",
          "Polish",
          "Portuguese",
          "Quechua",
          "Romansh",
          "Romanian",
          "Slovak",
          "Slovenian",
          "Albanian",
          "Serbian-Latin",
          "Swedish",
          "Swahili",
          "Tagalog",
          "Turkish",
          "Uzbek",
          "Vietnamese"
        ],
        "supported_profiles": [
          "macos-metal"
        ],
        "weights": "weights/small/weights.json"
      },
      "tiny": {
        "config": "configs/tiny.json",
        "inference_weight_paths": [
          "model.safetensors"
        ],
        "languages": [
          "Chinese-Simplified",
          "Chinese-Traditional",
          "English",
          "Afrikaans",
          "Azerbaijani",
          "Bosnian",
          "Catalan",
          "Czech",
          "Welsh",
          "Danish",
          "German",
          "Spanish",
          "Estonian",
          "Basque",
          "Finnish",
          "French",
          "Irish",
          "Galician",
          "Croatian",
          "Hungarian",
          "Indonesian",
          "Icelandic",
          "Italian",
          "Kurdish",
          "Latin",
          "Luxembourgish",
          "Lithuanian",
          "Latvian",
          "Māori",
          "Malay",
          "Maltese",
          "Dutch",
          "Norwegian",
          "Occitan",
          "Polish",
          "Portuguese",
          "Quechua",
          "Romansh",
          "Romanian",
          "Slovak",
          "Slovenian",
          "Albanian",
          "Serbian-Latin",
          "Swedish",
          "Swahili",
          "Tagalog",
          "Turkish",
          "Uzbek",
          "Vietnamese"
        ],
        "supported_profiles": [
          "macos-metal"
        ],
        "weights": "weights/tiny/weights.json"
      }
    },
    "version": "0.0.3",
    "worker_protocol": 1
  },
  "overrides": {},
  "profiles": {
    "linux-cpu": {
      "url": "blobs/sha256/2e44ab00d0f28e05b37de89891a64c4c2cee5f70d13ce3672815b845a7b14f71",
      "sha256": "2e44ab00d0f28e05b37de89891a64c4c2cee5f70d13ce3672815b845a7b14f71",
      "size": 23821,
      "unpacked_size": 72816
    },
    "linux-cuda126": {
      "url": "blobs/sha256/513b7b03786013ed3a49caea40cf9d4c0372bfe532e17653d0ae952820228915",
      "sha256": "513b7b03786013ed3a49caea40cf9d4c0372bfe532e17653d0ae952820228915",
      "size": 26972,
      "unpacked_size": 79012
    },
    "linux-cuda128": {
      "url": "blobs/sha256/a37639cbe9a75690a52b2af40cf872e9169e80b81902c3155970b820540d950a",
      "sha256": "a37639cbe9a75690a52b2af40cf872e9169e80b81902c3155970b820540d950a",
      "size": 26371,
      "unpacked_size": 77827
    },
    "macos-metal": {
      "url": "blobs/sha256/78c971fab935fd42baf3433e8a5873fd1d563554763be87d72c63f93b97b9c67",
      "sha256": "78c971fab935fd42baf3433e8a5873fd1d563554763be87d72c63f93b97b9c67",
      "size": 24875,
      "unpacked_size": 74604
    }
  },
  "schema_version": 2,
  "version": "0.0.3",
  "weights": {
    "medium": [
      {
        "path": "config.json",
        "size": 1131,
        "sha256": "aa5f351b4a7df95cc4953f013d53a6d44205f1bb0aee0ec7eb243d1d8fae1c27",
        "url": "https://models.boat-annotation.com/blobs/sha256/aa5f351b4a7df95cc4953f013d53a6d44205f1bb0aee0ec7eb243d1d8fae1c27",
        "requires_token": false
      },
      {
        "path": "model.safetensors",
        "size": 76741720,
        "sha256": "5f43c16f2a684b1d2284662178bdb604febd3d6bfdb5ca73828d08d0f7c0c3e9",
        "url": "https://models.boat-annotation.com/blobs/sha256/5f43c16f2a684b1d2284662178bdb604febd3d6bfdb5ca73828d08d0f7c0c3e9",
        "requires_token": false
      },
      {
        "path": "preprocessor_config.json",
        "size": 206177,
        "sha256": "2b24fa36f548893f26a931cf44f1a1a6b2b14ed7e2f8f8e28e6848801a8278db",
        "url": "https://models.boat-annotation.com/blobs/sha256/2b24fa36f548893f26a931cf44f1a1a6b2b14ed7e2f8f8e28e6848801a8278db",
        "requires_token": false
      }
    ],
    "small": [
      {
        "path": "config.json",
        "size": 1083,
        "sha256": "8693fd8485e8543e13d0f6dde3891a3f4af9a47fc4e3a391fbed71f8015c899e",
        "url": "https://models.boat-annotation.com/blobs/sha256/8693fd8485e8543e13d0f6dde3891a3f4af9a47fc4e3a391fbed71f8015c899e",
        "requires_token": false
      },
      {
        "path": "model.safetensors",
        "size": 21204736,
        "sha256": "f65a332afe5aa663f0b9d5706f4ae8457b5b4058a842d5c1eb22df505c27d642",
        "url": "https://models.boat-annotation.com/blobs/sha256/f65a332afe5aa663f0b9d5706f4ae8457b5b4058a842d5c1eb22df505c27d642",
        "requires_token": false
      },
      {
        "path": "preprocessor_config.json",
        "size": 206177,
        "sha256": "2b24fa36f548893f26a931cf44f1a1a6b2b14ed7e2f8f8e28e6848801a8278db",
        "url": "https://models.boat-annotation.com/blobs/sha256/2b24fa36f548893f26a931cf44f1a1a6b2b14ed7e2f8f8e28e6848801a8278db",
        "requires_token": false
      }
    ],
    "tiny": [
      {
        "path": "config.json",
        "size": 788,
        "sha256": "d8a130cc18e1833aa5f352e057b5cd0e254c46efc5709823f73d53a8b5a42969",
        "url": "https://models.boat-annotation.com/blobs/sha256/d8a130cc18e1833aa5f352e057b5cd0e254c46efc5709823f73d53a8b5a42969",
        "requires_token": false
      },
      {
        "path": "model.safetensors",
        "size": 4474264,
        "sha256": "cc3892aba0fbd89afbf6a76d8b7817bb58802668be7a1384ca761ce65612f3f7",
        "url": "https://models.boat-annotation.com/blobs/sha256/cc3892aba0fbd89afbf6a76d8b7817bb58802668be7a1384ca761ce65612f3f7",
        "requires_token": false
      },
      {
        "path": "preprocessor_config.json",
        "size": 75758,
        "sha256": "196f42619e2e9e0e93a6dc1a622fa1c664628e1c63ce116b376275b3e192125f",
        "url": "https://models.boat-annotation.com/blobs/sha256/196f42619e2e9e0e93a6dc1a622fa1c664628e1c63ce116b376275b3e192125f",
        "requires_token": false
      }
    ]
  }
}
