Downloads · 30 days
11
14% of all-time downloads
akaruineko/qltan-1.5
qltan-1.5 is a text classification model from akaruineko. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
QLTAN-1.5 is a fine-tuned XLM-RoBERTa model designed for multi-class text origin and quality classification. The model categorizes text into five distinct classes to help identify the provenance and quality characteri…
Downloads · 30 days
11
14% of all-time downloads
All-time downloads
81
Public
Parameters
278M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
QLTAN-1.5 is a fine-tuned XLM-RoBERTa model designed for multi-class text origin and quality classification. The model categorizes text into five distinct classes to help identify the provenance and quality characteristics of textual content.
The model is based on FacebookAI/xlm-roberta-base and was fine-tuned on the QualiText dataset, achieving strong performance in distinguishing between human-written, machine-generated, corrupted, marketing, and low-quality text.
| Class ID | Label | Description |
|---|---|---|
| 0 | corrupted | Text with deliberate word deletions, swaps, duplications, or typo-like edits |
| 1 | human | Human-authored text from Wikipedia and 4chan |
| 2 | low_quality | Spam, email corpus examples, and text with removed punctuation and shuffled words |
| 3 | machine_generated | Text generated by Qwen3.8-Max, GLM-5.2, and Kimi-K3 models |
| 4 | marketing | Marketing-oriented content from FineWeb-Marketing |
The model is designed for:
The model was trained on the QualiText dataset, which contains 492,275 balanced examples across five classes (98,455 per class). The dataset was split with 90% for training and 10% for evaluation.
The source datasets include:
Text was split into sentence windows with:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model_name = "akaruineko/qltan-1.5"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Example text
text = "The quick brown fox jumps over the lazy dog. This is a test sentence."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256, return_token_type_ids=False)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.softmax(outputs.logits, dim=-1)
# Get predicted class
predicted_class = torch.argmax(predictions, dim=-1).item()
class_labels = {0: "corrupted", 1: "human", 2: "low_quality",
3: "machine_generated", 4: "marketing"}
print(f"Predicted class: {class_labels[predicted_class]}")
print(f"Confidence: {predictions[0][predicted_class]:.4f}")