MenteE Code 3B (v1)

MenteE Code is a coding-agent assistant built by MenteE. This is v1: a LoRA fine-tune of Qwen/Qwen2.5-Coder-3B-Instruct (Apache-2.0), merged into a standalone model and trained to behave as MenteE Code.

Ask it who it is and it will tell you: "I am MenteE Code, a coding assistant built by MenteE." The chat template injects the MenteE identity by default, so every client (transformers, vLLM, llama.cpp, Ollama) presents it correctly.

HumanEval comparison

Training (all numbers measured)

Item Value
Base Qwen2.5-Coder-3B-Instruct (3.09B params)
Data 53,567 schema-validated agent trajectories (deduplicated from 78,212)
Sources SWE-agent, OpenHands, R2E-Gym, NVIDIA SWE-Zero subsets + MenteE collector + identity Q&A
Method LoRA r=8, ฮฑ=16, all-linear targets, bf16, gradient checkpointing
Schedule 1,250 steps ยท 1 epoch ยท effective batch 16 ยท lr 2e-4 ยท seq len 4,096
Context 32,768 native ยท 131,072 via YaRN (factor 4.0, set in config.json)
Hardware 1ร— RTX 5090 (32 GB) ยท 5 h 32 m ยท ~$0.13
Final loss 1.62 โ†’ 0.317 ยท token accuracy 91.5%

Training loss

Token accuracy

Learning rate

Benchmarks โ€” measured, not estimated

HumanEval pass@1, greedy decoding, 50 problems, both models run on identical hardware with an identical harness (generated code executed against the official unit tests):

Model pass@1
Qwen2.5-Coder-3B-Instruct (base) 94.0%
MenteE Code 3B v1 50.0%

We publish this gap on purpose. Failure analysis shows 24 of 25 v1 failures are the same artifact โ€” systematically doubled closing brackets โ€” caused by v1's training recipe (loss applied to all trajectory roles, including noisy tool outputs). It is a data-recipe issue, not a capability ceiling. The v2 recipe (assistant-only loss, identity oversampling, LoRA r=16) targets exactly this.

This is a 50-problem subset (~ยฑ14 pt margin) โ€” directional, not leaderboard-grade.

GPU telemetry

Model landscape

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

t = AutoTokenizer.from_pretrained("MenteEAI/MenteE-Code-3B")
m = AutoModelForCausalLM.from_pretrained("MenteEAI/MenteE-Code-3B", torch_dtype="auto", device_map="auto")
msgs = [{"role": "user", "content": "Write a Python function to reverse a linked list."}]
prompt = t.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
enc = t(prompt, return_tensors="pt").to(m.device)
out = m.generate(**enc, max_new_tokens=512)
print(t.decode(out[0][enc["input_ids"].shape[1]:], skip_special_tokens=True))

GGUF builds (for Ollama / llama.cpp) are published at MenteEAI/MenteE-Code-3B-GGUF.

Roadmap

  • v2: assistant-only loss, identity oversampling, LoRA r=16 โ†’ recover base-level coding quality
  • Flywheel: real user conversations are logged (opt-in), converted to training data, and folded into future versions
  • Eval: SWE-bench Verified subset with a proper agent harness

License & attribution

Apache-2.0, same as the base model. Built on Qwen2.5-Coder-3B-Instruct by the Qwen team โ€” with gratitude. MenteE is not affiliated with Alibaba or Qwen.

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

Model tree for MenteEAI/MenteE-Code-3B

Base model

Qwen/Qwen2.5-3B
Adapter
(94)
this model
Adapters
2 models