Downloads · 30 days
10
14% of all-time downloads
nada-05/nps-description-generator-mt5
nps-description-generator-mt5 is a text generation model from nada-05. Use it when you need the model to write or continue text. The card lists the license as mit.
Fine-tuned google/mt5-small pour générer des descriptions CRM personnalisées pour les clients détracteurs NPS. Projet : Système NPS Dior/Reetain — Nada El Maliki.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
69
Public
Parameters
300M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 98%
From the Hugging Face model README
Fine-tuned google/mt5-small pour générer des descriptions CRM personnalisées
pour les clients détracteurs NPS. Projet : Système NPS Dior/Reetain — Nada El Maliki.
| Métrique | Valeur |
|---|---|
| ROUGE-2 (best) | 0.1529 |
| ROUGE-1 (best) | ~0.32 |
| ROUGE-L (best) | ~0.26 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import torch
tokenizer = AutoTokenizer.from_pretrained("nada-05/nps-description-generator-mt5")
model = AutoModelForSeq2SeqLM.from_pretrained("nada-05/nps-description-generator-mt5")
model.eval()
# Construire le prompt
prompt = (
"generate nps description: [lang:fr] "
"score:3/10 segment:Detractor urgency:high "
"comments: J'ai attendu 40 minutes sans assistance. "
"improvements: advisor | store"
)
enc = tokenizer(prompt, return_tensors="pt", max_length=256, truncation=True)
with torch.no_grad():
out = model.generate(**enc, max_new_tokens=200, num_beams=4,
no_repeat_ngram_size=3)
description = tokenizer.decode(out[0], skip_special_tokens=True)
print(description)
generate nps description: [lang:<fr|en>]
score:<0-10>/10
segment:<Detractor|Passive|Promoter>
urgency:<high|medium|low|none>
comments: <texte commentaires>
improvements: <axes signalés> (optionnel)
google/mt5-small (~300M params)