NebulaPixel/SummOrchestra-7B-GRPO-BRL-CSDS
111
SummOrchestra: Coordinating Multi-role Dialogue Understanding and Summarization
📊 Performance Comparison of SummOrchestra on the CSDS Dataset
Note: - Results are evaluated on the CSDS (Chinese Summarization Dialogues Dataset). - ROUGE scores are computed using `rouge-chinese` with F1-based evaluation. - BERTScore is calculated using the `google-bert/bert-base-chinese` model. - GRPO (B+R+L) indicates that the reward function combines BERTScore (B), ROUGE (R), and Length (L)
rewards.
🧩 Example: Using Your Fine-Tuned Summarization Model
This is a minimal example showing how to load and run our model.
📦 Install dependencies
pip install transformers torchRun and infere Results
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "dada122/SummOrchestra-7B-GRPO-BRL-CSDS"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example input (same structure as your dataset)
messages = [
{"role": "system", "content": "You are a summarization assistant."},
{
"role": "user",
"content": (
"Summarize the following conversation:\n"
"agent: 有什么问题我可以帮您处理或解决呢?\n"
"user: 你好\n"
"user: 以前的手机号码销号了,密码也忘了\n"
"agent: ..."
)
}
]
# Convert messages into a single text string
input_text = "\n".join(f"{m['role']}: {m['content']}" for m in messages)
# Generate the summary
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))