data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language
Paper โข 2202.03555 โข Published
Run arxyzan/data2vec-roberta-base 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/arxyzan/data2vec-roberta-base. 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/arxyzan/data2vec-roberta-base 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 arxyzan/data2vec-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="arxyzan/data2vec-roberta-base") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("arxyzan/data2vec-roberta-base")
model = AutoModel.from_pretrained("arxyzan/data2vec-roberta-base", device_map="auto")A RoBERTa model trained using Data2Vec based on the paper data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language.
This model is provided here for this repo but was NOT trained using that codebase but instead, copied from facebook/data2vec-text-base for convenience and reproducibility.
@misc{https://doi.org/10.48550/arxiv.2202.03555,
doi = {10.48550/ARXIV.2202.03555},
url = {https://arxiv.org/abs/2202.03555},
author = {Baevski, Alexei and Hsu, Wei-Ning and Xu, Qiantong and Babu, Arun and Gu, Jiatao and Auli, Michael},
keywords = {Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language},
publisher = {arXiv},
year = {2022},
copyright = {arXiv.org perpetual, non-exclusive license}
}