Add model card for ELF

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +59 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: text-generation
4
+ ---
5
+
6
+ # ELF: Embedded Language Flows
7
+
8
+ ELF is a class of continuous diffusion language models based on continuous-time Flow Matching, presented in the paper [ELF: Embedded Language Flows](https://huggingface.co/papers/2605.10938).
9
+
10
+ Unlike existing diffusion language models (DLMs), ELF predominantly stays within the continuous embedding space until the final time step, where it maps to discrete tokens using a shared-weight network. This formulation makes it straightforward to adapt established techniques from image-domain diffusion models, such as classifier-free guidance (CFG).
11
+
12
+ - **Paper:** [ELF: Embedded Language Flows](https://huggingface.co/papers/2605.10938)
13
+ - **Repository:** [https://github.com/lillian039/ELF](https://github.com/lillian039/ELF)
14
+
15
+ ## Inference and Evaluation
16
+
17
+ This checkpoint can be used with the official JAX implementation. To verify the setup or run evaluation, follow these steps:
18
+
19
+ ### Initialization
20
+
21
+ ```bash
22
+ git clone https://github.com/lillian039/ELF
23
+ cd ELF
24
+ pip install -r requirements.txt
25
+ ```
26
+
27
+ ### Running Evaluation
28
+
29
+ To evaluate the model on unconditional generation (OpenWebText):
30
+
31
+ ```bash
32
+ cd src/
33
+
34
+ # For ELF-B (105M)
35
+ python eval.py \
36
+ --config configs/training_configs/train_owt_ELF-B.yml \
37
+ --checkpoint_path embedded-language-flows/ELF-B-owt
38
+ ```
39
+
40
+ To evaluate on conditional tasks like summarization (XSum):
41
+
42
+ ```bash
43
+ cd src/
44
+
45
+ python eval.py \
46
+ --config configs/training_configs/train_xsum_ELF-B.yml \
47
+ --checkpoint_path embedded-language-flows/ELF-B-xsum
48
+ ```
49
+
50
+ ## Citation
51
+
52
+ ```bibtex
53
+ @article{elf2026,
54
+ title={ELF: Embedded Language Flows},
55
+ author={Hu, Keya and Qiu, Linlu and Lu, Yiyang and Zhao, Hanhong and Li, Tianhong and Kim, Yoon and Andreas, Jacob and He, Kaiming},
56
+ journal={arXiv preprint arXiv:2605.10938},
57
+ year={2026}
58
+ }
59
+ ```