Downloads · 30 days
0
Habibaaaaa/qwen2.5-1.5b-eou-detector
qwen2.5-1.5b-eou-detector is a machine learning model from Habibaaaaa. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Dec 5, 2025
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
Fine-tuning Qwen2.5-1.5B using LoRA
This repository contains a fine-tuned LoRA adapter for Arabic End-of-Utterance (EOU) detection. The goal is to predict whether a speaker is likely to finish their turn, enabling smoother real-time AI voice agents and more natural conversational interaction.
This project was created as part of a technical assessment to demonstrate my ability to:
The model, dataset format, and outputs are not reliable for production use. They are included only to show technical skills, not for deployment in real products or systems.
Training data follows a .jsonl format with the following fields:
session_id: Unique conversation/session identifiertype: Type of sample (positive/negative EOU)original_text: Full utteranceground_truth: Label indicating whether the utterance ends the turnformatted_text: Preprocessed version used as model inputThe dataset used here is custom, limited, and only intended to support the demonstration of workflow and model training.
The base model used is Qwen2.5-1.5B, fine-tuned using LoRA adapters via HuggingFace Transformers.
Contents included in this repository / HF Hub upload:
adapter_model.safetensorsadapter_config.jsontokenizer.jsontokenizer_config.jsonspecial_tokens_map.jsonLoRA was chosen to:
The LoRA adapter captures task-specific behavior without modifying the full base model.
Training was handled via a custom script that:
Key libraries used:
To load the model with the LoRA adapter:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen2.5-1.5B"
adapter = "Habibaaaaa/qwen2.5-1.5b-eou-detector"
tokenizer = AutoTokenizer.from_pretrained(adapter)
model = AutoModelForSequenceClassification.from_pretrained(base)
model = PeftModel.from_pretrained(model, adapter)
inputs = tokenizer("النص هنا", return_tensors="pt")
outputs = model(**inputs)
The output is a probability indicating whether the utterance is likely an end-of-turn.
This model, dataset, and results are: