POWERED BY VERSATILLAMA 3.2 3B

ONYX
ENGINE

A persona-steered intelligence that changes how it thinks, focuses, remembers, and communicates in real time.

ADAPTIVE INTELLIGENCE • LOCAL MEMORY • ACTIVATION STEERING
01 / ARCHITECTURE

The Four-Part Brain

Four simulated neurochemical systems continuously influence the model's internal steering state while it generates.

⚡

Dopamine

Drives creativity, engagement, novelty, and motivational energy.

🛡️

Serotonin

Acts as a stabilizing influence, keeping the system grounded and controlled.

👁

Norepinephrine

Controls alertness and focus, increasing attention as task complexity rises.

🎯

Acetylcholine

Reinforces memory, task completion, and persistence across interactions.

NEURAL ODE

They Don't Just Coexist.

The chemical state evolves continuously. Each component can excite or inhibit another while a reuptake term pulls the system toward baseline.

state = [D .40, S .60, NE .20, ACh .30]
state += dt × (reuptake + W × tanh(state))
reuptake = -0.35 × state
clamp(state, 0.0, 1.2)
02 / MEMORY

Memory in Action

Persistent local memory lets Onyx continue conversations across restarts.

SESSION / INITIALIZING ● LIVE
USER INPUT
Initializing memory...
ONYX AI
Processing...

Neurochemical State

Dopamine 0.000
Serotonin 0.000
Norepinephrine 0.000
Acetylcholine 0.000
LOCAL ONLY

Memory That Survives Restarts

Conversations are appended to local storage and restored when Onyx boots. The data remains on the machine instead of being copied to a remote service.

boot → loading memory
turn → append exchange
> clear ▌
→ local memory wiped
03 / BEHAVIOR

The Persona Ladder

Response behavior changes according to measured interaction intensity.

INTENSITY < .05

High Empathy

Warm, patient, supportive, and focused on helping the user move forward.

INTENSITY ≥ .05

Direct Realism

Clear, efficient, articulate answers without unnecessary agreement.

INTENSITY ≥ .20

Blunt Realism

Firm boundaries and direct correction when assumptions or reasoning fail.

INTENSITY ≥ .60

Maximum Aggression

The system becomes extremely direct and confrontational rather than passive.

04 / CHEMISTRY

Chemistry Under Attack

The chemical state responds continuously to measured interaction intensity.

INTENSITY ≤ .15

🧊 Calm Mode

The system prioritizes observation, stability, and internal uncertainty.

d_drive = 0.05
s_drive = -0.05
ne_drive = 0.04
ach_drive = 0.05
INTENSITY > .15

🔥 Combat Mode

Higher intensity increases alertness and drive while reducing stabilizing influence.

d_drive = 0.10 + 0.20 × intensity
s_drive = -0.05 - 0.20 × intensity
ne_drive = 0.10 + 0.30 × intensity
ach_drive = 0.08 + 0.15 × intensity

🎛 Live Drive Simulator

CALM — OBSERVE

Move the intensity control and watch the simulated drive system react.

0.00 0.15 FLIP 0.20 INVERSION 1.00
Dopamine +0.050
Serotonin -0.050
Norepinephrine +0.040
Acetylcholine +0.050
serotonin scale: +0.090 → stabilizer active
05 / ENGINE

Under the Hood

Activation steering converts the chemical state into vectors that influence the transformer while tokens are being generated.

3072
STEERING DIM
12+20
LAYERS
2×
FORWARD PASSES
0.9
TOP-P
generation_loop.py
for _ in range(max_new_tokens):

    # probe pass
    hook.set_scales(0, 0, 0, 0)
    out = model(generated_ids)

    # evolve neurochemical state
    state = engine.step(
        out.logits,
        out.hidden_states,
        intensity
    )

    # convert chemistry into steering
    d_s   = clamp(.5 * D, .05, .30)
    s_s   = -.20 * (1 + intensity)
    ne_s  = clamp(.5 * NE, .02, .35)
    ach_s = clamp(.4 * ACh, .05, .20)

    hook.set_scales(d_s, s_s, ne_s, ach_s)

    # steered generation
    logits = model(generated_ids).logits

    next_token = nucleus_sample(
        logits,
        top_p=.9
    )

The Cognitive Thermostat

Dynamic temperature responds to the balance between focus and calm, allowing the system to become more exploratory or more precise.

dyn_temp = clamp( 0.55 × (NE + .1) / (S + .1), .60, 1.05 )
06 / DEPLOY

Runs on Your Hardware

Automatic hardware detection selects the appropriate execution backend and numerical precision.

Google TPU
NVIDIA / AMD
Apple Silicon
CPU
main.py
def detect_hardware():

    # TPU
    try:
        import torch_xla
        return "tpu", torch.bfloat16
    except:
        pass

    # NVIDIA / AMD
    if torch.cuda.is_available():
        dtype = (
            torch.bfloat16
            if
            torch.cuda.is_bf16_supported()
            else
            torch.float16
        )

        return "cuda", dtype

    # Apple Silicon
    if torch.backends.mps.is_available():
        return "mps", torch.float16

    # CPU fallback
    return "cpu", torch.float32
Download Onyx AI →
LOCAL • PRIVATE • ADAPTIVE