Views
No views yet

📢 V2.0 is available — We have released an updated model with enhanced tool-calling capabilities. Welcome to try the new version:
| Item | Detail |
|---|---|
| Base model | openbmb/MiniCPM5-1B (1B dense Llama architecture) |
| Post-training | Fable 5 traces |
| Key gains | Stronger coding and instruction following vs. the base checkpoint |
| Chat format | MiniCPM5 native Thinking template with optional chain-of-thought blocks |
| Context length | 128K (max_position_embeddings = 131072) |
| Deployment | Single-GPU friendly; suitable for edge / local use |
config.json)1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "GnLOLot/MiniCPM5-1B-Claude-Opus-Fable5-Thinking"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 trust_remote_code=True,
10 torch_dtype=torch.bfloat16,
11 device_map="auto",
12)
13
14messages = [{"role": "user", "content": "Write a Python function to merge two sorted lists."}]
15text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
16inputs = tokenizer(text, return_tensors="pt").to(model.device)
17outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
18print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))| Mode | Params |
|---|---|
| Think (default) | temperature=0.9, top_p=0.95 |
| No Think | temperature=0.7, top_p=0.95, enable_thinking=False |