You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

flare

"This readme and repo was create by our internal model."


Abstract

flare is a byte-resolving, loop-refinement language model with an exact stored-parameter count of 49,998,611 and no tokenizer, no subword vocabulary, and no external retrieval service. The model operates directly on raw bytes and is built from three cooperating subsystems: a Hierarchical Byte Interface (HBI) that learns to segment a byte stream into chunks and to reconstruct byte states from them; an Iterative Refinement Core (IRC) surrounded by a Global Context Provider (GCP) in which a compact stack of tied physical blocks is re-applied over several recurrent rounds, with per-chunk adaptive depth; and a Persistent Memory System (PMS) that maintains an external slot-addressed memory across chunks with strictly sequential, write-then-read semantics.

This document specifies the model as a piece of engineering. Every module is described by its mathematical form, the parameter budget is reported exactly, the numerical execution rules are stated, the verification properties that the implementation guarantees are enumerated, and the known findings are disclosed without softening. Primary-source citations are given in full in References.


1. What this model is

flare is a next-byte predictor over raw byte sequences. Its interface is the byte itself:

  • Input: a sequence of byte identifiers x = (x_1, ..., x_N), each in {0, ..., 255}, optionally accompanied by structural metadata.
  • Output: a distribution over the next byte at every position, logits ∈ R^{N × 272}, where 272 rows comprise the 256 byte values plus 16 reserved control rows (11 are currently named: <pad>, <bos>, <eos>, <mask>, <user>, <assistant>, <system>, <turn_end>, <think_start>, <think_end>, <num>).
  • Objective: cross-entropy on the next byte. The model never observes, and never predicts, a token above the byte level.

Three properties define the design intent.

The byte interface is an architectural module, not a preprocessing step. The HBI is trainable and includes a learned dynamic chunking router, a hashed n-gram input channel, a Fourier number channel, a local recurrent encoder and decoder, and a dechunking path. Nothing in the pipeline is non-differentiable except the router's hard boundary decision, which is handled by a straight-through estimator and a surrogate regularizer.

Computation is decoupled from stored parameters. The IRC re-applies the same two physical blocks up to eight times. The unrolled depth is therefore substantially larger than the stored depth while the parameter count stays fixed. A per-chunk deterministic budget and a learned halting head modulate how many rounds each chunk actually receives, so depth is allocated by content rather than spent uniformly.

A persistent external memory is part of the graph. The PMS is not a cache around the model; it is a differentiable, strictly sequential memory with learned content addressing, learned circular location addressing, and forget-gate-based slot deallocation. Its read is injected into the coda, so information written at chunk j is available to every later chunk and to nothing earlier.


2. Design constraints

The architecture was designed against a hard ceiling and a set of semantic invariants. Both are load-bearing and are treated as part of the model's definition.

Constraint Value Enforcement
Stored parameter ceiling 50,000,000 Asserted at model construction; the shipped configuration totals 49,998,611
Added parameters in any integrated variant 0 relative to the default configuration Every accepted variant is parameterized by the same ModelConfig; no module may introduce state outside it
Token interface Byte-level 272 output rows; 256 content rows
Causality Strict, byte-exact Position t may depend on positions ≤ t only
Padding Inert PAD positions contribute neither to embeddings, nor to attention, nor to losses, nor to memory
Batch isolation Total Memory banks, chunk indices, and attention masks are per-row
Numerical execution BF16 mixed precision with FP32 master weights, FP32 optimizer state, FP32 checkpoint weights, FP32 reported losses The dt boundary of the recurrent kernel is computed in FP32 explicitly
Checkpoint resume Bit-exact A resume must reproduce the prior run's losses and telemetry exactly, or fail closed
Execution identity Bound into every checkpoint A resume across a changed backend or a changed scan algorithm is refused, not silently accepted

The parameter budget is the tightest of these constraints and it dictated the widths. The core is the dominant consumer (90.28% of all parameters), the byte interface costs 7.95%, and the persistent memory 1.45%. The local encoder and decoder are deliberately narrow (d_local = 256) relative to the core (d_model = 640), because a byte-resolution recurrent stack is cheap in parameters while the quadratic chunk-level core is not.


3. Architecture overview

The model is a single hierarchy stage. The full dataflow is:

bytes  ──► embed ──┬─► byte embedding E ∈ R^{272×256}  (tied to the output head)
                   ├─► QR-hash n-gram channel  (orders 3, 4, 5)
                   └─► FoNE number channel     (decimal-magnitude Fourier features)
                              │
                              ▼
                   local encoder: 4 × Mamba-2 (d = 256)  →  RMSNorm
                              │
                              ▼
                   cosine router: p_t, b_t   (+ forced-boundary mask)
                              │
                              ▼
                   chunk selection (M chunks)  →  SpaceByte expansion 256 → 640
                              │
                              ▼
          ┌──────────── IRC / GCP core ────────────┐
          │ prelude (2 blocks, RoPE)                │
          │   ├► chunk-level entropy head           │
          │   ├► per-chunk deterministic budget r_j  │
          │   ├► R recurrent rounds                 │
          │   │     tied stack (2 blocks, NoPE)      │
          │   │     GCP replacement rounds (3, 6)    │
          │   │     learned ACT halting              │
          │   └► coda (2 blocks, NoPE)               │
          │          ▲                               │
          │          │ memory read                   │
          │      PMS (write-then-read recurrence)    │
          └──────────────────────────────────────────┘
                              │
                              ▼
                   truncate 640 → 256  →  dechunking upsampler (EMA + STE)
                              │
                              ▼
                   local decoder: 4 × Mamba-2 (d = 256)  →  RMSNorm
                              │
                              ▼
                   causal cross-attention to chunk states  →  RMSNorm
                              │
                              ▼
                   tied head  F.linear(h, Eᵀ)  →  next-byte logits

Notation used throughout:

Symbol Meaning Shape
N number of byte positions in the sequence —
d_local byte-resolution width 256
d_model chunk-resolution core width 640
M number of chunks produced by the router ≤ 8192
R sampled maximum number of recurrent rounds ≤ 8
r_j deterministic per-chunk round budget 1 ≤ r_j ≤ R
n_j rounds actually executed for chunk j 0 ≤ n_j ≤ min(r_j, R)
S persistent-memory slot count 256
d_mem persistent-memory slot width 256
σ(·) logistic sigmoid —
sg(·) stop-gradient —

4. Module 0 — the Hierarchical Byte Interface

The HBI is the trainable token interface. It converts a byte stream into a sequence of chunk vectors, runs the core on those vectors, and converts the refined chunk vectors back into byte-resolution states. It is deliberately not a tokenizer: the byte is the atom, and chunking is a learned, content-dependent, differentiable-with-surrogate decision made inside the model.

4.1 Byte embedding and the tied output head

The content vocabulary is the 256 byte values; the output vocabulary is padded to 272 rows to host the reserved control codes. A single embedding matrix E ∈ R^{272×256} serves both roles:

input:      e_t = E[x_t]                                  e_t ∈ R^{256}
output:     logits_t = h_t Eᵀ                             logits_t ∈ R^{272}

Tying the head to the embedding is what makes a 272-row vocabulary affordable inside a 50M budget: the output projection costs no additional parameters. It also means the output distribution lives in the same space the input was read from, which is a useful inductive bias at byte resolution.

