Views
No views yet
CohereLabs/c4ai-command-r7b-arabic-02-2025.CohereLabs/c4ai-command-r7b-arabic-02-2025adapter_model.safetensors: LoRA weightsadapter_config.json: PEFT configimport 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'sapply_chat_template(...)(same as base).
cc-by-nc-4.0 and inherits constraints from the base model license/terms. Please also follow the base model’s usage requirements.