Downloads · 30 days
6
13% of all-time downloads
Chaima-KHENAFIF/qwen-mom-generator
qwen-mom-generator is a text generation model from Chaima-KHENAFIF. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
A LoRA adapter that generates structured Minutes of Meeting (MOM) from multilingual, code-switched meeting transcripts (Darija, French, English, MSA). This is stage 2 of a two-stage pipeline: it continues training fro…
Downloads · 30 days
6
13% of all-time downloads
All-time downloads
47
Public
Repo size
131 MB
Likes
1
Public
Click a slice to open those files.
.safetensors120 MB · 91%
From the Hugging Face model README
A LoRA adapter that generates structured Minutes of Meeting (MOM) from multilingual, code-switched meeting transcripts (Darija, French, English, MSA). This is stage 2 of a two-stage pipeline: it continues training from a Darija domain-adaptation adapter, then instruction-tunes on 500 self-generated meeting transcripts.
This end-to-end approach outperformed a sequential translate-then-generate pipeline across every metric measured (ROUGE-L +29.7 pts, BERTScore F1 +3.0 pts, schema compliance +4.1 pts).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("Chaima-KHENAFIF/qwen-mom-generator")
model = PeftModel.from_pretrained(base_model, "Chaima-KHENAFIF/qwen-mom-generator")
system_prompt = (
"You are a professional secretary. Generate a structured Minutes of Meeting (MOM) "
"in English. Output sections: SUMMARY, KEY DISCUSSIONS, DECISIONS, "
"ACTION ITEMS, DEADLINES, NEXT STEPS."
)
prompt = f"<|im_start|>system\n{system_prompt}<|im_end|>\n<|im_start|>user\nTranscript:\n{{transcript}}<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=1024, temperature=0.1, do_sample=True, repetition_penalty=1.1)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Input (code-switched English/French/Darija meeting transcript):
Ahmed: Salam, let's start. We are here to discuss the 'Corporate Monitoring Platform'... Chaima: Saha Ahmed. I wanted to update you, rani kemelt the web scraping scripts using Python... Sumaya: C'est parfait, Chaima. But wait, did you check the ethical constraints?... [continues]
Output:
### MINUTES OF MEETING
MEETING PARTICIPANTS: Ahmed (Project Manager), Chaima (Web Scraping Developer), Sumaya (Database Specialist)
#### SUMMARY
The team discussed the design of the 'Corporate Monitoring Platform'. Chaima confirmed
she had implemented web scraping scripts using Python while respecting ethical
constraints. The team agreed to use Oracle for structured data and Hadoop for log
analysis, and to address a WSL environment issue before Monday.
#### DECISIONS
- Use Oracle for structured data (student profiles).
- Use Hadoop for log analysis.
- Fix WSL crash issues by Monday.
#### ACTION ITEMS
- Chaima to assist Sumaya with WSL configuration.
- Sumaya to resolve the NameNode stability issue.
Input transcript (code-switched English/French/Darija):
Ahmed: Salam, let's start. We are here to discuss the 'Corporate Monitoring Platform' for the internship project. Chaima: Saha Ahmed. I wanted to update you, rani kemelt the web scraping scripts using Python. Sumaya: C'est parfait, Chaima. But wait, did you check the ethical constraints? ...
Generated MOM:
### MINUTES OF MEETING
MEETING PARTICIPANTS: Ahmed (Project Manager), Chaima (Web Scraping Developer), Sumaya (Database Specialist)
#### SUMMARY
The team discussed the design of the 'Corporate Monitoring Platform' for an internship project.
The discussion revolved around the choice between Oracle and Hadoop databases, with Chaima
confirming she had implemented web scraping scripts using Python while respecting ethical
constraints. The team agreed to use Oracle for structured data and Hadoop for log analysis.
#### DECISIONS
- Use Oracle for structured data (student profiles).
- Use Hadoop for log analysis.
- Fix WSL crash issues by Monday.
- Prepare a complete presentation for the platform demo by Wednesday.
#### ACTION ITEMS
- Chaima to assist Sumaya with WSL configuration.
- Sumaya to resolve the NameNode stability issue.
- Ahmed to coordinate the project timeline.
#### IDENTIFIED PROBLEMS
- Ethical compliance risk during web scraping.
- Technical instability in Sumaya's development environment.
- Tight deadline for the platform demonstration.
SFTTrainer, 10 epochs, learning rate 3e-5, early stopping (patience 3)