4.2 QR-factorized hashed n-gram channel

A byte identity alone carries no context beyond the recurrent encoder's own state. flare supplements it with a trainable hashed n-gram channel in the spirit of BLT's large-input/small-output vocabulary asymmetry [2] and the Over-Tokenized Transformer's finding that input-side vocabulary is worth scaling even when the output vocabulary is not [8].

Hashing. For each byte position i and each n-gram order n ∈ {3, 4, 5}, a rolling polynomial hash is computed over the causal n-gram g_{i,n} = (b_{i-n+1}, ..., b_i):

Hash(g_{i,n}) = Σ_{j=1..n}  b_{i-j+1} · a^{j-1}   (mod V_h)

with a = 1,000,003 (a large prime) and V_h = 16,000. The hash is order-major and causal: position i only ever sees bytes at indices ≤ i. Positions before an n-gram is complete are treated as if the context were zero-padded, a documented deviation from a strict byte-aligned n-gram.

Quotient–remainder factorization. A direct embedding table over V_h would cost V_h · d_h = 1.02M parameters per order. Instead the table is factorized:

e_ngram(h) = A[h mod m] ⊙ B[⌊h / m⌋]
A ∈ R^{m×d_h},  B ∈ R^{(V_h/m)×d_h}

with m = 128 and d_h = 64, so the per-order cost is (m + V_h/m) · d_h = 16,384 parameters rather than 1,024,000 — a 62.5× compression at an approximation error that the factorization trades against capacity. The elementwise product of the two retrieved rows is the compression's whole mechanism: the low bits and the high bits of the hash are represented independently and recombined multiplicatively.

The three orders are summed and projected once:

Δ_hash,t = W_h ( Σ_{n∈{3,4,5}} e_ngram(Hash(g_{t,n})) ) + e_t
W_h ∈ R^{64×256}

so the channel contributes 64,960 parameters and acts additively on the byte embedding.

4.3 Fourier number channel (FoNE)

Numeric literals are the one place where byte-level models classically fail, because a digit's identity is not its value: 7 is the same token in 7 and 70. FoNE [7] resolves this by representing a number as a stack of Fourier features whose periods are the decimal powers, so that each decimal position occupies its own frequency band.

For a value x and a period T:

φ(x, T) = ( cos(2πx/T),  sin(2πx/T) )

and the feature stack for m integer periods and n fractional periods is the concatenation

FoNE(x, m, n) = [ φ(x, 10^{−n+1}); … ; φ(x, 10^m) ]

Because the period 10^i divides the place value it represents, the cosine/sine pair at that period isolates exactly the i-th decimal digit, while the periods above it carry the magnitude. The implementation builds n_int = 15 integer-magnitude periods and n_dec = 2 fractional periods, giving a feature dimension of 2·(15 + 2) = 34.

Two properties are enforced:

  1. Causality. The feature at byte t encodes only the numeric prefix seen so far. An online parser commits numeric-path membership from the current and past bytes only; no future delimiter can retroactively change an earlier feature. The semantic version of this channel is 2 and its causal prefix-encoding revision is 2; both are recorded in every checkpoint, because artifacts from the earlier full-sequence scanner are not interchangeable with these.
  2. Exactness. Integer magnitudes are reduced in float64 and the fixed-width causal groups keep every represented prefix exact rather than approximate.

The channel is projected and combined with a least-significant-digit position embedding:

Δ_fone,t = W_f · FoNE_t + L[lsd_t]        W_f ∈ R^{34×256},  L ∈ R^{64×256}
Δ_fone,t = 0                              when t is not on a numeric path

The L term tells the model where inside the numeric span a byte sits, which is information the Fourier stack alone does not carry. The channel contributes 25,088 parameters.

4.4 Local encoder: Mamba-2 at byte resolution

Byte-resolution features are encoded by four Mamba-2 layers at d_local = 256. The state-space formulation [3] is used here for a specific reason: at fine resolution a recurrent state compresses a long byte history into a fixed-size vector, whereas an attention layer at byte resolution would pay quadratic cost for a sequence whose useful local structure is short.

Layer configuration:

Quantity Value
Expansion factor 2 (so d_inner = 512)
Head count 8 (d_inner / headdim)
Head dimension 64
State dimension d_state 32
Convolution width d_conv 4
Causal convolution depthwise, left-padded
Normalization RMSNorm at the end of the stack

4.5 Learned dynamic chunking (cosine router)

The router decides where chunk boundaries fall. Its design follows the dynamic-chunking formulation of H-Net [1], extended with a project-specific hard constraint on positions that must not be merged.

Boundary probability. For byte-resolution states x_t produced by the encoder:

q_t = W_q x_t,        k_t = W_k x_t,        W_q, W_k ∈ R^{256×256}
q̂_t = q_t / (‖q_t‖ + ε),   k̂_t = k_t / (‖k_t‖ + ε)
p_t = ½ (1 − cos(q̂_t, k̂_{t−1})) ∈ [0, 1]        (t ≥ 2)
p_1 = 1                                          (the first valid byte owns the initial chunk)

The probability compares the current position's query with the previous position's key, so the decision at t depends only on positions ≤ t. The map ½(1 − cos θ) is one minus the normalized cosine distance, so p_t approaches 1 as the current representation drifts away from the previous one.

Forced boundaries. A hard-constraint automaton overrides the router at positions that must not be merged with their neighbours:

forced_t = 1  if  class(x_t) ≠ class(x_{t−1})              (digit ↔ non-digit transition)
                or  class(x_t) = class(x_{t−1}) = digit     (each digit is its own chunk)
                or  x_t is a control code                   (structural markers)
p_t ← 1  at forced positions

Digits are isolated because a multi-digit literal is not decomposable into independent byte-level predictions; control codes are isolated because they carry structural, not lexical, information. PAD and explicitly masked positions are never forced.

Hard decision and jitter. The boundary indicator is

b_t = 1[p_t ≥ 0.5]

with an optional sparse Bernoulli jitter that flips only positions whose probability lies within jitter of the decision threshold. Confident positions are never perturbed, and the clean probability p_t is retained for the regularizer and for the dechunking confidence, so jitter perturbs the sampled boundary without corrupting the differentiable statistics.

Ratio regularizer. The router is trained against a target boundary rate. Let F be the detached hard boundary rate and G the differentiable mean boundary probability, both averaged over non-forced, valid positions:

F = (1/|Ω|) Σ_{t∈Ω} 1[b_t],        G = (1/|Ω|) Σ_{t∈Ω} p_t
Ω = { t : t is valid and t is not forced }
L_ratio = (n/(n−1)) · [ (n−1)·F·G + (1−F)(1−G) ]

with n = 4.7 the design target. The loss is stationary at F = G = 1/n, which is the configuration the router is asked to reach; the form is chosen so that the gradient on G is non-zero only while the two statistics disagree. Forced positions are excluded from Ω because their rate is dictated by the constraint automaton rather than learned.

The router holds 131,072 parameters (W_q, W_k).

4.6 Chunk selection and SpaceByte width expansion

The hard boundary stream defines the chunk partition. The segment index of byte t is the running count of boundaries:

seg_t = ( Σ_{s ≤ t} b_s ) − 1

