ameyg910 commited on
Commit
3cc40d9
·
verified ·
1 Parent(s): 5579c53

docs: model card

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: aether
4
+ tags:
5
+ - diffusion
6
+ - masked-diffusion
7
+ - language-model
8
+ - mdlm
9
+ datasets:
10
+ - wikitext
11
+ pipeline_tag: text-generation
12
+ ---
13
+
14
+ # ameyg910/aether-55m
15
+
16
+ A masked (absorbing-state) diffusion language model trained with
17
+ [Aether](https://github.com/ameyg910/aether).
18
+
19
+ Unlike an autoregressive model, generation does not proceed left to right. The
20
+ model starts from an all-`[MASK]` sequence and unmasks progressively, so the
21
+ number of forward passes (**NFE**) is a knob rather than a function of sequence
22
+ length.
23
+
24
+ ## Model details
25
+
26
+ | | |
27
+ | --- | --- |
28
+ | Architecture | bidirectional DiT denoiser, AdaLN-Zero time conditioning |
29
+ | Objective | MDLM / SUBS masked-diffusion loss |
30
+ | Parameters | 55,543,634 |
31
+ | Width / depth / heads | 384 / 6 / 6 |
32
+ | Context length | 1024 |
33
+ | Vocabulary | 50,258 (GPT-2 + `[MASK]`) |
34
+ | Training steps | 30,000 |
35
+ | Tokens seen | 3,932,160,000 |
36
+ | License | Apache-2.0 |
37
+
38
+ ## Evaluation
39
+
40
+ Measured with `aether-eval`; see
41
+ [the evaluation protocol](https://github.com/ameyg910/aether/blob/main/docs/evaluation.md).
42
+
43
+ | metric | value |
44
+ | --- | --- |
45
+ | NELBO (nats/token) | 7.136 |
46
+ | Bits per dim | 10.3 |
47
+ | Perplexity (upper bound) | 1257 |
48
+ | MAUVE | 0.999 |
49
+ | distinct-2 | 0.971 |
50
+ | Sampler / steps | ancestral / 128 |
51
+
52
+ > **Perplexity here is an upper bound, not an exact likelihood.** A masked
53
+ > diffusion model has no exact factorization of `log p(x)`; what is reported is a
54
+ > Monte Carlo estimate of a variational bound. It is comparable to other diffusion
55
+ > models evaluated the same way, and **not** directly comparable to an
56
+ > autoregressive model's exact perplexity, which would flatter the AR model.
57
+
58
+ ## Usage
59
+
60
+ Serve it:
61
+
62
+ ```bash
63
+ pip install "aether-dlm[serve]"
64
+ aether-serve serve.model_version=hf:ameyg910/aether-55m@v1.0.0
65
+
66
+ curl -X POST localhost:8000/generate \
67
+ -H 'content-type: application/json' \
68
+ -d '{"n_samples":2,"length":64,"steps":64,"sampler":"ancestral"}'
69
+ ```
70
+
71
+ Or load it directly:
72
+
73
+ ```python
74
+ import torch
75
+ from huggingface_hub import hf_hub_download
76
+ from aether.models.loading import build_model_from_checkpoint
77
+ from aether.diffusion.samplers import sample
78
+
79
+ path = hf_hub_download("ameyg910/aether-55m", "latest.pt", revision="v1.0.0")
80
+ model, config = build_model_from_checkpoint(
81
+ torch.load(path, map_location="cpu", weights_only=False)
82
+ )
83
+ out = sample(model.eval(), batch=2, length=64,
84
+ mask_token_id=config.vocab_size - 1, steps=64)
85
+ print(out.tokens.shape, "NFE:", out.nfe)
86
+ ```
87
+
88
+ ## Intended use
89
+
90
+ Research and demonstration of masked diffusion language modelling: studying the
91
+ NFE-quality tradeoff, comparing sampling strategies, and as a fixture for
92
+ inference-serving work.
93
+
94
+ ## Limitations
95
+
96
+ - **Small and undertrained.** 55,543,634 parameters and roughly
97
+ 3,932,160,000 tokens. It captures vocabulary and local phrasing, not
98
+ long-range coherence or factual grounding.
99
+ - **Unconditional.** There is no prompt input; it generates from an all-`[MASK]`
100
+ sequence. Prompt-conditioned infilling is a natural extension the architecture
101
+ supports but this release does not implement.
102
+ - **No alignment of any kind.** No instruction tuning, no safety filtering, no
103
+ RLHF. Output may be offensive, false, or nonsensical.
104
+ - **Inherits its corpus.** Trained on wikitext, and reproduces the biases and
105
+ errors in it.
106
+
107
+ Not suitable for production text generation, question answering, or any use where
108
+ output correctness matters.
109
+
110
+ ## Citation
111
+
112
+ ```bibtex
113
+ @software{aether,
114
+ author = {Gupta, Amey},
115
+ title = {Aether: a production platform for masked diffusion language models},
116
+ year = {2026},
117
+ url = {https://github.com/ameyg910/aether}
118
+ }
119
+ ```