Run this model with HF Jobs

Run LocalLaws/LOCUS-Paternalism 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/LocalLaws/LOCUS-Paternalism. 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/LocalLaws/LOCUS-Paternalism 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.

LocalLaws/LOCUS-Paternalism

A ModernBERT regression model that scores local-ordinance text along the Paternalism axis of the LOCUS (Local Ordinances Corpus, United States) dataset.

Fine-tuned from answerdotai/ModernBERT-base. The target is a TrueSkill mu distilled from pairwise LLM comparisons on the paternalism axis, then z-score normalized across the training corpus.

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tok = AutoTokenizer.from_pretrained("LocalLaws/LOCUS-Paternalism")
model = AutoModelForSequenceClassification.from_pretrained("LocalLaws/LOCUS-Paternalism")
model.eval()

text = "No person shall keep any swine within the city limits."
enc = tok(text, return_tensors="pt", truncation=True, max_length=2048)
with torch.no_grad():
    score = model(**enc).logits.squeeze(-1).item()
print(score)
Downloads last month
6
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for LocalLaws/LOCUS-Paternalism

Finetuned
(1,649)
this model

Dataset used to train LocalLaws/LOCUS-Paternalism

Collection including LocalLaws/LOCUS-Paternalism