🚀 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 許可證。