Run this model with HF Jobs
Run Elron/bleurt-tiny-512 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/Elron/bleurt-tiny-512. 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/Elron/bleurt-tiny-512 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 Elron/bleurt-tiny-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Elron/bleurt-tiny-512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Elron/bleurt-tiny-512")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Elron/bleurt-tiny-512") model = AutoModelForSequenceClassification.from_pretrained("Elron/bleurt-tiny-512", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
model documentation (#1)
Browse files- model documentation (795d54aa385bcd2df2832bc0dfae59618354fff4)
Co-authored-by: Nazneen Rajani <nazneen@users.noreply.huggingface.co>
123456789101110 unmodified lines22232425\n## BLEURTPytorch version of the original BLEURT models from ACL paper ["BLEURT: Learning Robust Metrics for Text Generation"](https://aclanthology.org/2020.acl-main.704/) byThibault Sellam, Dipanjan Das and Ankur P. Parikh of Google Research.The code for model conversion was originated from [this notebook](https://colab.research.google.com/drive/1KsCUkFW45d5_ROSv2aHtXgeBa2Z98r03?usp=sharing) mentioned [here](https://github.com/huggingface/datasets/issues/224).## Usage Example```pythonfrom transformers import AutoModelForSequenceClassification, AutoTokenizer10 unmodified linesscores = model(**tokenizer(references, candidates, return_tensors='pt'))[0].squeeze()print(scores) # tensor([-0.9414, -0.5678])```12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017110 unmodified lines182183184185186187188---tags:- text-classification- bert---# Model Card for bleurt-tiny-512# Model Details## Model DescriptionPytorch version of the original BLEURT models from ACL paper- **Developed by:** Elron Bandel, Thibault Sellam, Dipanjan Das and Ankur P. Parikh of Google Research- **Shared by [Optional]:** Elron Bandel- **Model type:** Text Classification- **Language(s) (NLP):** More information needed- **License:** More information needed- **Parent Model:** BERT- **Resources for more information:**- [GitHub Repo](https://github.com/google-research/bleurt/tree/master)- [Associated Paper](https://aclanthology.org/2020.acl-main.704/)- [Blog Post](https://ai.googleblog.com/2020/05/evaluating-natural-language-generation.html)# Uses## Direct UseThis model can be used for the task of Text Classification## Downstream Use [Optional]More information needed.## Out-of-Scope UseThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and LimitationsSignificant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.## RecommendationsUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.# Training Details## Training DataThe model authors note in the [associated paper](https://aclanthology.org/2020.acl-main.704.pdf):> We use years 2017 to 2019 of the WMT Metrics Shared Task, to-English language pairs. For each year, we used the of- ficial WMT test set, which include several thou- sand pairs of sentences with human ratings from the news domain. The training sets contain 5,360, 9,492, and 147,691 records for each year.## Training Procedure### PreprocessingMore information needed### Speeds, Sizes, TimesMore information needed# Evaluation## Testing Data, Factors & Metrics### Testing DataThe test sets for years 2018 and 2019 [of the WMT Metrics Shared Task, to-English language pairs.] are noisier,### FactorsMore information needed### MetricsMore information needed## ResultsMore information needed# Model ExaminationMore information needed# Environmental ImpactCarbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).- **Hardware Type:** More information needed- **Hours used:** More information needed- **Cloud Provider:** More information needed- **Compute Region:** More information needed- **Carbon Emitted:** More information needed# Technical Specifications [optional]## Model Architecture and ObjectiveMore information needed## Compute InfrastructureMore information needed### HardwareMore information needed### SoftwareMore information needed.# Citation**BibTeX:**```bibtex@inproceedings{sellam2020bleurt,title = {BLEURT: Learning Robust Metrics for Text Generation},author = {Thibault Sellam and Dipanjan Das and Ankur P Parikh},year = {2020},booktitle = {Proceedings of ACL}}```# Glossary [optional]More information needed# More Information [optional]More information needed# Model Card Authors [optional]Elron Bandel in collaboration with Ezi Ozoani and the Hugging Face team# Model Card ContactMore information needed# How to Get Started with the ModelUse the code below to get started with the model.<details><summary> Click to expand </summary>```pythonfrom transformers import AutoModelForSequenceClassification, AutoTokenizer10 unmodified linesscores = model(**tokenizer(references, candidates, return_tensors='pt'))[0].squeeze()print(scores) # tensor([-0.9414, -0.5678])```See [this notebook](https://colab.research.google.com/drive/1KsCUkFW45d5_ROSv2aHtXgeBa2Z98r03?usp=sharing) for model conversion code.</details>
README.md+169-6