HassanB4/t1_s10_allam7b_lora_prompt
05
StanceEval-2026 — Track 1 (Seen Targets): ALLaM-7B-Instruct-preview (LoRA)
Arabic stance-detection classifier for StanceEval-2026, an ArabicNLP 2026 (@ EMNLP 2026, Budapest) shared task. Given an Arabic tweet and a target topic, the model predicts whether the tweet's author is in Favor of, Against, or has None (neutral/irrelevant) stance toward the target.
Track 1: Seen Targets
Trained and evaluated on targets that appear in the training data: COVID-19 Vaccine, Digital Transformation, Women Empowerment. Train 3,502 / Dev 619 tweets (Mawqif-v2).
Base model
humain-ai/ALLaM-7B-Instruct-preview
Labels
Dev set result
86.06 Favg2 (dev set), the shared task's primary metric (macro-F1 over Favor + Against, None excluded).
This is the development checkpoint of the ALLaM-7B LoRA prompt recipe, evaluated on the held-out Track 1 dev set. A second checkpoint, `t1_s11_allam7b_lora_prompt_final`, was later refit on train+dev combined for the final test submission and has no held-out dev score of its own.
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
from peft import PeftModel
import torch
base_model_id = "humain-ai/ALLaM-7B-Instruct-preview"
adapter_id = "HassanB4/t1_s10_allam7b_lora_prompt"
id2label = {0: "Favor", 1: "Against", 2: "None"}
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForSequenceClassification.from_pretrained(base_model_id, num_labels=3)
model = PeftModel.from_pretrained(base_model, adapter_id)
model.eval()
text = "..."
target = "..."
prompt = f"{text} [SEP] {target}"
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
logits = model(**inputs).logits
predicted_label = id2label[int(torch.argmax(logits, dim=-1)[0])]
print(predicted_label)Status
Part of the NAMAA Community StanceEval-2026 submission (Track 1). A system description paper is in preparation; citation details will be added once available.
