How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="thunder121x/thai-gender-bias-span-extraction-qwen3.5-2b")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("thunder121x/thai-gender-bias-span-extraction-qwen3.5-2b", device_map="auto")
Quick Links

Thai Gender Bias Span Extraction β€” Qwen 3.5 2B (LoRA)

LoRA adapter for unsloth/Qwen3.5-2B-Base that detects gender-biased spans in Thai social-media text. Given Thai input, the model returns the same text with bias spans wrapped in inline tags:

  • <GB-ATTACK>...</GB-ATTACK> β€” gender-based attacks, insults, dehumanization
  • <GB-NORMATIVE>...</GB-NORMATIVE> β€” stereotypes, gender-role policing
  • <GB-SEX>...</GB-SEX> β€” sexualized degradation tied to gender

Text without gender bias is returned unchanged.

Training

Fine-tuned with Unsloth on annotated + synthetic Thai examples: thunder121x/thai-gender-bias-training-data

Source code and pipeline: github.com/thunder121x/gender-bias-detection (see services/lora_finetuning/ for the training and inference scripts, including the exact system prompt required at inference time).

Related

Authors

Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for thunder121x/thai-gender-bias-span-extraction-qwen3.5-2b

Adapter
(2)
this model