{
  "_published": {
    "source": "docs/measurements/local-model-benchmark-method-2026-11-15.json",
    "published": "2026-11-15",
    "publisher": "J4SGON S.L., vorluxai.com",
    "index": "https://vorluxai.com/data/",
    "cleaned": "Copied from our internal repository by scripts/publish_measurements.py. Every number is unchanged. Redacted: private IP addresses -> <prime> / <second-box> / <private-ip> (2); temporary agent paths -> <tmp> (1); home directories -> ~ (2). Hostnames (spark-43d5, spark-7180) and the PRIME / spark2 labels are kept: the posts use them.",
    "redactions": {
      "private_ip": 2,
      "scratch_path": 1,
      "home_path": 2
    }
  },
  "title": "The 30-minute benchmark method run end to end on a shared box: by hand with curl, with the site's script, and a small quality task set",
  "measured_at": "2026-11-15T19:50:32+00:00",
  "finished_at": "2026-11-15T19:59:40+00:00",
  "machine": "NVIDIA DGX Spark, GB10, 128 GB unified memory (spark2, spark-7180); requests sent from the first Spark over a direct link",
  "kernel": "7.0.0-1019-nvidia",
  "gpu_driver": "NVIDIA GB10, 580.178.04",
  "ollama_version": "0.34.0",
  "ollama_server_settings": {
    "OLLAMA_NUM_PARALLEL": 8,
    "OLLAMA_KEEP_ALIVE": "30m",
    "OLLAMA_MAX_LOADED_MODELS": 3,
    "OLLAMA_CONTEXT_LENGTH": 32768,
    "source": "systemctl show ollama -p Environment on the box, read before the run"
  },
  "model": {
    "name": "llama3.1:8b",
    "digest": "610938b3d432ca05e44edc41d048c5f18158ed314a395f4341b3fed25e7c8576",
    "details": {
      "parent_model": "llama3.1:8b",
      "format": "gguf",
      "family": "llama",
      "families": [
        "llama"
      ],
      "parameter_size": "8.0B",
      "quantization_level": "Q4_K_M"
    },
    "file_size_gb": 4.92
  },
  "num_ctx": 4096,
  "shared_box": {
    "note": "The box was not idle hardware reserved for this test. Another model stayed resident in Ollama for the whole run and a vLLM engine held GPU memory. GPU utilisation read 0 % just before the first request, so nothing else was generating at that instant; we did not watch the other processes continuously during the hand runs.",
    "ollama_resident_before": [
      {
        "name": "gemma4-32k:latest",
        "size_gb": 22.7,
        "context_length": 32768
      }
    ],
    "conditions_before_raw": [
      "0 %, 43, 10.36 W",
      "~/dev/ComfyUI/.venv/bin/python, 353 MiB",
      "VLLM::EngineCore, 19251 MiB",
      "/usr/local/lib/ollama/llama-server, 28165 MiB",
      "MemAvailable:   65984736 kB",
      "some avg10=0.00 avg60=0.00 avg300=0.00 total=7842332",
      "full avg10=0.00 avg60=0.00 avg300=0.00 total=7831696",
      " 20:50:32 up 1 day, 10:28,  2 users,  load average: 0.16, 0.08, 0.09"
    ],
    "conditions_before_columns": "line 1: GPU utilisation, GPU temperature (C), power draw; lines 2-4: nvidia-smi compute apps (process, GPU memory); then MemAvailable, memory PSI, uptime"
  },
  "hand_run": {
    "how": "bash + curl + jq, the commands printed in the post, with BASE pointing at the second box and MODEL=llama3.1:8b",
    "prompt": "\"Request <n>. List the people, dates and amounts in this note, then the three main risks. \" + the 225-word meeting note (the note inside the script's prompt, see script_run.prompt)",
    "options": {
      "num_ctx": 4096,
      "temperature": 0,
      "seed": 42,
      "num_predict": 200
    },
    "run1_cold": {
      "load_duration_s": 2.075,
      "prompt_eval_count": 291,
      "prompt_eval_cached_count": 0,
      "prompt_eval_duration_s": 0.1225,
      "prompt_tok_s": 2375.9,
      "eval_count": 200,
      "eval_duration_s": 4.628,
      "generation_tok_s": 43.2,
      "total_duration_s": 6.83,
      "done_reason": "length",
      "raw_counters": {
        "total_duration": 6829898777,
        "load_duration": 2074969985,
        "prompt_eval_count": 291,
        "prompt_eval_duration": 122481000,
        "eval_count": 200,
        "eval_duration": 4628254000
      },
      "output": "Here are the requested items:\n\n**People, Dates, and Amounts:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close ends)\n\t+ 19 October (next meeting)\n* Amounts:\n\t+ None mentioned\n\n**Three Main Risks:**\n\n1. **Delays in client communication**: 11 clients have not sent their September invoices, which could lead to delays in processing and potentially impact the third-quarter close.\n2. **Inaccurate AI-generated emails**: The AI assistant has been known to get dates and amounts wrong, which could lead to errors and potentially harm the firm's reputation.\n3. **Non-compliance with European rules**: The firm needs to keep a register of AI uses, which requires accurate tracking of tasks performed with the AI assistant. Failure to comply"
    },
    "run2_warm": {
      "load_duration_s": 0.001,
      "prompt_eval_count": 291,
      "prompt_eval_cached_count": 0,
      "prompt_eval_duration_s": 0.0947,
      "prompt_tok_s": 3072.9,
      "eval_count": 200,
      "eval_duration_s": 4.644,
      "generation_tok_s": 43.1,
      "total_duration_s": 4.755,
      "done_reason": "length",
      "raw_counters": {
        "total_duration": 4755104097,
        "load_duration": 1013653,
        "prompt_eval_count": 291,
        "prompt_eval_duration": 94700000,
        "eval_count": 200,
        "eval_duration": 4644408000
      },
      "output": "Here are the requested items:\n\n**People, Dates, and Amounts:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close ends)\n\t+ 19 October (next meeting)\n* Amounts:\n\t+ None mentioned\n\n**Three Main Risks:**\n\n1. **Delays in client communication**: 11 clients have not sent their September invoices, which could lead to delays in processing and potentially impact the third-quarter close.\n2. **Inaccurate AI-generated emails**: The AI assistant has been getting dates and amounts wrong, which could lead to errors and potentially harm the firm's reputation.\n3. **Non-compliance with European rules**: The firm needs to prepare a register of AI uses, which requires tracking which tasks are performed using the AI assistant. Failure to comply with European"
    },
    "run3_new_first_line": {
      "load_duration_s": 0.001,
      "prompt_eval_count": 291,
      "prompt_eval_cached_count": 0,
      "prompt_eval_duration_s": 0.0945,
      "prompt_tok_s": 3080.5,
      "eval_count": 200,
      "eval_duration_s": 4.614,
      "generation_tok_s": 43.3,
      "total_duration_s": 4.725,
      "done_reason": "length",
      "raw_counters": {
        "total_duration": 4725357366,
        "load_duration": 1283271,
        "prompt_eval_count": 291,
        "prompt_eval_duration": 94464000,
        "eval_count": 200,
        "eval_duration": 4614214000
      },
      "output": "Here are the requested items:\n\n**People, Dates, and Amounts:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close ends)\n\t+ 19 October (next meeting)\n* Amounts:\n\t+ None mentioned\n\n**Three Main Risks:**\n\n1. **Delays in client communication**: 11 clients have not sent their September invoices, which could lead to delays in processing and potentially impact the third-quarter close.\n2. **Inaccurate AI-generated emails**: The AI assistant has been getting dates and amounts wrong, which could lead to errors and potentially harm the firm's reputation.\n3. **Non-compliance with European rules**: The firm needs to keep a register of AI uses, which requires tracking which tasks are performed using the AI assistant. Failure to comply with these"
    },
    "run3_identical_repeat": {
      "load_duration_s": 0.001,
      "prompt_eval_count": 291,
      "prompt_eval_cached_count": 290,
      "prompt_eval_duration_s": 0.0234,
      "prompt_tok_s": 12426.3,
      "eval_count": 200,
      "eval_duration_s": 4.625,
      "generation_tok_s": 43.2,
      "total_duration_s": 4.651,
      "done_reason": "length",
      "raw_counters": {
        "total_duration": 4651086066,
        "load_duration": 1034069,
        "prompt_eval_count": 291,
        "prompt_eval_duration": 23418000,
        "eval_count": 200,
        "eval_duration": 4624505000
      },
      "output": "Here are the requested items:\n\n**People, Dates, and Amounts:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close ends)\n\t+ 19 October (next meeting)\n* Amounts:\n\t+ None mentioned\n\n**Three Main Risks:**\n\n1. **Delays in client communication**: 11 clients have not sent their September invoices, which could lead to delays in processing and potentially impact the third-quarter close.\n2. **Inaccurate AI-generated emails**: The AI assistant has been getting dates and amounts wrong, which could lead to errors and potentially harm the firm's reputation.\n3. **Non-compliance with European rules**: The firm needs to keep a register of AI uses, which requires tracking which tasks are performed using the AI assistant. Failure to comply with these"
    },
    "time_to_first_token_curl": {
      "command": "curl -s -o /dev/null -w 'first byte %{time_starttransfer} s, total %{time_total} s\\n' $BASE/api/generate -d \"$(body N | jq '.stream=true')\"",
      "output_lines": [
        "first byte 0.113905 s, total 4.717785 s",
        "first byte 0.112847 s, total 4.668581 s",
        "first byte 0.113473 s, total 4.687985 s"
      ],
      "first_two_stream_lines": [
        "{\"model\":\"llama3.1:8b\",\"created_at\":\"2026-11-15T19:51:13.295217223Z\",\"response\":\"Here\",\"done\":false}",
        "{\"model\":\"llama3.1:8b\",\"created_at\":\"2026-11-15T19:51:13.320277826Z\",\"response\":\" are\",\"done\":false}"
      ],
      "stream_lines": 201
    },
    "time_to_first_token_python_stream": [
      {
        "request": 7,
        "ttft_s": 0.129,
        "wall_s": 4.442,
        "prompt_eval_s": 0.09614,
        "gen_tok_s": 43.4
      },
      {
        "request": 8,
        "ttft_s": 0.113,
        "wall_s": 5.064,
        "prompt_eval_s": 0.095383,
        "gen_tok_s": 38.8
      },
      {
        "request": 9,
        "ttft_s": 0.142,
        "wall_s": 5.082,
        "prompt_eval_s": 0.109852,
        "gen_tok_s": 39.7
      }
    ],
    "four_requests_at_once": {
      "gpu_before": "94 %, 66, 52.42 W",
      "runs": [
        {
          "load_duration_s": 0.002,
          "prompt_eval_count": 291,
          "prompt_eval_cached_count": 6,
          "prompt_eval_duration_s": 0.4161,
          "prompt_tok_s": 699.4,
          "eval_count": 196,
          "eval_duration_s": 10.061,
          "generation_tok_s": 19.5,
          "total_duration_s": 10.504,
          "done_reason": "stop",
          "raw_counters": {
            "total_duration": 10503964678,
            "load_duration": 2019242,
            "prompt_eval_count": 291,
            "prompt_eval_duration": 416052000,
            "eval_count": 196,
            "eval_duration": 10060857000
          },
          "output": "Here are the requested items:\n\n**People:**\n\n1. Ana (director)\n2. Javier (accounts)\n3. Lucia (payroll)\n4. Pablo (client service)\n\n**Dates:**\n\n1. 5 October (Monday team meeting)\n2. 20 October (third-quarter close ends)\n3. 19 October (next team meeting)\n4. September (month when AI assistant was tested)\n\n**Amounts:**\n\nNone mentioned in the note.\n\n**Three main risks:**\n\n1. **Late client payments**: 11 clients have still not sent their September invoices, which could lead to late payments or penalties.\n2. **Incorrect social security registrations**: Two client companies hired new staff in October, but one of their social security registrations is still pending due to a missing employee identity document.\n3. **AI assistant errors**: The AI assistant has been getting dates and amounts wrong, which could lead to errors in client communications and potentially damage the firm's reputation."
        },
        {
          "load_duration_s": 0.002,
          "prompt_eval_count": 291,
          "prompt_eval_cached_count": 6,
          "prompt_eval_duration_s": 0.3179,
          "prompt_tok_s": 915.4,
          "eval_count": 189,
          "eval_duration_s": 9.737,
          "generation_tok_s": 19.4,
          "total_duration_s": 10.082,
          "done_reason": "stop",
          "raw_counters": {
            "total_duration": 10081816791,
            "load_duration": 2308475,
            "prompt_eval_count": 291,
            "prompt_eval_duration": 317902000,
            "eval_count": 189,
            "eval_duration": 9736980000
          },
          "output": "Here are the requested items:\n\n**People:**\n\n1. Ana (director)\n2. Javier (accounts)\n3. Lucia (payroll)\n4. Pablo (client service)\n\n**Dates:**\n\n1. 5 October (Monday team meeting)\n2. 20 October (third-quarter close ends)\n3. 19 October (next team meeting)\n4. September (month when AI assistant was tested)\n\n**Amounts:**\n\nNone mentioned in the note.\n\n**Three main risks:**\n\n1. **Late client payments**: 11 clients have not sent their September invoices, which could lead to late payments or penalties.\n2. **Incorrect social security registrations**: Two client companies hired new staff in October, but one of the registrations is still pending due to a missing identity document.\n3. **AI assistant errors**: The AI assistant has been getting dates and amounts wrong, which could lead to errors in client communications or even financial transactions."
        },
        {
          "load_duration_s": 0.002,
          "prompt_eval_count": 291,
          "prompt_eval_cached_count": 6,
          "prompt_eval_duration_s": 0.3179,
          "prompt_tok_s": 915.3,
          "eval_count": 195,
          "eval_duration_s": 10.064,
          "generation_tok_s": 19.4,
          "total_duration_s": 10.409,
          "done_reason": "stop",
          "raw_counters": {
            "total_duration": 10409422856,
            "load_duration": 1716489,
            "prompt_eval_count": 291,
            "prompt_eval_duration": 317937000,
            "eval_count": 195,
            "eval_duration": 10063780000
          },
          "output": "Here are the requested items:\n\n**People:**\n\n1. Ana (director)\n2. Javier (accounts)\n3. Lucia (payroll)\n4. Pablo (client service)\n\n**Dates:**\n\n1. 5 October (Monday team meeting)\n2. 20 October (third-quarter close ends)\n3. 19 October (next team meeting)\n4. September (month when AI assistant was tested)\n\n**Amounts:**\n\nNone mentioned in the note.\n\n**Three main risks:**\n\n1. **Late client payments**: 11 clients have not sent their September invoices, which could lead to late payments or penalties.\n2. **Incorrect social security registrations**: Two client companies hired new staff in October, but one of their social security registrations is still pending due to a missing employee identity document.\n3. **AI assistant errors**: The AI assistant has been getting dates and amounts wrong, which could lead to errors in client communications and potentially damage the firm's reputation."
        },
        {
          "load_duration_s": 0.002,
          "prompt_eval_count": 291,
          "prompt_eval_cached_count": 6,
          "prompt_eval_duration_s": 0.318,
          "prompt_tok_s": 915.2,
          "eval_count": 194,
          "eval_duration_s": 9.993,
          "generation_tok_s": 19.4,
          "total_duration_s": 10.338,
          "done_reason": "stop",
          "raw_counters": {
            "total_duration": 10338049371,
            "load_duration": 1739112,
            "prompt_eval_count": 291,
            "prompt_eval_duration": 317950000,
            "eval_count": 194,
            "eval_duration": 9992833000
          },
          "output": "Here are the requested items:\n\n**People:**\n\n1. Ana (director)\n2. Javier (accounts)\n3. Lucia (payroll)\n4. Pablo (client service)\n\n**Dates:**\n\n1. 5 October (Monday team meeting)\n2. 20 October (third-quarter close ends)\n3. 19 October (next team meeting)\n4. September (month when AI assistant was tested)\n\n**Amounts:**\n\nNone mentioned in the note.\n\n**Three main risks:**\n\n1. **Delays in client invoicing**: 11 clients have not sent their September invoices, which could impact the team's ability to meet deadlines.\n2. **Incorrect use of AI assistant**: The AI assistant has been known to get dates and amounts wrong, which could lead to errors in client communications.\n3. **Non-compliance with European rules**: The team must ensure that they are properly documenting their use of the AI assistant, as required by European regulations."
        }
      ],
      "gpu_after": "92 %, 68, 54.91 W",
      "note": "the server has 8 slots, so the four ran together; on a default install (1 slot) they would queue instead",
      "sum_generation_tok_s": 77.7
    },
    "ollama_ps_cli": [
      "NAME                 ID              SIZE      PROCESSOR    CONTEXT    UNTIL               ",
      "gemma4-32k:latest    99f9ffbcb967    22 GB     100% GPU     32768      Forever                ",
      "llama3.1:8b          610938b3d432    9.1 GB    100% GPU     4096       29 minutes from now"
    ],
    "api_ps_while_loaded": [
      {
        "name": "gemma4-32k:latest",
        "size": 22703966780,
        "size_vram": 22703966780,
        "context_length": 32768,
        "expires_at": "2319-02-25T20:29:18.528708319+01:00"
      },
      {
        "name": "llama3.1:8b",
        "size": 9147263221,
        "size_vram": 9147263221,
        "context_length": 4096,
        "expires_at": "2026-11-15T21:21:31.763623262+01:00"
      }
    ],
    "nvidia_smi_compute_apps_while_loaded": [
      "2418, ~/dev/ComfyUI/.venv/bin/python, 353 MiB",
      "58072, VLLM::EngineCore, 19251 MiB",
      "1328189, /usr/local/lib/ollama/llama-server, 28165 MiB",
      "1854666, /usr/local/lib/ollama/llama-server, 8927 MiB"
    ],
    "mem_available_while_loaded": "MemAvailable:   55337788 kB",
    "mem_available_before": "MemAvailable:   65984736 kB",
    "load_log_lines": [
      "time=2026-11-15T20:50:32.588+01:00 level=INFO source=sched.go:562 msg=\"llama-server model fits alongside existing models\" predicted=\"9.3 GiB\" predicted_num_ctx=32768 num_batch=1024 available=\"48.1 GiB\" gpu_free=\"48.1 GiB\" system_free=\"62.9 GiB\" system_limited=false",
      "time=2026-11-15T20:50:32.588+01:00 level=INFO source=llama_server.go:433 msg=\"starting llama-server\" cmd=\"/usr/local/lib/ollama/llama-server --model /usr/share/ollama/.ollama/models/blobs/sha256-667b0c1932bc6ffc593ed1d03f895bf2dc8dc6df21db3042284a6f4416b06a29 --port 46337 --host 127.0.0.1 --no-webui --offline -c 32768 -np 8 --log-verbosity 4 --no-log-prefix",
      "print_info: file size   = 4.58 GiB (4.89 BPW)",
      "load_tensors: offloaded 33/33 layers to GPU",
      "load_tensors:        CUDA0 model buffer size =  4403.49 MiB",
      "load_tensors:    CUDA_Host model buffer size =   281.81 MiB",
      "llama_context: n_seq_max             = 8",
      "llama_context: n_ctx_seq             = 4096",
      "llama_kv_cache: size = 4096.00 MiB (  4096 cells,  32 layers,  8/8 seqs), K (f16): 2048.00 MiB, V (f16): 2048.00 MiB",
      "sched_reserve:      CUDA0 compute buffer size =   224.02 MiB",
      "sched_reserve:  CUDA_Host compute buffer size =    40.02 MiB"
    ],
    "gpu_buffers_sum": {
      "model_mib": 4403.49,
      "kv_cache_mib": 4096.0,
      "compute_mib": 224.02,
      "sum_mib": 8723.51,
      "sum_bytes": 9147263222,
      "api_ps_size_bytes": 9147263221
    },
    "mem_available_drop": {
      "before_kb": 65984736,
      "while_loaded_kb": 55337788,
      "drop_kb": 10646948,
      "drop_gb": 10.9,
      "note": "one reading on a shared box; other processes can move this number"
    },
    "repeat_loop_with_a_neighbour": {
      "started_utc": "2026-11-15T19:59:18Z",
      "command": "for i in 7 8 9; do curl -s $BASE/api/generate -d \"$(body $i)\" | jq '.eval_count/.eval_duration*1e9'; done",
      "ollama_resident_before": [
        "gemma4-32k:latest  22.7 GB  ctx 32768"
      ],
      "gpu_before": "0 %, 45, 10.73 W",
      "warmup_request_cold": {
        "load_s": 2.054207955,
        "gen_tok_s": 42.97435848952006
      },
      "generation_tok_s": [
        39.666798889329634,
        21.79055458084633,
        21.51516841327389
      ],
      "ollama_resident_after_we_unloaded": [
        "gemma4-32k:latest  22.7 GB  ctx 32768",
        "qwen3.6:35b  23.1 GB  ctx 16384"
      ],
      "note": "Six minutes after the main run we repeated the loop exactly as the post prints it. During the loop another job on the box, not ours, loaded qwen3.6:35b (23.1 GB); it is in the resident list afterwards and was not there before. Our generation speed halved. We infer the cause from that list; GPU utilisation was not sampled during this loop. We unloaded only llama3.1:8b."
    }
  },
  "script_run": {
    "measured_at": "2026-11-15T19:52:14+00:00",
    "finished_at": "2026-11-15T19:52:44+00:00",
    "host": "spark-7180 via http://<second-box>:11434 from spark-43d5",
    "machine": "NVIDIA DGX Spark, GB10, 128 GB unified memory (spark2, spark-7180)",
    "kernel": "7.0.0-1019-nvidia",
    "gpu_driver": "NVIDIA GB10, 580.178.04",
    "ollama_version": "0.34.0",
    "command": "python3 scripts/bench/local_model_benchmark.py --models llama3.1:8b --runs 5 --max-tokens 200 --think false --ollama http://<second-box>:11434 --ssh spark2 --num-ctx 4096 --out <tmp>/bench30/script-run.json",
    "method": "same prompt for every model, temperature 0, seed fixed, num_predict = max tokens; model unloaded before run 1 (cold, discarded), run 2 reported; a per-run first line defeats Ollama's prompt cache; think=false for thinking-capable models; generation and prompt tok/s from Ollama's eval_count/eval_duration and prompt_eval_count/prompt_eval_duration; time to first token and wall time measured client-side on the stream; loaded size from /api/ps; one model resident at a time, keep_alive 0 after each",
    "memory_rule": "MemAvailable >= 40 GB and PSI full avg10 < 2 before each load; no model file over 20 GB",
    "prompt": "Read the following note from a small accounting firm and answer in English. First list the key entities (people, organisations, dates, amounts). Then summarise the main decision in one sentence. Finally, write a short paragraph with the three risks you see and what the firm should check before the end of the quarter.\n\nNote from the Monday team meeting, 5 October. Present: Ana (director), Javier (accounts), Lucia (payroll) and Pablo (client service). Ana opened by reminding everyone that the third-quarter close ends on 20 October and that this year 48 clients file a quarterly VAT return, six more than last year. Javier said that 11 clients have still not sent their September invoices and proposed calling them this week instead of waiting for the last day. The team agreed that Pablo will make those calls on Tuesday and Wednesday. Lucia reported that two client companies hired new staff in October and that their social security registrations must be filed before the new employees start work; one is done and the other is waiting for the employee's identity document. The team also discussed the AI assistant the firm has been testing since September to draft routine emails. Pablo said it saves time on simple replies but gets dates and amounts wrong, so the team agreed that no email containing an amount goes out without a human check. Ana asked everyone to note in a shared sheet which tasks they use the assistant for, to prepare the register of AI uses that the European rules require. The next meeting was set for Monday 19 October at 9:00, and Javier will bring a list of the clients who still owe documents.",
    "prompt_words": 278,
    "prompt_note": "each run prepends 'Request <n> of <runs>.' so the prompt cache cannot serve run 2",
    "max_tokens": 200,
    "num_ctx": 4096,
    "results": [
      {
        "model": "llama3.1:8b",
        "digest": "610938b3d432ca05e44edc41d048c5f18158ed314a395f4341b3fed25e7c8576",
        "details": {
          "parent_model": "llama3.1:8b",
          "format": "gguf",
          "family": "llama",
          "families": [
            "llama"
          ],
          "parameter_size": "8.0B",
          "quantization_level": "Q4_K_M"
        },
        "capabilities": [
          "completion",
          "tools"
        ],
        "think": null,
        "file_size_gb": 4.92,
        "loaded_size_gb": 9.15,
        "loaded_size_vram_gb": 9.15,
        "context_length": 4096,
        "num_ctx_requested": 4096,
        "memory_before_load": {
          "mem_total_gb": 121.7,
          "mem_free_gb": 50.1,
          "mem_available_gb": 62.9,
          "psi_full_avg10": 0.0
        },
        "memory_while_loaded": {
          "mem_total_gb": 121.7,
          "mem_free_gb": 40.4,
          "mem_available_gb": 53.3,
          "psi_full_avg10": 0.0,
          "other_models_resident": [
            {
              "name": "gemma4-32k:latest",
              "size_gb": 22.7
            }
          ]
        },
        "memory_after_runs": {
          "mem_total_gb": 121.7,
          "mem_free_gb": 50.0,
          "mem_available_gb": 62.9,
          "psi_full_avg10": 0.0
        },
        "reported_run": 2,
        "reported": {
          "generation_tok_s": 43.1,
          "prompt_tok_s": 3233.3,
          "time_to_first_token_s": 0.125,
          "wall_s": 4.761,
          "eval_count": 200,
          "prompt_eval_count": 340
        },
        "runs": [
          {
            "time_to_first_token_s": 2.207,
            "wall_s": 6.834,
            "eval_count": 200,
            "eval_duration_s": 4.626,
            "generation_tok_s": 43.2,
            "prompt_eval_count": 340,
            "prompt_eval_duration_s": 0.135,
            "prompt_tok_s": 2517.7,
            "load_duration_s": 2.067,
            "total_duration_s": 6.832,
            "done_reason": "length",
            "thinking": "",
            "output": "**Key entities:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Organisations:\n\t+ The small accounting firm (Monday team)\n\t+ 48 clients (who file a quarterly VAT return)\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close)\n\t+ 19 October (next Monday team meeting)\n* Amounts:\n\t+ None mentioned\n\n**Main decision:**\nThe team agreed that Pablo will make calls to 11 clients who have not sent their September invoices, instead of waiting until the last day.\n\n**Risks and recommendations:**\n\nThe firm should be aware of the following risks and take the following precautions before the end of the quarter:\n\n* **Risk 1: Inaccurate VAT returns**: With 11 clients still not sending their September invoices, there is a risk that the firm may not have accurate information",
            "run": 1,
            "psi_full_avg10_after": 0.0
          },
          {
            "time_to_first_token_s": 0.125,
            "wall_s": 4.761,
            "eval_count": 200,
            "eval_duration_s": 4.635,
            "generation_tok_s": 43.1,
            "prompt_eval_count": 340,
            "prompt_eval_duration_s": 0.105,
            "prompt_tok_s": 3233.3,
            "load_duration_s": 0.001,
            "total_duration_s": 4.759,
            "done_reason": "length",
            "thinking": "",
            "output": "**Key entities:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Organisations:\n\t+ The small accounting firm\n\t+ 48 client companies\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close)\n\t+ 19 October (next team meeting)\n* Amounts:\n\t+ None mentioned\n\n**Main decision:**\nThe team decided to call 11 clients who have not sent their September invoices this week instead of waiting for the last day of the quarter.\n\n**Risks and recommendations:**\n\nThe firm should be aware of the following risks and take the following precautions before the end of the quarter:\n\n* **Risk 1: Incomplete or inaccurate client data**: With 11 clients still missing their September invoices, there is a risk that some clients may not be up-to-date with their payments or may have incorrect information on",
            "run": 2,
            "psi_full_avg10_after": 0.0
          },
          {
            "time_to_first_token_s": 0.124,
            "wall_s": 4.746,
            "eval_count": 200,
            "eval_duration_s": 4.62,
            "generation_tok_s": 43.3,
            "prompt_eval_count": 340,
            "prompt_eval_duration_s": 0.105,
            "prompt_tok_s": 3236.4,
            "load_duration_s": 0.001,
            "total_duration_s": 4.743,
            "done_reason": "length",
            "thinking": "",
            "output": "**Key entities:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Organisations:\n\t+ The small accounting firm\n\t+ 48 client companies\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close)\n\t+ 19 October (next team meeting)\n* Amounts:\n\t+ None mentioned\n\n**Main decision:**\nThe team decided to call 11 clients who have not sent their September invoices this week instead of waiting until the last day of the quarter.\n\n**Risks and recommendations:**\n\nThe firm should check the following risks before the end of the quarter:\n\n* **Inaccurate invoicing**: If the AI assistant continues to get dates and amounts wrong, it may lead to incorrect invoices being sent to clients, which could result in financial losses or damage to the firm's reputation.\n* **Delayed social security registrations**:",
            "run": 3,
            "psi_full_avg10_after": 0.0
          },
          {
            "time_to_first_token_s": 0.124,
            "wall_s": 4.738,
            "eval_count": 200,
            "eval_duration_s": 4.612,
            "generation_tok_s": 43.4,
            "prompt_eval_count": 340,
            "prompt_eval_duration_s": 0.105,
            "prompt_tok_s": 3227.3,
            "load_duration_s": 0.001,
            "total_duration_s": 4.735,
            "done_reason": "length",
            "thinking": "",
            "output": "**Key entities:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Organisations:\n\t+ The small accounting firm\n\t+ 48 client companies\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close)\n\t+ 19 October (next team meeting)\n* Amounts:\n\t+ None mentioned\n\n**Main decision:**\nThe team decided to call 11 clients who have not sent their September invoices this week instead of waiting until the last day before the third-quarter close.\n\n**Risks and recommendations:**\n\nThe firm should be aware of the following risks and take the following precautions before the end of the quarter:\n\n* **Risk 1: Inaccurate VAT returns**: With 11 clients still not sending their September invoices, there is a risk that the firm may not receive all the necessary information to file accurate VAT returns.",
            "run": 4,
            "psi_full_avg10_after": 0.0
          },
          {
            "time_to_first_token_s": 0.125,
            "wall_s": 4.774,
            "eval_count": 200,
            "eval_duration_s": 4.648,
            "generation_tok_s": 43.0,
            "prompt_eval_count": 340,
            "prompt_eval_duration_s": 0.106,
            "prompt_tok_s": 3211.2,
            "load_duration_s": 0.001,
            "total_duration_s": 4.772,
            "done_reason": "length",
            "thinking": "",
            "output": "**Key entities:**\n\n* People:\n\t+ Ana (director)\n\t+ Javier (accounts)\n\t+ Lucia (payroll)\n\t+ Pablo (client service)\n* Organisations:\n\t+ The small accounting firm\n* Dates:\n\t+ 5 October (Monday team meeting)\n\t+ 20 October (third-quarter close)\n\t+ 19 October (next team meeting)\n* Amounts:\n\t+ None mentioned\n\n**Main decision:**\nThe team decided to call 11 clients who have not sent their September invoices this week instead of waiting for the last day of the quarter.\n\n**Risks and recommendations:**\n\nThe firm should be aware of the following risks and take the following precautions before the end of the quarter:\n\n* **Risk 1: Incomplete or inaccurate client data**: With the introduction of the AI assistant, there is a risk that incorrect dates and amounts may be used in emails. To mitigate this, the team should double-check all emails containing amounts before sending them",
            "run": 5,
            "psi_full_avg10_after": 0.0
          }
        ]
      }
    ]
  },
  "script_run_summary": {
    "cold_run_1": {
      "generation_tok_s": 43.2,
      "time_to_first_token_s": 2.207,
      "load_duration_s": 2.067,
      "wall_s": 6.834
    },
    "warm_runs_2_to_5_generation_tok_s": [
      43.1,
      43.3,
      43.4,
      43.0
    ],
    "warm_min": 43.0,
    "warm_max": 43.4,
    "warm_time_to_first_token_s": [
      0.125,
      0.124,
      0.124,
      0.125
    ],
    "warm_wall_s": [
      4.761,
      4.746,
      4.738,
      4.774
    ]
  },
  "gpu_samples_during_script_run": {
    "command": "nvidia-smi --query-gpu=timestamp,utilization.gpu,temperature.gpu,power.draw --format=csv,noheader -l 1 (on the box)",
    "summary": {
      "samples": 37,
      "samples_at_90pct_or_more": 24,
      "temp_c_min": 55,
      "temp_c_max": 68,
      "power_w_max": 54.29,
      "power_w_idle_first_sample": 12.49
    },
    "samples": [
      {
        "time_local": "2026/11/15 20:52:12.264",
        "gpu_util_pct": 0,
        "gpu_temp_c": 56,
        "power_w": 12.49
      },
      {
        "time_local": "2026/11/15 20:52:13.270",
        "gpu_util_pct": 0,
        "gpu_temp_c": 55,
        "power_w": 12.37
      },
      {
        "time_local": "2026/11/15 20:52:14.270",
        "gpu_util_pct": 0,
        "gpu_temp_c": 55,
        "power_w": 12.32
      },
      {
        "time_local": "2026/11/15 20:52:15.270",
        "gpu_util_pct": 0,
        "gpu_temp_c": 55,
        "power_w": 12.43
      },
      {
        "time_local": "2026/11/15 20:52:16.271",
        "gpu_util_pct": 0,
        "gpu_temp_c": 55,
        "power_w": 12.81
      },
      {
        "time_local": "2026/11/15 20:52:17.271",
        "gpu_util_pct": 7,
        "gpu_temp_c": 55,
        "power_w": 12.54
      },
      {
        "time_local": "2026/11/15 20:52:18.271",
        "gpu_util_pct": 44,
        "gpu_temp_c": 61,
        "power_w": 35.94
      },
      {
        "time_local": "2026/11/15 20:52:19.272",
        "gpu_util_pct": 94,
        "gpu_temp_c": 62,
        "power_w": 50.28
      },
      {
        "time_local": "2026/11/15 20:52:20.273",
        "gpu_util_pct": 94,
        "gpu_temp_c": 63,
        "power_w": 50.42
      },
      {
        "time_local": "2026/11/15 20:52:21.273",
        "gpu_util_pct": 94,
        "gpu_temp_c": 63,
        "power_w": 50.12
      },
      {
        "time_local": "2026/11/15 20:52:22.273",
        "gpu_util_pct": 94,
        "gpu_temp_c": 63,
        "power_w": 50.18
      },
      {
        "time_local": "2026/11/15 20:52:23.274",
        "gpu_util_pct": 0,
        "gpu_temp_c": 57,
        "power_w": 27.24
      },
      {
        "time_local": "2026/11/15 20:52:24.274",
        "gpu_util_pct": 94,
        "gpu_temp_c": 64,
        "power_w": 53.59
      },
      {
        "time_local": "2026/11/15 20:52:25.274",
        "gpu_util_pct": 95,
        "gpu_temp_c": 64,
        "power_w": 50.62
      },
      {
        "time_local": "2026/11/15 20:52:26.274",
        "gpu_util_pct": 94,
        "gpu_temp_c": 65,
        "power_w": 50.64
      },
      {
        "time_local": "2026/11/15 20:52:27.278",
        "gpu_util_pct": 94,
        "gpu_temp_c": 65,
        "power_w": 50.17
      },
      {
        "time_local": "2026/11/15 20:52:28.278",
        "gpu_util_pct": 94,
        "gpu_temp_c": 59,
        "power_w": 39.7
      },
      {
        "time_local": "2026/11/15 20:52:29.278",
        "gpu_util_pct": 94,
        "gpu_temp_c": 65,
        "power_w": 54.29
      },
      {
        "time_local": "2026/11/15 20:52:30.278",
        "gpu_util_pct": 94,
        "gpu_temp_c": 66,
        "power_w": 50.85
      },
      {
        "time_local": "2026/11/15 20:52:31.278",
        "gpu_util_pct": 94,
        "gpu_temp_c": 66,
        "power_w": 50.88
      },
      {
        "time_local": "2026/11/15 20:52:32.278",
        "gpu_util_pct": 94,
        "gpu_temp_c": 66,
        "power_w": 51.03
      },
      {
        "time_local": "2026/11/15 20:52:33.279",
        "gpu_util_pct": 93,
        "gpu_temp_c": 61,
        "power_w": 41.48
      },
      {
        "time_local": "2026/11/15 20:52:34.279",
        "gpu_util_pct": 94,
        "gpu_temp_c": 66,
        "power_w": 52.35
      },
      {
        "time_local": "2026/11/15 20:52:35.280",
        "gpu_util_pct": 94,
        "gpu_temp_c": 67,
        "power_w": 51.31
      },
      {
        "time_local": "2026/11/15 20:52:36.280",
        "gpu_util_pct": 95,
        "gpu_temp_c": 67,
        "power_w": 51.42
      },
      {
        "time_local": "2026/11/15 20:52:37.280",
        "gpu_util_pct": 95,
        "gpu_temp_c": 67,
        "power_w": 51.5
      },
      {
        "time_local": "2026/11/15 20:52:38.280",
        "gpu_util_pct": 94,
        "gpu_temp_c": 62,
        "power_w": 43.7
      },
      {
        "time_local": "2026/11/15 20:52:39.281",
        "gpu_util_pct": 94,
        "gpu_temp_c": 67,
        "power_w": 43.66
      },
      {
        "time_local": "2026/11/15 20:52:40.281",
        "gpu_util_pct": 94,
        "gpu_temp_c": 67,
        "power_w": 51.63
      },
      {
        "time_local": "2026/11/15 20:52:41.281",
        "gpu_util_pct": 94,
        "gpu_temp_c": 68,
        "power_w": 51.73
      },
      {
        "time_local": "2026/11/15 20:52:42.282",
        "gpu_util_pct": 93,
        "gpu_temp_c": 68,
        "power_w": 51.03
      },
      {
        "time_local": "2026/11/15 20:52:43.283",
        "gpu_util_pct": 94,
        "gpu_temp_c": 68,
        "power_w": 51.68
      },
      {
        "time_local": "2026/11/15 20:52:44.283",
        "gpu_util_pct": 0,
        "gpu_temp_c": 61,
        "power_w": 17.13
      },
      {
        "time_local": "2026/11/15 20:52:45.283",
        "gpu_util_pct": 0,
        "gpu_temp_c": 61,
        "power_w": 13.49
      },
      {
        "time_local": "2026/11/15 20:52:46.284",
        "gpu_util_pct": 0,
        "gpu_temp_c": 60,
        "power_w": 13.33
      },
      {
        "time_local": "2026/11/15 20:52:47.284",
        "gpu_util_pct": 0,
        "gpu_temp_c": 60,
        "power_w": 13.07
      },
      {
        "time_local": "2026/11/15 20:52:48.284",
        "gpu_util_pct": 0,
        "gpu_temp_c": 59,
        "power_w": 12.95
      }
    ]
  },
  "quality_task_set": {
    "how": "python3 quality.py $BASE <model>; six questions about the same note, five with a deterministic substring check and one in Spanish to be read by a person; same options as the speed runs",
    "script": "import json, sys, urllib.request\n\nbase, model = sys.argv[1], sys.argv[2]\nnote = open(\"note.txt\").read()\ntasks = [json.loads(line) for line in open(\"tasks.jsonl\")]\npassed, results = 0, []\nfor t in tasks:\n    body = {\"model\": model, \"prompt\": t[\"ask\"] + \"\\n\\n\" + note, \"stream\": False,\n            \"options\": {\"num_ctx\": 4096, \"temperature\": 0, \"seed\": 42, \"num_predict\": 200}}\n    req = urllib.request.Request(base + \"/api/generate\", json.dumps(body).encode(),\n                                 {\"Content-Type\": \"application/json\"})\n    out = json.load(urllib.request.urlopen(req))[\"response\"].strip()\n    ok = all(s.lower() in out.lower() for s in t[\"must\"]) if t[\"must\"] else None\n    passed += bool(ok)\n    results.append({\"id\": t[\"id\"], \"pass\": ok, \"output\": out})\n    print({True: \"PASS\", False: \"FAIL\", None: \"READ\"}[ok], t[\"id\"], \"|\", out[:70].replace(\"\\n\", \" \"))\nprint(f\"{model}: {passed} of {sum(1 for t in tasks if t['must'])} checked tasks passed\")\njson.dump(results, open(f\"quality-{model.replace(':', '-')}.json\", \"w\"), ensure_ascii=False, indent=1)\n",
    "tasks": [
      {
        "id": "vat-this-year",
        "ask": "How many clients file a quarterly VAT return this year? Answer with the number only.",
        "must": [
          "48"
        ]
      },
      {
        "id": "vat-last-year",
        "ask": "How many clients filed a quarterly VAT return last year? Answer with the number only.",
        "must": [
          "42"
        ]
      },
      {
        "id": "who-calls",
        "ask": "Who will phone the clients with missing invoices, and on which days? One sentence.",
        "must": [
          "Pablo",
          "Tuesday",
          "Wednesday"
        ]
      },
      {
        "id": "meeting-json",
        "ask": "Return only a JSON object with the keys next_meeting_date and next_meeting_time.",
        "must": [
          "19",
          "9:00"
        ]
      },
      {
        "id": "not-in-note",
        "ask": "What is the name of the firm's largest client? If the note does not say, answer exactly: NOT IN THE NOTE.",
        "must": [
          "NOT IN THE NOTE"
        ]
      },
      {
        "id": "spanish-summary",
        "ask": "Resume en una frase, en español, qué acordó el equipo sobre los correos con importes.",
        "must": []
      }
    ],
    "results": {
      "llama3.1:8b": {
        "loaded_size_gb": 9.15,
        "checked_passed": "5 of 5",
        "answers": [
          {
            "id": "vat-this-year",
            "pass": true,
            "output": "48"
          },
          {
            "id": "vat-last-year",
            "pass": true,
            "output": "42"
          },
          {
            "id": "who-calls",
            "pass": true,
            "output": "Pablo will phone the clients with missing invoices on Tuesday and Wednesday."
          },
          {
            "id": "meeting-json",
            "pass": true,
            "output": "Here is the JSON object with the keys `next_meeting_date` and `next_meeting_time`:\n\n```\n{\n  \"next_meeting_date\": \"19 October\",\n  \"next_meeting_time\": \"9:00\"\n}\n```"
          },
          {
            "id": "not-in-note",
            "pass": true,
            "output": "NOT IN THE NOTE."
          },
          {
            "id": "spanish-summary",
            "pass": null,
            "output": "El equipo acordó que ningún correo electrónico que contenga una cantidad monetaria se enviará sin una revisión humana previa."
          }
        ]
      },
      "qwen2.5vl:7b": {
        "loaded_size_gb": 7.27,
        "checked_passed": "5 of 5",
        "answers": [
          {
            "id": "vat-this-year",
            "pass": true,
            "output": "48"
          },
          {
            "id": "vat-last-year",
            "pass": true,
            "output": "42"
          },
          {
            "id": "who-calls",
            "pass": true,
            "output": "Pablo will phone the clients with missing invoices on Tuesday and Wednesday."
          },
          {
            "id": "meeting-json",
            "pass": true,
            "output": "```json\n{\n  \"next_meeting_date\": \"2023-10-19\",\n  \"next_meeting_time\": \"09:00\"\n}\n```"
          },
          {
            "id": "not-in-note",
            "pass": true,
            "output": "NOT IN THE NOTE."
          },
          {
            "id": "spanish-summary",
            "pass": null,
            "output": "El equipo acordó que ningún correo electrónico con importes salga sin una revisión humana."
          }
        ]
      }
    },
    "read_by_hand": "meeting-json passed the substring check for both models, but neither returned 'only a JSON object': llama3.1:8b added a sentence and a code fence; qwen2.5vl:7b used a code fence and wrote the date as 2023-10-19, a year the note never gives. The Spanish summaries were read by our AI assistant (Claude), one reader, not blind: both are correct Spanish and say the right thing.",
    "terminal_output": [
      "PASS vat-this-year | 48",
      "PASS vat-last-year | 42",
      "PASS who-calls | Pablo will phone the clients with missing invoices on Tuesday and Wedn",
      "PASS meeting-json | Here is the JSON object with the keys `next_meeting_date` and `next_me",
      "PASS not-in-note | NOT IN THE NOTE.",
      "READ spanish-summary | El equipo acordó que ningún correo electrónico que contenga una cantid",
      "llama3.1:8b: 5 of 5 checked tasks passed",
      "   resident: gemma4-32k:latest  22.7 GB  ctx 32768",
      "   resident: llama3.1:8b  9.15 GB  ctx 4096",
      "{\"done\":true,\"done_reason\":\"unload\"}",
      "PASS vat-this-year | 48",
      "PASS vat-last-year | 42",
      "PASS who-calls | Pablo will phone the clients with missing invoices on Tuesday and Wedn",
      "PASS meeting-json | ```json {   \"next_meeting_date\": \"2023-10-19\",   \"next_meeting_time\": ",
      "PASS not-in-note | NOT IN THE NOTE.",
      "READ spanish-summary | El equipo acordó que ningún correo electrónico con importes salga sin ",
      "qwen2.5vl:7b: 5 of 5 checked tasks passed",
      "   resident: gemma4-32k:latest  22.7 GB  ctx 32768",
      "   resident: qwen2.5vl:7b  7.27 GB  ctx 4096",
      "{\"done\":true,\"done_reason\":\"unload\"}",
      "after:",
      "gemma4-32k:latest  22.7 GB  ctx 32768",
      "0 %, 57, 12.60 W",
      "MemAvailable:   65727988 kB",
      "2026-11-15T19:53:38Z"
    ]
  },
  "cleanup": "llama3.1:8b and qwen2.5vl:7b were unloaded with keep_alive 0 after their runs; the model that was resident before (gemma4-32k) was left as it was. MemAvailable after: 65727988 kB.",
  "limits": [
    "one machine, one evening, one model for speed and two for the task set",
    "the file was already in the page cache, so the 2.07 s cold load is not a load from disk",
    "requests crossed a direct network link between two machines; time to first token includes that hop",
    "the slower streams in the Python cross-check (38.8 and 39.7 tok/s) have no recorded cause",
    "five checked tasks that both models pass do not separate the models"
  ],
  "throttle_query_after_runs": {
    "when": "after all the runs, with the GPU idle again; not sampled during the runs",
    "command": "nvidia-smi --query-gpu=temperature.gpu,clocks_event_reasons.active,clocks_event_reasons.sw_thermal_slowdown,clocks_event_reasons.hw_thermal_slowdown,clocks_event_reasons.sw_power_cap --format=csv",
    "output": [
      "temperature.gpu, clocks_event_reasons.active, clocks_event_reasons.sw_thermal_slowdown, clocks_event_reasons.hw_thermal_slowdown, clocks_event_reasons.sw_power_cap",
      "48, 0x0000000000000000, Not Active, Not Active, Not Active"
    ]
  },
  "reproduced_errors": {
    "ollama_not_listening": "curl: (7) Failed to connect to 127.0.0.1 port 11499 after 0 ms: Couldn't connect to server (curl against a closed local port; with -s curl prints nothing and exits 7)",
    "unknown_model": "{\"error\":\"model 'no-such-model:1b' not found\"} (POST /api/generate on the second box)"
  }
}
