CoolFace
Modelpublic

DQN-Labs/dqnCode-v0.2-1.5B

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
5likes61downloads
Model Card

๐Ÿง  DQN Code v0.2

A 1.5B Python Specialist

DQN Code v0.2 is a lightweight coding-focused model built on Qwen2.5-1.5B-Instruct and fine-tuned specifically for high-quality Python generation.

This release focuses on algorithmic correctness, structured implementation, and clean function completion.


๐Ÿš€ Highlights

  • โ€”๐Ÿ”น 1.5B parameters
  • โ€”๐Ÿ”น LoRA fine-tuned
  • โ€”๐Ÿ”น Python-specialized
  • โ€”๐Ÿ”น Optimized for deterministic completion
  • โ€”๐Ÿ”น Designed to run locally on 8GB systems

๐Ÿ“Š Benchmark Performance

HumanEval (0-shot, temperature=0.0) Evaluated using mlx_lm.

ModelParametersHumanEval pass@1
Qwen2.5-1.5B-Instruct (official)1.5B~37.8%
MistralAI Mistral 7B7B~30.5%
Google Gemma 2 9B (as on llmstats.com)9B~40.2%
DQN Code v0.21.5B49.39%
Evaluation settings: - 0-shot - Temperature = 0.0 - No few-shot prompting - Full 164 HumanEval tasks

This represents a +11.6% absolute improvement over the base Instruct model.


๐ŸŽฏ Design Philosophy

Instead of scaling parameters, DQN Code focuses on:

  • โ€”High-quality distilled supervision
  • โ€”Python-heavy training distribution
  • โ€”Clean function-style completions
  • โ€”Reduced conversational overhead
  • โ€”Local inference efficiency

Small models benefit heavily from specialization. This release demonstrates how targeted fine-tuning can significantly improve coding performance without increasing model size.


๐Ÿ”ง Training Details

  • โ€”Base: Qwen2.5-1.5B-Instruct
  • โ€”Fine-tune type: LoRA
  • โ€”Effective batch size: 8
  • โ€”Max sequence length: 512
  • โ€”Optimizer: AdamW
  • โ€”Learning rate: 5e-6
  • โ€”Dataset size: ~1.8k curated Python-focused samples
  • โ€”Training hardware: 8GB RAM system (MLX)

Training focused on:

  • โ€”Function completion
  • โ€”Algorithmic correctness
  • โ€”Clean Python structure
  • โ€”Reduced hallucinated commentary

๐Ÿ’ป Intended Use

  • โ€”Local coding assistant (with decent performance in other languages too!)
  • โ€”Python function completion
  • โ€”Algorithm practice
  • โ€”Educational use
  • โ€”Lightweight code generation

โš  Limitations

  • โ€”Primarily optimized for Python (but performs well on other languages too.)
  • โ€”Not benchmarked on multi-language coding
  • โ€”Limited evaluation on mathematical reasoning
  • โ€”Not trained for tool use or multi-step planning

๐ŸŒ Philosophy

Powerful coding models do not require massive infrastructure. You don't need a datacenter at home!

Focused training + efficient inference can deliver strong results on modest hardware.


โ“ Queries

If you have any questions regarding the model, want to know how it was trained and our pipleine process, how you can make a better version of the model, or you just want to chat about AI, feel free to contact me on Discord at @dqnlabs.

Enjoy this model, for this is the best so far. There's more coming.

-- DQN Labs

This model card was made with the assistance of dqnGPT-v0.1-7B :D