Downloads · 30 days
2.1K
0% of all-time downloads
kuleshov-group/mdlm-owt
mdlm-owt is a fill-mask model from kuleshov-group. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
To use the pre-trained model for masked language modeling, use the following snippet:
Downloads · 30 days
2.1K
0% of all-time downloads
All-time downloads
650K
Public
Parameters
170M
679 MB on disk
Likes
23
Public
Click a slice to open those files.
.safetensors679 MB · 100%
From the Hugging Face model README
To use the pre-trained model for masked language modeling, use the following snippet:
from transformers import AutoModelForMaskedLM, AutoTokenizer
# See the `MDLM` collection page on the hub for list of available models.
tokenizer = transformers.AutoTokenizer.from_pretrained('gpt2')
model_name = 'kuleshov-group/mdlm-owt'
model = AutoModelForMaskedLM.from_pretrained(model_name)
For more details, please see our github repository: MDLM
The model, which has a context length of 1024 and is similar in size to GPT2-medium with approximately 130 million non-embedding parameters,
was trained using a forward diffusion process that generates inputs varying from fully masked to fully unmasked. Its objective is to
reconstruct the original input from these varying levels of masking, outputting logits in the process.
The training regimen comprised one million steps on the OpenWebText corpus, involving the processing of a total of 33 billion tokens.
For more details, please see our paper: Simple and Effective Masked Diffusion Language Models.
Please cite our work using the bibtex below:
BibTeX:
@inproceedings{
sahoo2024simple,
title={Simple and Effective Masked Diffusion Language Models},
author={Subham Sekhar Sahoo and Marianne Arriola and Aaron Gokaslan and Edgar Mariano Marroquin and Alexander M Rush and Yair Schiff and Justin T Chiu and Volodymyr Kuleshov},
booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},
year={2024},
url={https://openreview.net/forum?id=L4uaAR4ArM}
}
APA:
@software{Sahoo_Simple_and_Effective_2024,
author = {Sahoo, Subham Sekhar and Arriola, Marianne and Schiff, Yair and Gokaslan, Aaron and Marroquin, Edgar and Chiu, Justin T and Rush, Alexander and Kuleshov, Volodymyr},
doi = {10.48550/arXiv.2406.07524},
month = jun,
title = {{Simple and Effective Masked Diffusion Language Models}},
version = {arXiv:2406.07524v1},
year = {2024}
}
Subham Sekhar Sahoo ([email protected])