Algerian-Dialect-Conversational-System-for-Smoking-Reduction (LoRA adapter)

This repository contains a PEFT LoRA adapter fine-tuned from CohereLabs/c4ai-command-r7b-arabic-02-2025.

It is not a full standalone model: you must load the base model first, then apply this adapter.

Base model

  • Base: CohereLabs/c4ai-command-r7b-arabic-02-2025

What’s inside

  • adapter_model.safetensors: LoRA weights
  • adapter_config.json: PEFT config

How to use

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel

BASE_MODEL = "CohereLabs/c4ai-command-r7b-arabic-02-2025"
ADAPTER_ID = "moncef-blm/Algerian-Dialect-Conversational-System-for-Smoking-Reduction"

tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL)
base = AutoModelForCausalLM.from_pretrained(
BASE_MODEL,
device_map="auto",
torch_dtype=torch.float16,
)

model = PeftModel.from_pretrained(base, ADAPTER_ID)
model.eval()

Chat template: use the base model tokenizer's apply_chat_template(...) (same as base).

Training details

  • Method: PEFT / LoRA (adapter training)
  • Domain: Algerian Arabic / smoking cessation assistant
  • Data: The fine-tuning data is primarily in Algerian Arabic (Darja) + MSA, collected from multiple sources (mixed domains and writing styles). Some portions were originally in other languages and were translated into Algerian dialect to expand coverage and increase instruction diversity; translations may introduce artifacts and occasional unnatural phrasing, so outputs should be evaluated accordingly

Limitations / Safety

This is a community fine-tune and may produce incorrect or unsafe outputs. Use with appropriate evaluation and safeguards.

License

This adapter is shared under cc-by-nc-4.0 and inherits constraints from the base model license/terms. Please also follow the base model’s usage requirements.

Downloads last month
47
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for moncef-blm/Algerian-Dialect-Conversational-System-for-Smoking-Reduction

Adapter
(1)
this model