rasbt / ai-text-detector-qwen3-0.6b-variable

huggingface.co
Total runs: 391
24-hour runs: 12
7-day runs: -25
30-day runs: 169
Model's Last Updated: August 12 2026
text-classification

Introduction of ai-text-detector-qwen3-0.6b-variable

Model Details of ai-text-detector-qwen3-0.6b-variable

Qwen3-0.6B Variable-Position AI-Text Detector

This is a fully fine-tuned Qwen3-0.6B classifier for distinguishing human-written and AI-generated text. It uses a variable-position readout token immediately after the input text. The model was trained on rasbt/human-vs-ai-50k . Human-written text has label 0 and AI-generated text has label 1.

The model was trained with a maximum context length of 1,024 tokens. Temperature scaling is applied during inference. The recorded best validation accuracy was 99.92%.

Download and use
hf download rasbt/ai-text-detector-qwen3-0.6b-variable \
  --local-dir models/ai-text-detector-qwen3-0.6b-variable
import json
from pathlib import Path

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer


model_dir = Path("models/ai-text-detector-qwen3-0.6b-variable")
metadata = json.loads(
    (model_dir / "detector-config.json").read_text(encoding="utf-8")
)
tokenizer = AutoTokenizer.from_pretrained(model_dir)
model = AutoModelForSequenceClassification.from_pretrained(model_dir)
model.eval()

text = "Paste the text to classify here."
text_ids = tokenizer(
    text,
    add_special_tokens=False,
    truncation=True,
    max_length=metadata["max_text_length"],
)["input_ids"]

if metadata["readout_position"] == "fixed":
    padding_length = metadata["context_length"] - len(text_ids) - 1
    input_ids = (
        text_ids
        + [tokenizer.pad_token_id] * padding_length
        + [tokenizer.eos_token_id]
    )
    attention_mask = [1] * len(text_ids) + [0] * padding_length + [1]
else:
    input_ids = text_ids + [tokenizer.eos_token_id]
    attention_mask = [1] * len(input_ids)

inputs = {
    "input_ids": torch.tensor([input_ids]),
    "attention_mask": torch.tensor([attention_mask]),
}
with torch.inference_mode():
    logits = model(**inputs).logits / metadata["temperature"]
    probabilities = logits.float().softmax(dim=-1)

ai_index = metadata["label_mapping"]["ai"]
ai_probability = probabilities[0, ai_index].item()
print({"score": round(100 * ai_probability, 4)})

Test-set confusion matrix

Qwen3-0.6B variable-position test-set confusion matrix

detector-config.json contains the readout, calibration, and training metadata. The recommended inference implementation is provided in the rasbt/ai-detector repository because classification requires selecting the configured readout position.

Related models

Limitations

Performance may change for text from generators, domains, languages, and editing workflows not represented in the training set. Short or partly AI-assisted text may also be harder to classify. The score should not be treated as definitive evidence that a person did or did not write a text.

Runs of rasbt ai-text-detector-qwen3-0.6b-variable on huggingface.co

391
Total runs
12
24-hour runs
11
3-day runs
-25
7-day runs
169
30-day runs

More Information About ai-text-detector-qwen3-0.6b-variable huggingface.co Model

More ai-text-detector-qwen3-0.6b-variable license Visit here:

https://choosealicense.com/licenses/apache-2.0

ai-text-detector-qwen3-0.6b-variable huggingface.co

ai-text-detector-qwen3-0.6b-variable huggingface.co is an AI model on huggingface.co that provides ai-text-detector-qwen3-0.6b-variable's model effect (), which can be used instantly with this rasbt ai-text-detector-qwen3-0.6b-variable model. huggingface.co supports a free trial of the ai-text-detector-qwen3-0.6b-variable model, and also provides paid use of the ai-text-detector-qwen3-0.6b-variable. Support call ai-text-detector-qwen3-0.6b-variable model through api, including Node.js, Python, http.

ai-text-detector-qwen3-0.6b-variable huggingface.co Url

https://huggingface.co/rasbt/ai-text-detector-qwen3-0.6b-variable

rasbt ai-text-detector-qwen3-0.6b-variable online free

ai-text-detector-qwen3-0.6b-variable huggingface.co is an online trial and call api platform, which integrates ai-text-detector-qwen3-0.6b-variable's modeling effects, including api services, and provides a free online trial of ai-text-detector-qwen3-0.6b-variable, you can try ai-text-detector-qwen3-0.6b-variable online for free by clicking the link below.

rasbt ai-text-detector-qwen3-0.6b-variable online free url in huggingface.co:

https://huggingface.co/rasbt/ai-text-detector-qwen3-0.6b-variable

ai-text-detector-qwen3-0.6b-variable install

ai-text-detector-qwen3-0.6b-variable is an open source model from GitHub that offers a free installation service, and any user can find ai-text-detector-qwen3-0.6b-variable on GitHub to install. At the same time, huggingface.co provides the effect of ai-text-detector-qwen3-0.6b-variable install, users can directly use ai-text-detector-qwen3-0.6b-variable installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ai-text-detector-qwen3-0.6b-variable install url in huggingface.co:

https://huggingface.co/rasbt/ai-text-detector-qwen3-0.6b-variable

Url of ai-text-detector-qwen3-0.6b-variable

ai-text-detector-qwen3-0.6b-variable huggingface.co Url

Provider of ai-text-detector-qwen3-0.6b-variable huggingface.co

rasbt
ORGANIZATIONS

Other API from rasbt