File size: 4,889 Bytes
347e6ac
9cbc732
347e6ac
 
 
 
8c544ef
347e6ac
 
 
 
eefd9c0
 
 
 
 
 
 
 
 
 
347e6ac
6e9aafd
347e6ac
6e9aafd
347e6ac
6347337
 
 
347e6ac
5bfa2e3
 
ad1ef45
 
 
 
 
 
 
 
 
 
276506e
ad1ef45
276506e
ad1ef45
 
 
 
276506e
ad1ef45
 
276506e
ad1ef45
276506e
df41109
276506e
1f92ea1
ad1ef45
6e9aafd
347e6ac
6e9aafd
9f50d43
6e9aafd
9f50d43
9cbc732
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
license: apache-2.0
base_model: Qwen/Qwen3.5-9B
tags:
- thesystem
- decision-model
- text-generation
- custom-code
language:
- en
---
<div class="not-prose mt-2 mb-4 flex items-center gap-3">
  <img src="https://huggingface.co/Lbuk/TheSystem-9B-Probe-256/resolve/main/assets/mark.svg" width="36" height="36" alt="" class="shrink-0" />
  <div class="min-w-0">
    <h1 class="m-0 break-words text-xl font-semibold leading-tight">TheSystem-9B-Probe-256</h1>
    <p class="m-0 mt-1 flex items-center gap-2 text-sm opacity-75">
      AI from Poland
      <img src="https://huggingface.co/Lbuk/TheSystem-9B-Probe-256/resolve/main/assets/poland-flag.svg" width="19" height="12" alt="Polish flag" class="shrink-0" />
    </p>
  </div>
</div>

TheSystem uses a shared `<FAST>` gate to route requests in frozen **Qwen3.5-9B**. For “Choose Billing or Support,” a classifier with one 256-unit hidden layer picks an answer. For “Write a reply,” Qwen generates the text.

## Try it in Colab

1. Open the [Probe-256 demo in Colab](https://colab.research.google.com/github/bqpro1/TheSystem/blob/main/notebooks/01-Try-Probe-256.ipynb).
2. Select the latest runtime and an NVIDIA GPU with native BF16, such as an A100. You can try 24 GB, though fit is unverified.
3. Run **Prepare runtime** to download the public setup files. When it says **READY**, run **Load Probe-256**, then try the writing and decision examples.

> **Let the model choose the mode, or set it yourself.** Use `mode="auto"` to let `<FAST>` choose how to respond. Set `mode="decision"` to pick from supplied answers or `mode="generation"` to write a response.

## Abstract

Decision models based on decoder-only LLMs are designed to select answers from a given set
([Nimble](https://github.com/bespokelabsai/nimble), [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev)).
However, adapting an LLM for decisions changes its generative behavior. This can lead to using
one model for decisions and another for text generation.

Decision models invite an analogy with System One, in contrast to System Two. In the account
popularized by Daniel Kahneman in [*Thinking, Fast and Slow*](https://us.macmillan.com/books/9780374275631/thinkingfastandslow/),
System One is quick and automatic, while System Two involves slower, deliberate reasoning.
Yet both coexist within one system of human cognition. I explored a similar idea for decoder-only LLMs.

I built **TheSystem**, whose learned internal gate, **`<FAST>`**, chooses once per prompt
between selecting a supplied answer and using the model’s original text-generation path.
Training has two separate objectives: teaching the gate to distinguish decision prompts from
generative prompts, and teaching the model to select answers. The decision path can use either
[LoRA adjustments](https://arxiv.org/abs/2106.09685) or a [probe classifier](https://arxiv.org/abs/1610.01644)
that reads the frozen backbone’s internal state. I tested both architectures.

The purpose of this release is to show that decisions and text generation can be performed
by one LLM with a **`<FAST>`** gate. TheSystem uses [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B)
as the frozen backbone. In generation mode, the learned decision components are bypassed,
and the original model generates the response. I turned off Qwen’s native thinking mode
(`enable_thinking=False`) for all release tests of the original backbone, Probe-256 and LoRA.
In the next release, I plan to publish results from experiments with Qwen’s thinking mode
enabled for text generation.

## Training data

The original `<FAST>` gate learned **whether to choose or write** from routing prompts built partly from the answer examples. Probe-256 and [LoRA](https://huggingface.co/Lbuk/TheSystem-9B-LoRA) learned **which answer to pick** from the same 18,000 examples. The released gate also trained on more varied routing prompts. [See the dataset and splits](https://huggingface.co/datasets/Lbuk/TheSystem-Data).

[Evaluation notebook](https://huggingface.co/Lbuk/TheSystem-9B-Probe-256/blob/main/evaluation.ipynb) · [Results](https://github.com/bqpro1/TheSystem/blob/main/docs/EVALUATION.md) · [Setup and reproducibility](https://github.com/bqpro1/TheSystem/blob/main/docs/REPRODUCIBILITY.md)

## License

TheSystem’s original code and learned weights in this repository are available under the [Apache License 2.0](https://huggingface.co/Lbuk/TheSystem-9B-Probe-256/blob/main/LICENSE).
[Qwen’s Apache 2.0 notice](https://huggingface.co/Lbuk/TheSystem-9B-Probe-256/blob/main/licenses/QWEN-APACHE-2.0.txt) applies to the backbone. See the [third-party notices](https://github.com/bqpro1/TheSystem/blob/main/licenses/README.md) for dataset terms and attribution.

## Cite this work

Leszek Bukowski (2026). *TheSystem* (version 0.1.0rc4). [GitHub repository](https://github.com/bqpro1/TheSystem).