Team Ai
Modelpublic

rubybear/FastContext-1.0-4B-SFT-mlx-4bit-g32

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes16downloads
Model Card

FastContext-1.0-4B-SFT-mlx-4bit-g32

4-bit MLX quantization of microsoft/FastContext-1.0-4B-SFT with group_size=32 for Apple Silicon.

Quantization details

  • —Method: Affine 4-bit
  • —Group size: 32 (finer than the default 64)
  • —Effective bits per weight: 5.0
  • —Model size: 2.4 GB (vs 7.5 GB bf16)

Benchmark results

Tested on 10 SWE-bench Multilingual instances against other quantization variants:

ModelBits/WtSizeFile F1Line F1
affine 8-bit g648.54.0G0.5070.140
affine 4-bit g32 (this model)5.02.4G0.3000.090
affine 3-bit g643.51.7G0.1000.000
affine 4-bit g644.52.1G0.0500.005
mattrobenolt 4-bit g644.52.1G0.0250.008

The finer group_size=32 delivers 12x better File F1 than standard 4-bit g64 quantization with only 300MB additional size.

Usage

python
from mlx_lm import load, generate

model, tokenizer = load("rubybear-lgtm/FastContext-1.0-4B-SFT-mlx-4bit-g32")

Or with fastcontext-mcp for Claude Code integration.