lucadiliello / bleurt-base-128

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

Introduction of bleurt-base-128

Model Details of bleurt-base-128

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-base-128')
model = BleurtForSequenceClassification.from_pretrained('lucadiliello/bleurt-base-128')
tokenizer = BleurtTokenizer.from_pretrained('lucadiliello/bleurt-base-128')

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)
# [1.0474469661712646, 0.7105223536491394]

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

Runs of lucadiliello bleurt-base-128 on huggingface.co

28
Total runs
0
24-hour runs
3
3-day runs
-7
7-day runs
3
30-day runs

More Information About bleurt-base-128 huggingface.co Model

bleurt-base-128 huggingface.co

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

lucadiliello bleurt-base-128 online free

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

lucadiliello bleurt-base-128 online free url in huggingface.co:

https://huggingface.co/lucadiliello/bleurt-base-128

bleurt-base-128 install

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

bleurt-base-128 install url in huggingface.co:

https://huggingface.co/lucadiliello/bleurt-base-128

Url of bleurt-base-128

Provider of bleurt-base-128 huggingface.co

lucadiliello
ORGANIZATIONS

Other API from lucadiliello