Triadic Gated DeltaNet (E=2) 400M, 64k
a compact language model with long context support up to 64k tokens
1 min readupdated
The model is based on the new Triadic Linear Attention architecture (three-dimensional recurrent states for modeling long sequences). The 381.9M parameter version uses the Llama-2 tokenizer and was pre-trained on 20B tokens of FineWeb-Edu, followed by context extension up to 64k tokens. It is suitable for linear attention experiments and long text processing on specialized hardware.
Key features
- Triadic Linear Attention architecture with context support up to 64k tokens.
- 24 layers, a hidden dimension of 1024, and 8 attention heads.
- Training on 20B tokens of FineWeb-Edu with an extension on 2B tokens.
- Use of the Llama-2 tokenizer.
What you can do
- Test the model in long-context text generation tasks using the official repository.
- Study the behavior of linear attention on long sequences (PG19, NIAH).
- Run fine-tuning and inference experiments based on the checkpoint.
Example
import json
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
from model import GPT, GPTConfig
repo = "OliverSieberling/triadic-gdn-e2-400m-64k"
model = GPT(GPTConfig(**json.load(open(hf_hub_download(repo, "config.json")))))
model.load_state_dict(load_file(hf_hub_download(repo, "model.safetensors")))
model = model.cuda().eval()Read more
DetailsBenchmarks (seed 1337): WikiText 11.07, Recall 28.5, NIAH 19.4
Hardware requirements: requires an H100 GPU and specialized code from the TriadicLinearAttention repository
Parameters: 381.9M parameters, dimension E = 2










Comments