Run this model with HF Jobs

Run netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Qwen3.8-27B LayerFit MLX 2.5-bit

Qwen/Qwen3.8-27B for Apple Silicon, built with LayerFitโ„ข: a per-layer search that spends the bits where this model needs them most. 11.5 GB on disk, for 16 GB Macs. Standard MLX format, so stock mlx-lm, mlx-vlm and LM Studio load it. Vision tower kept (bf16), 262K context. Bundles Qwen3.8-27B's own multi-token prediction (MTP) head at 4-bit for faster decoding.

Which build fits my Mac?

Each pick leaves room for macOS and a long prompt (the download is at most about 60% of your memory). Other models for your Mac: which build fits my Mac?.

Your Mac Build
16 GB 2-bit (9.1 GB, text-only)
16 GB โšก stretch 2.5-bit (11.5 GB) (this build)
24 GB 3-bit (13.1 GB)
32 GB 4-bit (16.5 GB)
48 GB and up Uniform 6-bit / 8-bit builds from lmstudio-community or mlx-community are a good fit; LayerFit adds nothing there

โšก Stretch: close other apps, keep prompts to a few thousand tokens, and let the GPU use more memory with sudo sysctl iogpu.wired_limit_mb=12800 (lasts until restart).

LayerFit: same size, closer to the original

A uniform quant gives every layer the same bits. LayerFit first measures how much each part of the model suffers at low bits (every layer's MLP, attention and linear-attention blocks, plus the embeddings and output head), then fills a fixed size budget where it helps most. Same size as a standard build, better output:

Same size, same test Top-1 agreement with bf16 Error (KL) GSM8K-50
Standard 2.5-bit (same bits in every layer) 75.9% baseline 41/50
LayerFit 2.5-bit 83.4% 52% lower 46/50

Our harness: language-model weights only, 32 passages ร— 512 tokens across English, other languages, code, tool calls and math, against our MLX bf16 conversion; GSM8K-50 thinking off. The exact recipe is in layerfit-recipe.json.

This build

  • Top-1 token agreement with bf16 on our 12-prompt card check: 90.6% (KL 0.103)
  • GSM8K-50, thinking off: 44-46/50 across two runs
  • Tool calls, coding 3/3, thinking 2/2, image input: pass
  • Peak memory with an 8K-token prompt: 13.7 GB
  • Decode on an M5 Max (not a quiet machine, indicative): 46 tok/s, 51 tok/s with MTP

For Qwen's own benchmark results, see the Qwen3.8-27B card.

Usage

pip install -U mlx-vlm
python -m mlx_vlm.generate --model netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit \
  --prompt "Describe this image." --image photo.jpg --max-tokens 512

Text with mlx-lm:

pip install -U mlx-lm
mlx_lm.generate --model netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit --prompt "Hello"

Faster decoding with MTP

python -m mlx_vlm.generate --model netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit --draft-model netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit --draft-kind mtp \
  --prompt "Write a Python function that checks for primes." --max-tokens 512

Licence

Apache-2.0, same as Qwen3.8-27B. See LICENSE and NOTICE.

All LayerFit builds, one pick per model: [LayerFit MLX builds](https://huggingface.co/collections/netprojects/layerfit-mlx-builds-6b0ad24ace6f450872d036e5).

Built by Paris Michalas, NetProjects. LayerFitโ„ข is a NetProjects trademark. Not affiliated with Alibaba Cloud or the Qwen team.

Downloads last month
60
Safetensors
Model size
28B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit

Base model

Qwen/Qwen3.8-27B
Quantized
(2,070)
this model

Collections including netprojects/Qwen3.8-27B-LayerFit-MLX-2.5bit