lucadiliello / BLEURT-20-D3

huggingface.co
Total runs: 16
24-hour runs: -1
7-day runs: 0
30-day runs: -9
Model's Last Updated: January 19 2023
text-classification

Introduction of BLEURT-20-D3

Model Details of BLEURT-20-D3

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

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.9514874815940857, 0.800938069820404]

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

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

16
Total runs
-1
24-hour runs
1
3-day runs
0
7-day runs
-9
30-day runs

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

BLEURT-20-D3 huggingface.co

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

lucadiliello BLEURT-20-D3 online free

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

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

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

BLEURT-20-D3 install

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

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

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

Url of BLEURT-20-D3

Provider of BLEURT-20-D3 huggingface.co

lucadiliello
ORGANIZATIONS

Other API from lucadiliello