Downloads · 30 days
7
13% of all-time downloads
Belkacemdz/allam-deepbac-adapter
allam-deepbac-adapter is a text generation model from Belkacemdz. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Downloads · 30 days
7
13% of all-time downloads
All-time downloads
56
Public
Repo size
161 MB
Likes
0
Public
Click a slice to open those files.
.safetensors160 MB · 94%
From the Hugging Face model README
language:
license: apache-2.0
library_name: peft
pipeline_tag: text-generation
base_model: ALLaM-AI/ALLaM-7B-Instruct-preview
tags:
This repository contains a QLoRA adapter obtained by fine-tuning ALLaM-7B-Instruct-preview for the DeepBac project.
The adapter is designed to improve Arabic educational question answering and student support for the Algerian Baccalaureate.
Note: This repository contains only the QLoRA adapter weights. The original ALLaM model is not included.
| Item | Value |
|---|---|
| Base Model | ALLaM-AI/ALLaM-7B-Instruct-preview |
| Fine-tuning Method | QLoRA |
| Framework | Unsloth |
| PEFT Method | LoRA |
| Task | Instruction Following / Question Answering |
| Language | Arabic |
| Domain | Education |
The adapter was trained using the following configuration:
| Parameter | Value |
|---|---|
| Quantization | 4-bit |
| LoRA Rank (r) | 16 |
| LoRA Alpha | 16 |
| LoRA Dropout | 0 |
| Optimizer | AdamW 8-bit |
| Learning Rate | 2e-4 |
| Epochs | 5 |
| Batch Size | 2 |
| Gradient Accumulation | 4 |
| Maximum Sequence Length | 2048 |
Target modules:
This adapter is intended for:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"ALLaM-AI/ALLaM-7B-Instruct-preview"
)
model = PeftModel.from_pretrained(
base_model,
"Belkacemdz/allam-deepbac-adapter"
)
tokenizer = AutoTokenizer.from_pretrained(
"ALLaM-AI/ALLaM-7B-Instruct-preview"
)
This adapter was fine-tuned specifically for educational applications.
Performance outside educational and Arabic question-answering tasks has not been evaluated.
This repository distributes only the QLoRA adapter.
The original ALLaM model remains subject to its own license and terms of use.
Developed by Belkacem Achraf ZAGHEZ
Master's Student in Artificial Intelligence
University of Biskra, Algeria