Text Generation
PEFT
Safetensors
Tunisian Arabic
Arabic
tunisian-arabic
derja
darija
dialectal-arabic
low-resource
arabic
qlora
continued-pretraining
sft
conversational
Run this model with HF Jobs
Run alabenayed/TounsiLM-8b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/alabenayed/TounsiLM-8b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/alabenayed/TounsiLM-8b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/alabenayed/TounsiLM-8b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/alabenayed/TounsiLM-8b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use alabenayed/TounsiLM-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use alabenayed/TounsiLM-8b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("CohereLabs/aya-expanse-8b") model = PeftModel.from_pretrained(base_model, "alabenayed/TounsiLM-8b") - Notebooks
- Google Colab
- Kaggle
update readme.md
Browse files277 unmodified lines27827928028128228328428528623 unmodified lines310311312313314315316317318319320321322323324325326327328329330331332333334335336337338277 unmodified linesconversational structure rather than the language itself. Gradient norms held at 0.59–0.68 despitethe transition from quantized CPT to full-precision bf16.> **These are training-set values.** A 6,334-example held-out test split exists but has not yet> been scored, and no comparison against base `aya-expanse-8b` on the same split has been run.> Both are planned; until then, do not read 76.2% as generalisation performance.### Downstream human evaluation23 unmodified linesparticular as the generation stage downstream of a Tunisian dialect ASR front-end, which is how itwas built and deployed.## Limitations and risks- **Token accuracy is a training metric.** See the evaluation note above. Held-out numbers are notyet available.- **Regional and register skew.** The CPT corpus is dominated by written online Tunisian —social media, tweets, forums — plus ASR transcripts. Hyper-local vocabulary and interior-regionvariants are underrepresented, and performance on southern and rural varieties is untested.- **Augmentation-derived training data.** Roughly two-thirds of the SFT set consists of mechanicalvariants of ~11.9K seed pairs. This improves robustness to spelling variation but may haveintroduced template-like response patterns.- **Verbosity and length control.** Qualitative inspection after CPT showed long, looselycontrolled outputs. SFT and the persona system prompt improved this substantially, but lengthcalibration remains imperfect; the `max_new_tokens` and `repetition_penalty` defaults abovematter.- **Arabizi input.** Training targets were Arabic script. Latin-script Arabizi input is handledpoorly by the model alone — in the deployed system, a query-rewriting layer normalises Arabizidigit conventions (3→a, 7→h, 5→kh, 9→q, 8→gh) before retrieval.- **No safety evaluation.** No red-teaming, toxicity, bias, or jailbreak testing has beenperformed. Only 5 of the 80 base-selection prompts touched refusal behaviour. Do not deploy in auser-facing product without your own safety evaluation.- **Hallucination.** As with any 8B model. The system prompt forbids it; that is not a mechanism.Use retrieval grounding for factual queries.- **Non-commercial licence,** inherited from `aya-expanse-8b`. Research and personal use only.---277 unmodified lines27827928028128228323 unmodified lines307308309310311312277 unmodified linesconversational structure rather than the language itself. Gradient norms held at 0.59–0.68 despitethe transition from quantized CPT to full-precision bf16.### Downstream human evaluation23 unmodified linesparticular as the generation stage downstream of a Tunisian dialect ASR front-end, which is how itwas built and deployed.---
README.md-26