{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "dreamer-toby-stepquant--reproduce-stepquant6-qwen-results",
 "repo": "Dreamer-Toby/STEPQuant",
 "repo_url": "https://github.com/Dreamer-Toby/STEPQuant",
 "repo_slug": "dreamer-toby-stepquant",
 "title": "Reproduce STEP Quant@6 results on Qwen3.8-27B",
 "page_title": "How to reproduce STEP Quant@6 results on Qwen3.8-27B with STEP Quant",
 "summary": "Calibrate a 6-bit STEP Quant plan, serve it with SGLang, and run the long-generation evaluation suite.",
 "who": "A researcher checking the paper's claims who has Qwen checkpoints and four GPUs available.",
 "problem": "Paper numbers are hard to trust without rerunning the calibration, serving, and evaluation pipeline on the same model.",
 "outcome": "A calibrated plan file, a running quantized server, and evaluation scores for FP32 and STEP Quant@6 on long-generation tasks.",
 "steps": [
  "Set `model_path` in configs/models.json to your Qwen checkpoint directory.",
  "Run `bash scripts/reuse_sglang_env.sh /path/to/sglang-env`, then `bash scripts/reuse_eval_env.sh .venv-serving`, then `bash scripts/reuse_calibration_env.sh /path/to/qwen-env qwen`.",
  "Run `.venv-eval/bin/python -m stepquant.reproduction --models qwen --formats stepquant6 --devices 0,1,2,3` to calibrate once and write the plan. (inferred, check the README)",
  "Run `CUDA_VISIBLE_DEVICES=0,1,2,3 .venv-serving/bin/python -m stepquant.sglang --model-path /path/to/Qwen3.8-27B --tp-size 4 --state-format stepquant6 --plan artifacts/reproduction/plans/qwen-stepquant6.pt --attention-backend triton --reasoning-parser qwen3 --context-length 131072 --chunked-prefill-size 2048 --mem-fraction-static 0.85 --served-model-name stepquant --host 127.0.0.1 --port 31080` to serve. (inferred, check the README)",
  "Stop the manual server, then run `.venv-eval/bin/python -m stepquant.evaluation.suite --models qwen --benchmarks long --formats fp32 stepquant6 --server-python .venv-serving/bin/python --devices 0,1,2,3 --tp 4` and compare the scores to the paper table. (inferred, check the README)"
 ],
 "agent_prompt": "In the STEPQuant repo at <repo_path>, follow the Quick Start in README.md to calibrate the stepquant6 plan for the Qwen checkpoint at <model_path>, then run the evaluation suite with the fp32 and stepquant6 formats. Report the average accuracy for each format and confirm the STEPQuant@6 score is close to the FP32 score in the README results table.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 day",
 "basis": "readme",
 "caveat": "The README requires model checkpoints, a CUDA toolkit, and four GPUs for the Qwen example, and the paper's numbers come from NVIDIA A800 GPUs, so your scores may differ.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Model checkpoints for a supported model, such as Qwen3.8-27B, placed on disk",
  "A CUDA toolkit and NVIDIA GPUs (the Qwen example uses four GPUs; the paper used NVIDIA A800 GPUs)",
  "Python with the tested stack: SGLang 0.5.12, PyTorch 2.11.0, Triton 3.7.1",
  "A clone of the repository, run from its root"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dreamer-toby-stepquant/reproduce-stepquant6-qwen-results/",
 "md": "https://dedupedai.com/use-cases/dreamer-toby-stepquant/reproduce-stepquant6-qwen-results/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/dreamer-toby-stepquant--reproduce-stepquant6-qwen-results.json",
 "api_version": "v1"
}
