Request it for the seed queue, or get it now with pf download kennethgrace/Qwen3.5-4B-LumenGDN-Healed (CLI guide).
kennethgrace/Qwen3.5-4B-LumenGDN — Qwen3.5 rebuilt in Lumen's shapes, its native linear-attention stack transplanted as Gated DeltaNets and its remaining attention layers folded into the same — trained back into coherence. The surgery is documented on that sibling; this repo is what happened after it.
32 layers — 24 the donor's own linear_attention blocks, transplanted
exactly, and 8 folded from full_attention — d_model=2560, 32 states of
width d_k=128 / d_v=128, 4,584,679,552 parameters in float32. Every
layer is a Gated DeltaNet. Unlike the SmolLM2 collapse the feed-forward is
kept — the donor's own GDN layers have one, so a folded layer keeps its own
rather than being folded into the mixer.
Step 7,629, validation loss 1.9489 — perplexity 7.021 — on a held-out slice of the same mixture it trained on.
| step | in run | val loss | val ppl | segment |
|---|---|---|---|---|
| 100 | 100 | 2.1306 | 8.42 | qwen35-4b-heal |
| 800 | 800 | 2.1454 | 8.55 | qwen35-4b-heal |
| 1,500 | 1,500 | 2.1192 | 8.32 | qwen35-4b-heal |
| 2,200 | 2,200 | 2.0941 | 8.12 | qwen35-4b-heal |
| 2,900 | 2,900 | 2.0660 | 7.89 | qwen35-4b-heal |
| 3,600 | 3,600 | 2.0392 | 7.68 | qwen35-4b-heal |
| 4,200 | 4,200 | 2.0227 | 7.56 | qwen35-4b-heal |
| 4,900 | 4,900 | 2.0007 | 7.39 | qwen35-4b-heal |
| 5,600 | 5,600 | 1.9803 | 7.24 | qwen35-4b-heal |
| 6,300 | 6,300 | 1.9665 | 7.15 | qwen35-4b-heal |
| 7,000 | 7,000 | 1.9555 | 7.07 | qwen35-4b-heal |
| 7,629 | 7,629 | 1.9489 | 7.02 | qwen35-4b-heal |
The first column counts steps across the whole lineage; the second is the
number the run itself used, which restarts at zero whenever a segment began
as a --branch. Landmarks only — 77 validation points were measured,
and all of them are in the record below. Weights are staged-07629.pt from
qwen35-4b-heal.
One segment, qwen35-4b-heal: 7,629 steps of 65,536 tokens, 500M tokens of
longform1b at 4,096, retokenised with Qwen3.5's 248,320-id vocabulary.
Only the graft trained: freeze_native froze the 24 transplanted
linear_attention blocks and freeze_basis froze the embeddings, every norm
and the tied head, so 986.7M of 4,584.7M parameters moved. AdamW, peak LR
2e-4 cosine to 2e-5, warmup 350. The run held its frozen blocks in bf16; these
weights are its graft laid over the fp32 frozen blocks, and in fp32 they read
1.9486 against the run's 1.9489.
The donor and this model were scored in one process on identical windows:
eighty 512-token windows per domain, 40,960 tokens each, every window read
from a fresh state. The donor is creatures/qwen35-4b-text, Qwen3.5-4B-Base
with its multimodal organs amputated, which is the thing this creature was
actually cut from. Four domains are in the training mixture, five it never
contained, and arxiv_abstracts was dropped from it.
| domain | in the mixture? | donor | this | × donor |
|---|---|---|---|---|
| ubuntu_irc | yes | 7.60 | 6.90 | 0.91 |
| pubmed | yes | 8.47 | 8.65 | 1.02 |
| stackexchange | yes | 7.50 | 8.66 | 1.16 |
| stackv2_edu (code) | yes | 3.49 | 4.05 | 1.16 |
| wikiteam | no | 9.34 | 11.41 | 1.22 |
| arxiv_abstracts | dropped | 9.19 | 11.43 | 1.24 |
| uk_hansard | no | 11.76 | 14.98 | 1.27 |
| usgpo | no | 7.86 | 10.02 | 1.28 |
| uspto | no | 4.25 | 5.54 | 1.30 |
| github_archive | no | 9.58 | 12.98 | 1.36 |
Perplexity. 1.055× its donor in-mixture, 1.285× on the five unseen
registers, after 500M tokens. It beats its donor on ubuntu_irc and is within
2% of it on pubmed. The 0.8B line stood at 1.049× after its first 200M tokens
and reached 0.920× after 5.5B. The record is
record/qwen35-4b-heal/domains_7629.json.
It trained only at 4,096 tokens and has no cliff there. On single documents out to 8,192 tokens, scored beside its donor on the same windows (24 per corpus):
On 40 held-out windows of 8,192 tokens it reads 1.9231. The record is
record/qwen35-4b-heal/length_7629.json.
| branch | what it holds |
|---|---|
main, heal-longform1b-7629 |
this model, the 4K heal, and the state to build on |
heal-8k-3050 |
a 200M-token continuation at 8,192 tokens that came out worse on every measure |
The continuation reads 1.9545 at 8,192 against this model's 1.9231, and
1.109× / 1.350× its donor by domain. It is kept for its record, and its card
says what went wrong. For part of 2026-11-24 main pointed at it; a pull
pinned to revision="heal-longform1b-7629" was never affected.
The optimizer state, by policy. This repository holds states a run
begins from, never states a run passes through. Adam's moments exist to serve
--resume, which is a mid-run concept — so they are never uploaded. That is
not a size tradeoff made once; a checkpoint's moments are simply not part of
what makes it a starting point.
A pull is therefore always a --branch: fresh moments, step 0, fresh warmup
and cosine. Correct for a new corpus, a new sequence length or a new schedule,
and deliberately incapable of continuing the epoch that produced these
weights.
The training curve and validation trace ship with the weights:
record/qwen35-4b-heal/log.jsonl is per-step loss, learning rate, gradient norm and throughput;
validation.jsonl carries loss plus a fixed sample set at every validation
point, so what the model said at each step is recoverable, not just what it
scored. run.json is the full argument set and corpus composition.
pip install torch safetensors huggingface_hub tokenizers
pip install git+https://github.com/latticedynamics/lumen.git@v0.8.1
import sys, torch
from huggingface_hub import snapshot_download
from tokenizers import Tokenizer
path = snapshot_download("kennethgrace/Qwen3.5-4B-LumenGDN-Healed") # revision="<branch>" for a state that will not move
sys.path.insert(0, path)
from modeling_qwen35_lumen import load_creature
device = "cuda" if torch.cuda.is_available() else "cpu"
model, manifest = load_creature(path, device=device)
model.eval()
tok = Tokenizer.from_file(f"{path}/tokenizer.json")
ids = tok.encode("The history of the Roman Empire").ids
with torch.no_grad():
for _ in range(40):
logits = model(torch.tensor([ids], device=device)) # (B, T) -> (B, T, vocab)
ids.append(logits[0, -1].argmax().item())
print(tok.decode(ids))
If the repository is private, run hf auth login first. The loop is greedy
and re-reads the whole sequence for every new token: a demonstration, fine for
a few dozen tokens and slow for long outputs.
@v0.8.1 pins the Lumen release this loader was verified against. An
unpinned install follows Lumen's main branch, and if Lumen's API changes the
loader breaks with nothing at install time to say why.
This is not a transformers architecture and will not load with
AutoModelForCausalLM. modeling_qwen35_lumen.py is standalone and depends only
on torch, safetensors and lumen; tokenizers is only for the prompt.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo kennethgrace/Qwen3.5-4B-LumenGDN-Healed ./model-foldermodel-00003-of-00005.safetensors 3.9 GBmodel-00004-of-00005.safetensors 3.9 GBmodel-00002-of-00005.safetensors 3.9 GBmodel-00001-of-00005.safetensors 3.9 GBmodel-00005-of-00005.safetensors 2.6 GBkennethgrace/Qwen3.5-4B-LumenGDN