Downloads · 30 days
10
7% of all-time downloads
armaniii/Qwen3-4B-populism
Qwen3-4B-populism is a text classification model from armaniii. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model is a fine-tuned version of Qwen/Qwen3-4B trained to identify fine-grained forms of populism in political discourse. The model performs 4-way classification to detect:
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
136
Public
Parameters
29.5B
15.6 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.5 GB · 100%
How the weights are stored.
F323.7B · 90%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen3-4B trained to identify fine-grained forms of populism in political discourse. The model performs 4-way classification to detect:
The model was fine-tuned using LoRA (Low-Rank Adaptation) for parameter-efficient training on political speeches from Donald Trump's 2016 presidential campaign.
LoRA Configuration:
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projTraining Hyperparameters:
Training Loss Progression:
Dataset: coastalcph/populism-trump-2016
Data Source: Sentence-level annotations from Donald Trump's 2016 presidential campaign speeches.
Label Distribution (Original):
Data Preprocessing:
Populism Definition: Following political science literature, populism is defined as an anti-elite discourse in the name of "the people", characterized by:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
# Load model and tokenizer
model_name = "armaniii/Qwen3-4B-populism"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
torch_dtype="auto"
)
# Create pipeline
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer
)
# System prompt
SYSTEM_PROMPT = """You are a helpful AI assistant with expertise in identifying populism in public discourse.
Populism can be defined as an anti-elite discourse in the name of the "people". In other words, populism emphasizes the idea of the common "people" and often positions this group in opposition to a perceived elite group.
There are two core elements in identifying populism: (i) anti-elitism, i.e., negative invocations of "elites", and (ii) people-centrism, i.e., positive invocations of the "people".
"""
# Instruction template
INSTRUCTION = """You must classify each sentence in one of the following categories:
(a) No populism.
(b) Anti-elitism, i.e., negative invocations of "elites".
(c) People-centrism, i.e., positive invocations of the "People".
(d) Both people-centrism and anti-elitism populism.
"""
# Example sentence
sentence = "We need to stand up against the corrupt establishment that has betrayed the American people."
# Build prompt
conversation = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": INSTRUCTION + f'\n\nWhich is the most relevant category for the sentence: "{sentence}"?'}
]
# Apply chat template
prompt = tokenizer.apply_chat_template(
conversation=conversation,
tokenize=False,
add_generation_prompt=True
)
# Generate response
response = pipe(
prompt,
do_sample=False,
max_new_tokens=256,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.eos_token_id,
)
print(response[0]['generated_text'])
# Expected output: "I would categorize this sentence as (d)..."
The model responds in the following format:
I would categorize this sentence as (X)
[Explanation of the classification decision]
Where X is one of: a, b, c, or d.
Detailed performance metrics and comparisons are available in the original paper (see Citation section below).
Key Findings:
Training Data Limitations:
Class Imbalance:
Domain Specificity:
Ethical Considerations:
Primary Use Cases:
Out-of-Scope Use:
If you use this model, please cite the original paper:
@misc{chalkidis2025populism,
title={Identifying Fine-grained Forms of Populism in Political Discourse: A Case Study on Donald Trump's Presidential Campaigns},
author={Chalkidis, Ilias and Brandl, Stephanie and Aslanidis, Paris},
year={2025},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2507.19303},
doi={10.48550/arXiv.2507.19303}
}
Paper: Identifying Fine-grained Forms of Populism in Political Discourse
Dataset: coastalcph/populism-trump-2016
This model was developed based on the research by:
The fine-tuning was performed using:
[Your Name/Organization]
[Your Contact Information]
This model is released under the Apache 2.0 License, consistent with the Qwen3-4B base model.
Responsible Use: This model is intended for research and educational purposes. Users should be aware of the limitations and biases described above and use the model responsibly with appropriate human oversight.
Related Resources: