KnowLine-0.8B-Gen1 / INFERENCE.md
PEScn's picture
KnowLine-0.8B-Gen1
01952e5
|
Raw History Blame Contribute Delete
2.58 kB

KnowLine-0.8B-Gen1: serving and Decision Index run

The model reads option-label probabilities directly; it does not generate free-form answers.

Weights

  • Base: Qwen3.5-0.8B.
  • One epoch of LoRA SFT (rank 32, alpha 64, language-model linear layers only), merged into bf16 weights; the released checkpoint is the end of training.
  • Readout temperature T = 1.54, fitted on held-out data, folded into model.language_model.norm.weight (CALIBRATION.json). Do not apply it a second time: the front end reads at temperature 1.
  • temperatures.json: {"score": 0.6494} divides score-question logits by 0.6494 (= 1/1.54), so score questions are read at an effective temperature of 1.0; choice and yes/no questions keep T = 1.54.

Software

  • serve_knowline.sh: starts SGLang 0.5.21 in bf16 (--mem-fraction-static 0.85, --enable-fp32-lm-head, --mamba-radix-cache-strategy extra_buffer), then knowline_server.py with temperature 1, 16 scoring workers, --temperatures temperatures.json.
  • knowline_server.py: the /v1/systemone HTTP server; knowline_layout.py: prompt layout and read twice; knowline_engine.py: the same front end in process, for the Decision Index kit.
  • Prompts use the Qwen3.5 chat template with thinking turned off (enable_thinking=False). The chat template in this repository turns thinking on by default.

Read twice

For a text-only request whose one-pass length is at most 3,000 tokens, the front end writes the input a second time before the answer position; the second copy starts with Read the same input again before answering:. Longer requests and requests with images are read once. --no-read-twice turns this off.

Launch

bash serve_knowline.sh /path/to/KnowLine-0.8B-Gen1 0 8080

Without SGLang (transformers, slower):

python knowline_server.py --model PelaAI/KnowLine-0.8B-Gen1 --backend hf --port 8080 --temperatures temperatures.json

Decision Index run

  • Kit: Decision Index 0.3 public suite, official kit at commit 62d2f51, scored 2026-10-29.
  • Serving: four identical H20 servers started with serve_knowline.sh from this repository's files, one GPU each, and 32 client shards spread over them.
  • Result: public index 44.51, raw 58.35; 140,620 requests, 140,178 scoreable, all answered, none unsupported or truncated, no errors, no retries.
  • Latency: 300 random requests sent one at a time to one server after a warm-up: 24.6 ms median, 39.6 ms mean, 117.3 ms at the 95th percentile.

Hardware

NVIDIA H20 (96 GB). Not the board's reference hardware.