Views
No views yet
subfolder= argument (see Usage).| Subfolder | Base | Scheme | Budget |
|---|---|---|---|
mistral-7b/balanced-32m | Mistral-7B-Instruct-v0.3 | balanced (equal-token) | 32M |
mistral-7b/natural-32m | Mistral-7B-Instruct-v0.3 | natural (proportional) | 32M |
mistral-7b/balanced-2m | Mistral-7B-Instruct-v0.3 | balanced (equal-token) | 2M |
mistral-7b/natural-2m | Mistral-7B-Instruct-v0.3 | natural (proportional) | 2M |
llama-3.2-3b/balanced-32m | Llama-3.2-3B-Instruct | balanced (equal-token) | 32M |
llama-3.2-3b/natural-32m | Llama-3.2-3B-Instruct | natural (proportional) | 32M |
mistral-7b/balanced-32m is the primary model; it is the system used for the paper's
fact-level human-validation study. The Llama-3.2-3B adapters are the cross-family scaling
control (RQ5) — they load a different base model, so match the base to the subfolder.| Scheme | AMI | ICSI | ELITR | EPM | MB | Macro | Micro |
|---|---|---|---|---|---|---|---|
| Balanced ROUGE-Lsum | 0.495 | 0.445 | 0.367 | 0.547 | 0.648 | 0.500 | 0.615 |
| Natural ROUGE-Lsum | 0.393 | 0.281 | 0.204 | 0.534 | 0.694 | 0.421 | 0.637 |
| Balanced BERTScore-F1 | 0.875 | 0.852 | 0.846 | 0.887 | 0.928 | 0.877 | 0.915 |
| Natural BERTScore-F1 | 0.865 | 0.833 | 0.837 | 0.889 | 0.938 | 0.872 | 0.923 |
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
3from peft import PeftModel
4
5REPO = "soodashima91/meeting-summarization-domain-balancing"
6SUB = "mistral-7b/balanced-32m" # pick a subfolder from the table
7BASE = "mistralai/Mistral-7B-Instruct-v0.3" # use the base that matches SUB
8
9bnb = BitsAndBytesConfig(
10 load_in_4bit=True, bnb_4bit_quant_type="nf4",
11 bnb_4bit_use_double_quant=True, bnb_4bit_compute_dtype=torch.bfloat16,
12)
13
14tok = AutoTokenizer.from_pretrained(REPO, subfolder=SUB)
15model = AutoModelForCausalLM.from_pretrained(BASE, quantization_config=bnb, device_map="auto")
16model = PeftModel.from_pretrained(model, REPO, subfolder=SUB)
17model.eval()
18
19system = ("You are a meeting summarizer. Given a meeting transcript, write the meeting minutes "
20 "that faithfully capture the substantive content of the meeting. Base the minutes only "
21 "on what is stated in the transcript; do not introduce information that is not present.")
22user = "Here is the meeting transcript. Write the meeting minutes.\n\n" + transcript
23
24msgs = [{"role": "system", "content": system}, {"role": "user", "content": user}]
25inputs = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
26out = model.generate(inputs, max_new_tokens=2048, do_sample=False)
27print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))SUB = "llama-3.2-3b/balanced-32m" and
BASE = "meta-llama/Llama-3.2-3B-Instruct".1@article{sood2026token,
2 title = {Token Distribution versus Data Volume: Domain Balancing in Multi-Domain Meeting Summarisation},
3 author = {Sood, Ashima and Gardiner, Bryan and Condell, Joan},
4 journal = {arXiv preprint arXiv:2608.15935},
5 year = {2026}
6}