lucadiliello / bleurt-tiny-512

huggingface.co
Total runs: 37
24-hour runs: 2
7-day runs: -11
30-day runs: -10
Model's Last Updated: January 19 2023
text-classification

Introduction of bleurt-tiny-512

Model Details of bleurt-tiny-512

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

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.8606632947921753, 0.7198279500007629]

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

Runs of lucadiliello bleurt-tiny-512 on huggingface.co

37
Total runs
2
24-hour runs
1
3-day runs
-11
7-day runs
-10
30-day runs

More Information About bleurt-tiny-512 huggingface.co Model

bleurt-tiny-512 huggingface.co

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

lucadiliello bleurt-tiny-512 online free

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

lucadiliello bleurt-tiny-512 online free url in huggingface.co:

https://huggingface.co/lucadiliello/bleurt-tiny-512

bleurt-tiny-512 install

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

bleurt-tiny-512 install url in huggingface.co:

https://huggingface.co/lucadiliello/bleurt-tiny-512

Url of bleurt-tiny-512

Provider of bleurt-tiny-512 huggingface.co

lucadiliello
ORGANIZATIONS

Other API from lucadiliello