Run this model with HF Jobs
Run liuyanyi/AlignScore-large-hf on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/liuyanyi/AlignScore-large-hf. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/liuyanyi/AlignScore-large-hf on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use liuyanyi/AlignScore-large-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use liuyanyi/AlignScore-large-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="liuyanyi/AlignScore-large-hf", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("liuyanyi/AlignScore-large-hf", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
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
- 1,682
Model tree for liuyanyi/AlignScore-large-hf
Base model
yzha/AlignScore