{
 "_published": {
  "source": "docs/measurements/speculative-decoding-checks-2026-11-16.json",
  "published": "2026-11-16",
  "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: nothing. Hostnames (spark-43d5, spark-7180) and the PRIME / spark2 labels are kept: the posts use them.",
  "redactions": {}
 },
 "what": "Three one-off checks made by hand after the two bench runs of 2026-11-16 (speculative-decoding-2026-11-16.json and speculative-decoding-fresh-2026-11-16.json). Same machine, same llama-server build (llama.cpp v1.0.0, CUDA), same model files. Transcribed from the server logs and the JSON replies; nothing here was produced by the bench script.",
 "host": "spark-43d5",
 "date": "2026-11-16",
 "request": {
  "endpoint": "/v1/chat/completions",
  "messages": [{"role": "user", "content": "Write a Python function that returns the factorial of n, with a docstring."}],
  "temperature": 0,
  "max_tokens": 128
 },
 "checks": [
  {
   "id": "removed-flag",
   "question": "Does the old --draft-max flag still work?",
   "argv": "llama-server -m Qwen2.5-7B-Instruct-Q4_K_M.gguf -md qwen2.5-0.5b-instruct-q8_0.gguf --draft-max 16 --host 127.0.0.1 --port 18291",
   "exit_code": 1,
   "first_log_line": "error while handling argument \"--draft-max\": the argument has been removed. use --spec-draft-n-max or --spec-ngram-mod-n-max",
   "result": "The server refuses to start."
  },
  {
   "id": "md-alone",
   "question": "Is -md enough to turn drafting on, without --spec-type?",
   "argv": "llama-server -m Qwen2.5-7B-Instruct-Q4_K_M.gguf -md qwen2.5-0.5b-instruct-q8_0.gguf -ngl all -ngld all -c 4096 -np 1 --no-webui --host 127.0.0.1 --port 18291",
   "log_lines": ["I common_speculative_init_result: loading draft model '<path>/qwen2.5-0.5b-instruct-q8_0.gguf'"],
   "timings": {"prompt_n": 45, "predicted_n": 128, "predicted_ms": 2802.863, "predicted_per_second": 45.31081255130915},
   "draft_fields_in_timings": false,
   "draft_acceptance_lines_in_log": 0,
   "result": "The draft model is loaded, but no token is drafted: the reply carries no draft_n field, the log prints no 'draft acceptance' line and generation runs at the no-draft speed."
  },
  {
   "id": "wrong-family",
   "question": "What happens with a draft model from another family?",
   "argv": "llama-server -m Qwen2.5-7B-Instruct-Q4_K_M.gguf -md <llama3.1:8b Q4_K_M GGUF> --spec-type draft-simple -ngl all -ngld all -c 4096 -np 1 --no-webui --host 127.0.0.1 --port 18291",
   "log_lines": [
    "W spec common_specu: draft model bos tokens must match target model to use speculation. add: 0 - 1, id: 151643 - 128000)",
    "E spec common_specu: the target and draft vocabs are not compatible",
    "E srv    load_model: failed to initialize speculative decoding context: draft model vocab type must match target model to use speculation"
   ],
   "health": "200 after loading",
   "timings": {"prompt_n": 45, "predicted_n": 128, "predicted_ms": 2883.099, "predicted_per_second": 44.049822777504346},
   "draft_fields_in_timings": false,
   "server_gpu_mib_after_request": 4730,
   "result": "The server logs the errors, stays up and answers without drafting. A client sees a normal reply at the no-draft speed."
  }
 ]
}
