Run this model with HF Jobs
Run ibm-research/ColD-Fusion 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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ibm-research/ColD-Fusion. 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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ibm-research/ColD-Fusion 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.
Instructions to use ibm-research/ColD-Fusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ibm-research/ColD-Fusion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ibm-research/ColD-Fusion")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ibm-research/ColD-Fusion") model = AutoModelForSequenceClassification.from_pretrained("ibm-research/ColD-Fusion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---language: entags:- exbertlicense: mit---# ColD Fusion modelFinetuned model that aims to be a great base model. It improves over RoBERTa base, trained on 35 datasets.Full details at [this paper](https://arxiv.org/abs/2212.01378).## Paper Abstract:Pretraining has been shown to scale well with compute, data size and data diversity. Multitask learning trains on amixture of supervised datasets and produces improved performance compared to self-supervised pretraining. Until now,massively multitask learning required simultaneous access to all datasets in the mixture and heavy compute resourcesthat are only available to well-resourced teams.In this paper, we propose ColD Fusion, a method that provides the benefits of multitask learning but leverages distributedcomputation and requires limited communication and no sharing of data. Consequentially, ColD Fusion can create a synergisticloop, where finetuned models can be recycled to continually improve the pretrained model they are based on. We show thatColD Fusion yields comparable benefits to multitask pretraining by producing a model that (a) attains strong performance onall of the datasets it was multitask trained on and (b) is a better starting point for finetuning on unseen datasets. We findColD Fusion outperforms RoBERTa and even previous multitask models. Specifically, when training and testing on 35 diverse datasets,ColD Fusion-based model outperforms RoBERTa by 2.45 points in average without any changes to the architecture.### How to useYou can use this model directly with a pipeline for masked language modeling:```python>>> from transformers import pipeline>>> unmasker = pipeline('fill-mask', model='ibm/ColD-Fusion')>>> unmasker("Hello I'm a <mask> model.")```Here is how to use this model to get the features of a given text in PyTorch:```pythonfrom transformers import RobertaTokenizer, RobertaModeltokenizer = RobertaTokenizer.from_pretrained('ibm/ColD-Fusion')model = RobertaModel.from_pretrained('ibm/ColD-Fusion')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='pt')output = model(**encoded_input)```and in TensorFlow:```pythonfrom transformers import RobertaTokenizer, TFRobertaModeltokenizer = RobertaTokenizer.from_pretrained('ibm/ColD-Fusion')model = TFRobertaModel.from_pretrained('ibm/ColD-Fusion')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='tf')output = model(encoded_input)```## Evaluation resultsSee full evaluation results of this model and many more [here](https://ibm.github.io/model-recycling/roberta-base_table.html)When fine-tuned on downstream tasks, this model achieves the following results:### BibTeX entry and citation info```bibtex@article{ColDFusion,author = {Shachar Don-Yehiya, Elad Venezian, Colin Raffel, Noam Slonim, Yoav Katz, Leshem ChoshenYinhan Liu and},title = {ColD Fusion: Collaborative Descent for Distributed Multitask Finetuning},journal = {CoRR},volume = {abs/2212.01378},year = {2022},url = {https://arxiv.org/abs/2212.01378},archivePrefix = {arXiv},eprint = {2212.01378},}```<a href="https://huggingface.co/exbert/?model=ibm/ColD-Fusion"><img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png"></a>
README.md+81