๐ŸŒถ๏ธ Pepper 1 Preview

Lightweight instruction-following code assistant for Python, built on Qwen2.5-Coder-1.5B.

Pepper is a 1.5B parameter code assistant designed for writing functions from natural-language descriptions. It runs on consumer hardware and is one of the few publicly available 1.5B models tuned specifically for instruction-following code generation.

Part of the Minsore family ยท minsore.com


โœจ Highlights

  • ๐Ÿง  Instruction-tuned โ€” writes functions from plain English descriptions
  • ๐Ÿ Python-focused โ€” clean, idiomatic code without fluff
  • โšก Real-time โ€” designed for interactive use
  • ๐Ÿ“ฆ Compact โ€” 1.5B params, ~1 GB in Q4_K_M
  • ๐ŸŽฏ Purpose-built โ€” trained for code generation, not chat
  • ๐Ÿ†“ Apache 2.0 โ€” same license as base model

Pepper comparison

๐Ÿ“Š Benchmarks

Evaluated against 1โ€“1.5B code models. All runs used temperature=0.0, max_tokens=512, --chat-template none.

Benchmark Pepper 1 Preview Base Qwen 1.5B Llama-3.2-1B-Code Yi-Coder-1.5B
HumanEval@50 82.0% 75.0% 64.0% 24.0%
MBPP@50 26.0% 20.0% 16.0% 38.0%
LiveCodeBench@30 20.0% 30.0% 10.0% 26.7%
BigCodeBench@30 23.3% 23.3% 13.3% 30.0%

๐Ÿ“Œ Key insight: Pepper 1 Preview outperforms the base model on HumanEval by +7 points โ€” the primary benchmark for instruction-following code generation. On MBPP, both models underperform the official numbers because this evaluation uses zero-shot prompting with --chat-template none. Yi-Coder tested without its native chat template โ€” its HumanEval score reflects format mismatch, not model quality.


๐Ÿš€ Quick Start

llama.cpp

llama-server -m pepper-1-preview.Q4_K_M.gguf \
  --port 8080 \
  -ngl 99 \
  -c 4096 \
  --chat-template chatml

Requirements: any GPU with โ‰ฅ2 GB VRAM (full offload), or partial CPU offload as fallback.

Chat request

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user", "content": "Write a Python function that checks if a number is prime."}
    ],
    "max_tokens": 512,
    "temperature": 0.0
  }'

Python

import requests

def ask(prompt, max_tokens=512):
    r = requests.post("http://localhost:8080/v1/chat/completions", json={
        "messages": [{"role": "user", "content": prompt}],
        "max_tokens": max_tokens,
        "temperature": 0.0,
    })
    return r.json()["choices"][0]["message"]["content"]

print(ask("Write a Python function that reverses a string."))
# โ†’ def reverse_string(s: str) -> str:
#       return s[::-1]

โš™๏ธ Recommended Settings

Parameter Value Notes
--chat-template chatml Required. Pepper expects ChatML.
n_predict 256โ€“1024 512 is a good default
temperature 0.0 Deterministic; use 0.2 for variation
repeat_penalty 1.1 Prevents repetition
-c 4096 Longer context available but degrades

โš ๏ธ Limitations

  • Python-only โ€” not trained on other languages
  • No FIM support โ€” for fill-in-the-middle tasks, use Quill
  • Not an agent โ€” does not support tool calling or multi-step planning
  • Weak on algorithmic tasks โ€” LiveCodeBench score below base Qwen
  • 4K inference context โ€” long files are truncated
  • Occasional over-explanation โ€” may include comments when only code is requested

๐Ÿงฌ Training Details

Base model Qwen2.5-Coder-1.5B-Instruct
Method QLoRA fine-tuning on curated Python code data
Context 4096 tokens (inference)

๐Ÿ“ Files

File Size Description
pepper-1-preview.Q4_K_M.gguf ~1 GB Ready to use with llama.cpp
model.safetensors ~3 GB Full precision (transformers)
config.json, tokenizer.json โ€” Config for transformers

๐Ÿ—บ๏ธ Roadmap

  • Pepper 2 โ€” improve MBPP and LiveCodeBench, add multi-language support
  • Quill 2 โ€” extend FIM to JS/TS/Rust
  • Symphony โ€” flagship code model (3B)

๐Ÿ“œ License

Apache 2.0 โ€” same as the base Qwen2.5-Coder-1.5B model.


๐Ÿ™ Credits


๐Ÿ“ฌ Contact

Minsore โ€” Ukrainian AI lab building open language models.


โญ If Pepper is useful, star the repo and share your results.

Downloads last month
427
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for minsore/pepper-1-preview

Quantized
(191)
this model