Upload 5 files
Browse filesFiles changed (5)
1234456740 unmodified lines484950515152538 unmodified lines626364656667686970717273747576776970717273747576787980818283848578798081828384858687888687888990919091929394959293949596979899100101102103104979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136105106107108109110111112113114115116117118119120121122139140123124125126"""Fill the model card's marks from the result files, so no score in the card is typed by hand.
from card import fill; text = fill(template_text, "results") python tools/card.py results # prints what would be filled in python tools/card.py results # prints the facts it reads
Reads results/agent/<run>/summary.json, results/<attempts>/att-<k>/summary.json and results/alone/timing.jsonl,as tools/pull_results.sh leaves them.40 unmodified lines for n in (2, 4, 8, 16, 32): if all(k in att for k in range(1, n + 1)): f["upper"][n] = len(set().union(*[set(att[k]["resolved_ids"]) for k in range(1, n + 1)])) f["reviewed"] = {n: (load(f"{res}/agent/deepC-n{n}/select.json") or {}).get("reviewed") for n in f["C"]} for tag in ("prune96", "prune64", "ft08"): got = [] for d in sorted(glob.glob(f"{res}/{tag}/att-*")):8 unmodified lines return f
def listed(values): """1, 2 and 3""" v = [str(x) for x in values] return v[0] if len(v) == 1 else ", ".join(v[:-1]) + " and " + v[-1]
def whole(x): return str(int(x)) if x == int(x) else str(x)
def fill(text, res): f = facts(res) A, R, C, singles = f["A"], f["R"], f["C"], f["singles"] med = statistics.median(singles) if singles else None med_s = str(int(med)) if med is not None and med == int(med) else str(med) best_n = max(A, key=lambda n: (A[n], -n)) if A else None head = f"{A[best_n]} of 100 SWE-bench Verified tasks with {best_n} attempts" if A else "(not scored)" rows = ["| Setup | Attempts per task | Resolved of 100 |", "|---|---|---|", f"| Opus 5.5, through OpenRouter | 1 | {f['opus']} |", f"| Inkling 2 Mini, greedy decoding, plain vLLM | 1 | {', '.join(map(str, f['stock']))} ({len(f['stock'])} passes) |", f"| Inkling 2 Mini, temperature 0.8, RightNow Mini engine | 1 | {min(singles)} to {max(singles)}, median {med_s} ({len(singles)} passes) |"] med = statistics.median(singles) med_s = whole(med) best_n = max(A, key=lambda n: (A[n], -n)) top = A[best_n]
rows = ["| Setup | Attempts per task | Tasks fixed out of 100 |", "|---|---|---|", f"| One attempt | 1 | {med_s}, the median of {len(singles)} runs that range from {min(singles)} to {max(singles)} |"] for i, n in enumerate(sorted(A)): rows.append(f"| {'**Deep mode**' if i == 0 else ''} | {n} | **{A[n]}** |") for n in sorted(C): rows.append(f"| Deep mode with a reviewing session | {n}, and one more session for {f['reviewed'].get(n)} of the tasks | **{C[n]}** |") rule_c = "" if C: pairs = ", ".join(f"{C[n]} against {A.get(n)} at N={n}" for n in sorted(C)) better = all(C[n] > A.get(n, 0) for n in C) rule_c = ("A further step was measured: on the tasks where the attempts disagree, one more session of the model with tools reads the " "candidate patches, writes a reproduction, tries each candidate in the task's container and submits the final patch " f"(`deep/review.yaml`, `tools/review_run.sh`). It resolves {pairs}" + (" for plain agreement." if better else " for plain agreement, so it is not the default.")) score = f"**{A[n]}**" if n == best_n else str(A[n]) rows.append(f"| {'Deep mode' if i == 0 else ''} | {n} | {score} |") if f["opus"] is not None: rows.append(f"| Opus 5.5, for reference | 1 | {f['opus']} |")
notes = [] both = [n for n in sorted(A) if n in f["upper"]] if both: notes.append("- At least one of the N attempts resolves the task for " + ", ".join(str(f["upper"][n]) for n in both) + " of the 100 tasks at N = " + ", ".join(map(str, both)) + ". That is an upper bound, known only from the benchmark's tests; choosing without them keeps " + ", ".join(str(A[n]) for n in both) + ".") if f["opus"] is not None: gap = f["opus"] - top if gap > 0: notes.append(f"With {best_n} attempts, RightNow Mini comes within {gap} task{'s' if gap != 1 else ''} of Opus 5.5, which fixed {f['opus']} of the same " "100 tasks in one attempt. We ran Opus 5.5 once, through OpenRouter, with the same agent.") else: notes.append(f"With {best_n} attempts, RightNow Mini fixes {top} tasks. Opus 5.5 fixed {f['opus']} of the same 100 tasks in one attempt. " "We ran Opus 5.5 once, through OpenRouter, with the same agent.") if best_n in f["upper"]: notes.append(f"There is more to gain. Among the {best_n} attempts, at least one is correct for {f['upper'][best_n]} of the 100 tasks, " f"and picking by agreement finds {top} of them.") worse = [] if R: notes.append("- Having the model read the candidate patches and vote did worse than plain agreement (" + ", ".join(f"{R[n]} at N={n}" for n in sorted(R)) + "), so deep mode does not use it.") if f["alone"]: mins = sorted(x["seconds"] / 60 for x in f["alone"] if x.get("steps_per_attempt")) if mins: notes.append(f"- Time: with the GPU to itself, one task with {f['alone'][0]['n']} attempts side by side took {mins[0]:.1f} to {mins[-1]:.1f} minutes " f"(median {statistics.median(mins):.1f}) on the first {len(mins)} tasks of the subset. Larger N was not timed alone. `results/deep.md` has the times of the batch runs, where each GPU served 60 sessions at once.") notes.append("- Scores at temperature 0.8 move from pass to pass; the table gives the range. Opus 5.5 was run once, with the provider's default sampling.") failed = [] failed.append("- **Token-identical speed-up** (gate: 200 prompts, no token difference from the plain engine). 6 of 200 prompts are identical with drafting. " "vLLM's own draft-head recipe fails the same way (6 of 200). The engine is published with this said; `DRAFT=0` gives the plain engine.") failed.append("- **1,000 tokens per second on one stream** (target). Measured: 729.6.") failed.append("- **Faster than Strata on the same GPU** (gate). Not measured: Strata is a desktop engine with its own re-quantized packs and was not run on this node.") if f["ft"] or f["ft2"]: parts = [] if f["ft"]: parts.append(f"round 1 scored {', '.join(map(str, f['ft']))}") if f["ft2"]: parts.append(f"round 2 scored {', '.join(map(str, f['ft2']))}") failed.append("- **A fine-tune that beats the stock model** (gate: every fine-tuned greedy pass above every stock pass). The stock passes scored " f"{', '.join(map(str, f['stock']))}; fine-tuning on the model's own passing attempts, {' and '.join(parts)}" + (f"; at temperature 0.8 round 1 scored {', '.join(map(str, f['ft08']))} against {min(singles)} to {max(singles)}" if f["ft08"] else "") + ". The fine-tuned weights are not shipped (`results/train.md`).") else: failed.append("- **A fine-tune that beats the stock model** (gate: every fine-tuned greedy pass above every stock pass). Two rounds of fine-tuning on " "the model's own passing attempts did not lower the training loss, and their evaluation passes were not finished when this card " "was written. The fine-tuned weights are not shipped (`results/train.md`).") if f["prune96"] or f["prune64"]: failed.append("- **A smaller model with the same score** (gate: within the unpruned model's range). Keeping 96 of 128 experts per layer (16.3 GB instead of 20.2) scored " f"{', '.join(map(str, f['prune96']))} against {min(singles)} to {max(singles)}; keeping 64 (12.4 GB) scored {', '.join(map(str, f['prune64']))}. " "Nothing was retrained after pruning. The pruned weights are not shipped (`results/size.md`).") top = A[best_n] if A else None if top is not None and f["opus"] is not None and top >= f["opus"]: # the brief's headline rule: only deep mode matches head = (f"{top} of 100 SWE-bench Verified tasks with {best_n} attempts, which matches Opus 5.5 on that 100-task subset ({f['opus']} in one attempt)") failed.append(f"- **Matching Opus 5.5 in one attempt** on this subset. One attempt: {med_s} at the median. Opus 5.5: {f['opus']}. " f"Deep mode reaches {top} with {best_n} attempts.") else: failed.append(f"- **Matching Opus 5.5** on this subset. One attempt: {med_s} at the median. Deep mode: {top} at best ({best_n} attempts). Opus 5.5: {f['opus']}.") whole = lambda x: str(int(x)) if x == int(x) else str(x) ns = sorted(R) worse.append(f"Asking the model to read the candidate patches and vote fixed {listed(R[n] for n in ns)} tasks with {listed(ns)} attempts.") for n in sorted(C): worse.append(f"Giving the model a full review session with tools fixed {C[n]} tasks with {n} attempts, where agreement fixed {A.get(n)}.") if worse: notes.append("Counting agreement beat the more elaborate ways of picking that we tried. " + " ".join(worse)) mins = sorted(x["seconds"] / 60 for x in f["alone"] if x.get("steps_per_attempt")) cost = "Deep mode costs as many times the compute as it makes attempts." if mins: cost += (f" With a GPU to itself, {f['alone'][0]['n']} attempts at one task took between {mins[0]:.1f} and {mins[-1]:.1f} minutes, " f"and {statistics.median(mins):.1f} minutes at the median.") notes.append(cost) if f["stock"]: notes.append("Use temperature 0.8 for agent work. With greedy decoding the model often repeats one command until it runs out of steps, " f"and it fixed {listed(f['stock'])} tasks in {len(f['stock'])} greedy runs.")
marks = {"@@ABEST@@": str(top), "@@NBEST@@": str(best_n), "@@MED@@": med_s, "@@A8@@": str(A.get(8)), "@@NSINGLES@@": str(len(singles)), "@@GAIN@@": whole(top - med), "@@G8@@": whole(A.get(8) - med), "@@HEAD_DEEP@@": head, "@@HEAD_SINGLE@@": f"{min(singles)} to {max(singles)}", "@@CODING_TABLE@@": "\n".join(rows), "@@RULE_C@@": rule_c, "@@CODING_NOTES@@": "\n".join(notes), "@@FAILED@@": "\n".join(failed), "@@REPO@@": REPO} "@@CODING_TABLE@@": "\n".join(rows), "@@CODING_NOTES@@": "\n\n".join(notes), "@@REPO@@": REPO} for k, v in marks.items(): text = text.replace(k, v) return text42 unmodified lines434445464647484942 unmodified lines images = open(f"{R}/results/images.txt").read().strip().splitlines() if os.path.exists(f"{R}/results/images.txt") else [] w("# Baseline: the stock model on this node") w("") w("Measured on 2026-12-01 on one node with 8 NVIDIA B300 GPUs. Every figure below was measured here; nothing is") w("Measured on 2026-12-01 on one node with 8 GPUs. Every figure below was measured here; nothing is") w("copied from a model card or a vendor page. A figure that could not be measured says so.") w("") w("- Model: `thinkingmachines/Inkling-2-Mini` at revision `fcd43a4241eb71e9f56f5f4d4bb125438cc613d9` (Apache-2.0).")160 unmodified lines161162163164164165166167160 unmodified lines "90th percentile (rule A takes no time)") w(line + ".") w("") w("These times are from a batch run: the attempts of all 100 tasks shared the GPU (60 agent sessions on one B300 at a time),") w("These times are from a batch run: the attempts of all 100 tasks shared the GPU (60 agent sessions on one GPU at a time),") w("so they are an upper reading of what one task alone would take.") alone = [] try:24 unmodified lines252627282829303031323324 unmodified linesdef main(): out = [] w = out.append w("# Speed: the engine lines on one B300") w("# Speed: the engine lines on one GPU") w("") w("Measured on 2026-12-01 on one GPU (NVIDIA B300) of the node, one line after another on the same GPU, with the") w("Measured on 2026-12-01 on one GPU of the node, one line after another on the same GPU, with the") w("same client (`tools/bench.py`: greedy decoding, 64 fixed coding prompts, 512 new tokens, token counts from the") w("server's usage report) and the same 200-prompt capture (`tools/parity.py`). Cores 0 to 31 were kept free for") w("the server under test and its client. Start each line with `engine/serve.sh` or `tools/serve.sh`.")55 unmodified lines565758595960616255 unmodified lines graft = load(f"{R}/models/RightNow-Mini/graft_report.json") or {} w("# Training: self-distillation from the model's own passing attempts") w("") w("Measured on 2026-12-01 on the node (8 NVIDIA B300). Nothing below is estimated.") w("Measured on 2026-12-01 on the node (8 GPUs). Nothing below is estimated.") w("") w("## The data") w("")tools/card.py+52-69
tools/report_baseline.py+1-1
tools/report_deep.py+1-1
tools/report_speed.py+2-2
tools/report_train.py+1-1