🚀 Minueza-32M-Chat:一个拥有3200万参数的聊天模型
Minueza-32M-Chat是一个参数规模为3200万的聊天模型,它基于特定的基础模型,使用了丰富的数据集进行训练,在文本生成任务上有一定的表现。
🚀 快速开始
推荐的提示格式
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{user_message}<|im_end|>
<|im_start|>assistant
推荐的推理参数
do_sample: true
temperature: 0.65
top_p: 0.55
top_k: 35
repetition_penalty: 1.176
使用示例
from transformers import pipeline
generate = pipeline("text-generation", "Felladrin/Minueza-32M-Chat")
messages = [
{
"role": "system",
"content": "You are a helpful assistant who answers the user's questions with details and curiosity.",
},
{
"role": "user",
"content": "What are some potential applications for quantum computing?",
},
]
prompt = generate.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
output = generate(
prompt,
max_new_tokens=256,
do_sample=True,
temperature=0.65,
top_k=35,
top_p=0.55,
repetition_penalty=1.176,
)
print(output[0]["generated_text"])
✨ 主要特性
📦 安装指南
文档未提供具体安装步骤,暂不展示。
💻 使用示例
基础用法
from transformers import pipeline
generate = pipeline("text-generation", "Felladrin/Minueza-32M-Chat")
messages = [
{
"role": "system",
"content": "You are a helpful assistant who answers the user's questions with details and curiosity.",
},
{
"role": "user",
"content": "What are some potential applications for quantum computing?",
},
]
prompt = generate.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
output = generate(
prompt,
max_new_tokens=256,
do_sample=True,
temperature=0.65,
top_k=35,
top_p=0.55,
repetition_penalty=1.176,
)
print(output[0]["generated_text"])
📚 详细文档
训练使用的数据集
监督微调(SFT)阶段使用的数据集
直接偏好优化(DPO)阶段使用的数据集
训练设置
监督微调
超参数 |
值 |
learning_rate |
2e-5 |
total_train_batch_size |
24 |
max_seq_length |
2048 |
weight_decay |
0 |
warmup_ratio |
0.02 |
直接偏好优化
超参数 |
值 |
learning_rate |
7.5e-7 |
total_train_batch_size |
6 |
max_length |
2048 |
max_prompt_length |
1536 |
max_steps |
200 |
weight_decay |
0 |
warmup_ratio |
0.02 |
beta |
0.1 |
评估结果
Open LLM Leaderboard评估结果
详细结果可查看 此处
指标 |
值 |
平均(Avg.) |
28.49 |
AI2 Reasoning Challenge (25-Shot) |
20.39 |
HellaSwag (10-Shot) |
26.54 |
MMLU (5-Shot) |
25.75 |
TruthfulQA (0-shot) |
47.27 |
Winogrande (5-shot) |
50.99 |
GSM8k (5-shot) |
0.00 |
🔧 技术细节
文档未提供具体技术细节,暂不展示。
📄 许可证
本模型使用 Apache License 2.0 许可证。