{
  "title": "2× M5 Ultra Mac Studio vs. 4× DGX Spark with Pico",
  "model": "DeepSeek V4.1 Flash",
  "ciru_measurement_date": "2026-11-26",
  "systems": {
    "ciru": {
      "hardware": "Apple Mac Studio with M5 Ultra",
      "units": 2
    },
    "pico": {
      "hardware": "NVIDIA DGX Spark",
      "units": 4
    }
  },
  "retrieval": {
    "ciru_runs": [
      {
        "prompt_tokens": 948000,
        "depth_pct": 37.0,
        "chunk_tokens": 32768,
        "time_to_first_token_s": 87.2561,
        "prefill_tps": 10864.6,
        "answer_decode_tps": 93.6,
        "facts_correct": 1,
        "facts_total": 1,
        "decoder_bounded_replay": true
      },
      {
        "prompt_tokens": 1012000,
        "depth_pct": 37.0,
        "chunk_tokens": 16384,
        "time_to_first_token_s": 98.3283,
        "prefill_tps": 10292.1,
        "answer_decode_tps": 128.3,
        "facts_correct": 1,
        "facts_total": 1,
        "decoder_bounded_replay": true
      },
      {
        "prompt_tokens": 1012000,
        "depth_pct": 73.0,
        "chunk_tokens": 16384,
        "time_to_first_token_s": 107.8753,
        "prefill_tps": 9381.2,
        "answer_decode_tps": 85.8,
        "facts_correct": 1,
        "facts_total": 1,
        "decoder_bounded_replay": true
      }
    ],
    "ciru_1m_history": [
      {
        "label": "Without bounded replay",
        "prompt_tokens": 1012000,
        "depth_pct": 37.0,
        "time_to_first_token_s": 230.8463,
        "prefill_tps": 4383.9,
        "answer_decode_tps": 92.2,
        "facts_correct": 1,
        "facts_total": 1,
        "decoder_bounded_replay": false
      },
      {
        "label": "With bounded replay",
        "prompt_tokens": 1012000,
        "depth_pct": 37.0,
        "chunk_tokens": 16384,
        "time_to_first_token_s": 98.3283,
        "prefill_tps": 10292.1,
        "answer_decode_tps": 128.3,
        "facts_correct": 1,
        "facts_total": 1,
        "decoder_bounded_replay": true
      }
    ],
    "pico_reported_948k": {
      "nominal_prompt_tokens": 948000,
      "reported_tps": 10200,
      "facts_correct": 3,
      "facts_total": 3,
      "runs": 1
    },
    "ciru_948k_reported_rate_gain_pct": 6.5157,
    "ciru_prefill_definition": "Input tokens divided by time to first token.",
    "comparison": "The 948K tests used independently constructed prompts and different fact counts."
  },
  "prefill": {
    "ciru_real_text": [
      {
        "tokens": 4096,
        "gain_pct": 69.0834,
        "without_bounded_replay_tps": 4550.3,
        "with_bounded_replay_tps": 7693.8,
        "without_bounded_replay_ttft_s": 0.9002,
        "with_bounded_replay_ttft_s": 0.5324
      },
      {
        "tokens": 8192,
        "gain_pct": null,
        "without_bounded_replay_tps": null,
        "with_bounded_replay_tps": 9557.1,
        "without_bounded_replay_ttft_s": null,
        "with_bounded_replay_ttft_s": 0.8572
      },
      {
        "tokens": 15360,
        "gain_pct": 90.1421,
        "without_bounded_replay_tps": 5568.1,
        "with_bounded_replay_tps": 10587.3,
        "without_bounded_replay_ttft_s": 2.7585,
        "with_bounded_replay_ttft_s": 1.4508
      },
      {
        "tokens": 32768,
        "gain_pct": 97.6119,
        "without_bounded_replay_tps": 5506.5,
        "with_bounded_replay_tps": 10881.5,
        "without_bounded_replay_ttft_s": 5.9508,
        "with_bounded_replay_ttft_s": 3.0113
      },
      {
        "tokens": 63488,
        "gain_pct": 101.6934,
        "without_bounded_replay_tps": 5421.2,
        "with_bounded_replay_tps": 10934.2,
        "without_bounded_replay_ttft_s": 11.7111,
        "with_bounded_replay_ttft_s": 5.8064
      },
      {
        "tokens": 122880,
        "gain_pct": 105.6709,
        "without_bounded_replay_tps": 5318.4,
        "with_bounded_replay_tps": 10938.4,
        "without_bounded_replay_ttft_s": 23.1049,
        "with_bounded_replay_ttft_s": 11.2338
      },
      {
        "tokens": 262144,
        "gain_pct": 112.698,
        "without_bounded_replay_tps": 5138.6,
        "with_bounded_replay_tps": 10929.7,
        "without_bounded_replay_ttft_s": 51.0148,
        "with_bounded_replay_ttft_s": 23.9845
      }
    ],
    "ciru_repeated_filler": [
      {
        "tokens": 4096,
        "gain_pct": 71.8488,
        "without_bounded_replay_tps": 4909.2,
        "with_bounded_replay_tps": 8436.4,
        "without_bounded_replay_ttft_s": 0.8343,
        "with_bounded_replay_ttft_s": 0.4855
      },
      {
        "tokens": 8192,
        "gain_pct": null,
        "without_bounded_replay_tps": null,
        "with_bounded_replay_tps": 10085.6,
        "without_bounded_replay_ttft_s": null,
        "with_bounded_replay_ttft_s": 0.8122
      },
      {
        "tokens": 16384,
        "gain_pct": 91.5848,
        "without_bounded_replay_tps": 5733.7,
        "with_bounded_replay_tps": 10984.9,
        "without_bounded_replay_ttft_s": 2.8575,
        "with_bounded_replay_ttft_s": 1.4915
      },
      {
        "tokens": 32768,
        "gain_pct": 98.1,
        "without_bounded_replay_tps": 5668.3,
        "with_bounded_replay_tps": 11228.9,
        "without_bounded_replay_ttft_s": 5.781,
        "with_bounded_replay_ttft_s": 2.9182
      },
      {
        "tokens": 65536,
        "gain_pct": 102.4094,
        "without_bounded_replay_tps": 5586.5,
        "with_bounded_replay_tps": 11307.6,
        "without_bounded_replay_ttft_s": 11.7311,
        "with_bounded_replay_ttft_s": 5.7957
      },
      {
        "tokens": 131072,
        "gain_pct": 106.043,
        "without_bounded_replay_tps": 5480.7,
        "with_bounded_replay_tps": 11292.6,
        "without_bounded_replay_ttft_s": 23.9154,
        "with_bounded_replay_ttft_s": 11.6069
      },
      {
        "tokens": 262144,
        "gain_pct": 112.7231,
        "without_bounded_replay_tps": 5288.0,
        "with_bounded_replay_tps": 11248.8,
        "without_bounded_replay_ttft_s": 49.5738,
        "with_bounded_replay_ttft_s": 23.3043
      }
    ],
    "pico_repository_rates": [
      {
        "nominal_prompt_tokens": 8700,
        "reported_tps": 9300
      },
      {
        "nominal_prompt_tokens": 36000,
        "reported_tps": 10700
      },
      {
        "nominal_prompt_tokens": 48700,
        "reported_tps": 10800,
        "cold_starts_low": 8,
        "cold_starts_high": 10
      },
      {
        "nominal_prompt_tokens": 948000,
        "reported_tps": 10200,
        "facts_correct": 3,
        "facts_total": 3,
        "runs": 1
      }
    ],
    "pico_independent_sweep": [
      {
        "tier": "8K",
        "pico_tps": 8929,
        "ciru_real_tokens": 8192,
        "ciru_real_tps": 9557.1,
        "ciru_real_gain_pct": 7.0344,
        "ciru_filler_tokens": 8192,
        "ciru_filler_tps": 10085.6,
        "ciru_filler_gain_pct": 12.9533
      },
      {
        "tier": "32K",
        "pico_tps": 9801,
        "ciru_real_tokens": 32768,
        "ciru_real_tps": 10881.5,
        "ciru_real_gain_pct": 11.0244,
        "ciru_filler_tokens": 32768,
        "ciru_filler_tps": 11228.9,
        "ciru_filler_gain_pct": 14.5689
      },
      {
        "tier": "128K",
        "pico_tps": 10052,
        "ciru_real_tokens": 122880,
        "ciru_real_tps": 10938.4,
        "ciru_real_gain_pct": 8.8181,
        "ciru_filler_tokens": 131072,
        "ciru_filler_tps": 11292.6,
        "ciru_filler_gain_pct": 12.3418
      }
    ],
    "decoder_replay_comparison": {
      "method": "Decoder sliding-window attention bounded replay",
      "without": "Without decoder sliding-window attention bounded replay",
      "with": "With decoder sliding-window attention bounded replay"
    }
  },
  "decode": {
    "single_stream": [
      {
        "workload": "Prose",
        "ciru_decode_tps": 109.7,
        "ciru_full_wall_tps": 107.4,
        "pico_tps": 102.0,
        "gain_pct": 7.549
      },
      {
        "workload": "Code",
        "ciru_decode_tps": 197.1,
        "ciru_full_wall_tps": 185.7,
        "pico_tps": 164.6,
        "gain_pct": 19.7448
      }
    ],
    "ciru_concurrency": {
      "Prose": [
        {
          "streams": 1,
          "decode_tps": 109.7,
          "full_wall_tps": 107.4
        },
        {
          "streams": 2,
          "decode_tps": 161.4,
          "full_wall_tps": 154.9
        },
        {
          "streams": 4,
          "decode_tps": 253.6,
          "full_wall_tps": 237.4
        },
        {
          "streams": 8,
          "decode_tps": 374.7,
          "full_wall_tps": 339.3
        },
        {
          "streams": 16,
          "decode_tps": 557.4,
          "full_wall_tps": 481.1
        }
      ],
      "Code": [
        {
          "streams": 1,
          "decode_tps": 197.1,
          "full_wall_tps": 185.7
        },
        {
          "streams": 2,
          "decode_tps": 254.3,
          "full_wall_tps": 235.6
        },
        {
          "streams": 4,
          "decode_tps": 360.2,
          "full_wall_tps": 322.6
        },
        {
          "streams": 8,
          "decode_tps": 480.4,
          "full_wall_tps": 415.5
        },
        {
          "streams": 16,
          "decode_tps": 717.7,
          "full_wall_tps": 581.2
        }
      ],
      "Structured": [
        {
          "streams": 1,
          "decode_tps": 190.8,
          "full_wall_tps": 184.3
        },
        {
          "streams": 2,
          "decode_tps": 308.7,
          "full_wall_tps": 289.1
        },
        {
          "streams": 4,
          "decode_tps": 496.3,
          "full_wall_tps": 446.4
        },
        {
          "streams": 8,
          "decode_tps": 791.4,
          "full_wall_tps": 670.9
        },
        {
          "streams": 16,
          "decode_tps": 1288.0,
          "full_wall_tps": 994.0
        }
      ],
      "JSON": [
        {
          "streams": 1,
          "decode_tps": 176.6,
          "full_wall_tps": 167.9
        },
        {
          "streams": 2,
          "decode_tps": 264.9,
          "full_wall_tps": 244.4
        },
        {
          "streams": 4,
          "decode_tps": 425.6,
          "full_wall_tps": 374.2
        },
        {
          "streams": 8,
          "decode_tps": 658.9,
          "full_wall_tps": 542.6
        },
        {
          "streams": 16,
          "decode_tps": 1010.1,
          "full_wall_tps": 759.6
        }
      ]
    },
    "pico_distinct_prompts": [
      {
        "streams": 8,
        "aggregate_tps_low": 340,
        "aggregate_tps_high": 350
      },
      {
        "streams": 16,
        "aggregate_tps_reported": 413
      }
    ],
    "comparison": "Single-stream prose and code come from the SparkDash prompt families. Ciru measures native generation and Pico measures the streamed response."
  },
  "file_rewrites": {
    "one_stream": [
      {
        "input_tokens": 1694,
        "output_tokens": 1649,
        "ciru_decode_tps": 719.5,
        "ciru_generation_s": 2.291,
        "pico_nominal_file_tokens": 1000,
        "pico_tps_low": 365,
        "pico_tps_high": 370
      },
      {
        "input_tokens": 3758,
        "output_tokens": 3714,
        "ciru_decode_tps": 956.5,
        "ciru_generation_s": 3.882,
        "pico_nominal_file_tokens": 4000,
        "pico_tps_low": 459,
        "pico_tps_high": 465
      },
      {
        "input_tokens": 8096,
        "output_tokens": 8051,
        "ciru_decode_tps": 839.5,
        "ciru_generation_s": 9.589,
        "pico_nominal_file_tokens": 8000,
        "pico_tps_low": 468,
        "pico_tps_high": 468
      }
    ],
    "smallest_ciru_file_matches_reference_tokens": true,
    "comparison": "Single-edit file rewrites, measured on different files. Rates describe generation during this workload."
  },
  "sources": {
    "pico_repo": "https://github.com/Picom-code/pico-dgx-ds4",
    "pico_readme": "https://github.com/Picom-code/pico-dgx-ds4/blob/922dddb1a35e521148022ee11264632da1f0ddc0/README.md#L59-L73",
    "pico_long_context": "https://github.com/Picom-code/pico-dgx-ds4/blob/922dddb1a35e521148022ee11264632da1f0ddc0/CHANGES.md#L18-L35",
    "pico_independent_sweep": "https://petronellatech.com/ai/llm-benchmarks/hardware/gb10-cluster-benchmarks/",
    "mia": "https://x.com/MiaAI_lab/status/2120634696078151826",
    "deepseek_decoder_replay": "https://arxiv.org/html/2609.19969v1#S3.SS2.SSS2.Px2",
    "pico_controlled_replay_test": "https://github.com/Picom-code/pico-dgx-ds4/blob/922dddb1a35e521148022ee11264632da1f0ddc0/ds41f-4xgx10-switchless/docs/engine.md#L2229-L2243",
    "mia_tensorfold_recipe": "https://github.com/MiaAI-Lab/DeepSeek-V4.1-Flash-1017-4x-DGX-Sparks-TensorFold"
  }
}
