📢 V2.0 已发布 — 我们已发布增强 工具调用 能力的新版本,欢迎通过以下链接下载体验:
GGUF 量化版:MiniCPM5-1B-Claude-Opus-Fable5-Thinking-GGUF
MiniCPM5-1B-Claude-Opus-Fable5-Thinking 是基于 openbmb/MiniCPM5-1B 的 1B Thinking 语言模型。该模型使用 Fable 5 数据进一步微调,增强了 Coding(编程) 与 指令遵循(Instruction Following) 能力,同时保留 MiniCPM5 原生的 Thinking 对话模板与工具调用格式。
llama.cpp / Ollama / LM Studio 部署请参阅 GGUF 仓库。
| 项目 | 说明 |
|---|---|
| 基座模型 | openbmb/MiniCPM5-1B(1B 稠密 Llama 架构) |
| 后训练数据 | Fable 5 traces |
| 主要提升 | 相较基座,Coding 与指令遵循能力更强 |
| 对话格式 | MiniCPM5 原生 Thinking 模板,支持可选的思维链推理块 |
| 上下文长度 | 128K(max_position_embeddings = 131072) |
| 部署特点 | 单卡友好,适合边缘 / 本地场景 |
config.json 中为 131,072)from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "GnLOLot/MiniCPM5-1B-Claude-Opus-Fable5-Thinking"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id, trust_remote_code=True,
torch_dtype=torch.bfloat16, device_map="auto",
)
messages = [{"role": "user", "content": "写一个 Python 函数,合并两个有序链表。"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))生成参数继承自 MiniCPM5-1B:
| 模式 | 参数 |
|---|---|
| Think(默认) | temperature=0.9, top_p=0.95 |
| No Think | temperature=0.7, top_p=0.95,enable_thinking=False |