Jima-27B

About the name. La jima is the agave harvest in Mexico: the jimador cuts away the leaves until only the heart of the plant is left. Jima models are fitted to small machines the same way, by removing what a model does not need and leaving the rest untouched. Nothing is re-quantized. The word is Spanish, pronounced HEE-mah, and is unrelated to Iwo Jima.

On this model nothing was cut from the network itself: it is dense, so there are no experts to remove. Only the embedding table was made smaller. Formerly Qwen3.8-27B-exl3-2.00bpw-q8emb.

Qwen3.8-27B at 2.00 bits per weight (EXL3) with the token-embedding table stored in 8 bits, for Apple Silicon Macs with limited memory. 8.86 GiB on disk.

  • What is ours and what is not. The 2-bit quantization is turboderp's (revision 2.00bpw), unchanged. Our one change to the file: the 248,320 ร— 5,120 embedding table, 2.37 GiB at 16 bits, is stored as int8 codes plus one 16-bit scale per row (relative error 0.9%). That saves 1.18 GiB. Every other tensor is copied byte for byte.
  • Base model: Qwen/Qwen3.8-27B, Apache 2.0.
  • Inspired by Cary Palmer's Kintsugi-27B, which showed that this model holds up at about 2 bits and that task tests, not KL alone, should decide.
  • See also: Jima-35B, a pruned Qwen3.6-35B-A3B that is about four times faster and scores lower on agent tasks.
  • Scripts and lab notebook: trellis-fit. embed_q8.py there rebuilds this file from turboderp's.

Running it

This file does not load in stock MLXL3 (and we expect not in exllamav3, untested), because the embedding table is stored as embed_tokens.q8 and embed_tokens.q8_scale. It needs our MLXL3 fork, built from source (Apple Silicon, macOS 26.2 or later, Rust 1.89 or later, Python 3.12):

git clone https://github.com/EnriqueGalindo/mlxl3
cd mlxl3
python3.12 -m venv .venv
.venv/bin/python -m pip install mlx==0.32.2
export MLXL3_MLX_ROOT="$PWD/.venv/lib/python3.12/site-packages/mlx"
export MLXL3_ENGINE_BACKEND=mlx
cargo build --release --locked --no-default-features --features mlx,chat --bin mlxl3-rs

export MLXL3_ALLOCATOR_CACHE_MIB=512      # see below; do not skip this
target/release/mlxl3-rs serve /absolute/path/to/this/model --port 8000 --context-length 16384

The fork's main branch is current MLXL3 (engine 2.0.39 plus later upstream commits) with one added commit: the 8-bit embedding loader. Checked on 2026-11-30 from a fresh clone.

Keep the .venv folder in place: the binary loads MLX's libraries from it. Then use any OpenAI-compatible client at http://127.0.0.1:8000/v1; the model field must be the absolute path you served:

curl http://127.0.0.1:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "model": "/absolute/path/to/this/model",
  "messages": [{"role": "user", "content": "What is 17 times 23?"}],
  "reasoning_effort": "medium",
  "temperature": 0.7, "top_k": 20, "max_tokens": 2000}'

Send "reasoning_effort": "medium". This model's chat template defaults to xhigh, which thinks much longer; the AppWorld result below used medium. The template takes none, low, medium and xhigh; the server answers 400 for any other level.

The server accepts temperature, top_k, repetition_penalty, reasoning_effort and chat_template_kwargs: {"preserve_thinking": false}. It rejects top_p, min_p and seed. If your client does not send earlier turns' thinking back, set preserve_thinking to false; otherwise each earlier turn is rendered with an empty thinking block.

MLXL3_ALLOCATOR_CACHE_MIB=512 matters. Without it MLX keeps freed buffers, and memory grew to 22.5 GiB on an 8,000-token prompt and 102 GiB on a 34,000-token prompt on a 128 GB machine. With it, the figures below apply and speed is unchanged.

Measurements

All on an Apple M5 Max (128 GB). "Untouched" is turboderp's 2.00 bpw file in stock MLXL3 2.0.19.

Measure Untouched 2.00 bpw This file
Size on disk 10.04 GiB 8.86 GiB
Memory after load 9.24 GiB 8.10 GiB
Peak memory at 8,086 / 33,874 prompt tokens 11.3 / 13.1 GiB 10.1 / 12.2 GiB
Perplexity, WikiText-2 test 6.533 6.534
Decode speed / prompt reading speed 25 / 700 tok/s 25 / 690 tok/s
HumanEval (164), greedy, default effort 154 153
MMLU sample (150) 126 124
Planted-code recall at 32k and 64k (64) 64 64
Exact code copy at 32k and 64k (16) 16 16
AppWorld test_normal (168 tasks) 145 (86.3%) 144 (85.7%)

AppWorld: commit 42b5bcf, stock ReAct code agent, temperature 1.0, top-k 20, medium reasoning effort, earlier thinking kept, 24,576-token reply limit, one unseeded run each. The two files disagree on 17 tasks, 9 one way and 8 the other. Under the same settings, full-precision Qwen3.6-35B-A3B scored 123.

Imitated 16 GB Mac (memory pinned on the 128 GB machine until 12.5 GiB was available, about what a freshly booted 16 GB Mac has): no swapping and 3.0 GiB to spare at an 8,000-token prompt; 1.1 GiB to spare and 0.45 GiB of swap at 35,000 tokens. With 11 GiB available, 8,000 tokens still fits and 35,000 tokens swaps 1.5 GiB.

Limits

  • Not yet run on a real 16 GB Mac, or on M1 to M4. The imitation does not reproduce a smaller Mac's GPU memory cap, chip or disk.
  • No KL or top-1 agreement against full precision: we did not download the bf16 model.
  • One unseeded AppWorld run per file, on our own setup with top-k sampling only. Not paired with anyone else's numbers.
  • Slower than Kintsugi-27B on a Mac: 25 tok/s here against the 38 tok/s (76 with drafting) its card reports on an M5 Max. MLXL3's drafting is not available through its server.
  • Text only in MLXL3. The vision tensors are still in the file.
Downloads last month
59
Safetensors
Model size
5B params
Tensor type
I8
ยท
F16
ยท
I16
ยท
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for meatlo4f/Jima-27B

Base model

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