All posts

Introducing Hence 1

Hence 1 is our new SOTA open autocomplete model for writing, code completion and next edit prediction, built on Qwen3.8-27B and open source under Apache 2.0.

Hence-1 with a glowing text cursor on a dark blue background

Today we're announcing and releasing Hence 1, a state-of-the-art open weight autocomplete model. Based on Qwen3.8-27B and released under Apache-2.0, it handles code completion, next-edit prediction, and writing in docs, notes, messages, tasks and calendar.

Coline Tab across docs, notes, messages, tasks and calendar now runs on Hence 1, and so do code completion and next-edit prediction in Coline Code. The weights are on Hugging Face.

Why one model

We used to use two different models for Tab, and neither was truly built for autocomplete. The prose model scored below zero on our eval for the suggestions people actually kept.

We couldn't find a true replacement that did both code and writing. Open autocomplete models are code models. Nobody trains one to finish a meeting note or a two-word reply in a channel, or to know that the right suggestion after "Thanks!" is nothing.

That's why we decided to build our own. After a ton of testing, we found Qwen3.8-27B to be the best base to work off of, scoring 0.114 on our eval against 0.015 and 0.000 for our two previous Tab models. We also decided to open source it for anyone to use under Apache-2.0.

Benchmarks

We ran five benches on Hence 1. Every model ran on the same harness with its own prompt format. Hence 1 is shown with its gate on except on SAFIM and Real-FIM-Eval, which need an answer on every case.

Next-edit prediction

Next-edit prediction guesses your next change from the ones you just made. Rename a variable, add a parameter, or update a type, and Hence 1 spots the follow-up edits waiting further down the file before you even move your cursor. Press Tab to jump straight to the change, Tab again to accept it, and move through a refactor in seconds.

Next edit prediction benchmarks

On CUHK's Next Edit Prediction set, Hence 1 gets 51.0%. GitHub Copilot gets 28.1%, Zeta 2.1 26.0%, the untuned Qwen3.8-27B 23.5%, and Sweep Next-Edit v2 18.4%. On Continue's Instinct set, Hence 1 gets 27.1% exact and 47.9% graded 4 or 5 out of 5 while Instinct gets 20.9% and 38.2%.

On Zed's eval set, we lose. Zeta 2.1 passes 27 of 32, Sweep Next-Edit v2 passes 23, and Hence 1 passes 20 (Copilot 19, base 14, Instinct 13). The reason is specific: 10 of the 32 cases need no edit at all, and Hence 1 still proposes one on 6 of those 10 (9 without the gate). It's eager to edit, and a set built around leaving code alone punishes that.

Against its own base

Hence 1 against Qwen3.8-27B

CUHK goes from 23.5% to 51.0%, Instinct exact match from 15.2% to 27.1%, Zed's set from 14 to 20, SAFIM from 63.9% to 69.8%, and staying quiet when nothing should be suggested from 38.8% to 99.2%.

Code completion

Code completion on SAFIM and Real-FIM-Eval

On raw SAFIM, we lose. Across 17,720 fill-in-the-middle cases with executed tests, Qwen2.5-Coder-32B (code only, with dedicated fill-in-the-middle tokens) scores 72.8%. Hence 1 scores 69.8%, ahead of its base (63.9%), our two previous Tab models (61.7% and 60.2%), Zeta 2.1 (51.3%) and GitHub Copilot (51.3%, on a 2,710-case sample).

Raw SAFIM scores the whole generation, though, and no editor shows the whole generation. Trim both models' answers the way an editor displays them and they're level: 63.9% against 63.9% over all 17,720 cases, a gap of 0.07 points, well inside the noise.

On Real-FIM-Eval (3,000 real developer edits, character-level perplexity, lower is better), Hence 1 leads: 1.211 on additions against 1.250 for its base and 1.296 for Qwen2.5-Coder-32B, and 1.182 on edits against 1.200 and 1.231.

Writing across Coline

No public benchmark asks a model to finish a calendar event, so these are our own evals: "kept when shown", judged by GPT-6.2 Sol.

Suggestions people keep across surfaces and quiet rate

Hence 1 leads DeepSeek-V4.1-Flash on 5 of 7 surfaces: Calendar 74.9% vs 26.3%, Code 69.0% vs 55.3%, Tasks 66.8% vs 54.2%, Messages 59.5% vs 41.1%, Docs 55.8% vs 44.7%.

It loses on Notes, 34.4% to DeepSeek's 36.4%. And on task properties built from public issue triage labels, it scores 1.9% against 3.8% for DeepSeek and 5.5% for the base. Every model is under 6% there, because public triage labels mostly can't be guessed from the issue. On real tasks in a Coline workspace, Hence 1 gets 54.8%.

Across all surfaces it keeps 50.6% with the gate (43.0% without), against 41.3% for DeepSeek-V4.1-Flash, 36.0% for the base and 25.9% and 27.2% for our two previous Tab models. On held-out sets it never saw: 55.6% on prose from an unseen writer (DeepSeek 25.3%) and 58.5% on unseen repositories (DeepSeek 47.7%).

The price of the gate: Hence 1 shows a suggestion on 74.5% of the cases where one is wanted. Other models show one on 95% to 99%.

Notes on the numbers

  1. One judge. Graded scores use GPT-6.2 Sol with one rubric for every model. They aren't comparable to other papers' judges. Exact match, executed SAFIM and perplexity use no judge.
  2. Home advantage on Instinct. Training includes 2,913 human-written rows from Instinct's public training split. None overlap its 689 test cases, but it's still a partial home advantage, the same kind Instinct has. CUHK and Zed have zero overlap; we excluded 14 overlapping CUHK cases and 1 Zed case.
  3. SAFIM harness offset. Our execution harness reads 2 to 3 points higher than the public leaderboard for every model (Qwen2.5-Coder-32B is 71.1 published, 72.8 here). Compare rows inside our table only.
  4. Copilot handicap. GitHub Copilot ran through its published language server with one open file only.
  5. Size and speed. Hence 1 is 27B. Zeta 2.1, Sweep Next-Edit v2 and Instinct are 7B and 8B, and faster on code.
  6. Not measured. Grok Build (formerly Cursor) Tab and Devin Desktop offer no programmatic API we're permitted to use.
  7. Noise and tuning. Reruns move Zed's set by about 1 case and CUHK by about 0.5 points. Nothing was tuned on outside benchmarks, apart from a keep or drop bar we wrote down before the last RL round (it was dropped, more below).

Knowing when to stay quiet

A wrong suggestion costs more than no suggestion. So the most important number in this post might be this one: when nothing should be suggested, Hence 1 stays quiet 99.2% of the time. Its base manages 38.8%, DeepSeek-V4.1-Flash 27.0%, and our two previous Tab models 23.7% and 37.7%.

The plan was to use the probability that the model ends its answer immediately as its confidence. At ranking kept suggestions above dismissed ones, it scored 0.63, where a coin scores 0.5. Fine-tuning had taught the model "this thought is finished", not "I'm unsure".

The sum of the model's own token log-probabilities over its answer scored 0.91. So the gate reads the answer after it's written. It's a tiny logistic model over six numbers the model already computes: the sum, mean, minimum and first of the token log-probabilities, the log of the length, and the first-step odds of ending. It was fitted on 7,213 validation samples and never on a test set.

It ships as gate.json, a few hundred bytes of weights and thresholds per surface: 0.25 for code and next edit, 0.15 for docs, messages and tasks, and off for notes, calendar and task properties, where it wasn't accurate enough to help. It adds no compute, but it needs the whole answer before it decides, so the answer is held until it's complete.

How we trained it

Hence 1 is a rank-64 LoRA on the text layers of Qwen3.8-27B, 435M trainable parameters (under 2% of the model), merged back into bf16. The final dataset has 889,408 examples (1.07B tokens, 19.2M of them answer tokens) across 8 surfaces, with about 15% "say nothing" examples. It was never trained on a benchmark test split, Coline customer data, or Coline's own workspace.

Training one model for both prose and code comes down to keeping the task shape consistent. Every surface uses the same cursor-in-context format, with surrounding paragraphs, recent channel messages, or neighboring files and recent edits placed right around <CURSOR>. Joint training across all 8 surfaces lets the model adapt cleanly from a three-word chat reply to a multi-line code block or a multi-hunk next edit, while negative examples teach it where a thought is already finished. After supervised fine-tuning, we fit the lightweight confidence gate on held-out validation rows so the model only surfaces suggestions it is confident about.

What broke along the way

Where the cursor sits decides everything. Three separate faults came down to cursor position in the training data.

  1. Never edit the line you're on. In our first run, every next-edit row cut from commits had the cursor after a finished edit, with the answer elsewhere. The model learned exactly that, and scored below leaving every file untouched on Instinct's set. A new cutter with five cursor states fixed it.
  2. Gluing letters onto finished words. Typing by hand during the second run, we watched it complete "Each workspace has" with "es its own...". Not one of our roughly 1,700 eval cases put the cursor right after a finished word. A 6,000-example slice fixed it.
  3. Silence right after an edit. In the final run, the model went quiet on CUHK, whose cases put the cursor at the end of the edit just made. In our replayed commits, most rows with the cursor there were "say nothing" rows. A 75-step corrective pass on rebalanced rows took CUHK from 44.9% to 53.6% exact. It also made the model more eager to edit, which is where the Zed loss comes from.

The one-word exploit. An early RL round jumped on our scoreboard because the model had learned to answer with one word: the reward counted kept and dismissed suggestions but didn't see length. Every reward since is length-aware.

The RL round we threw away. The last RL round, on code and next edit, had a keep or drop bar written down before it ran. Without the gate it was slightly ahead. With the gate it was behind: it made the model less sure of its own edits, so the gate hid more good ones. It failed the bar, and we dropped it rather than move the threshold to rescue it.

The repeat loop on day 1. Holding Tab in prose could repeat the previous sentence, because a loop is high-confidence and sails through the gate. A tiny server-side guard now hides near repeats of the text before the cursor: 0.28% of suggestions, with 3 wrong repeats caught and 1 false positive in 1,426. It's in the model card's limits, so add it when you self-host.

Speed

Measured on our live production endpoint:

SurfaceCasesFirst token (p50 / p90)Whole suggestion (p50 / p90)
Writing1000.11 s / 0.17 s0.26 s / 0.44 s
Code, later keystrokes1200.36 s / 0.54 s0.73 s / 1.48 s
Code, new prompt250.73 s / 1.35 s1.11 s / 2.13 s
Next edit9320.38 s / 0.44 s1.13 s / 1.69 s

With the gate on, the whole answer is held until it's done, so the whole suggestion column is what you feel. Writing feels instant. Code is slower than the 7B and 8B models, and that's the cost of 27B.

Open weights

Everything is at huggingface.co/ColineApp/hence-1, with an overview at coline.app/hence:

  • Merged bf16 weights, 55.6 GB in 18 weight files
  • Tokenizer and chat template
  • gate.json
  • reference.py, which runs the same vLLM settings as our endpoint
  • NOTICE, and the exact prompt shapes it was trained on

It needs about 60 GB of VRAM at bf16. There's no GGUF yet, and uncalibrated 8-bit or 4-bit quantization breaks the gate's calibration. There's no public API at launch yet, but we are working on something soon!

What comes next

Hence-mini, a smaller distilled open model for super fast speed, is next. After that, Hence 1.5 is coming soon with more improvements over Hence 1, followed by Hence 2 for a next-generation autocomplete experience.

Hence 1 is live in every workspace today.