defunct-datasets/the_pile_openwebtext2
Updated • 270 • 15
Run nthngdy/headless-bert-bs64-owt2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/nthngdy/headless-bert-bs64-owt2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/nthngdy/headless-bert-bs64-owt2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use nthngdy/headless-bert-bs64-owt2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="nthngdy/headless-bert-bs64-owt2") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("nthngdy/headless-bert-bs64-owt2")
model = AutoModelForMaskedLM.from_pretrained("nthngdy/headless-bert-bs64-owt2", device_map="auto")This model is a bert-base architecture trained on OpenWebText-2 using the Contrastive Weight Tying objective.
BibTeX:
@misc{godey2023headless,
title={Headless Language Models: Learning without Predicting with Contrastive Weight Tying},
author={Nathan Godey and Éric de la Clergerie and Benoît Sagot},
year={2023},
eprint={2309.08351},
archivePrefix={arXiv},
primaryClass={cs.CL}
}