lucadiliello / BLEURT-20-D6

huggingface.co
Total runs: 15
24-hour runs: -6
7-day runs: -7
30-day runs: -121
Model's Last Updated: January 19 2023
text-classification

Introduction of BLEURT-20-D6

Model Details of BLEURT-20-D6

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-D6')
model = BleurtForSequenceClassification.from_pretrained('lucadiliello/BLEURT-20-D6')
tokenizer = BleurtTokenizer.from_pretrained('lucadiliello/BLEURT-20-D6')

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.9636925458908081, 0.7895470857620239]

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

Runs of lucadiliello BLEURT-20-D6 on huggingface.co

15
Total runs
-6
24-hour runs
-5
3-day runs
-7
7-day runs
-121
30-day runs

More Information About BLEURT-20-D6 huggingface.co Model

BLEURT-20-D6 huggingface.co

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

lucadiliello BLEURT-20-D6 online free

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

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

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

BLEURT-20-D6 install

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

BLEURT-20-D6 install url in huggingface.co:

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

Url of BLEURT-20-D6

Provider of BLEURT-20-D6 huggingface.co

lucadiliello
ORGANIZATIONS

Other API from lucadiliello