Skip to main content

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
dew-1-hybrid DeltaNet, DeltaNet, attention, repeated causal LM (the default)
dew-1-hybrid-light DeltaNet, attention, attention, repeated causal LM, more attention
dew-1-dense attention only causal LM baseline
dew-1-enc-hybrid hybrid, bidirectional encoder (masked LM)
dew-1-enc-dense attention only, bidirectional encoder baseline
dew-1-nap, dew-1-napskip, dew-1-loop hybrid with the Nap mixture-of-experts feed-forward, skipping and looping research

The YellowMIST models (olaverse on Hugging Face) are built on Dew.

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.

Licence

Apache-2.0.

Metadata

Release files for dew-lm 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dew-lm 1.0.0
File Size Uploaded Provenance Actions
dew_lm-1.0.0.tar.gz 24.7 kB With provenance Details for dew_lm-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dew-lm 1.0.0
File Interpreter ABI Platform Actions
dew_lm-1.0.0-py3-none-any.whl Python 3 none any Details for dew_lm-1.0.0-py3-none-any.whl

Total release size: 51.6 kB

Release files / dew_lm-1.0.0.tar.gz

Download URL dew_lm-1.0.0.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2d0109814e1e160194a1acca991a30da13a4c3239e59c82efa04b5d40cb110f
BLAKE2b-256 checksum
How to use checksums
3317f96d69dce9e4ec1bfd38462a2911cc8248c48e4c37fef423c641919c888b
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 log

Release files / dew_lm-1.0.0-py3-none-any.whl

Download URL dew_lm-1.0.0-py3-none-any.whl
Size 26.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c4da5797b58aa1d7ad748e0236db24eb77d92953d4457ea084c9657862997ee
BLAKE2b-256 checksum
How to use checksums
717680e2ca72d6ff1e8deeb54ae39ddca70d614230db9aa04e33826573c338c9
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 log

Security for dew-lm 1.0.0

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.

Select from 2 files

Attestation for dew_lm-1.0.0.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page