The vector at the j-th selected start becomes the j-th chunk vector, and chunk_start_j records its source byte position. Rows are padded to the widest row in the batch; chunk_pad marks the padding, and the padding is inert everywhere downstream.

The chunk vector is then widened from the local width to the core width by SpaceByte expansion: a single shared trainable vector of dimension d_model − d_local = 384 is appended to every chunk vector.

h0_j = [ chunk_vecs_j ; e ]        e ∈ R^{384}, shared across all chunks and positions

No projection matrix is introduced. The consequence is structural rather than economical: the low 256 coordinates of the core's input carry the encoder's content, while the high 384 coordinates carry a learned constant whose only role is to occupy the core's width with a trainable offset that the core's own normalization can re-scale. This costs 384 parameters instead of a 256 × 640 projection (163,840 parameters).

4.7 Dechunking upsampler

The core returns refined chunk states at width 640. They are truncated back to 256 (z_j ← z_core,j[:256]) and then expanded to byte resolution in two stages: a smoothing exponential moving average across the chunk sequence, and a per-byte confidence gate.

Smoothing EMA over chunks. With P_j the router probability at the start byte of chunk j:

z̄_0 = ẑ_0
z̄_j = P_j · ẑ_j + (1 − P_j) · z̄_{j−1}

A chunk whose start the router was confident about contributes fully; a chunk the router was unsure about is smoothed with its predecessor. The recursion is evaluated as a scan and is exactly arithmetically equivalent to the naive loop.

Per-byte confidence and the straight-through estimator. The confidence of byte t is the router's agreement with its own hard decision:

c_t = p_t^{b_t} (1 − p_t)^{1 − b_t} = p_t if b_t = 1, else 1 − p_t

and the byte state is

out_t = STE(c_t) ⊙ z̄_{seg_t} + W_0 (x_t)
STE(c) = c + sg(1 − c)          forward value 1, gradient 1

The straight-through form is what allows a hard, discrete boundary decision to carry a differentiable confidence: forward, out_t = z̄_{seg_t} exactly; in the backward pass, ∂out_t/∂c_t = z̄_{seg_t}, so the router receives gradient signal through the confidence channel even though the decision itself is non-differentiable.

W_0 is a zero-initialized linear residual path from the encoder states to the decoder input. Zero initialization is deliberate: at step 0 the decoder receives exactly the dechunked signal and nothing else, so the residual path cannot swamp the main gradient path during the first updates. The upsampler holds 65,792 parameters.

4.8 Local decoder, cross-attention, and the tied head

The byte-resolution states are decoded by four more Mamba-2 layers at d_local = 256, followed by an RMSNorm, and then by causal cross-attention from byte positions to chunk states:

mask[t, j] = 0  if  j ≤ seg_t and chunk j is not padding
           = −∞ otherwise
h ← h + CrossAttention(h, z_core ; mask)

The mask admits exactly the chunks that the byte belongs to or precedes, so the cross-attention cannot import information from a chunk that begins later in the byte stream. The projection is grouped-query attention with 4 query heads, 2 key/value groups and head dimension 64, with the key and value read from the 640-wide chunk states and the query from the 256-wide byte states; it costs 294,912 parameters.

A final RMSNorm is applied and the result is projected through the tied head:

logits_t = F.linear(RMSNorm(h_t), Eᵀ)

The cross-attention is the only path by which the refined chunk state reaches the output other than the dechunking path, so the core's refinement is visible to the loss through two distinct routes.


5. Modules A and B — the Iterative Refinement Core and the Global Context Provider

The core is a sandwich around a tied recurrent stack:

e  = Prelude(h0)                     h0 : [B, M, 640]
h_r = RecurrentRound(h_{r−1}, e)     r = 1 … R
z  = Coda(h_R + Proj(PMSRead(h_R)))

5.1 Position convention

Positioning is deliberately hybrid:

Component Positional information
Prelude rotary position embeddings (RoPE), θ = 10,000
Recurrent stack none (NoPE)
GCP replacement block none (NoPE)
Coda none (NoPE)

The reason is that the recurrent stack's weights are revisited on every round. Injecting an absolute position into weights that are re-applied would conflate where in the byte stream a chunk is with which round it is being processed, and the two would become indistinguishable to a tied block. The round index is therefore supplied explicitly (§5.3), while absolute order is retained where it is unambiguous: the one-shot prelude and coda.

5.2 The core block

Every core block is a pre-norm residual block:

x ← x + GQA(RMSNorm(x))
x ← x + SwiGLU(RMSNorm(x))
SwiGLU(x) = W_down( SiLU(W_gate x) ⊙ W_up x )

Attention is grouped-query with 10 query heads, 2 key/value groups and head dimension 64; the feed-forward width is 2,832. Grouped-query attention is used throughout because at d_model = 640 the key/value projections are the dominant parameter cost of an attention block, and two KV groups instead of ten removes 80% of that cost.

5.3 The tied recurrent stack and the DeepLoop residual correction

The recurrent stack is two physical blocks, re-applied on every non-GCP round. On round r:

u   = RMSNorm(h_{r−1})                                (loop-entry normalization)
g_0 = u
g_i = DeepLoopBlock_i( g_{i−1} + iemb_r ),  i = 1, 2   (round index injected per block)
h_r = D ⊙ u + g_2 + P ⊙ e

Round index embedding. idx_emb ∈ R^{8×640} holds one learnable vector per possible round. It is added to the input of each physical block, so the block's input distinguishes the round even though the block's weights do not.

DeepLoop residual scaling. A tied stack breaks the usual residual-stream argument: in an untied transformer the residual stream's variance grows with depth because each sublayer adds an independent contribution, but here the same sublayer is applied N times, so its contribution compounds N-fold. DeepLoop [4] derives the correction, and flare implements it as a normalized sandwich in which every residual sublayer computes

x_out = RMSNorm( α · x + f(RMSNorm(x)) )
α = (2N)^{1/2}

where N is the effective unrolled depth, i.e. the number of physical looped-block visits, counting only rounds that were not replaced by GCP:

N = n_loop_blocks × #{ r ∈ [1, R] : r ∉ gcp_positions }

At the maximum round count R = 8 with gcp_positions = {3, 6}, there are six non-GCP rounds, so N = 2 × 6 = 12 and α = √24 ≈ 4.899.

The companion initialization gain

β = (8 N_max)^{−1/2},     N_max = n_loop_blocks × (r_max − |gcp_positions|) = 12
β = 1/√96 ≈ 0.10206

is applied once, at construction, to every residual-branch matrix (attention query/key-value/output and the SwiGLU gate/up/down). β is not a runtime multiplier; it is a variance-matching initialization for weights that will be reused N_max times.

5.4 Parcae contractive injection

The recurrence mixes two signals with opposite properties. The tied stack's output g is unconstrained, so re-applying it can make the recurrent state grow without bound across rounds. The prelude state e is the external signal that must remain available at every round. The Parcae terms separate these:

δ       = softplus(δ_raw)                       δ_raw ∈ R^{640},  δ > 0
A_diag  = −exp(logA)                            logA ∈ R^{640},  A_diag < 0
D       = exp( δ ⊙ A_diag )                     D ∈ (0, 1)^{640}
P       = δ ⊙ B_mem                             B_mem ∈ R^{640}
h_r     = D ⊙ u + g + P ⊙ e

