AlignScore Large in Huggingface Format

This is a convert version for AlignScore Model, it can inference without alignscore package.

Usage

First download the inference.py, this is a copied code from original codebase.

inference sample

from inferencer import Inferencer


inferencer = Inferencer(
    "/model/AlignScore-large-hf/", # <-- Path to the model
    device="cuda:0", # Use "cpu" if you don't have a GPU
)
inferencer.nlg_eval_mode = "nli_sp"  # Set the evaluation mode
score = inferencer.score(["hello world."], ["hello world."])
print(score)  # Output the score
Downloads last month
64
Safetensors
Model size
0.4B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for liuyanyi/AlignScore-large-hf

Base model

yzha/AlignScore
Finetuned
(1)
this model