Downloads · 30 days
2
4% of all-time downloads
DignityInDifference/keepmesane-en-v1.0-202607
keepmesane-en-v1.0-202607 is a machine learning model from DignityInDifference. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a runnable sequence-classification model for English text.
Downloads · 30 days
2
4% of all-time downloads
All-time downloads
45
Public
Parameters
141M
597 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors563 MB · 94%
From the Hugging Face model README
This repository contains a runnable sequence-classification model for English text.
config.jsonmodel.safetensorstokenizer.jsontokenizer_config.jsonspecial_tokens_map.jsonimport torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_path = "."
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSequenceClassification.from_pretrained(model_path)
model.eval()
texts = [
"I disagree with this argument, but the evidence is interesting.",
"You are awful and should leave.",
]
inputs = tokenizer(
texts,
padding=True,
truncation=True,
return_tensors="pt",
)
with torch.no_grad():
logits = model(**inputs).logits
scores = torch.sigmoid(logits)
print(scores.tolist())
The model returns a 14-dimensional score vector for each input text.