CherryPit-1.3-2B: a new compact language model focused on math and code
2 min read
The CherryPit-1.3-2B model was developed by DRUPEs based on the MiniCPM5-2B architecture (~2B parameters) and is tailored for complex tasks requiring precise calculations and instruction following. In this new version, the developers merged weights with a mathematical fine-tune and added custom fine-tuning on web applications. The result is a fast local LLM (language model) that performs significantly better on challenging math competitions and component generation while retaining the modest size and speed of previous versions.
Key features
- Math leap: performance on AIME increased from 67.5 to 79.2, and on MATH-500 to 91.8 thanks to weight merging.
- Improved web development: handles generating multiple features within a single React component more accurately.
- No parameter increase: retains the previous size (~2B), speed, and standard Llama architecture.
- 128K context: supports long-context processing and built-in tool calling.
What you can do
- Solve competition problems: use the model for complex math calculations with reasoning (thinking mode).
- Generate web interfaces: apply it to create React components and simple web applications.
- Deploy locally: run via vLLM or use GGUF versions for local clients like Ollama and LM Studio.
- Follow complex instructions: leverage the improved IFEval mechanism for strict formatting compliance.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("DRUPEs/CherryPit-1.3-2B")
model = AutoModelForCausalLM.from_pretrained("DRUPEs/CherryPit-1.3-2B", torch_dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "How many positive integers n < 1000 make n^2 + n + 41 prime?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=16384, do_sample=True, temperature=1.0, top_p=0.95)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Read more
Details• Architecture: Causal LM, standard Llama, ~2B parameters.
• Benchmarks: AIME 2025+2026 — 79.2 (+11.7), MATH-500 — 91.8 (+4.6), IFEval — 87.2.
• Limitations: the 2B model can still make confident errors, coding remains at the level of version 1.2, and testing was conducted exclusively in English.
• License: Apache 2.0.










Comments