Downloads · 30 days
5
13% of all-time downloads
U4RASD/DRU-RE-qwen35-9B
DRU-RE-qwen35-9B is a text generation model from U4RASD. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
QLoRA adapter for Arabic relation extraction using Qwen/Qwen3.5-9B as the base model.
Downloads · 30 days
5
13% of all-time downloads
All-time downloads
40
Public
Repo size
3.3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.6 GB · 63%
From the Hugging Face model README
QLoRA adapter for Arabic relation extraction using Qwen/Qwen3.5-9B as the base model.
This repository stores the adapter, training/evaluation artifacts, prompt/GEPA experiments, ontology resources, and the code used for training and evaluation.
The main adapter files at the repository root are from checkpoint-2000, which had the best full validation score.
| checkpoint | validation rows | correct | micro F1 | macro-style F1 field |
|---|---|---|---|---|
| step 1000 | 1687 | 1034 | 0.612922 | 0.503539 |
| step 2000 | 1687 | 1177 | 0.697688 | 0.715525 |
| step 2943 | 1687 | 1171 | 0.694132 | 0.709890 |
checkpoint-2000.checkpoints/: saved checkpoints for step 1000, 2000, and 2943, including trainer state and optimizer state for resume.evals/: evaluation metrics for each saved step.predictions.txt: validation predictions from checkpoint 2000, formatted as triple_id<TAB>predicted_label.ontology/: wojood_ontology.json, relation_mapper.json, and relation_disambiguation.json.code/: training, evaluation, prompt optimization, metrics, and utility scripts.gepa/: GEPA prompt optimization summaries, best candidates, split summaries, and metrics.baseline_evals/: base-prompt evaluation metrics before finetuning.predictions.txt contains one validation prediction per line:
11352 Location.located_in
11353 Location.located_in
4838 Location.located_in
cd /root/workspace
python RE/finetune_qwen.py --config RE/finetune_config.yaml
To resume:
cd /root/workspace
python RE/finetune_qwen.py --config RE/finetune_config.yaml --resume-from-checkpoint latest
Load this repository as a PEFT adapter on top of Qwen/Qwen3.5-9B. The prompt format and ontology filtering logic are included in code/prompt_baseline.py, code/ontology.py, and code/finetune_config.yaml.
The model should output exactly one relation label from the configured label set.
The step-2000 evaluation still showed confusion around:
PartOf.geopolitical_division versus no_relation.Location.headquartered_in versus Location.located_in.Personal.has_occupation for some no_relation examples.This repo contains a QLoRA/PEFT adapter, not the full Qwen base model weights.