Frontier releases · 6
Qwen3.8 Flash Next
51 billion parameters it looks up
Official release: .byhand release:
Qwen3.8 Flash Next has 177 billion parameters, and 51 billion of them are one lookup table.
The table holds 320 million rows of 160 numbers. Once, before its second layer, the model reads 16 rows for each token and adds them in. No learned weight picks the rows: arithmetic on the token ids does, a hash of the token and the one or two before it.
Qwen released it on August 24 as "an experimental preview of the architecture that will underpin Qwen4". By Qwen's count it is 125B parameters with 6B active per token, plus the 51B table. By Qwen's own benchmarks it scores 62.5 on SWE-bench Pro, against 53.4 for Claude Opus 4.6. A hashed n-gram memory was proposed in DeepSeek's Engram (January 2026), widened residual streams in ByteDance's Hyper-Connections (2024).
The table sits before the second layer; the four streams run through all 48.
- 1
The hash
ids * m0 => p0
one * m1 => p1
two * m2 => p2
p0 xor p1 => bigram
bigram xor p2 => trigram
bigram, trigram | concat g => mixed
mixed mod primes => slot
slot + offsets => rowsone and two are the ids one and two tokens back. Each id is multiplied by a fixed odd number and the products are combined bit by bit, so a pair of tokens and a triple each become one large integer. Its remainder by a prime picks a row. There are eight primes for the pair and eight for the triple, so 16 rows: two phrases that collide in one are unlikely to collide in all of them.
A row costs almost nothing. It is read, not multiplied, and 16 rows of 160 numbers are 5 KB, so the table can live in slower memory than the layers; Qwen calls it "more amenable to offloading" than experts. What a common phrase means can be fetched rather than worked out again by the layers. The row is not taken on trust: each stream compares it with its own state, and a sigmoid of that match decides how much gets in.
xor and mod were added to .byhand for this model.
Four streams
block Sublayer(inner=DeltaNet) x[b1,s4096,m4,d2560] => y[s,m,d] {
x | Hyper => collapsed, back
collapsed | inner => out
out * back => wide
x + wide => y
}The hidden state is four vectors of 2560, not one. Every half-layer, attention or the experts, reads a single blend of the four (collapsed, weighted element by element), computes once at width 2560, and writes its output back into each stream with a weight of its own (back, between 0 and 2). The layers stay as wide as before; only the residual is four times wider.
With one residual stream every layer writes into the same sum. With four, a layer can add to one stream and leave another nearly untouched, so what early layers found is kept apart from what later ones add. Qwen calls it a gated residual. It is simpler than GLM-5.3-Flash's streams: no matrix mixing the four, no Sinkhorn.
We checked the program against Transformers' own Qwen3.8 code, at a reduced size.