D is elementwise contractive by construction: δ > 0 and A_diag < 0 imply 0 < D < 1, so the previous round's state is geometrically decayed rather than accumulated. P ⊙ e re-injects the prelude state along a path that is not contractive, which is what keeps the original chunk information accessible at round 8 after eight rounds of decay.

The initial contraction strength is set by δ_init = 0.1, implemented as δ_raw = log(e^{0.1} − 1) so that softplus(δ_raw) = 0.1 exactly.

5.5 Global Context Provider

Rounds 3 and 6 do not run the tied stack. They run a single full chunk-level attention block instead:

r ∈ gcp_positions:   h_r = GCP( u + iemb_r )

The GCP block is a standard pre-norm attention + SwiGLU block at d_model = 640 with NoPE and full chunk-level causal attention. Its purpose is to let the recurrence re-read the whole current chunk sequence rather than only its own history, which is what breaks the purely local character of a tied recurrent stack.

A GCP round contributes no visit to the tied parameters, which is why the effective depth counts only non-GCP rounds. The GCP block costs 6,421,760 parameters — half of a two-block stack, because it is one block.

5.6 Coda

Two pre-norm NoPE blocks followed by a terminal RMSNorm. The coda's input is not the recurrent state alone but the recurrent state plus the memory read:

z = Coda( h_R + W_mem · v_read ),      W_mem ∈ R^{640×256}

so the persistent memory enters the network at exactly one place, after all recurrent rounds, and is then processed by the same width as everything else.

5.7 Deterministic entropy budget

Depth is allocated per chunk. A chunk-level head reads the prelude state and predicts a next-byte distribution for the chunk:

logits^ent_j = W_ent · RMSNorm(e_j)          W_ent ∈ R^{272×640}
H_j = − Σ_v p_v log p_v / log(272),          p = softmax(logits^ent)

The normalized Shannon entropy H_j ∈ [0, 1] then sets a deterministic round budget:

r_j = clip( ceil( a + b · H_j ), 1, R ),     a = 2.0,  b = 6.0

A chunk predicted to be uncertain receives more rounds; a chunk predicted to be nearly determined receives fewer. Digit-isolated chunks are given a floor of 4 rounds regardless of entropy, because a numeric chunk is never solved in one or two rounds. Invalid (padded) chunks receive a budget of 0 and are excluded from the recurrence entirely.

The entropy head is a real distribution head, not a scalar proxy: it is trained by an auxiliary next-byte cross-entropy with weight 0.01, so its entropy estimate is anchored to an actual predictive distribution rather than to an unconstrained scalar.

5.8 Learned ACT halting

The deterministic budget is a maximum. The learned halting head is responsible for stopping a chunk earlier when the chunk is already solved. The head is a single linear map on the (detached) recurrent state:

ℓ_{j,t} = w_h · h_{j,t} + b_h            w_h ∈ R^{640}, b_h ∈ R
p_{j,t} = σ(ℓ_{j,t})

The halting decision uses the cumulative halting probability rather than a per-step threshold:

P_halt(j, t) = 1 − Π_{s ≤ t} ( 1 − p_{j,s} )

and chunk j halts at the first round t with P_halt(j, t) ≥ 0.95. The product form matters: it makes the decision monotone in the number of rounds and prevents a chunk from "un-halting" because a later per-step probability happened to be low.

Objective. The ACT loss is a binary cross-entropy over (round, chunk) pairs, with a one-hot target:

target_{j,t} = 1  at t = n_j − 1,  0 elsewhere,   if  n_j > 0 and (n_j < R or n_j = r_j)
target_{j,t} = 0  everywhere,                     if  n_j = R < r_j

where n_j is the number of rounds chunk j actually executed, r_j its deterministic budget, and R the sampled maximum. Rounds after the stop are excluded from the average; the loss is averaged over the executed (round, chunk) pairs only.

The rule has three cases, and the distinctions are load-bearing:

  1. The learned halt fired (n_j < R and n_j < r_j): the chunk finished on its own, so it receives a positive label at the round where it stopped.
  2. The deterministic budget was reached (n_j = r_j, which includes n_j = r_j = R): the chunk also finished, so it receives a positive label at that round.
  3. The sampled maximum cut it short (n_j = R < r_j): this is the ordinary ACT maximum-budget failure, the chunk did not finish, and it stays all-negative.

The budget is compared unclamped. Because the entropy budget is a hard maximum inside the recurrence, n_j ≤ min(r_j, R) always holds. Clipping r_j to R before the comparison would erase exactly the distinction between cases 2 and 3: every maximum-budget failure would become a "budget reached" case and would receive a positive label, so the head could never learn to report a genuine failure. With R resampled at every step, that mistake makes the label depend on the sampled maximum in two contradictory ways at once, and the resulting head converges towards an all-negative solution whose cumulative halting probability never approaches the 0.95 threshold.

The auxiliary loss weight is 0.01, and the head's recurrent input is detached so that a truncation-boundary compensation factor can never reweight this auxiliary objective.

5.9 Truncated backpropagation through the recurrent rounds

Backpropagation through the full unroll of R rounds is expensive, and the recurrent path is where truncation is applied. The implementation follows the unbiased truncation estimator of Tallec and Ollivier [6].

At every recurrent boundary r, a cut is sampled with probability c = 1/k. A cut boundary contributes zero recurrent gradient. A non-cut boundary multiplies only the recurrent gradient crossing that boundary by 1/(1 − c). With constant c, the resulting estimator is unbiased for the corresponding untruncated recurrent gradient, at the cost of higher variance.

Three properties are deliberate:

  • ARTBP is not a loss multiplier. The compensation is inserted as a gradient operation at the boundary inside the recurrence, so the next-byte loss, the ratio regularizer and the ACT loss are never scaled.
  • The compensation does not touch the Parcae injection. The recurrent component is isolated from the direct P ⊙ e path, so a cut truncates only the recurrent recurrence and leaves the external prelude gradient intact.
  • The ACT objective is isolated too, by detaching the head's recurrent input.

Three modes are supported: full (exact backpropagation through the unroll), tbptt (a single cut after round R − k), and artbp (independent stochastic cuts with per-boundary compensation).

5.10 Effective depth, stated exactly

Quantity Value at R = 8
Physical looped blocks 2
Non-GCP rounds 6
Effective unrolled depth N 12
DeepLoop skip multiplier α = √(2N) √24 ≈ 4.899
Initialization gain β = (8 N_max)^{−1/2} 1/√96 ≈ 0.10206
Stored parameters of the looped stack 12,846,080
Stored parameters of the GCP block 6,421,760

The distinction between stored depth (2 physical blocks) and unrolled depth (12 visits) is the whole point of the tied stack: the model performs the work of a 12-layer network while storing 2 layers' worth of weights.


6. Module C — the Persistent Memory System

The PMS is an external, differentiable, slot-addressed memory that persists across chunks within a sequence. It is part of the computation graph, not a cache around it: the memory read is injected into the coda, so what the memory holds at chunk j affects the output at chunk j and at every later chunk.

6.1 State and interface

bank ∈ R^{S×d_mem} = R^{256×256}          learnable initial memory
mem  ∈ R^{B×S×d_mem}                      per-sequence working state

A fresh sequence starts from the learnable bank, expanded across the batch and kept in the graph so that the bank itself receives gradient through the post-write read. The interface is:

v_read, mem_persistent = PMS(h_R ; mem)
h_R        : [B, M, 640]    final recurrent state of every chunk
v_read     : [B, M, 256]    raw memory-width read, one vector per chunk
mem_persistent : [B, 256, 256]  detached copy, suitable for carrying across turns

The read is returned at memory width, not model width. Projection into model width happens at the integration boundary (the coda), so the memory interface stays independent of the core's width.

6.2 Content addressing

The controller state addresses the bank by cosine similarity:

q_j      = W_q h_j                       W_q ∈ R^{256×640}
q̂_j      = q_j / (‖q_j‖ + ε)
m̂_s      = m_s / (‖m_s‖ + ε)             for every slot s
sim_{j,s} = cos(q̂_j, m̂_s)
w^c_{j,s} = softmax_s( β_write · sim_{j,s} )

β_write and β_read are learnable scalars initialized to 8.0; they set the sharpness of the softmax and therefore how selective the addressing is. The same normalized query is used for the write and the read, so a chunk reads back the content it just wrote.

6.3 Location addressing

Pure content addressing has no notion of where in the bank a value should live. A learned three-tap circular shift supplies a relative, translation- equivariant location correction:

k_j = softmax( W_shift h_j )             W_shift ∈ R^{3×640}
w_{j,s} = k_{j,−1} · m_{j,s−1} + k_{j,0} · m_{j,s} + k_{j,+1} · m_{j,s+1}

with indices taken modulo S. The taps are a softmax over three scalars, so the shifted weights remain a non-negative redistribution of the content weights, and the correction is applied to both the write weights and the read weights with the same kernel.

6.4 Forget-gate-based retention (FMD)

A learned free gate says how willing the controller is to release each slot:

g_{j,s} = σ( W_fmd h_j )                 W_fmd ∈ R^{256×640}
ρ_{j,s} = 1 − g_{j,s} · w_{j,s}

and the minimum-retention slot of every row is explicitly deallocated:

ρ_{j,s*} ← 0        where  s* = argmin_s ρ_{j,s}

Two details matter and are easy to get wrong:

  • Retention multiplies the whole slot, not only the erase term. A slot that is being forgotten is attenuated in its entirety, so a partially-written slot cannot survive by virtue of holding a stale value.
  • Deallocation is explicit. The minimum-retention address is set to exactly zero rather than to a small value, so at least one least-valuable address is reliably cleared on every write.

The free gate modulates by addressing usage, so a slot that is not being written to is retained even if the controller would in principle release it.

6.5 Write, then read

For each chunk j, in order:

erase_j = σ( W_erase h_j )               W_erase ∈ R^{256×640}
add_j   = tanh( W_add h_j )               W_add   ∈ R^{256×640}

m_j = ( 1 − w_j ⊗ erase_j ) ⊙ ρ_j ⊙ m_{j−1}  +  w_j ⊗ add_j
m_j[s*] ← 0                                (deallocated slot, exactly zero)

w^{read}_j = content+location addressing recomputed against m_j
v_j        = ( w^{read}_j )ᵀ m_j

The read is computed from the updated bank, not the pre-write bank. This is the "write before read" rule: the memory stays in the autograd graph through the read, and only the separately returned persistent copy is detached.

6.6 Sequential replay, and why it is not optional

Chunks are replayed in order, and chunk j's read depends only on h_j and on writes from chunks ≤ j. A later controller state can therefore never affect an earlier read.

The alternative — averaging all controller states and writing once — is strictly weaker and was found to leak future chunk states into earlier reads. It is also not equivalent in the other direction: the sequential form gives each chunk a distinct memory trajectory, so the memory content at chunk j reflects the refinement that happened at chunk j, not only the aggregate of the whole sequence. The semantic version of this module is 2 and is recorded in every checkpoint.

6.7 Prefix invariance

The FMD deallocation is applied at every chunk write, not once per pass. This is what guarantees that the read for a prefix chunk cannot depend on whether later chunks will eventually be appended: appending chunks appends writes, and a later write cannot retroactively alter an earlier read. The trade-off is a higher per-chunk deallocation rate than a single-write implementation, which is the price of the invariance.

6.8 Batch isolation

Every contraction in the addressing keeps the batch dimension explicit: q is [B, dm] and mem is [B, S, dm], so the similarity matrix is [B, S] and each row addresses only its own bank. Padded chunks neither write nor read, and their returned read is exactly zero.

6.9 Activation checkpointing of the bank

The bank is 256 × 256 = 65,536 elements. Retaining one full bank per chunk in the autograd graph would cost M × 65,536 elements — about 242 million elements at M = 3,693. The replay therefore runs under block activation checkpointing with a block size of 16 chunks:

  • only the bank state at block boundaries is retained;
  • one block is recomputed during the backward pass;
  • the recurrence itself is unchanged, and the cross-chunk gradient path is preserved exactly.

Checkpointing is enabled only when the bank is large enough to warrant it (S · d_mem ≥ 4096 elements) and only when gradients are being tracked. For small probe banks the ordinary autograd graph is both faster and simpler.

6.10 Parameter budget of the module

Component Shape Parameters
Initial bank 256 × 256 65,536
Query projection 256 × 640 163,840
Erase projection 256 × 640 163,840
Add projection 256 × 640 163,840
Free-gate projection 256 × 640 163,840
Shift kernel 3 × 640 1,920
Write/read sharpness 2 scalars 2
Total 722,818

The read projection into model width, 640 → 256, adds a further 163,840 parameters and is held outside the memory interface.


7. The Mamba-2 recurrence and its chunked evaluation

7.1 The recurrence

Both local stacks use Mamba-2 [3]. For each head h with state dimension d_state = 32:

S_t = exp(dt_t · A_h) · S_{t−1}  +  dt_t · B_t x_tᵀ
y_t = C_t · S_t

with A_h = −exp(A_log,h) and A_log,h initialized from A ~ U(1, 16), so each head's decay rate lies in (−16, −1). The timestep is computed through an explicit FP32 boundary:

dt_t = softplus( dt_raw,t + dt_bias )          computed in FP32

and the head's skip term is D_h y_t with D_h initialized to 1. The block closes with a gated RMSNorm and an output projection back to d_model.

7.2 The structured state-space duality chunk algorithm

Evaluating the recurrence token by token is sequential. The SSD formulation [3] re-expresses it as a blocked contraction. Split the sequence into chunks of length L (the implementation uses L = 256) and define, within a chunk, the cumulative log-decay

c_t = Σ_{s ≤ t} dt_s · A_h          (c_t ≤ 0, because dt > 0 and A_h < 0)

The intra-chunk contribution is then a single matrix product over the chunk:

y_t = C_t · ( exp(c_t) · S_n  +  Σ_{s ≤ t} exp(c_t − c_s) · dt_s · B_s x_sᵀ )

and the chunk-start state is obtained by the same formula evaluated at the chunk end. Crucially, the inter-chunk contribution to chunk n admits a closed form over all preceding chunks:

carry_n = Σ_{m < n} exp( c_{n−1}^{(n)} − c_m^{(m)} ) · W_m
W_m     = Σ_{s ∈ chunk m} dt_s · B_s x_sᵀ

