Skip to content
Other

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-lm library.

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 2048
Read moreDetails
Benchmarks: 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
Discuss Telegram 0

Will it run?

Runs in U32

Fits without quantisation.

  • U32weights 2.9 GB · ready files3.7 GB
  • FP8 / INT8recommendedweights 1.4 GB2.1 GB
  • 4-bitweights 0.8 GB1.4 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2060 · U32 — from RTX 2060

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # RenaissanceLabsEU/practice-coder-1.5b-mlx
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download RenaissanceLabsEU/practice-coder-1.5b-mlx --local-dir ~/models/practice-coder-1.5b-mlx
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b41from November 25, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

  1. Qwen2.5-1.5Bfamily root
  2. Qwen2.5-Coder-1.5B
  3. Qwen2.5-Coder-1.5B-Instruct
  4. practice-coder-1.5b-mlx

New posts about versions of Qwen2.5-1.5B (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 12All on Hugging Face
LoRAs and adapters 5All on Hugging Face
Merges 2All on Hugging Face

About the model

RenaissanceLabsEU/practice-coder-1.5b-mlx
Author
RenaissanceLabsEU
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments