Views
No views yet
mu distilled from pairwise LLM comparisons on the
problem salience axis, then z-score normalized across the training corpus.1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4tok = AutoTokenizer.from_pretrained("LocalLaws/LOCUS-Problem-Salience")
5model = AutoModelForSequenceClassification.from_pretrained("LocalLaws/LOCUS-Problem-Salience")
6model.eval()
7
8text = "No person shall keep any swine within the city limits."
9enc = tok(text, return_tensors="pt", truncation=True, max_length=2048)
10with torch.no_grad():
11 score = model(**enc).logits.squeeze(-1).item()
12print(score)