so the entire scan reduces to a batched contraction over chunks and heads, with no sequential loop over tokens. This is the form the shipped pure-PyTorch implementation uses, and it is algorithmically the same computation as the fused kernel path; the two differ in the scan algorithm identifier recorded in the execution identity (§10.3), not in the mathematics.

7.3 Numerical stability constraints

Two constraints are properties of the mathematics, not of an implementation detail, and they constrain how the chunk algorithm may be written.

The intra-chunk factor must stay in the difference form. The factor exp(c_t − c_s) is bounded by 1 for s ≤ t, because c is non-increasing. The algebraically equivalent separable form exp(c_t) · exp(−c_s) is not safe in FP32: with A = −16, dt ≈ 0.05 and L = 256, the cumulative decay reaches c ≈ −205, and exp(+205) overflows to infinity.

The chunk-state carry must remain sequential. The alternative of accumulating the inter-chunk decay as a cumulative product is also unsafe: the decay products underflow to zero over long ranges, and the resulting 0/0 division produces NaN. The closed-form carry above is evaluated as a running update, not as a ratio of cumulative products.

Both constraints are enforced by the shipped implementation and are covered by the regression suite.


8. Objective functions and optimization

8.1 The total objective

L = L_ar  +  L_ratio  +  0.01 · L_act  +  0.01 · L_ent

Next-byte cross-entropy L_ar. Computed on every position whose target is valid and is not the PAD row:

L_ar = − (1/|Ω_ar|) Σ_{t ∈ Ω_ar} log softmax(logits_t)[x_{t+1}]

Bits per byte. The reported quality metric is computed over content bytes only (targets with row index < 256), so reserved control rows never dilute the number:

BPB = ( Σ_{t ∈ Ω_content} NLL_t / ln 2 )  /  |Ω_content|

Router ratio L_ratio. As defined in §4.5.

ACT loss L_act. As defined in §5.8.

Entropy-head loss L_ent. A next-byte cross-entropy over the chunk-level distribution predicted by the entropy head in §5.7. The head exists to drive the depth budget, so it must be calibrated against an actual predictive distribution rather than against an unconstrained scalar.

8.2 Optimizer

The default optimizer is AdamW with base learning rate 8 × 10⁻⁴, betas (0.9, 0.95), ε = 10⁻⁸ and weight decay 0.1.

A config-gated alternative, muon_adamw, follows Moonlight [9]: hidden 2D matrices are updated by Muon (momentum 0.95, Nesterov, 5 Newton–Schulz orthogonalization steps, update RMS 0.2), while embeddings, heads, norms, biases, scalars, router matrices and memory tables stay on AdamW. This path is not the shipped default; it exists behind a configuration flag so that the two can be compared under an identical recipe.

8.3 Numerical precision

Quantity Precision
Compute BF16 autocast (optional; FP32 is the compatibility default)
Master weights FP32
Optimizer state FP32
Checkpoint weights FP32
Reported losses and telemetry FP32
Mamba-2 dt boundary FP32, computed explicitly as softplus(dt_raw + dt_bias)

BF16 mode does not use an FP16 gradient scaler. The recurrent kernel's timestep boundary is the one place where the timestep is computed in FP32 unconditionally, because dt enters the state decay as an exponent and an underflowed or rounded timestep compounds over a chunk.


9. Parameter budget

The total is 49,998,611 stored parameters. The ceiling is 50,000,000, and the configuration is validated to stay under it.

9.1 By subsystem

Subsystem Parameters Share
Core (IRC + GCP) 45,138,833 90.28%
Hierarchical Byte Interface 3,973,120 7.95%
Persistent Memory System 722,818 1.45%
Memory read projection (640 → 256) 163,840 0.33%
Total 49,998,611 100.00%

9.2 Core, in detail

Component Parameters
Prelude (2 blocks, RoPE) 12,843,520
Looped stack (2 DeepLoop blocks, NoPE) 12,846,080
GCP replacement block (1 block, NoPE) 6,421,760
Coda (2 blocks, NoPE) 12,843,520
Entropy vocabulary head (272 × 640 + bias) 174,352
Recurrent index embedding (8 × 640) 5,120
ACT head (640 + 1) 641
Loop-entry RMSNorm 640
Entropy RMSNorm 640
Terminal RMSNorm 640
Parcae terms (logA, δ_raw, B_mem) 1,920
Total 45,138,833

9.3 Hierarchical Byte Interface, in detail

Component Parameters
Local encoder (4 × Mamba-2 at d_local = 256) 1,660,256
Local decoder (4 × Mamba-2 at d_local = 256) 1,660,256
Cross-attention to chunk states 294,912
Byte embedding (tied to the output head) 69,632
Dechunking upsampler (EMA + zero-initialised skip) 65,792
QR-hash n-gram channel 64,960
Router (W_q, W_k) 131,072
FoNE number channel (projection + LSD embedding) 25,088
SpaceByte expansion vector 384
Encoder / decoder / head RMSNorms 768
Total 3,973,120

9.4 Configuration summary

Quantity Value
Output vocabulary rows 272 (256 bytes + 16 reserved)
Byte-resolution width d_local 256
Core width d_model 640
Attention heads / KV groups (core) 10 / 2
Feed-forward width 2,832
Prelude / looped / coda block counts 2 / 2 / 2
Maximum recurrent rounds R 8
GCP replacement rounds 3, 6
DeepLoop exponent p 0.5
Entropy budget a, b 2.0, 6.0
Digit-chunk budget floor 4
ACT threshold / weight 0.95 / 0.01
Entropy-head weight 0.01
Router target ratio 4.7
Chunk ceiling 8,192
Mamba-2 expansion / head dim / state dim / conv width 2 / 64 / 32 / 4
Mamba-2 local head count 8
PMS slots / slot width 256 / 256
QR-hash orders / table size / quotient m / row width 3, 4, 5 / 16,000 / 128 / 64
FoNE integer / fractional periods 15 / 2

10. Verification properties

The following are guarantees of the implementation, each backed by a regression in the project's test suite. They are stated as properties of the model's contract, because a model whose semantics silently drift is not the same model.

10.1 Strict byte causality

Position t may depend on positions ≤ t and on nothing else. This is enforced structurally rather than checked after the fact:

  • the router compares q_t with k_{t−1};
  • the cross-attention mask admits only chunks j ≤ seg(t);
  • the memory read at chunk j depends only on h_j and on writes from chunks ≤ j;
  • the FoNE numeric parser commits from the current and past bytes only.

10.2 Padding correctness

PAD positions are inert at every stage. They are excluded from the embedding contribution, masked out of every attention, receive a chunk budget of 0, neither write to nor read from memory, and are excluded from every loss denominator. A row that begins with padding still gives its first valid byte ownership of the initial chunk.

10.3 Batch isolation

Each sequence addresses only its own memory bank; chunk indices, router statistics and losses are computed per row. A batch of size 1 and a batch of size B produce identical results for a given row.

10.4 Execution identity and fail-closed resume

Every checkpoint records an execution identity describing the numerical environment that produced it:

mamba_backend              mamba_scan_algorithm          device_type
torch_version              cuda_version                  driver_version
gpu_name                   gpu_capability                gpu_uuid
mamba_ssm_version          causal_conv1d_version         triton_version
deterministic_algorithms_enabled
cudnn_deterministic        cudnn_benchmark
cuda_matmul_allow_tf32     cudnn_allow_tf32
float32_matmul_precision   cublas_workspace_config

