{
  "source": {
    "title": "Saltash Town Council, Tincombe Tea Party reports pack",
    "url": "https://modern.saltash.gov.uk/documents/s7884/FF118%20Tincombe%20Tea%20Party%20reports%20pack%20-%20redacted.pdf#page=19",
    "page": 19,
    "invoiceDate": "4 May 2023",
    "pdfSha256": "33c680ed237e82745fe90a95e7c02f53aa2527c0cfca5f1fd818d1fc97a027d2",
    "cropSha256": "c3659b7db08a6dfad58ae63f9af956825cef63f825c8b663d7e04dd27c329ea0"
  },
  "input": "Invoice\nPaid\nSold by Zhengzhouyundanzhinengkejiyouxiangongsi\nInvoice date / Delivery date: 04.05.2023\nInvoice #: DS-ASE-INV-GB-2023-170747294\nTotal payable: £13.88\nVAT declared by: Amazon Services Europe S.a.r.L.\n\nInvoice details\nDescription | Qty | Unit price (excl. VAT) | VAT rate | Unit price (incl. VAT) | Item subtotal (incl. VAT)\nDongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture. (4large, Black) | B097TSWV5R    1    £11.57    20%    £13.88    £13.88\nASIN: B097TSWV5R\nShipping Charges       £0.00       £0.00    £0.00\nInvoice total: £13.88\n\nVAT rate | Item subtotal (excl. VAT) | VAT subtotal\n20%    £11.57    £2.31\nTotal  £11.57    £2.31",
  "reference": {
    "invoice_id": "DS-ASE-INV-GB-2023-170747294",
    "issued_on": "2023-05-04",
    "supplier": "Zhengzhouyundanzhinengkejiyouxiangongsi",
    "currency": "GBP",
    "line_items": [
      {
        "description": "Dongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture. (4large, Black) | B097TSWV5R",
        "quantity": 1,
        "unit_minor": 1157
      }
    ],
    "subtotal_minor": 1157,
    "tax_minor": 231,
    "total_minor": 1388
  },
  "messages": [
    {
      "role": "system",
      "content": "Extract exactly one JSON object with invoice_id, issued_on (YYYY-MM-DD), supplier, currency (ISO code), line_items (description, quantity, unit_minor), subtotal_minor, tax_minor, and total_minor. Preserve line order and convert currency amounts to integer cents. Use null only for a missing or ambiguous field. Do not rewrite printed amounts, invent fields, or add explanations."
    },
    {
      "role": "user",
      "content": "Sample Supplier 7644 | issued 2026-07-15 | invoice SF-898991\nLedger in USD\nService | Count | Per unit\nCarrier adjustment | 3 | 188.32\nRack inspection | 8 | 64.15\nBefore tax 1,078.16\nTax charged 75.47\nBalance 1,153.63"
    },
    {
      "role": "assistant",
      "content": "{\"invoice_id\":\"SF-898991\",\"issued_on\":\"2026-07-15\",\"supplier\":\"Sample Supplier 7644\",\"currency\":\"USD\",\"line_items\":[{\"description\":\"Carrier adjustment\",\"quantity\":3,\"unit_minor\":18832},{\"description\":\"Rack inspection\",\"quantity\":8,\"unit_minor\":6415}],\"subtotal_minor\":107816,\"tax_minor\":7547,\"total_minor\":115363}"
    },
    {
      "role": "user",
      "content": "Invoice\nPaid\nSold by Zhengzhouyundanzhinengkejiyouxiangongsi\nInvoice date / Delivery date: 04.05.2023\nInvoice #: DS-ASE-INV-GB-2023-170747294\nTotal payable: £13.88\nVAT declared by: Amazon Services Europe S.a.r.L.\n\nInvoice details\nDescription | Qty | Unit price (excl. VAT) | VAT rate | Unit price (incl. VAT) | Item subtotal (incl. VAT)\nDongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture. (4large, Black) | B097TSWV5R    1    £11.57    20%    £13.88    £13.88\nASIN: B097TSWV5R\nShipping Charges       £0.00       £0.00    £0.00\nInvoice total: £13.88\n\nVAT rate | Item subtotal (excl. VAT) | VAT subtotal\n20%    £11.57    £2.31\nTotal  £11.57    £2.31"
    }
  ],
  "model": "Qwen/Qwen2.5-0.5B-Instruct",
  "revision": "7ae557604adf67be50417f59c2c2f167def9a775",
  "device": "mps",
  "architecture": "arm64",
  "seed": 42,
  "versions": {
    "torch": "2.13.0",
    "transformers": "4.51.3",
    "peft": "0.15.2",
    "bitsandbytes": "0.50.2"
  },
  "training": {
    "FP16 LoRA": {
      "updates": 96,
      "supervised_response_tokens": 21378,
      "unpadded_input_tokens": 100690,
      "trainable_parameters": 540672
    },
    "NF4 QLoRA": {
      "updates": 96,
      "supervised_response_tokens": 21378,
      "unpadded_input_tokens": 100690,
      "trainable_parameters": 540672
    }
  },
  "runs": [
    {
      "label": "FP16 prompted",
      "answer": "{\n  \"invoice_id\": \"DS-ASE-INV-GB-2023-170747294\",\n  \"issued_on\": \"04.05.2023\",\n  \"supplier\": \"Zhengzhouyundanzhinengkejiyouxiangongsi\",\n  \"currency\": \"GBP\",\n  \"line_items\": [\n    {\n      \"description\": \"Dongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture.\",\n      \"quantity\": 1,\n      \"unit_minor\": 11.57\n    },\n    {\n      \"description\": \"ASIN: B097TSWV5R\",\n      \"quantity\": 1,\n      \"unit_minor\": 2.31\n    }\n  ],\n  \"subtotal_minor\": 11.57,\n  \"tax_minor\": 2.31,\n  \"total_minor\": 13.88\n}",
      "completed": true,
      "completionTokens": 213,
      "valid": false,
      "exact": false
    },
    {
      "label": "FP16 LoRA",
      "answer": "{\"invoice_id\":\"DS-ASE-INV-GB-2023-170747294\",\"issued_on\":\"04.05.2023\",\"supplier\":\"Zhengzhouyundanzhinengkejiyouxiangongsi\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Dongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture.\",\"quantity\":B097TSWV5R,\"unit_minor\":1,\"item_subtotal_including_vat\":13.88,\"subtotal_including_vat\":13.88,\"vat_rate\":\"20%\"},{\"description\":\"ASIN:B097TSWV5R\",\"quantity\":0,\"unit_minor\":0,\"item_subtotal_excluding_vat\":0,\"subtotal_excluding_vat\":0,\"vat_rate\":\"20%\"}],\"subtotal_including_vat\":11.57,\"vat_subtotal\":2.31,\"total_vat\":11.57,\"total_including_vat\":13.88,\"total\":13.88}",
      "completed": true,
      "completionTokens": 246,
      "valid": false,
      "exact": false
    },
    {
      "label": "NF4 prompted",
      "answer": "{\n  \"invoice_id\": \"DS-ASE-INV-GB-2023-170747294\",\n  \"paid_at\": \"2023-05-04\",\n  \"sold_by\": \"Zhengzhouyundanzhinengkejiyouxiangongsi\",\n  \"invoice_date\": \"2023-05-04\",\n  \"total_payable\": \"$13.88\",\n  \"vat_declared_by\": \"Amazon Services Europe S.a.r.L.\",\n  \"invoice_details\": {\n    \"description\": \"Dongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture. (4 large, Black)\",\n    \"quantity\": 1,\n    \"unit_price_excl_vat\": \"$11.57\",\n    \"unit_price_incl_vat\": \"$13.88\",\n    \"item_subtotal_excl_vat\": \"$11.57\",\n    \"item_subtotal_incl_vat\": \"$13.88\"\n  },\n  \"vat_rate\": \"$20%\",\n  \"item_subtotal_incl_vat\": \"$2.31\",\n  \"total_vat\": \"$2.31\",\n  \"vat_rate\": \"$20%\"\n}",
      "completed": true,
      "completionTokens": 280,
      "valid": false,
      "exact": false
    },
    {
      "label": "NF4 QLoRA",
      "answer": "{\"invoice_id\":\"DS-ASE-INV-GB-2023-170747294\",\"issued_on\":\"2023-05-04\",\"supplier\":\"Zhengzhouyundanzhinengkejiyouxiangongsi\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Dongawin gazebo Weights Bag Leg Weights for Pop up Canopy Tent, Patio Umbrella, Outdoor Furniture.\",\"quantity\":4,\"unit_minor\":1157},{\"description\":\"ASIN:B097TSWV5R\",\"quantity\":1,\"unit_minor\":231}],\"subtotal_minor\":1157,\"tax_minor\":231,\"total_minor\":1388}",
      "completed": true,
      "completionTokens": 155,
      "valid": true,
      "exact": false
    }
  ],
  "adapterSha256": {
    "FP16 LoRA": "53733bc8637e16a5df58b68d0b235e015c541fe16c6741c75ce58d7f011ed9e9",
    "NF4 QLoRA": "476c86a197ad26fa8f8d61926860a08922cb121b40b6747c187516dbd8a4385c"
  },
  "hardware": "Apple M3 Max",
  "precisionNote": "Two fresh local fits used the archived schedule and the MPS backend. CUDA loss scaling and timings were not used."
}
