practice-coder-1.5b-mlx - Fine-Tuned 4-Bit Model for Applied Coding Tasks on Apple Silicon
2 min read
This model is a LoRA (small add-on layer over a base model) fine-tune of the mlx-community/Qwen2.5-Coder-1.5B-Instruct-4bit model, optimized for Apple Silicon using the MLX framework. The model was trained on the Practice dataset by Renaissance Labs, which features non-trivial tasks across various domains (from forestry to demography and text editing). The model outputs an autonomous Python script using the standard library that reads files in the working directory and generates a structured answer.json file. This development is intended for researchers and developers who need a compact local coding agent to automate specific workflows.
Key features
- Base architecture: Built on the 1.5-billion Qwen2.5-Coder model with 4-bit quantization.
- MLX optimization: The checkpoint is built specifically for efficient operation on Apple Silicon devices.
- Specialized training: Trained on open environment datasets for testing applied skills with deterministic verifiers.
- Fast training: Training took about 13 minutes on an Apple M5 using the
mlx-lmlibrary.
What you can do
- Local code generation: Run the model locally on a Mac to automatically write scripts for specified working files.
- Applied task solving: Use it to automate routine calculations, table processing, and document analysis in isolated environments.
- SFT pipeline testing: Use the model as a baseline for your own fine-tuning experiments with coding agents on custom datasets.
Example
uv run --with mlx-lm python3 -m mlx_lm generate \
--model RenaissanceLabsEU/practice-coder-1.5b-mlx \
--prompt "Read the task instruction and workspace files and write a Python script that outputs answer.json." \
--max-tokens 2048Read more
DetailsBenchmarks: average reward 0.1523, successful solutions (reward == 1.0) 8 out of 66 (12.1%)
Hardware requirements: Apple Silicon (tested on Apple M5 with 32 GB of memory)
Limitations: context truncation on long scripts (max_seq_length limit), synthetic data in the dataset
Training details: LoRA (rank 8, 16 layers, 5.276 million trainable parameters), batch size 4, lr=2e-4, 300 iterations










Comments