A resume compares the saved identity against the current one over a required field list and refuses to proceed if any required field differs or is missing. The scan-algorithm identifier is on that list: ssd_chunked for the pure-PyTorch chunked evaluation of §7.2, official_chunked for the fused kernel path. A checkpoint written before that field existed is treated as a difference and the resume is refused, rather than silently crossing an algorithmic change. The same applies to the backend: a torch run refuses to resume on an official backend and vice versa.

The rationale is that a bit-exact resume is only meaningful if the numerical environment is identical. A resume that silently crosses a backend change produces a run whose losses are not comparable with its own earlier history, which is worse than a refusal.

10.5 Checkpoint format and companions

Each checkpoint is a pair:

File Content
ckpt_step<N>.safetensors Model weights in FP32, with the metadata block below
ckpt_step<N>.resume.pt Optimizer state, scheduler state, RNG state, data-pipeline state and the exact-resume bookkeeping

The safetensors metadata records:

format_version                architecture                 checkpoint_step
parameter_count               model_fingerprint            model_config_fingerprint
pms_semantic_version          fone_semantic_version         fone_prefix_encoding_revision
training_precision            bundle_id                    resume_file
resume_sha256                 created_at                   model_config
execution_identity

The resume companion is written and digested first, and its SHA-256 is committed inside the safetensors metadata; the weight file is then published. A crash between the two replacements leaves a pair whose companion digest no longer matches the metadata, and that pair fails closed on load rather than resuming from mismatched state.

Legacy .pt weight files are accepted only when explicitly marked trusted, and they carry semantic warnings: they may not contain the current PMS semantics version or FoNE semantics version, and a legacy file cannot support an exact resume.

10.6 Numerical parity of the optimised kernels

Three hot paths were rewritten for speed — the persistent-memory replay, the Mamba-2 scan, and the upsampler's EMA recurrence. The rewrites are verified against frozen reference implementations of the pre-optimisation code:

  • FP32 agreement to 4.7 × 10⁻⁷ … 1.2 × 10⁻⁶ relative on values and on intermediate tensors, with the worst parameter gradient at 1.07 × 10⁻⁵;
  • agreement on padded batches and on prefix invariance;
  • the upsampler's EMA arithmetic is bitwise identical;
  • in BF16 the model-level logits differ by up to 5.24 × 10⁻³ relative, which is at the level of BF16 epsilon for a reassociated summation order. The FP32 parity above is the tighter statement; the BF16 figure is reported because it is what an end-to-end mixed-precision comparison actually shows.

11. Published artifacts

11.1 Checkpoint bundles

Every published checkpoint is an immutable bundle addressed by a bundle identifier, containing the weight file, the exact-resume companion, and the run's metric log. Bundle payloads live under bundle-specific immutable paths; nothing inside a bundle is ever overwritten.

statitic/runs/<run-id>/bundles/<bundle-id>/ckpt_step<N>.safetensors
statitic/runs/<run-id>/bundles/<bundle-id>/ckpt_step<N>.resume.pt
statitic/runs/<run-id>/bundles/<bundle-id>/artifacts/training_metrics.jsonl

11.2 Immutable per-step pointers

Each completed step publishes a pointer file (format version 4) that names the bundle and commits to the artifacts it contains:

{
  "format_version": 4,
  "bundle_id": "<bundle-id>",
  "immutable_pointer_path": "statitic/runs/<run-id>/steps/step_<N>.json",
  "metadata": { "...": "run, recipe, backend, and execution metadata" },
  "artifacts": {
    "training_metrics.jsonl": {
      "bytes": 3624594,
      "remote_path": "statitic/runs/<run-id>/bundles/<bundle-id>/artifacts/training_metrics.jsonl",
      "sha256": "<digest>"
    }
  }
}

Pointers are published last, after the bundle payload is complete, so a pointer that exists always refers to a fully written bundle. Pointers are immutable: a step is published once.

latest.json is a convenience alias only. It is mutable, it is written after all pointers, and no recovery path reads it — recovery reads the immutable per-step pointers, so a stale or partially written alias can never redirect a resume.

11.3 Release archive

The source release is distributed as a single archive. Its SHA-256 digest and member count are published only in an external manifest that is excluded from the archive itself, so the archive cannot contain a self-referential digest. The build fails closed if any archived file restates the archive's own hash or member count, because such a statement can never be true at the moment it is read.


12. Engineering characteristics

Three hot paths dominate the model's cost, and all three were rewritten after profiling. The measurements below were taken on a single consumer-class accelerator and are not target-device figures; the ratios are the transferable part.

Rewrite Effect
Persistent-memory replay: five position-wise projections hoisted into one batched GEMM each; per-chunk slices replaced by unbinds; einsum → bmm; where → masked_fill; padding masking skipped when a batch has no padding 1.70× forward+backward
Mamba-2 scan: the sequential token loop replaced by the chunked SSD evaluation of §7.2 11.2× forward+backward, 3.3× less peak memory
Upsampler EMA: per-chunk slicing and in-place writes replaced by unbind/stack bitwise-identical arithmetic

End to end at a 4,096-byte context, the combined effect is a 1.87× reduction in step time and a reduction in peak allocation from 1,030 MB to 739 MB.

The persistent-memory replay dominates the step: at 4,096 bytes it accounts for roughly 84% of the wall time, of which the backward pass is the larger half. Its backward pass issues on the order of 39 autograd nodes per chunk. A config-bound policy that disables the replay's internal activation checkpointing was measured at a further 1.75× on the memory module alone, at the cost of roughly 1.23 MB of additional memory per chunk; at 16,384 bytes that extrapolates to about +4.5 GB, which is affordable on a large-memory device but not on a small one. The shipped default keeps the checkpointing on.


13. Limitations and known findings

These are disclosed because they are properties of the current model, not because they are convenient to state.

13.1 The learned halting head and the deterministic budget have each collapsed to a constant

In a published checkpoint of this architecture, both depth mechanisms settled onto constant values rather than adapting per chunk. At one validation point the executed depth was exactly 6.000 for every chunk with the deterministic budget saturated at 1.000; at two later validation points the executed depth was exactly 3.000 with every chunk halting early. The learned head was live and firing, but it was firing a constant.

The structural reason is visible in the design: the learned ACT controller can only stop a chunk earlier than the deterministic entropy budget allows, so whenever the sampled maximum R falls below the deterministic budget, the learned head is disabled by construction and every reported depth is an artifact of r_j = clip(ceil(a + b·H_j), 1, r_max). In the run in question, R was sampled per step and the deterministic budget for the same chunk could exceed it.

13.2 The ACT target is self-referential

The halting target is derived from the head's own stopping decision. The head is therefore trained on a target that depends on its own output, which is a known source of degenerate solutions. The label rule in §5.8 was repaired twice for this reason; the shipped rule is the one stated there, and the regression suite probes the shipped loss through its gradient sign rather than re-implementing it.

13.3 A naming ambiguity in the telemetry

The flag router_converged means the chunk ceiling never bound — it is chunk_budget_dropped == 0. It does not mean the router's boundary rate converged to its target. In one published run the flag was true at a validation point where the achieved ratio was 7.03 against a target of 4.5, and false at another point where the gap was positive and smaller. The flag is retained for compatibility and should be read as chunk_budget_unbound.

