lucadiliello / BLEURT-20

huggingface.co
Total runs: 7.2K
24-hour runs: -254
7-day runs: -974
30-day runs: 2.2K
Model's Last Updated: Tháng Một 19 2023
text-classification

Introduction of BLEURT-20

Model Details of BLEURT-20

This model is based on a custom Transformer model that can be installed with:

pip install git+https://github.com/lucadiliello/bleurt-pytorch.git

Now load the model and make predictions with:

import torch
from bleurt_pytorch import BleurtConfig, BleurtForSequenceClassification, BleurtTokenizer

config = BleurtConfig.from_pretrained('lucadiliello/BLEURT-20')
model = BleurtForSequenceClassification.from_pretrained('lucadiliello/BLEURT-20')
tokenizer = BleurtTokenizer.from_pretrained('lucadiliello/BLEURT-20')

references = ["a bird chirps by the window", "this is a random sentence"]
candidates = ["a bird chirps by the window", "this looks like a random sentence"]

model.eval()
with torch.no_grad():
    inputs = tokenizer(references, candidates, padding='longest', return_tensors='pt')
    res = model(**inputs).logits.flatten().tolist()
print(res)
# [0.9990496635437012, 0.7930182218551636]

Take a look at this repository for the definition of BleurtConfig , BleurtForSequenceClassification and BleurtTokenizer in PyTorch.

Runs of lucadiliello BLEURT-20 on huggingface.co

7.2K
Total runs
-254
24-hour runs
-503
3-day runs
-974
7-day runs
2.2K
30-day runs

More Information About BLEURT-20 huggingface.co Model

BLEURT-20 huggingface.co

BLEURT-20 huggingface.co is an AI model on huggingface.co that provides BLEURT-20's model effect (), which can be used instantly with this lucadiliello BLEURT-20 model. huggingface.co supports a free trial of the BLEURT-20 model, and also provides paid use of the BLEURT-20. Support call BLEURT-20 model through api, including Node.js, Python, http.

lucadiliello BLEURT-20 online free

BLEURT-20 huggingface.co is an online trial and call api platform, which integrates BLEURT-20's modeling effects, including api services, and provides a free online trial of BLEURT-20, you can try BLEURT-20 online for free by clicking the link below.

lucadiliello BLEURT-20 online free url in huggingface.co:

https://huggingface.co/lucadiliello/BLEURT-20

BLEURT-20 install

BLEURT-20 is an open source model from GitHub that offers a free installation service, and any user can find BLEURT-20 on GitHub to install. At the same time, huggingface.co provides the effect of BLEURT-20 install, users can directly use BLEURT-20 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

BLEURT-20 install url in huggingface.co:

https://huggingface.co/lucadiliello/BLEURT-20

Url of BLEURT-20

Provider of BLEURT-20 huggingface.co

lucadiliello
ORGANIZATIONS

Other API from lucadiliello