Ornith-1.5-9B-CodeAlpaca — MLX 3-bit

Author / fine-tuning / quantization: Irfan Uruchi
Upstream model: ornith-ai/Ornith-1.5-9B
Classification: Research-only — substantial correctness regression

Checkpoint

I fine-tuned Ornith-1.5-9B with distributed MLX QLoRA on 3,600 CodeAlpaca instruction–response pairs. Training used an Apple M6 Mac mini and an Apple M3 Pro MacBook Pro linked by Thunderbolt Bridge. This repository contains the merged model quantized to 3-bit affine with group size 64. Each MLX precision was quantized independently from the same higher-precision merged checkpoint, not from another low-bit export.

Measured behavior

Custom coding benchmark Result
Tasks with every assertion passing 2/30
Assertions passing 16/121
Functions with all parameter and return annotations 0/30
Generation time for 30 prompts 204.2 s

Outputs contained substantial repetitions and incomplete functions; only 2/30 tasks passed.

These are results from one deterministic generation per prompt, with a maximum of 512 generated tokens; they are not HumanEval or MBPP scores. The 121 assertions run in restricted Docker containers. The evaluation record describes the extractor and scoring corrections. The time total is not a standardized throughput benchmark.

Inference

Tested with mlx==0.32.4 and mlx-lm==0.32.2:

from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler

model, tokenizer = load("Irfanuruchi/Ornith-1.5-9B-CodeAlpaca-MLX-3bit")
prompt = tokenizer.apply_chat_template(
    [{"role": "user", "content": "Write an iterative Python fibonacci function."}],
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)
print(generate(
    model, tokenizer, prompt=prompt, max_tokens=512,
    sampler=make_sampler(temp=0), verbose=False,
))

Sources and credit

Release terms

I release my fine-tuning and conversion contributions for noncommercial research and evaluation under CC BY-NC 4.0, to the extent I hold those rights. This does not replace Ornith's upstream MIT terms, change the original CodeAlpaca dataset terms, or grant rights held by third parties. No raw CodeAlpaca dataset files are distributed here.

Downloads last month
42
Safetensors
Model size
9B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

3-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Irfanuruchi/Ornith-1.5-9B-CodeAlpaca-MLX-3bit

Quantized
(122)
this model

Dataset used to train Irfanuruchi/Ornith-1.5-9B-CodeAlpaca-MLX-3bit