---
title: "Run Hence 1 with vLLM: serve command and request setup | Coline"
description: "Serve ColineApp/hence-1 with vLLM 0.34. The exact serve command, four required request parameters, prompt formats, gate.json wiring and the repeat guard."
url: https://coline.app/hence/run-hence-1-with-vllm
---

[Sign in](https://coline.app/auth/signin)

[Sign up](https://coline.app/auth/signup)

[Sign in](https://coline.app/auth/signin)

[Sign up](https://coline.app/auth/signup)

[Hence 1](https://coline.app/hence)

Updated December 4, 2026

# How to run Hence 1 with vLLM, step by step

Serve ColineApp/hence-1 with vLLM 0.34. The exact serve command, four required request parameters, prompt formats, gate.json wiring and the repeat guard.

To run Hence 1 with vLLM, download the ColineApp/hence-1 weights, serve them with the production flags, and send every request with four required parameters. Skip one of those and suggestions can run past their end, or the confidence gate reads the wrong numbers. This guide covers each step, what each setting does, and where the exact prompt formats live.

Coline builds Hence 1 and writes this page.

New to the model? Start with [Hence 1](https://coline.app/hence) and [the Hence 1 release post](https://coline.app/blog/introducing-hence-1).

| Setting | Value | Why it matters |
| --- | --- | --- |
| Model | `ColineApp/hence-1` | Merged bf16 weights, 55.6 GB |
| vLLM version | 0.34 | The version the production config targets |
| Precision | bfloat16 | No calibrated quantized build exists |
| Max model length | 16,384 tokens | Caps context and KV cache memory |
| Prefix caching | On | Reuses prompt prefixes between keystrokes |
| Speculative decoding | MTP, 3 tokens | Drafts tokens ahead to speed up replies |
| Stop token | 248046 | End-of-turn token the gate reads |
| Temperature | 0 | Documented production setting |

## 1. Download the weights

The [Hugging Face repo](https://huggingface.co/ColineApp/hence-1) holds about 55.6 GB across 18 weight files, plus the tokenizer, chat template, `gate.json`, `reference.py` and `NOTICE`. Download all of it. The gate and the reference config are part of the setup, not extras. Pin the commit you test, so the weights and `gate.json` never drift apart.

`from huggingface_hub import snapshot_download snapshot_download( "ColineApp/hence-1", local_dir="./hence-1", revision="<pinned commit hash>", ) `

After the download, set `HF_HUB_OFFLINE=1` on serving hosts.

## 2. Serve the model

`vllm serve ColineApp/hence-1 \ --dtype bfloat16 \ --max-model-len 16384 \ --language-model-only \ --generation-config vllm \ --enable-prefix-caching \ --speculative-config '{"method": "mtp", "num_speculative_tokens": 3}' `

What each flag does:

- `--dtype bfloat16` loads the merged weights as published. Do not add quantization flags.
- `--max-model-len 16384` sets the context ceiling. Prompts longer than this fail, and a lower value saves memory.
- `--language-model-only` loads the text model only, as the production config does.
- `--generation-config vllm` uses vLLM's generation defaults instead of the model's own generation config file. Per-request parameters still override these.
- `--enable-prefix-caching` should stay on. The latency numbers in the [benchmarks](https://coline.app/hence/hence-1-benchmarks) assume it.
- `--speculative-config` enables multi-token prediction with three draft tokens.

Check the server with `curl http://localhost:8000/v1/models`. Port 8000 is vLLM's default. Loading 55.6 GB of weights takes time, so wait for the server to report ready before you send traffic.

## 3. Send the four required parameters

`{ "temperature": 0, "stop_token_ids": [248046], "ignore_eos": true, "chat_template_kwargs": {"enable_thinking": false} } `

- **`temperature: 0`** is the documented setting. Keep it unless you have rerun your own checks.
- **`stop_token_ids: [248046]`** ends generation at the end-of-turn token. The gate reads the model's first-step probability of this token, so stopping on anything else changes the gate's input.
- **`ignore_eos: true`** makes the stop token the only stop condition, as in the production config.
- **`enable_thinking: false`** turns off the reasoning block, so the reply is the completion and nothing else.

With the OpenAI Python client, pass these fields through `extra_body`. They are not standard OpenAI fields.

## 4. Build the prompt in the documented format

Hence 1 has three prompt families:

- **Code:** fill-in-the-middle, both single-line and multi-line block completions.
- **Writing:** prose for docs, notes, messages, tasks, task properties and calendar.
- **Next-edit:** the reply is `SEARCH`/`REPLACE` blocks that your editor applies to the file.

The exact tokens, ordering and whitespace are in the model card and in `reference.py`. Copy them byte for byte. Rebuilding the format from memory, or from this page, changes what the model sees, and a missing newline is enough to degrade output.

## 5. Wire `gate.json`

`gate.json` holds a logistic regression over six signals from the reply's token log-probabilities: the sum, the mean, the minimum, the first token's log-prob, the log length, and the first-step log-odds of token 248046. The file is a few hundred bytes of weights and an intercept.

Your server must return the log-probabilities the gate needs, including the first-step probability of token 248046. Request them on every call, and confirm the exact fields in `reference.py`.

The shape of the scoring step is:

`features = [sum_lp, mean_lp, min_lp, first_lp, log_len, eot_log_odds] score = sigmoid(intercept + dot(weights, features)) # values from gate.json show = score >= threshold[surface] `

This shows the shape only. Take the exact feature transforms and field names from `gate.json` and `reference.py`.

| Surface | Threshold |
| --- | --- |
| Code, next-edit | 0.25 |
| Docs, messages, tasks | 0.15 |
| Notes, calendar, task properties | Off |

The gate holds the full suggestion until it finishes, so users see nothing until the reply completes. Plan for whole-suggestion latency, not first-token latency.

## 6. Add the repeat guard

The guard is yours to write. It runs on the server, compares each suggestion with the text right before the cursor, and drops suggestions that nearly repeat it. In Coline's runs this kind of guard catches 0.28% of suggestions. It is rare, but prose loops without it. Tune the similarity cutoff on a sample of your own traffic.

## 7. Smoke test

- `/v1/models` lists `ColineApp/hence-1`.
- A code request stops at token 248046 and returns no reasoning block.
- A next-edit request returns `SEARCH`/`REPLACE` blocks your parser can apply.
- A known-good suggestion scores above its threshold, and a known-bad one scores below it.

## Common mistakes

- **Dropping `stop_token_ids`.** Suggestions run long, and the gate's first-step signal is wrong.
- **Adding a quantization flag.** No calibrated build exists, and quantizing breaks the gate.
- **Tidying the prompt.** Reformatting whitespace or section markers changes the model's input.
- **Pairing `gate.json` with other weights.** The weights and the gate were fit together.

## Trade-offs

Hence 1 at bf16 needs about 60 GB of VRAM and datacenter-class hardware. Its code replies are slower than 7B and 8B models, which run 3 to 5 times faster on the same GPU. If your goal is the lowest latency on a small card, a smaller model serves that goal better today.

Related: [Self-hosted AI autocomplete](https://coline.app/hence/self-hosted-ai-autocomplete), [Confidence gate](https://coline.app/hence/autocomplete-confidence-gate), [Hardware guide](https://coline.app/hence/local-code-completion-hardware-guide), [Editor integration](https://coline.app/hence/open-source-autocomplete-for-editors), [Apache 2.0 models](https://coline.app/hence/apache-2-autocomplete-models), [Hence 1 benchmarks](https://coline.app/hence/hence-1-benchmarks)

## Frequently asked questions

Which vLLM version does Hence 1 need?

The production config targets vLLM 0.34, and Coline's tested setup is vLLM 0.34 on one A100 80 GB in bf16. Start there. Test any upgrade against your own requests before you deploy it.

Why must the stop token be 248046 and temperature 0?

Token 248046 is the end-of-turn token. Stopping on it bounds each suggestion, and the confidence gate reads its first-step log-odds as one of six signals. Temperature 0 is the documented production setting, so change it only after you have run your own checks.

Can I run Hence 1 on a 24 GB GPU?

Not at bf16. The weights are 55.6 GB, and no GGUF or calibrated quantized build exists yet. On a 24 GB card, use a 7B or 8B model. Hence 1 needs about 60 GB of VRAM, which means one 80 GB GPU or two 48 GB cards.

[Explore Hence 1](https://coline.app/hence) [All Hence 1 guides](https://coline.app/hence/guides)