13.4 The router ratio oscillates

The achieved boundary ratio was observed moving between 2.02 and 7.03 across four consecutive validation points against a target of 4.5, with the mean chunk count moving in the opposite direction between 2,321 and 8,072. The ratio regularizer is stationary at F = G = 1/n, but nothing in the current objective damps the oscillation itself.

13.5 The chunk ceiling binds

The ceiling of 8,192 chunks is enforced, not merely checked: when the router emits more candidate starts than the ceiling allows, the excess candidates are rejected and the count is reported, rather than aborting the run. The rejection is causal and exact, but the router's own probability is deliberately left untouched so that its statistics remain honest. The ceiling bound at two of four validation points in the run in question, at rejection fractions of 0.58 and 0.18 of the evaluated windows.

13.6 Greedy decoding is degenerate at this scale

The published checkpoint's greedy continuation repeats a short motif. Its next-byte distribution is nevertheless well formed: 4.556 bits/position of entropy, a mean top-1 probability of 0.1955, and an argmax profile that is English-shaped in its unigram frequencies. Sampled decoding at a reduced temperature produces recognisable English morphemes; at unit temperature it produces mostly printable bytes with occasional non-ASCII bytes. This is a capacity and exposure finding, not a wiring fault.

13.7 The recurrent rounds are sequential

The tied stack's rounds are executed one after another. LoopFold-style parallel prediction-and-correction scheduling [5] is not implemented, so the model's compute-per-parameter is paid serially.

13.8 Config-gated research variants

The following paths exist behind configuration flags, are absent from the shipped default, and are not covered by the guarantees above:

Variant Description
enc_attention_layers, dec_attention_layers Replace selected local Mamba-2 layers with causal full attention, giving a controlled SSM:attention ratio
hash_variant = "engram" Multi-head multiplicative-XOR n-gram lookup with contextual gating and a zero-initialized causal convolution, following the conditional-memory formulation [10] and the design of Qwen3.8-Flash-Next [11]
hash_variant = "mlp" An ordinary MLP over fixed sinusoidal features of the hash indices; no n-gram lookup row is trainable
hash_scheme = "mul_xor" Position-dependent multiplicative-XOR hash construction
progressive_write = True A gated progressive recurrent write, a local approximation of the gated update disclosed for GLM-5.4 [12]; the published material does not state an exact equation, so the adaptation is explicitly labelled as approximate
mamba_backend = "official" The fused kernel path instead of the pure-PyTorch chunked scan

13.9 Interface limits

The model is a byte-level next-byte predictor. It has no tool interface, no retrieval interface, no instruction interface and no multi-token output vocabulary. Every capability it has must be expressed in bytes.


14. References

All entries below were verified against the primary source.

[1] Hwang, Sukjun; Wang, Brandon; Gu, Albert. "Dynamic Chunking for End-to-End Hierarchical Sequence Modeling." arXiv:2507.07955, 2025. https://arxiv.org/abs/2507.07955

[2] Pagnoni, Artidoro; Pasunuru, Ram; Rodriguez, Pedro; Nguyen, John; Muller, Benjamin; Li, Margaret; Zhou, Chunting; Yu, Lili; Weston, Jason; Zettlemoyer, Luke; Ghosh, Gargi; Lewis, Mike; Holtzman, Ari; Iyer, Srinivasan. "Byte Latent Transformer: Patches Scale Better Than Tokens." arXiv:2412.09871, 2024. https://arxiv.org/abs/2412.09871

[3] Dao, Tri; Gu, Albert. "Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality." arXiv:2405.21060, 2024. Published at the 41st International Conference on Machine Learning (ICML 2024). https://arxiv.org/abs/2405.21060

[4] Li, Shuzhen; Zhang, Yifan; Guo, Jiacheng; Gu, Quanquan; Wang, Mengdi. "DeepLoop: Depth Scaling for Looped Transformers." arXiv:2607.13491, 2026. https://arxiv.org/abs/2607.13491

[5] Song, Feichen; Zeng, Boyi; Hao, Yiqin; Song, Shixiang; Li, He; Yang, Yizhou; Wang, Zitong; Liu, Yifan; He, Ziwei; Lin, Zhouhan. "LoopFold: Parallelizing Recurrent Depth in Looped Transformers." arXiv:2610.35556, 2026. https://arxiv.org/abs/2610.35556

[6] Tallec, Corentin; Ollivier, Yann. "Unbiasing Truncated Backpropagation Through Time." arXiv:1705.08209, 2017. https://arxiv.org/abs/1705.08209

[7] Zhou, Tianyi; Fu, Deqing; Soltanolkotabi, Mahdi; Jia, Robin; Sharan, Vatsal. "FoNE: Precise Single-Token Number Embeddings via Fourier Features." arXiv:2502.09741, 2025. https://arxiv.org/abs/2502.09741

[8] Huang, Hongzhi; Zhu, Defa; Wu, Banggu; Zeng, Yutao; Wang, Ya; Min, Qiyang; Zhou, Xun. "Over-Tokenized Transformer: Vocabulary is Generally Worth Scaling." arXiv:2501.16975, 2025. Published at the 42nd International Conference on Machine Learning (ICML 2025). https://arxiv.org/abs/2501.16975

[9] Liu, Jingyuan; Su, Jianlin; Yao, Xingcheng; Jiang, Zhejun; Lai, Guokun; Du, Yulun; Qin, Yidao; Xu, Weixin; Lu, Enzhe; Yan, Junjie; Chen, Yanru; Zheng, Huabin; Liu, Yibo; Liu, Shaowei; Yin, Bohong; He, Weiran; Zhu, Han; Wang, Yuzhi; Wang, Jianzhou; Dong, Mengnan; Zhang, Zheng; Kang, Yongsheng; Zhang, Hao; Xu, Xinran; Zhang, Yutao; Zhou, Xinyu; Yang, Zhilin. "Muon is Scalable for LLM Training." arXiv:2502.16982, 2025. https://arxiv.org/abs/2502.16982

[10] Cheng, Xin; Tian, Rui; Zeng, Wangding; Dai, Damai; Chen, Qinyu; Wang, Bingxuan; Xie, Zhenda; Huang, Kezhao; Yu, Xingkai; Deng, Chengqi; Zhou, Shangyan; Zhao, Chenggang; Hao, Zhewen; Li, Yukun; Zhang, Han; Zhang, Zhengyan; Wei, Yixu; Xu, M.Y; Zhang, Huishuai; Zhao, Dongyan; Liang, Wenfeng. "Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models." arXiv:2601.07372, 2026. https://arxiv.org/abs/2601.07372

[11] Qwen Team. "On the Design of Qwen3.8-Next Architecture." Official technical report, 2026. https://github.com/QwenLM/Qwen3.8-Flash-Next/blob/main/tech_report.pdf

[12] Z.ai. "GLM-5.4: Toward Generalized Coding with Our First Loop Transformer." Official research blog, 2026. https://z.ai/blog/glm-5.4


15. Citation

@misc{Inova,
    title = {{flare - an language models}},
    author = {{M.Khang, Internal Model, C}},
    year = {2026}
}

This readme and the repository it accompanies were produced by an internal model. The architecture, the mathematics and the verification claims above are stated without external endorsement.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Papers for Nihilux/Toys