Dew
Dew is a small-model architecture family: Gated DeltaNet layers (a linear-time recurrent memory) mixed with attention,
with optional extras for thinking longer on hard words. It runs as a causal language model or as a bidirectional
encoder, plugs into Hugging Face transformers, and exports to ONNX.
pip install dew-lm # PyTorch only
pip install "dew-lm[hf]" # + transformers Auto classes
pip install "dew-lm[export]" # + ONNX export
from dew import DewForCausalLM, dew_config, fit_params
cfg = fit_params(dew_config("dew-1-hybrid", vocab_size=16384), 15_000_000) # size it to ~15M parameters
model = DewForCausalLM(cfg)
Presets
| Preset | Layers | Use | Status |
|---|---|---|---|
dew-1-hybrid |
DeltaNet, DeltaNet, attention, repeated | causal LM (the default) | stable |
dew-1-hybrid-light |
DeltaNet, attention, attention, repeated | causal LM, more attention | stable |
dew-1-dense |
attention only | causal LM baseline | stable |
dew-1-enc-hybrid |
hybrid, bidirectional | encoder (masked LM); used by the YellowMIST encoders | stable |
dew-1-enc-dense |
attention only, bidirectional | encoder baseline | stable |
dew-1-nap, dew-1-napskip, dew-1-loop |
hybrid with a Mixture-of-Experts feed-forward ("Nap"), with optional layer skipping and looping | larger models | research |
The research presets are where the full Dew design is heading (Mixture-of-Experts pays off at larger sizes). They are tested by the self-test but not yet trained at scale; their interfaces may change.
Results so far
A 3-seed pilot at 15M parameters, on West Africa text (the YellowMIST data), same data and training steps for both:
| Model | masked characters | mark restoration | punctuation F1 | capitals F1 |
|---|---|---|---|---|
dew-1-enc-hybrid |
65.89 ± 0.13 | 82.89 ± 0.04 | 36.67 ± 0.35 | 59.07 ± 0.59 |
| transformer encoder (same size) | 64.43 ± 0.19 | 82.44 ± 0.02 | 34.33 ± 1.10 | 57.07 ± 1.44 |
The hybrid wins every test by more than the seed spread. The full YellowMIST encoders and their results per language
are on Hugging Face (YellowMIST-Encoder-15M-<region>). Dew is a research
preview: tested at small sizes (about 15M parameters) so far, not yet at larger scales.
Checks
python -m dew.selftest # chunked == step-by-step maths, presets, Hugging Face round trip, ONNX export
On a GPU, flash-linear-attention (pip install "dew-lm[fast]") speeds up training; it is checked against the
PyTorch path when installed.
Built on
- Gated DeltaNet: Yang, Kautz and Hatamizadeh, Gated Delta Networks: Improving Mamba2 with Delta Rule (2024). Dew's DeltaNet layers follow this design; the PyTorch path is our own implementation.
- flash-linear-attention for the fast GPU kernels (optional).
Licence
Apache-2.0.
Metadata
Release files for dew-lm 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dew_lm-1.0.1.tar.gz | 25.9 kB | With provenance | Details for dew_lm-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dew_lm-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for dew_lm-1.0.1-py3-none-any.whl |
Total release size: 53.5 kB
Release files / dew_lm-1.0.1.tar.gz
| Download URL | dew_lm-1.0.1.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97cbffbdbf267eb59b7b69e1c2af30f5e09de3e9feb0ee2637a7c0143d3a91f9
|
|
BLAKE2b-256 checksum How to use checksums |
67997f2ce97fbee47c3f9702530f774be0dbb1ba83ba77692c89740f5003643e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / dew_lm-1.0.1-py3-none-any.whl
| Download URL | dew_lm-1.0.1-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5544398438789b3ca2789c5119b7aa5591fd321d732a13225ce0e1e8292ab96
|
|
BLAKE2b-256 checksum How to use checksums |
3fad676494553865e815fd5371338d03ca21f266e65afe934c69ae9d7488d826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for dew-lm 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dew_lm-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.