{
  "contractVersion": "1.0",
  "model": {
    "id": "apertus-v1.1-0.5b",
    "displayName": "Apertus v1.1 0.5B Instruct — INT4",
    "provider": "Swiss AI Initiative (ETH Zurich / EPFL)",
    "license": "Apache-2.0",
    "lastUpdated": "2026-05-29T10:04:03.000Z",
    "sourceRepository": "swiss-ai/Apertus-v1.1-0.5B-Instruct",
    "repository": "onnx-community/Apertus-v1.1-0.5B-Instruct-QAD-INT4-ONNX",
    "artifactRevision": "defefbcf863cad09633955d5e82c8a1978f1c214",
    "artifactLastUpdated": "2026-06-22T18:18:24.000Z",
    "task": "text-generation",
    "description": "A compact multilingual instruction-tuned Apertus model for local browser chat through Transformers.js and ONNX Runtime Web.",
    "intendedUses": [
      "Local multilingual chat, drafting, rewriting, and summarization.",
      "Benchmarking browser LLM inference."
    ],
    "limitations": [
      "Generated text may be incorrect, unsafe, biased, or fabricated and requires review.",
      "The 0.5B parameter size limits reasoning depth, factual recall, and instruction following.",
      "Accuracy depends on prompt language and input quality; uncommon languages and specialized domains may perform poorly.",
      "The QAD INT4 conversion may reduce output quality, and browser backends may not support every candidate artifact."
    ]
  },
  "runtime": {
    "engine": {
      "name": "Transformers.js",
      "version": "4.2.0"
    },
    "precisions": {
      "q4f16": {
        "supportedDevices": [
          "wasm",
          "webgpu"
        ],
        "weightsSize": 517345436,
        "size": 534436279,
        "modelKeys": [
          "model_q4f16.onnx",
          "model_q4f16.onnx_data"
        ],
        "dtype": "q4f16",
        "candidateDevices": [
          "wasm",
          "webgpu"
        ]
      },
      "q4": {
        "supportedDevices": [
          "wasm",
          "webgpu"
        ],
        "weightsSize": 811476908,
        "size": 828567751,
        "modelKeys": [
          "model_q4.onnx",
          "model_q4.onnx_data"
        ],
        "dtype": "q4",
        "candidateDevices": [
          "wasm",
          "webgpu"
        ]
      }
    }
  },
  "benchmark": {
    "report": "benchmarks/apertus-v1.1-0.5b.json",
    "testedAt": "2026-09-09T16:50:14.459Z",
    "fixture": {
      "file": "apertus-v1.1-0.5b.json",
      "url": "https://f005.backblazeb2.com/file/hubters-webai-public/assets/benchmarks/apertus-v1.1-0.5b.json",
      "size": 397,
      "sha1": "01931912845892dd559d20d4f628d65a2e6999d8"
    },
    "candidates": {
      "q4f16": {
        "weightsSize": 517345436,
        "size": 534436279,
        "modelKeys": [
          "model_q4f16.onnx",
          "model_q4f16.onnx_data"
        ],
        "dtype": "q4f16",
        "candidateDevices": [
          "wasm",
          "webgpu"
        ]
      },
      "q4": {
        "weightsSize": 811476908,
        "size": 828567751,
        "modelKeys": [
          "model_q4.onnx",
          "model_q4.onnx_data"
        ],
        "dtype": "q4",
        "candidateDevices": [
          "wasm",
          "webgpu"
        ]
      }
    },
    "invalidatedBy": [
      "artifact revision change",
      "runtime version change",
      "fixture or quality gate change",
      "browser/backend change"
    ],
    "results": [
      {
        "precision": "q4",
        "device": "wasm",
        "status": "pass",
        "runtime": {
          "loadMs": 67673.60000002384,
          "inferenceMs": 5725,
          "totalMs": 75436.5,
          "grade": "very-slow",
          "firstChunkMs": 1929.2999999523163,
          "outputTokens": 7,
          "tokensPerSecond": 1.2227074235807862
        },
        "cleanup": {
          "modelDisposed": true,
          "cacheClearedBeforeCase": true,
          "cacheClearedAfterCase": true,
          "deletedBefore": 0,
          "deletedAfter": 5
        },
        "nativeOutput": {
          "result": "The capital of France is Paris.",
          "messages": [
            {
              "role": "user",
              "content": "What is the capital of France? Answer in one concise sentence."
            },
            {
              "role": "assistant",
              "content": "The capital of France is Paris."
            }
          ],
          "structured_output": false
        },
        "streamedText": "The capital of France is Paris.",
        "quality": {
          "grade": "exact-match",
          "passed": true,
          "nonEmpty": true,
          "exactMatch": true,
          "nonRepetitive": true,
          "longestRepeatedWordRun": 1,
          "expected": "The capital of France is Paris"
        },
        "streamMatchesFinal": true,
        "finishedAt": "2026-09-09T16:47:11.070Z"
      },
      {
        "precision": "q4",
        "device": "webgpu",
        "status": "pass",
        "runtime": {
          "loadMs": 71906.80000007153,
          "inferenceMs": 333.2999999523163,
          "totalMs": 74056.09999990463,
          "grade": "excellent",
          "firstChunkMs": 265,
          "outputTokens": 7,
          "tokensPerSecond": 21.002100213025678
        },
        "cleanup": {
          "modelDisposed": true,
          "cacheClearedBeforeCase": true,
          "cacheClearedAfterCase": true,
          "deletedBefore": 0,
          "deletedAfter": 5
        },
        "nativeOutput": {
          "result": "The capital of France is Paris.",
          "messages": [
            {
              "role": "user",
              "content": "What is the capital of France? Answer in one concise sentence."
            },
            {
              "role": "assistant",
              "content": "The capital of France is Paris."
            }
          ],
          "structured_output": false
        },
        "streamedText": "The capital of France is Paris.",
        "quality": {
          "grade": "exact-match",
          "passed": true,
          "nonEmpty": true,
          "exactMatch": true,
          "nonRepetitive": true,
          "longestRepeatedWordRun": 1,
          "expected": "The capital of France is Paris"
        },
        "streamMatchesFinal": true,
        "finishedAt": "2026-09-09T16:48:25.783Z"
      },
      {
        "precision": "q4f16",
        "device": "wasm",
        "status": "pass",
        "runtime": {
          "loadMs": 46637.60000002384,
          "inferenceMs": 5559.699999928474,
          "totalMs": 53980.700000047684,
          "grade": "very-slow",
          "firstChunkMs": 1970.7999999523163,
          "outputTokens": 7,
          "tokensPerSecond": 1.259060740703645
        },
        "cleanup": {
          "modelDisposed": true,
          "cacheClearedBeforeCase": true,
          "cacheClearedAfterCase": true,
          "deletedBefore": 0,
          "deletedAfter": 5
        },
        "nativeOutput": {
          "result": "The capital of France is Paris.",
          "messages": [
            {
              "role": "user",
              "content": "What is the capital of France? Answer in one concise sentence."
            },
            {
              "role": "assistant",
              "content": "The capital of France is Paris."
            }
          ],
          "structured_output": false
        },
        "streamedText": "The capital of France is Paris.",
        "quality": {
          "grade": "exact-match",
          "passed": true,
          "nonEmpty": true,
          "exactMatch": true,
          "nonRepetitive": true,
          "longestRepeatedWordRun": 1,
          "expected": "The capital of France is Paris"
        },
        "streamMatchesFinal": true,
        "finishedAt": "2026-09-09T16:49:20.423Z"
      },
      {
        "precision": "q4f16",
        "device": "webgpu",
        "status": "pass",
        "runtime": {
          "loadMs": 50756.200000047684,
          "inferenceMs": 854.6999999284744,
          "totalMs": 53346,
          "grade": "slow",
          "firstChunkMs": 501.10000002384186,
          "outputTokens": 7,
          "tokensPerSecond": 8.19000819069357
        },
        "cleanup": {
          "modelDisposed": true,
          "cacheClearedBeforeCase": true,
          "cacheClearedAfterCase": true,
          "deletedBefore": 0,
          "deletedAfter": 5
        },
        "nativeOutput": {
          "result": "The capital of France is Paris.",
          "messages": [
            {
              "role": "user",
              "content": "What is the capital of France? Answer in one concise sentence."
            },
            {
              "role": "assistant",
              "content": "The capital of France is Paris."
            }
          ],
          "structured_output": false
        },
        "streamedText": "The capital of France is Paris.",
        "quality": {
          "grade": "exact-match",
          "passed": true,
          "nonEmpty": true,
          "exactMatch": true,
          "nonRepetitive": true,
          "longestRepeatedWordRun": 1,
          "expected": "The capital of France is Paris"
        },
        "streamMatchesFinal": true,
        "finishedAt": "2026-09-09T16:50:14.370Z"
      }
    ],
    "environment": "Chrome 151.0.7922.176; darwin/arm64; Transformers.js 4.2.0",
    "qualityGate": "Exact-match answer, non-empty/non-repetitive output, and streamed text equal to final text."
  }
}
